75 {{19595, 38470, 7471, 0, 0, 0},
77 { 0, 0, 0, 19595, 38470, 7471}},
79 {{19595, 38470, 7471, 0, 0, 0},
80 { 0, 0, 0, 19595, 38470, 7471},
83 {{19595, 38470, 7471, 0, 0, 0},
84 { 0, 0, 0, 19595, 38470, 7471},
85 { 0, 0, 0, 19595, 38470, 7471}},
87 {{19595, 38470, 7471, 0, 0, 0},
88 { 0, 0, 0, 0, 65536, 0},
89 { 0, 0, 0, 0, 0, 65536}},
91 {{65536, 0, 0, 0, 0, 0},
92 { 0, 0, 0, 0, 65536, 0},
93 { 0, 0, 0, 0, 0, 65536}},
95 {{29891, 32800, 11559, -2849, -5763, -102},
96 {-2627, -2479, -1033, 24804, 48080, -1209},
97 { -997, -1350, -358, -4729, -7403, 80373}},
99 {{ 0, 0, 0, 19595, 38470, 7471},
100 {19595, 38470, 7471, 0, 0, 0},
101 { 0, 0, 0, 19595, 38470, 7471}},
103 {{ 0, 0, 0, 65536, 0, 0},
104 {19595, 38470, 7471, 0, 0, 0},
105 { 0, 0, 0, 0, 0, 65536}},
107 {{ 0, 0, 0, 65536, 0, 0},
108 { 0, 65536, 0, 0, 0, 0},
109 { 0, 0, 0, 0, 0, 65536}},
111 {{-4063,-10354, -2556, 34669, 46203, 1573},
112 {18612, 43778, 9372, -1049, -983, -4260},
113 { -983, -1769, 1376, 590, 4915, 61407}},
115 {{ 0, 0, 0, 19595, 38470, 7471},
116 { 0, 0, 0, 19595, 38470, 7471},
117 {19595, 38470, 7471, 0, 0, 0}},
119 {{ 0, 0, 0, 65536, 0, 0},
120 { 0, 0, 0, 0, 65536, 0},
121 {19595, 38470, 7471, 0, 0, 0}},
123 {{ 0, 0, 0, 65536, 0, 0},
124 { 0, 0, 0, 0, 65536, 0},
125 { 0, 0, 65536, 0, 0, 0}},
127 {{65535,-12650,18451, -987, -7590, -1049},
128 {-1604, 56032, 4196, 370, 3826, -1049},
129 {-2345,-10676, 1358, 5801, 11416, 56217}},
147 #define OFFSET(x) offsetof(Stereo3DContext, x)
148 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
479 sum = coeff[0] * left[0] + coeff[3] * right[0];
480 sum += coeff[1] * left[1] + coeff[4] * right[1];
481 sum += coeff[2] * left[2] + coeff[5] * right[2];
483 return av_clip_uint8(sum >> 16);
491 AVFrame *
out, *oleft, *oright, *ileft, *iright;
492 int out_off_left[4], out_off_right[4];
493 int in_off_left[4], in_off_right[4];
509 ileft = iright = inpicref;
532 for (i = 0; i < 4; i++) {
533 int hsub = i == 1 || i == 2 ? s->
hsub : 0;
534 int vsub = i == 1 || i == 2 ? s->
vsub : 0;
557 ileft->
data[i] + in_off_left[i],
562 iright->
data[i] + in_off_right[i],
572 iright->
data[i] + in_off_left[i],
600 il = in_off_left[0] + y * ileft->
linesize[0];
601 ir = in_off_right[0] + y * iright->
linesize[0];
602 for (x = 0; x < out_width; x++, il += 3, ir += 3, o+= 3) {
603 dst[o ] =
ana_convert(ana_matrix[0], lsrc + il, rsrc + ir);
604 dst[o + 1] =
ana_convert(ana_matrix[1], lsrc + il, rsrc + ir);
605 dst[o + 2] =
ana_convert(ana_matrix[2], lsrc + il, rsrc + ir);
616 if (oright != oleft) {
661 .
inputs = stereo3d_inputs,
663 .priv_class = &stereo3d_class,