Lines Matching refs:av_clip

259         src_x   = av_clip(  src_x, -16, s->mb_width  * 16);
260 src_y = av_clip( src_y, -16, s->mb_height * 16);
261 uvsrc_x = av_clip(uvsrc_x, -8, s->mb_width * 8);
262 uvsrc_y = av_clip(uvsrc_y, -8, s->mb_height * 8);
264 src_x = av_clip( src_x, -17, s->avctx->coded_width);
265 uvsrc_x = av_clip(uvsrc_x, -8, s->avctx->coded_width >> 1);
267 src_y = av_clip(src_y, -18 + (src_y & 1), s->avctx->coded_height + (src_y & 1));
268 uvsrc_y = av_clip(uvsrc_y, -8 + (uvsrc_y & 1), (s->avctx->coded_height >> 1) + (uvsrc_y & 1));
270 src_y = av_clip(src_y, -18, s->avctx->coded_height + 1);
271 uvsrc_y = av_clip(uvsrc_y, -8, s->avctx->coded_height >> 1);
546 src_x = av_clip(src_x, -16, s->mb_width * 16);
547 src_y = av_clip(src_y, -16, s->mb_height * 16);
549 src_x = av_clip(src_x, -17, s->avctx->coded_width);
551 src_y = av_clip(src_y, -18 + (src_y & 1), s->avctx->coded_height + (src_y & 1));
553 src_y = av_clip(src_y, -18, s->avctx->coded_height + 1);
692 uvsrc_x = av_clip(uvsrc_x, -8, s->mb_width * 8);
693 uvsrc_y = av_clip(uvsrc_y, -8, s->mb_height * 8);
695 uvsrc_x = av_clip(uvsrc_x, -8, s->avctx->coded_width >> 1);
696 uvsrc_y = av_clip(uvsrc_y, -8, s->avctx->coded_height >> 1);
877 uvsrc_x = av_clip(uvsrc_x, -8, s->avctx->coded_width >> 1);
879 uvsrc_y = av_clip(uvsrc_y, -8 + (uvsrc_y & 1), (s->avctx->coded_height >> 1) + (uvsrc_y & 1));
881 uvsrc_y = av_clip(uvsrc_y, -8, s->avctx->coded_height >> 1);
1045 src_x = av_clip( src_x, -16, s->mb_width * 16);
1046 src_y = av_clip( src_y, -16, s->mb_height * 16);
1047 uvsrc_x = av_clip(uvsrc_x, -8, s->mb_width * 8);
1048 uvsrc_y = av_clip(uvsrc_y, -8, s->mb_height * 8);
1050 src_x = av_clip( src_x, -17, s->avctx->coded_width);
1051 uvsrc_x = av_clip(uvsrc_x, -8, s->avctx->coded_width >> 1);
1053 src_y = av_clip(src_y, -18 + (src_y & 1), s->avctx->coded_height + (src_y & 1));
1054 uvsrc_y = av_clip(uvsrc_y, -8 + (uvsrc_y & 1), (s->avctx->coded_height >> 1) + (uvsrc_y & 1));
1056 src_y = av_clip(src_y, -18, s->avctx->coded_height + 1);
1057 uvsrc_y = av_clip(uvsrc_y, -8, s->avctx->coded_height >> 1);