Lines Matching defs:sub_pict
542 //decodes the V1 vector in mb into the 4x4 MB pointed to by sub_pict
543 static void decode_v1_vector(CinepakEncContext *s, AVPicture *sub_pict, int v1_vector, strip_info *info)
547 sub_pict->data[0][0] =
548 sub_pict->data[0][1] =
549 sub_pict->data[0][ sub_pict->linesize[0]] =
550 sub_pict->data[0][1+ sub_pict->linesize[0]] = info->v1_codebook[v1_vector*entry_size];
552 sub_pict->data[0][2] =
553 sub_pict->data[0][3] =
554 sub_pict->data[0][2+ sub_pict->linesize[0]] =
555 sub_pict->data[0][3+ sub_pict->linesize[0]] = info->v1_codebook[v1_vector*entry_size+1];
557 sub_pict->data[0][2*sub_pict->linesize[0]] =
558 sub_pict->data[0][1+2*sub_pict->linesize[0]] =
559 sub_pict->data[0][ 3*sub_pict->linesize[0]] =
560 sub_pict->data[0][1+3*sub_pict->linesize[0]] = info->v1_codebook[v1_vector*entry_size+2];
562 sub_pict->data[0][2+2*sub_pict->linesize[0]] =
563 sub_pict->data[0][3+2*sub_pict->linesize[0]] =
564 sub_pict->data[0][2+3*sub_pict->linesize[0]] =
565 sub_pict->data[0][3+3*sub_pict->linesize[0]] = info->v1_codebook[v1_vector*entry_size+3];
568 sub_pict->data[1][0] =
569 sub_pict->data[1][1] =
570 sub_pict->data[1][ sub_pict->linesize[1]] =
571 sub_pict->data[1][1+ sub_pict->linesize[1]] = info->v1_codebook[v1_vector*entry_size+4];
573 sub_pict->data[2][0] =
574 sub_pict->data[2][1] =
575 sub_pict->data[2][ sub_pict->linesize[2]] =
576 sub_pict->data[2][1+ sub_pict->linesize[2]] = info->v1_codebook[v1_vector*entry_size+5];
580 //decodes the V4 vectors in mb into the 4x4 MB pointed to by sub_pict
581 static void decode_v4_vector(CinepakEncContext *s, AVPicture *sub_pict, int *v4_vector, strip_info *info)
587 sub_pict->data[0][x + y*sub_pict->linesize[0]] = info->v4_codebook[v4_vector[i]*entry_size];
588 sub_pict->data[0][x+1 + y*sub_pict->linesize[0]] = info->v4_codebook[v4_vector[i]*entry_size+1];
589 sub_pict->data[0][x + (y+1)*sub_pict->linesize[0]] = info->v4_codebook[v4_vector[i]*entry_size+2];
590 sub_pict->data[0][x+1 + (y+1)*sub_pict->linesize[0]] = info->v4_codebook[v4_vector[i]*entry_size+3];
593 sub_pict->data[1][(x>>1) + (y>>1)*sub_pict->linesize[1]] = info->v4_codebook[v4_vector[i]*entry_size+4];
594 sub_pict->data[2][(x>>1) + (y>>1)*sub_pict->linesize[2]] = info->v4_codebook[v4_vector[i]*entry_size+5];
795 AVPicture sub_pict, vq_pict;
873 //point sub_pict to current MB
874 get_sub_picture(s, x, y, pict, &sub_pict);
882 mb->v1_error = compute_mb_distortion(s, &sub_pict, &vq_pict);
891 mb->v4_error = compute_mb_distortion(s, &sub_pict, &vq_pict);
908 AVPicture sub_last, sub_pict;
913 get_sub_picture(s, x, y, pict, &sub_pict);
915 s->mb[i].skip_error = compute_mb_distortion(s, &sub_last, &sub_pict);