71 {{19595, 38470, 7471, 0, 0, 0},
73 { 0, 0, 0, 19595, 38470, 7471}},
75 {{19595, 38470, 7471, 0, 0, 0},
76 { 0, 0, 0, 19595, 38470, 7471},
79 {{19595, 38470, 7471, 0, 0, 0},
80 { 0, 0, 0, 19595, 38470, 7471},
81 { 0, 0, 0, 19595, 38470, 7471}},
83 {{19595, 38470, 7471, 0, 0, 0},
84 { 0, 0, 0, 0, 65536, 0},
85 { 0, 0, 0, 0, 0, 65536}},
87 {{65536, 0, 0, 0, 0, 0},
88 { 0, 0, 0, 0, 65536, 0},
89 { 0, 0, 0, 0, 0, 65536}},
91 {{29891, 32800, 11559, -2849, -5763, -102},
92 {-2627, -2479, -1033, 24804, 48080, -1209},
93 { -997, -1350, -358, -4729, -7403, 80373}},
95 {{ 0, 0, 0, 19595, 38470, 7471},
96 {19595, 38470, 7471, 0, 0, 0},
97 { 0, 0, 0, 19595, 38470, 7471}},
99 {{ 0, 0, 0, 65536, 0, 0},
100 {19595, 38470, 7471, 0, 0, 0},
101 { 0, 0, 0, 0, 0, 65536}},
103 {{ 0, 0, 0, 65536, 0, 0},
104 { 0, 65536, 0, 0, 0, 0},
105 { 0, 0, 0, 0, 0, 65536}},
107 {{-4063,-10354, -2556, 34669, 46203, 1573},
108 {18612, 43778, 9372, -1049, -983, -4260},
109 { -983, -1769, 1376, 590, 4915, 61407}},
111 {{ 0, 0, 0, 19595, 38470, 7471},
112 { 0, 0, 0, 19595, 38470, 7471},
113 {19595, 38470, 7471, 0, 0, 0}},
115 {{ 0, 0, 0, 65536, 0, 0},
116 { 0, 0, 0, 0, 65536, 0},
117 {19595, 38470, 7471, 0, 0, 0}},
119 {{ 0, 0, 0, 65536, 0, 0},
120 { 0, 0, 0, 0, 65536, 0},
121 { 0, 0, 65536, 0, 0, 0}},
123 {{65535,-12650,18451, -987, -7590, -1049},
124 {-1604, 56032, 4196, 370, 3826, -1049},
125 {-2345,-10676, 1358, 5801, 11416, 56217}},
136 #define OFFSET(x) offsetof(Stereo3DContext, x)
137 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
184 static const char *shorthand[] = {
"in",
"out",
NULL };
187 s->
class = &stereo3d_class;
335 sum = coeff[0] * left[0] + coeff[3] * right[0];
336 sum += coeff[1] * left[1] + coeff[4] * right[1];
337 sum += coeff[2] * left[2] + coeff[5] * right[2];
339 return av_clip_uint8(sum >> 16);
348 int out_off_left, out_off_right;
349 int in_off_left, in_off_right;
379 inpicref->
data[0] + in_off_left,
384 inpicref->
data[0] + in_off_right,
391 inpicref->
data[0] + in_off_left,
409 int i, x,
y, il, ir, o;
415 for (i = 0; i < 3; i++)
420 il = in_off_left + y * inpicref->
linesize[0];
421 ir = in_off_right + y * inpicref->
linesize[0];
422 for (x = 0; x < out_width; x++, il += 3, ir += 3, o+= 3) {
423 dst[o ] =
ana_convert(ana_matrix[0], src + il, src + ir);
424 dst[o + 1] =
ana_convert(ana_matrix[1], src + il, src + ir);
425 dst[o + 2] =
ana_convert(ana_matrix[2], src + il, src + ir);
476 .
inputs = stereo3d_inputs,
478 .priv_class = &stereo3d_class,