summaryrefslogtreecommitdiff
path: root/libavfilter/opencl
diff options
context:
space:
mode:
authorRuiling Song <ruiling.song@intel.com>2019-01-22 15:01:56 +0800
committerRuiling Song <ruiling.song@intel.com>2019-03-22 09:33:28 +0800
commit8b951cd4752c8db2b4532fae9fb300d422950cdd (patch)
tree91f70152aa0148f65bcd6dc59a3f5d36dd723bd1 /libavfilter/opencl
parent2593122a167de3294abd5b9cf04df5b8072ee3ed (diff)
lavfi/tonemap_opencl: reuse color matrix calculation from colorspace.c
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Diffstat (limited to 'libavfilter/opencl')
-rw-r--r--libavfilter/opencl/colorspace_common.cl25
1 files changed, 0 insertions, 25 deletions
diff --git a/libavfilter/opencl/colorspace_common.cl b/libavfilter/opencl/colorspace_common.cl
index 94a4dd0e0e..1d68a546c7 100644
--- a/libavfilter/opencl/colorspace_common.cl
+++ b/libavfilter/opencl/colorspace_common.cl
@@ -39,31 +39,6 @@ constant const float ST2084_C1 = 0.8359375f;
constant const float ST2084_C2 = 18.8515625f;
constant const float ST2084_C3 = 18.6875f;
-__constant float yuv2rgb_bt2020[] = {
- 1.0f, 0.0f, 1.4746f,
- 1.0f, -0.16455f, -0.57135f,
- 1.0f, 1.8814f, 0.0f
-};
-
-__constant float yuv2rgb_bt709[] = {
- 1.0f, 0.0f, 1.5748f,
- 1.0f, -0.18732f, -0.46812f,
- 1.0f, 1.8556f, 0.0f
-};
-
-__constant float rgb2yuv_bt709[] = {
- 0.2126f, 0.7152f, 0.0722f,
- -0.11457f, -0.38543f, 0.5f,
- 0.5f, -0.45415f, -0.04585f
-};
-
-__constant float rgb2yuv_bt2020[] ={
- 0.2627f, 0.678f, 0.0593f,
- -0.1396f, -0.36037f, 0.5f,
- 0.5f, -0.4598f, -0.0402f,
-};
-
-
float get_luma_dst(float3 c) {
return luma_dst.x * c.x + luma_dst.y * c.y + luma_dst.z * c.z;
}