Lines Matching refs:x_shift
114 int x_shift; in av_picture_crop() local
121 x_shift = desc->log2_chroma_w; in av_picture_crop()
126 … dst->data[1] = src->data[1] + ((top_band >> y_shift) * src->linesize[1]) + (left_band >> x_shift); in av_picture_crop()
127 … dst->data[2] = src->data[2] + ((top_band >> y_shift) * src->linesize[2]) + (left_band >> x_shift); in av_picture_crop()
129 if(top_band % (1<<y_shift) || left_band % (1<<x_shift)) in av_picture_crop()
147 int x_shift; in av_picture_pad() local
187 x_shift = i ? desc->log2_chroma_w : 0; in av_picture_pad()
192 dst->linesize[i] * (padtop >> y_shift) + (padleft >> x_shift)); in av_picture_pad()
197 (dst->linesize[i] - (padright >> x_shift)); in av_picture_pad()
200 memset(optr, color[i], (padleft + padright) >> x_shift); in av_picture_pad()
208 (padleft >> x_shift); in av_picture_pad()
209 memcpy(optr, iptr, (width - padleft - padright) >> x_shift); in av_picture_pad()
212 (dst->linesize[i] - (padright >> x_shift)); in av_picture_pad()
215 memset(optr, color[i], (padleft + padright) >> x_shift); in av_picture_pad()
216 memcpy(optr + ((padleft + padright) >> x_shift), iptr, in av_picture_pad()
217 (width - padleft - padright) >> x_shift); in av_picture_pad()
225 ((height - padbottom) >> y_shift) - (padright >> x_shift); in av_picture_pad()
227 (padbottom >> y_shift) + (padright >> x_shift)); in av_picture_pad()