History

lavfi/tonemap_opencl: reuse color matrix calculation from colorspace.c

Ruiling Song committed 7 years ago

Commit 8b951cd1 parent 25931222 files · +29 −60Browse files

Showing the changes to libavfilter/opencl (1 of 2 files). Show all

Unified · Split

libavfilter/opencl/colorspace_common.cl+0−25
@@ -39,31 +39,6 @@ constant const float ST2084_C1 = 0.8359375f; · 38 unmodified lines
3939 constant const float ST2084_C2 = 18.8515625f;
4040 constant const float ST2084_C3 = 18.6875f;
4141
42−__constant float yuv2rgb_bt2020[] = {
43− 1.0f, 0.0f, 1.4746f,
44− 1.0f, -0.16455f, -0.57135f,
45− 1.0f, 1.8814f, 0.0f
46−};
47−
48−__constant float yuv2rgb_bt709[] = {
49− 1.0f, 0.0f, 1.5748f,
50− 1.0f, -0.18732f, -0.46812f,
51− 1.0f, 1.8556f, 0.0f
52−};
53−
54−__constant float rgb2yuv_bt709[] = {
55− 0.2126f, 0.7152f, 0.0722f,
56− -0.11457f, -0.38543f, 0.5f,
57− 0.5f, -0.45415f, -0.04585f
58−};
59−
60−__constant float rgb2yuv_bt2020[] ={
61− 0.2627f, 0.678f, 0.0593f,
62− -0.1396f, -0.36037f, 0.5f,
63− 0.5f, -0.4598f, -0.0402f,
64−};
65−
66−
6742 float get_luma_dst(float3 c) {
6843 return luma_dst.x * c.x + luma_dst.y * c.y + luma_dst.z * c.z;
6944 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t