• Home
  • Raw
  • Download

Lines Matching refs:cell

233 static int copy_cell(Indeo3DecodeContext *ctx, Plane *plane, Cell *cell)  in copy_cell()  argument
239 offset_dst = (cell->ypos << 2) * plane->pitch + (cell->xpos << 2); in copy_cell()
241 if(cell->mv_ptr){ in copy_cell()
242 mv_y = cell->mv_ptr[0]; in copy_cell()
243 mv_x = cell->mv_ptr[1]; in copy_cell()
248 if ((cell->ypos << 2) + mv_y < -1 || (cell->xpos << 2) + mv_x < 0 || in copy_cell()
249 ((cell->ypos + cell->height) << 2) + mv_y > plane->height || in copy_cell()
250 ((cell->xpos + cell->width) << 2) + mv_x > plane->width) { in copy_cell()
259 h = cell->height << 2; in copy_cell()
261 for (w = cell->width; w > 0;) { in copy_cell()
263 if (!((cell->xpos << 2) & 15) && w >= 4) { in copy_cell()
269 if (!((cell->xpos << 2) & 7) && w >= 2) { in copy_cell()
346 if (cell->mv_ptr || !skip_flag) \
376 if (is_top_of_cell && !cell->ypos) {\
399 if (is_top_of_cell && !cell->ypos) {\
427 static int decode_cell_data(Indeo3DecodeContext *ctx, Cell *cell, in decode_cell_data() argument
442 blk_row_offset = (row_offset << (2 + v_zoom)) - (cell->width << 2); in decode_cell_data()
445 if (cell->height & v_zoom || cell->width & h_zoom) in decode_cell_data()
448 for (y = 0; y < cell->height; is_first_row = 0, y += 1 + v_zoom) { in decode_cell_data()
449 for (x = 0; x < cell->width; x += 1 + h_zoom) { in decode_cell_data()
456 } else if (mode == 10 && !cell->mv_ptr) { in decode_cell_data()
489 } else if (mode == 10 && !cell->mv_ptr) { in decode_cell_data()
510 } else if (mode == 10 && !cell->mv_ptr) { in decode_cell_data()
522 if (mode >= 10 || (cell->mv_ptr || !skip_flag)) { in decode_cell_data()
525 } else if (mode == 10 && !cell->mv_ptr) { in decode_cell_data()
538 if (cell->mv_ptr) { in decode_cell_data()
541 } else if (mode == 10 && !cell->mv_ptr) { in decode_cell_data()
584 Plane *plane, Cell *cell, const uint8_t *data_ptr, in decode_cell() argument
600 offset = (cell->ypos << 2) * plane->pitch + (cell->xpos << 2); in decode_cell()
603 if (!cell->mv_ptr) { in decode_cell()
609 int ret = copy_cell(ctx, plane, cell); in decode_cell()
614 mv_y = cell->mv_ptr[0]; in decode_cell()
615 mv_x = cell->mv_ptr[1]; in decode_cell()
618 if ((cell->ypos << 2) + mv_y < -1 || (cell->xpos << 2) + mv_x < 0 || in decode_cell()
619 ((cell->ypos + cell->height) << 2) + mv_y > plane->height || in decode_cell()
620 ((cell->xpos + cell->width) << 2) + mv_x > plane->width) { in decode_cell()
656 for (x = 0; x < cell->width << 2; x++) in decode_cell()
667 if (mode >= 3 && cell->mv_ptr) { in decode_cell()
673 error = decode_cell_data(ctx, cell, block, ref_block, plane->pitch, in decode_cell()
679 if (mode == 10 && !cell->mv_ptr) { /* MODE 10 INTRA processing */ in decode_cell()
680 error = decode_cell_data(ctx, cell, block, ref_block, plane->pitch, in decode_cell()
684 if (mode == 11 && !cell->mv_ptr) { in decode_cell()
690 error = decode_cell_data(ctx, cell, block, ref_block, plane->pitch, in decode_cell()