Lines Matching defs:stride

248     const int stride= s->current_picture->linesize[0];
250 uint8_t *current_data[3]= { s->input_picture->data[0] + (x + y* stride)*block_w,
292 av_assert1(c-> stride == stride);
378 sum = pix_sum(current_data[0], stride, block_w, block_w);
380 iscore = pix_norm1(current_data[0], stride, block_w) - 2*l*sum + l*l*block_s;
776 static int encode_subband_c0run(SnowContext *s, SubBand *b, const IDWTELEM *src, const IDWTELEM *parent, int stride, int orientation){
791 v= src[x + y*stride];
794 t= src[x + (y-1)*stride];
796 lt= src[x - 1 + (y-1)*stride];
799 rt= src[x + 1 + (y-1)*stride];
803 l= src[x - 1 + y*stride];
805 if(orientation==1) ll= src[y + (x-2)*stride];
806 else ll= src[x - 2 + y*stride];
813 p= parent[px + py*2*stride];
842 v= src[x + y*stride];
845 t= src[x + (y-1)*stride];
847 lt= src[x - 1 + (y-1)*stride];
850 rt= src[x + 1 + (y-1)*stride];
854 l= src[x - 1 + y*stride];
856 if(orientation==1) ll= src[y + (x-2)*stride];
857 else ll= src[x - 2 + y*stride];
864 p= parent[px + py*2*stride];
896 static int encode_subband(SnowContext *s, SubBand *b, const IDWTELEM *src, const IDWTELEM *parent, int stride, int orientation){
897 // encode_subband_qtree(s, b, src, parent, stride, orientation);
898 // encode_subband_z0run(s, b, src, parent, stride, orientation);
899 return encode_subband_c0run(s, b, src, parent, stride, orientation);
900 // encode_subband_dzr(s, b, src, parent, stride, orientation);
1073 const int stride= s->current_picture->linesize[0];
1083 memcpy(dst + sx + y*stride, src + sx + y*stride, block_w*2);
1085 memcpy(dst + sx + y*stride, src + sx + y*stride, block_w*2);
1088 memcpy(dst + sx + y*stride, src + sx + y*stride, -sx);
1092 memcpy(dst + w + y*stride, src + w + y*stride, sx+block_w*2 - w);
1244 static void quantize(SnowContext *s, SubBand *b, IDWTELEM *dst, DWTELEM *src, int stride, int bias){
1254 dst[x + y*stride]= src[x + y*stride];
1265 int i= src[x + y*stride];
1271 dst[x + y*stride]= i;
1276 dst[x + y*stride]= -i;
1279 dst[x + y*stride]= 0;
1285 int i= src[x + y*stride];
1291 dst[x + y*stride]= i;
1296 dst[x + y*stride]= -i;
1299 dst[x + y*stride]= 0;
1305 static void dequantize(SnowContext *s, SubBand *b, IDWTELEM *src, int stride){
1317 int i= src[x + y*stride];
1319 src[x + y*stride]= -((-i*qmul + qadd)>>(QEXPSHIFT)); //FIXME try different bias
1321 src[x + y*stride]= (( i*qmul + qadd)>>(QEXPSHIFT));
1327 static void decorrelate(SnowContext *s, SubBand *b, IDWTELEM *src, int stride, int inverse, int use_median){
1334 int i= x + y*stride;
1338 if(y && x+1<w) src[i] -= mid_pred(src[i - 1], src[i - stride], src[i - stride + 1]);
1341 if(y) src[i] -= mid_pred(src[i - 1], src[i - stride], src[i - 1] + src[i - stride] - src[i - 1 - stride]);
1345 if(y) src[i] -= src[i - stride];
1351 static void correlate(SnowContext *s, SubBand *b, IDWTELEM *src, int stride, int inverse, int use_median){
1358 int i= x + y*stride;
1362 if(y && x+1<w) src[i] += mid_pred(src[i - 1], src[i - stride], src[i - stride + 1]);
1365 if(y) src[i] += mid_pred(src[i - 1], src[i - stride], src[i - 1] + src[i - stride] - src[i - 1 - stride]);
1369 if(y) src[i] += src[i - stride];
1500 const int stride= b->stride;
1508 buf[x+y*stride]= b->buf[x+y*stride];
1510 decorrelate(s, b, buf, stride, 1, 0);
1513 coef_sum+= abs(buf[x+y*stride]) * qdiv >> 16;
1550 ibuf[b->width/2 + b->height/2*b->stride]= 256*16;
1655 int stride= s->current_picture->linesize[0];
1664 s->m.linesize = stride;
1790 quantize(s, b, b->ibuf, b->buf, b->stride, s->qbias);
1792 decorrelate(s, b, b->ibuf, b->stride, pic->pict_type == AV_PICTURE_TYPE_P, 0);
1794 encode_subband(s, b, b->ibuf, b->parent ? b->parent->ibuf : NULL, b->stride, orientation);
1795 av_assert0(b->parent==NULL || b->parent->stride == b->stride*2);
1797 correlate(s, b, b->ibuf, b->stride, 1, 0);
1805 dequantize(s, b, b->ibuf, b->stride);