44 if (sd->
size <
sizeof(*stereo)) {
52 switch (stereo->
type) {
61 "(quincunx subsampling)");
break;
73 for (i = 0; i <
len; i++) {
75 *sum2 += src[i] * src[i];
83 uint32_t plane_checksum[4] = {0}, checksum = 0;
84 int64_t sum[4] = {0}, sum2[4] = {0};
88 for (plane = 0; plane < 4 && frame->
data[plane] && frame->
linesize[plane]; plane++) {
91 int h = plane == 1 || plane == 2 ?
FF_CEIL_RSHIFT(inlink->
h, vsub) : inlink->
h;
96 for (i = 0; i < h; i++) {
101 pixelcount[plane] += linesize;
107 "n:%"PRId64
" pts:%s pts_time:%s pos:%"PRId64
" "
108 "fmt:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c "
109 "checksum:%08"PRIX32
" plane_checksum:[%08"PRIX32,
119 checksum, plane_checksum[0]);
121 for (plane = 1; plane < 4 && frame->
data[plane] && frame->
linesize[plane]; plane++)
124 for (plane = 0; plane < 4 && frame->
data[plane] && frame->
linesize[plane]; plane++)
125 av_log(ctx,
AV_LOG_INFO,
"%"PRId64
" ", (sum[plane] + pixelcount[plane]/2) / pixelcount[plane]);
127 for (plane = 0; plane < 4 && frame->
data[plane] && frame->
linesize[plane]; plane++)
129 sqrt((sum2[plane] - sum[plane]*(
double)sum[plane]/pixelcount[plane])/pixelcount[plane]));