Lines Matching refs:curr_cell
746 if (curr_cell.xpos + curr_cell.width > (plane->width >> 2) || \
747 curr_cell.ypos + curr_cell.height > (plane->height >> 2)) { \
749 curr_cell.xpos, curr_cell.ypos, curr_cell.width, curr_cell.height); \
758 Cell curr_cell;
766 curr_cell = *ref_cell; // clone parent cell
768 SPLIT_CELL(ref_cell->height, curr_cell.height);
769 ref_cell->ypos += curr_cell.height;
770 ref_cell->height -= curr_cell.height;
771 if (ref_cell->height <= 0 || curr_cell.height <= 0)
774 if (curr_cell.width > strip_width) {
776 curr_cell.width = (curr_cell.width <= (strip_width << 1) ? 1 : 2) * strip_width;
778 SPLIT_CELL(ref_cell->width, curr_cell.width);
779 ref_cell->xpos += curr_cell.width;
780 ref_cell->width -= curr_cell.width;
781 if (ref_cell->width <= 0 || curr_cell.width <= 0)
790 if (parse_bintree(ctx, avctx, plane, code, &curr_cell, depth - 1, strip_width))
794 if (!curr_cell.tree) { /* MC tree INTRA code */
795 curr_cell.mv_ptr = 0; /* mark the current strip as INTRA */
796 curr_cell.tree = 1; /* enter the VQ tree */
808 if (!curr_cell.mv_ptr)
811 ret = copy_cell(ctx, plane, &curr_cell);
816 if (!curr_cell.tree) { /* MC tree INTER code */
830 curr_cell.mv_ptr = &ctx->mc_vectors[mv_idx << 1];
831 curr_cell.tree = 1; /* enter the VQ tree */
838 bytes_used = decode_cell(ctx, avctx, plane, &curr_cell,
859 Cell curr_cell;
884 curr_cell.xpos = curr_cell.ypos = 0;
885 curr_cell.width = plane->width >> 2;
886 curr_cell.height = plane->height >> 2;
887 curr_cell.tree = 0; // we are in the MC tree now
888 curr_cell.mv_ptr = 0; // no motion vector = INTRA cell
890 return parse_bintree(ctx, avctx, plane, INTRA_NULL, &curr_cell, CELL_STACK_MAX, strip_width);