ApraPipes
1.0
Loading...
Searching...
No Matches
EffectsKernel.h
1
#pragma once
2
3
#include "nppdefs.h"
4
5
void
launchYUV420Effects(
const
Npp8u* y,
const
Npp8u* u,
const
Npp8u* v, Npp8u* Y, Npp8u* U, Npp8u* V,
6
Npp32f brighness, Npp32f contrast, Npp32f hue, Npp32f saturation,
7
int
step_y,
int
step_uv, NppiSize size, cudaStream_t stream);
8
9
// brightness - given value will be added and clamped to 255/128 - [-255 255] - 0 means no change
10
// contrast - given value will be multiplied and clamped to 255/128 - any value 1 means no change
11
12
// hsv space - range of pixel values is 0 - 1 - didn't convert to 255 to save computation
13
14
// hue - given value will be added to "h" and clamped to 1 in hsv space - [-1 1] - 0 means no change
15
// satuarion - given value will be multiplied to "s" and clamped to 1 in hsv space - any value - 1 means no change
base
include
EffectsKernel.h
Source Commit: ea96e35