Lines Matching defs:dst_linesize
101 static void idct(uint8_t *dst, int dst_linesize, int src[64])
124 dst[dst_linesize*i + j] = av_clip((int)floor(sum+0.5), 0, 255);
129 static void draw_dc(uint8_t *dst, int dst_linesize, int color, int w, int h)
135 dst[x + y*dst_linesize] = color;
138 static void draw_basis(uint8_t *dst, int dst_linesize, int amp, int freq, int dc)
146 idct(dst, dst_linesize, src);
149 static void draw_cbp(uint8_t *dst[3], int dst_linesize[3], int cbp, int amp, int dc)
151 if (cbp&1) draw_basis(dst[0] , dst_linesize[0], amp, 1, dc);
152 if (cbp&2) draw_basis(dst[0]+8 , dst_linesize[0], amp, 1, dc);
153 if (cbp&4) draw_basis(dst[0]+ 8*dst_linesize[0], dst_linesize[0], amp, 1, dc);
154 if (cbp&8) draw_basis(dst[0]+8+8*dst_linesize[0], dst_linesize[0], amp, 1, dc);
155 if (cbp&16) draw_basis(dst[1] , dst_linesize[1], amp, 1, dc);
156 if (cbp&32) draw_basis(dst[2] , dst_linesize[2], amp, 1, dc);
159 static void dc_test(uint8_t *dst, int dst_linesize, int w, int h, int off)
166 draw_dc(dst + x + y*dst_linesize, dst_linesize, color, 8, 8);
172 static void freq_test(uint8_t *dst, int dst_linesize, int off)
178 draw_basis(dst + x + y*dst_linesize, dst_linesize, 4*(96+off), freq, 128*8);
184 static void amp_test(uint8_t *dst, int dst_linesize, int off)
190 draw_basis(dst + x + y*dst_linesize, dst_linesize, 4*amp, 1, 128*8);
196 static void cbp_test(uint8_t *dst[3], int dst_linesize[3], int off)
203 dst1[0] = dst[0] + x*2 + y*2*dst_linesize[0];
204 dst1[1] = dst[1] + x + y* dst_linesize[1];
205 dst1[2] = dst[2] + x + y* dst_linesize[2];
207 draw_cbp(dst1, dst_linesize, cbp, (64+off)*4, 128*8);
213 static void mv_test(uint8_t *dst, int dst_linesize, int off)
221 dst[x + y*dst_linesize] = x + off*8/(y/32+1);
225 static void ring1_test(uint8_t *dst, int dst_linesize, int off)
231 draw_dc(dst + x + y*dst_linesize, dst_linesize, ((x+y)&16) ? color : -color, 16, 16);
237 static void ring2_test(uint8_t *dst, int dst_linesize, int off)
246 dst[x + y*dst_linesize] = 255;
247 dst[x + y*dst_linesize+256] = 0;
249 dst[x + y*dst_linesize] = x;
250 dst[x + y*dst_linesize+256] = x;