Lines Matching refs:mb_y
445 static inline void dv_calculate_mb_xy(DVVideoContext *s, DVwork_chunk *work_chunk, int m, int *mb_x, int *mb_y)
448 *mb_y = work_chunk->mb_coordinates[m] >> 8;
452 *mb_y -= (*mb_y>17)?18:-72; /* shifting the Y coordinate down by 72/2 macro blocks */
456 /* mb_x and mb_y are in units of 8 pixels */
462 int mb_index, mb_x, mb_y, last_index;
580 dv_calculate_mb_xy(s, work_chunk, mb_index, &mb_x, &mb_y);
585 (s->sys->height >= 720 && mb_y != 134)) {
590 y_ptr = s->picture.data[0] + ((mb_y * s->picture.linesize[0] + mb_x) << log2_blocksize);
604 c_offset = (((mb_y >> (s->sys->pix_fmt == PIX_FMT_YUV420P)) * s->picture.linesize[1] +
624 y_stride = (mb_y == 134) ? (1 << log2_blocksize) :
930 int mb_x, mb_y, c_offset, linesize, y_stride;
945 dv_calculate_mb_xy(s, work_chunk, mb_index, &mb_x, &mb_y);
950 (s->sys->height >= 720 && mb_y != 134)) {
955 y_ptr = s->picture.data[0] + ((mb_y * s->picture.linesize[0] + mb_x) << 3);
974 c_offset = (((mb_y >> (s->sys->pix_fmt == PIX_FMT_YUV420P)) * s->picture.linesize[1] +
979 y_stride = (mb_y == 134) ? 8 : (s->picture.linesize[j] << 3);