Lines Matching refs:src
134 #define TR_4x4_LUMA(dst, src, step, assign) \
136 int c0 = src[0 * step] + src[2 * step]; \
137 int c1 = src[2 * step] + src[3 * step]; \
138 int c2 = src[0 * step] - src[3 * step]; \
139 int c3 = 74 * src[1 * step]; \
141 assign(dst[2 * step], 74 * (src[0 * step] - \
142 src[2 * step] + \
143 src[3 * step])); \
154 int16_t *src = coeffs;
157 TR_4x4_LUMA(src, src, 4, SCALE);
158 src++;
171 #define TR_4(dst, src, dstep, sstep, assign, end) \
173 const int e0 = 64 * src[0 * sstep] + 64 * src[2 * sstep]; \
174 const int e1 = 64 * src[0 * sstep] - 64 * src[2 * sstep]; \
175 const int o0 = 83 * src[1 * sstep] + 36 * src[3 * sstep]; \
176 const int o1 = 36 * src[1 * sstep] - 83 * src[3 * sstep]; \
184 #define TR_8(dst, src, dstep, sstep, assign, end) \
191 o_8[i] += transform[4 * j][i] * src[j * sstep]; \
192 TR_4(e_8, src, 1, 2 * sstep, SET, 4); \
200 #define TR_16(dst, src, dstep, sstep, assign, end) \
207 o_16[i] += transform[2 * j][i] * src[j * sstep]; \
208 TR_8(e_16, src, 1, 2 * sstep, SET, 8); \
216 #define TR_32(dst, src, dstep, sstep, assign, end) \
223 o_32[i] += transform[j][i] * src[j * sstep]; \
224 TR_16(e_32, src, 1, 2 * sstep, SET, end / 2); \
247 int16_t *src = coeffs; \
251 TR_ ## H(src, src, H, H, SCALE, limit2); \
254 src++; \
304 pixel *src = (pixel *)_src;
316 dst[x] = av_clip_pixel(src[x] + offset_table[(src[x] >> shift) & 31]);
318 src += stride_src;
335 pixel *src = (pixel *)_src;
345 int diff0 = CMP(src[x], src[x + a_stride]);
346 int diff1 = CMP(src[x], src[x + b_stride]);
348 dst[x] = av_clip_pixel(src[x] + sao_offset_val[offset_val]);
350 src += stride_src;
363 pixel *src = (pixel *)_src;
375 dst[y * stride_dst] = av_clip_pixel(src[y * stride_src] + offset_val);
383 dst[x * stride_dst + offset] = av_clip_pixel(src[x * stride_src + offset] + offset_val);
392 dst[x] = av_clip_pixel(src[x] + offset_val);
399 dst[x + y_stride_dst] = av_clip_pixel(src[x + y_stride_src] + offset_val);
413 pixel *src = (pixel *)_src;
425 dst[y * stride_dst] = av_clip_pixel(src[y * stride_src] + offset_val);
433 dst[x * stride_dst + offset] = av_clip_pixel(src[x * stride_src + offset] + offset_val);
442 dst[x] = av_clip_pixel(src[x] + offset_val);
450 dst[x + y_stride_dst] = av_clip_pixel(src[x + y_stride_src] + offset_val);
464 dst[y*stride_dst] = src[y*stride_src];
468 dst[y*stride_dst+width-1] = src[y*stride_src+width-1];
473 dst[x] = src[x];
477 dst[(height-1)*stride_dst+x] = src[(height-1)*stride_src+x];
480 dst[0] = src[0];
482 dst[width-1] = src[width-1];
484 dst[stride_dst*(height-1)+width-1] = src[stride_src*(height-1)+width-1];
486 dst[stride_dst*(height-1)] = src[stride_src*(height-1)];
501 pixel *src = (pixel *)_src;
506 dst[x] = src[x] << (14 - BIT_DEPTH);
507 src += srcstride;
516 pixel *src = (pixel *)_src;
522 memcpy(dst, src, width * sizeof(pixel));
523 src += srcstride;
533 pixel *src = (pixel *)_src;
547 dst[x] = av_clip_pixel(((src[x] << (14 - BIT_DEPTH)) + src2[x] + offset) >> shift);
548 src += srcstride;
558 pixel *src = (pixel *)_src;
572 dst[x] = av_clip_pixel((((src[x] << (14 - BIT_DEPTH)) * wx + offset) >> shift) + ox);
573 src += srcstride;
584 pixel *src = (pixel *)_src;
596 dst[x] = av_clip_pixel(( (src[x] << (14 - BIT_DEPTH)) * wx1 + src2[x] * wx0 + (ox0 + ox1 + 1) * (1 << log2Wd)) >> (log2Wd + 1));
598 src += srcstride;
607 #define QPEL_FILTER(src, stride) \
608 (filter[0] * src[x - 3 * stride] + \
609 filter[1] * src[x - 2 * stride] + \
610 filter[2] * src[x - stride] + \
611 filter[3] * src[x ] + \
612 filter[4] * src[x + stride] + \
613 filter[5] * src[x + 2 * stride] + \
614 filter[6] * src[x + 3 * stride] + \
615 filter[7] * src[x + 4 * stride])
622 pixel *src = (pixel*)_src;
627 dst[x] = QPEL_FILTER(src, 1) >> (BIT_DEPTH - 8);
628 src += srcstride;
638 pixel *src = (pixel*)_src;
643 dst[x] = QPEL_FILTER(src, srcstride) >> (BIT_DEPTH - 8);
644 src += srcstride;
657 pixel *src = (pixel*)_src;
662 src -= QPEL_EXTRA_BEFORE * srcstride;
666 tmp[x] = QPEL_FILTER(src, 1) >> (BIT_DEPTH - 8);
667 src += srcstride;
686 pixel *src = (pixel*)_src;
701 dst[x] = av_clip_pixel(((QPEL_FILTER(src, 1) >> (BIT_DEPTH - 8)) + offset) >> shift);
702 src += srcstride;
712 pixel *src = (pixel*)_src;
728 dst[x] = av_clip_pixel(((QPEL_FILTER(src, 1) >> (BIT_DEPTH - 8)) + src2[x] + offset) >> shift);
729 src += srcstride;
740 pixel *src = (pixel*)_src;
755 dst[x] = av_clip_pixel(((QPEL_FILTER(src, srcstride) >> (BIT_DEPTH - 8)) + offset) >> shift);
756 src += srcstride;
767 pixel *src = (pixel*)_src;
783 dst[x] = av_clip_pixel(((QPEL_FILTER(src, srcstride) >> (BIT_DEPTH - 8)) + src2[x] + offset) >> shift);
784 src += srcstride;
796 pixel *src = (pixel*)_src;
810 src -= QPEL_EXTRA_BEFORE * srcstride;
814 tmp[x] = QPEL_FILTER(src, 1) >> (BIT_DEPTH - 8);
815 src += srcstride;
836 pixel *src = (pixel*)_src;
849 src -= QPEL_EXTRA_BEFORE * srcstride;
853 tmp[x] = QPEL_FILTER(src, 1) >> (BIT_DEPTH - 8);
854 src += srcstride;
876 pixel *src = (pixel*)_src;
891 dst[x] = av_clip_pixel((((QPEL_FILTER(src, 1) >> (BIT_DEPTH - 8)) * wx + offset) >> shift) + ox);
892 src += srcstride;
903 pixel *src = (pixel*)_src;
917 dst[x] = av_clip_pixel(((QPEL_FILTER(src, 1) >> (BIT_DEPTH - 8)) * wx1 + src2[x] * wx0 +
919 src += srcstride;
931 pixel *src = (pixel*)_src;
946 dst[x] = av_clip_pixel((((QPEL_FILTER(src, srcstride) >> (BIT_DEPTH - 8)) * wx + offset) >> shift) + ox);
947 src += srcstride;
958 pixel *src = (pixel*)_src;
972 dst[x] = av_clip_pixel(((QPEL_FILTER(src, srcstride) >> (BIT_DEPTH - 8)) * wx1 + src2[x] * wx0 +
974 src += srcstride;
987 pixel *src = (pixel*)_src;
1000 src -= QPEL_EXTRA_BEFORE * srcstride;
1004 tmp[x] = QPEL_FILTER(src, 1) >> (BIT_DEPTH - 8);
1005 src += srcstride;
1028 pixel *src = (pixel*)_src;
1037 src -= QPEL_EXTRA_BEFORE * srcstride;
1041 tmp[x] = QPEL_FILTER(src, 1) >> (BIT_DEPTH - 8);
1042 src += srcstride;
1064 #define EPEL_FILTER(src, stride) \
1065 (filter[0] * src[x - stride] + \
1066 filter[1] * src[x] + \
1067 filter[2] * src[x + stride] + \
1068 filter[3] * src[x + 2 * stride])
1075 pixel *src = (pixel *)_src;
1080 dst[x] = EPEL_FILTER(src, 1) >> (BIT_DEPTH - 8);
1081 src += srcstride;
1091 pixel *src = (pixel *)_src;
1097 dst[x] = EPEL_FILTER(src, srcstride) >> (BIT_DEPTH - 8);
1098 src += srcstride;
1108 pixel *src = (pixel *)_src;
1114 src -= EPEL_EXTRA_BEFORE * srcstride;
1118 tmp[x] = EPEL_FILTER(src, 1) >> (BIT_DEPTH - 8);
1119 src += srcstride;
1138 pixel *src = (pixel *)_src;
1152 dst[x] = av_clip_pixel(((EPEL_FILTER(src, 1) >> (BIT_DEPTH - 8)) + offset) >> shift);
1153 src += srcstride;
1163 pixel *src = (pixel *)_src;
1177 dst[x] = av_clip_pixel(((EPEL_FILTER(src, 1) >> (BIT_DEPTH - 8)) + src2[x] + offset) >> shift);
1180 src += srcstride;
1189 pixel *src = (pixel *)_src;
1203 dst[x] = av_clip_pixel(((EPEL_FILTER(src, srcstride) >> (BIT_DEPTH - 8)) + offset) >> shift);
1204 src += srcstride;
1214 pixel *src = (pixel *)_src;
1228 dst[x] = av_clip_pixel(((EPEL_FILTER(src, srcstride) >> (BIT_DEPTH - 8)) + src2[x] + offset) >> shift);
1230 src += srcstride;
1239 pixel *src = (pixel *)_src;
1253 src -= EPEL_EXTRA_BEFORE * srcstride;
1257 tmp[x] = EPEL_FILTER(src, 1) >> (BIT_DEPTH - 8);
1258 src += srcstride;
1278 pixel *src = (pixel *)_src;
1292 src -= EPEL_EXTRA_BEFORE * srcstride;
1296 tmp[x] = EPEL_FILTER(src, 1) >> (BIT_DEPTH - 8);
1297 src += srcstride;
1317 pixel *src = (pixel *)_src;
1332 dst[x] = av_clip_pixel((((EPEL_FILTER(src, 1) >> (BIT_DEPTH - 8)) * wx + offset) >> shift) + ox);
1335 src += srcstride;
1345 pixel *src = (pixel *)_src;
1357 dst[x] = av_clip_pixel(((EPEL_FILTER(src, 1) >> (BIT_DEPTH - 8)) * wx1 + src2[x] * wx0 +
1359 src += srcstride;
1369 pixel *src = (pixel *)_src;
1384 dst[x] = av_clip_pixel((((EPEL_FILTER(src, srcstride) >> (BIT_DEPTH - 8)) * wx + offset) >> shift) + ox);
1387 src += srcstride;
1397 pixel *src = (pixel *)_src;
1409 dst[x] = av_clip_pixel(((EPEL_FILTER(src, srcstride) >> (BIT_DEPTH - 8)) * wx1 + src2[x] * wx0 +
1411 src += srcstride;
1421 pixel *src = (pixel *)_src;
1435 src -= EPEL_EXTRA_BEFORE * srcstride;
1439 tmp[x] = EPEL_FILTER(src, 1) >> (BIT_DEPTH - 8);
1440 src += srcstride;
1462 pixel *src = (pixel *)_src;
1472 src -= EPEL_EXTRA_BEFORE * srcstride;
1476 tmp[x] = EPEL_FILTER(src, 1) >> (BIT_DEPTH - 8);
1477 src += srcstride;