• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/ffmpeg-0.5.1/libavcodec/

Lines Matching defs:ref

186                     int8_t *ref = &s->current_picture.ref_index[list][h->mb2b8_xy[mb_xy]];
188 *(uint32_t*)&h->ref_cache[list][scan8[ 2]] = (pack16to32(ref[0],ref[1])&0x00FF00FF)*0x0101;
189 ref += h->b8_stride;
191 *(uint32_t*)&h->ref_cache[list][scan8[10]] = (pack16to32(ref[0],ref[1])&0x00FF00FF)*0x0101;
751 static inline void pred_motion(H264Context * const h, int n, int part_width, int list, int ref, int * const mx, int * const my){
771 match_count= (diagonal_ref==ref) + (top_ref==ref) + (left_ref==ref);
777 if(left_ref==ref){
780 }else if(top_ref==ref){
797 tprintf(h->s.avctx, "pred_motion (%2d %2d %2d) (%2d %2d %2d) (%2d %2d %2d) -> (%2d %2d %2d) at %2d %2d %d list %d\n", top_ref, B[0], B[1], diagonal_ref, C[0], C[1], left_ref, A[0], A[1], ref, *mx, *my, h->s.mb_x, h->s.mb_y, n, list);
806 static inline void pred_16x8_motion(H264Context * const h, int n, int list, int ref, int * const mx, int * const my){
813 if(top_ref == ref){
824 if(left_ref == ref){
832 pred_motion(h, n, 4, list, ref, mx, my);
841 static inline void pred_8x16_motion(H264Context * const h, int n, int list, int ref, int * const mx, int * const my){
848 if(left_ref == ref){
861 if(diagonal_ref == ref){
869 pred_motion(h, n, 2, list, ref, mx, my);
1060 int ref[2];
1066 /* ref = min(neighbors) */
1073 ref[list] = FFMIN3((unsigned)refa, (unsigned)refb, (unsigned)refc);
1074 if(ref[list] < 0)
1075 ref[list] = -1;
1078 if(ref[0] < 0 && ref[1] < 0){
1079 ref[0] = ref[1] = 0;
1084 if(ref[list] >= 0)
1085 pred_motion(h, 0, 4, list, ref[list], &mv[list][0], &mv[list][1]);
1091 if(ref[1] < 0){
1095 }else if(ref[0] < 0){
1113 fill_rectangle(&h->ref_cache[0][scan8[i8*4]], 2, 2, 8, (uint8_t)ref[0], 1);
1114 fill_rectangle(&h->ref_cache[1][scan8[i8*4]], 2, 2, 8, (uint8_t)ref[1], 1);
1118 if(ref[0] > 0)
1120 if(ref[1] > 0)
1132 fill_rectangle(&h->ref_cache[0][scan8[0]], 4, 4, 8, (uint8_t)ref[0], 1);
1133 fill_rectangle(&h->ref_cache[1][scan8[0]], 4, 4, 8, (uint8_t)ref[1], 1);
1138 if(ref[0] > 0)
1140 if(ref[1] > 0)
1159 fill_rectangle(&h->ref_cache[0][scan8[i8*4]], 2, 2, 8, (uint8_t)ref[0], 1);
1160 fill_rectangle(&h->ref_cache[1][scan8[i8*4]], 2, 2, 8, (uint8_t)ref[1], 1);
1170 if(ref[0] == 0)
1172 if(ref[1] == 0)
1179 if(ref[0] == 0)
1181 if(ref[1] == 0)
1248 int ref, mv0, mv1;
1252 ref=mv0=mv1=0;
1261 ref= ref0;
1265 fill_rectangle(&h->ref_cache[0][scan8[0]], 4, 4, 8, ref, 1);
1675 Picture *ref= &h->ref_list[0][ h->ref_cache[0][ scan8[n] ] ];
1676 mc_dir_part(h, ref, n, square, chroma_height, delta, 0,
1685 Picture *ref= &h->ref_list[1][ h->ref_cache[1][ scan8[n] ] ];
1686 mc_dir_part(h, ref, n, square, chroma_height, delta, 1,
1743 Picture *ref= &h->ref_list[list][refn];
1744 mc_dir_part(h, ref, n, square, chroma_height, delta, list,
2454 int8_t *ref = &h->ref_cache[list][scan8[0]];
2455 fill_rectangle(ref, 4, 4, 8, (16+*ref)^(s->mb_y&1), 1);
2458 int ref = h->ref_cache[list][scan8[i]];
2459 if(ref >= 0)
2460 fill_rectangle(&h->ref_cache[list][scan8[i]], 2, 2, 8, (16+ref)^(s->mb_y&1), 1);
2865 Picture *ref = NULL;
2892 ref = h->short_ref[i];
2893 assert(ref->reference);
2894 assert(!ref->long_ref);
2896 ref->frame_num == frame_num &&
2897 (ref->reference & pic_structure)
2902 ref->pic_id= pred;
2913 ref = h->long_ref[long_idx];
2914 assert(!(ref && !ref->reference));
2915 if(ref && (ref->reference & pic_structure)){
2916 ref->pic_id= pic_id;
2917 assert(ref->long_ref);
2929 if(ref->long_ref == h->ref_list[list][i].long_ref && ref->pic_id == h->ref_list[list][i].pic_id)
2935 h->ref_list[list][index]= *ref;
3372 * error in the encoded bit stream (ref: 7.4.3.3, NOTE 2 and 3).
3446 av_log(s->avctx, AV_LOG_ERROR, "illegal short ref in memory management control operation %d\n", mmco);
3453 av_log(h->s.avctx, AV_LOG_ERROR, "illegal long ref in memory management control operation %d\n", opcode);
4076 av_log(h->s.avctx, AV_LOG_DEBUG, "slice:%d %s mb:%d %c%s%s pps:%u frame:%d poc:%d/%d ref:%d/%d qp:%d loop:%d:%d:%d weight:%d%s %s\n",
4496 int i, j, sub_partition_count[4], list, ref[2][4];
4542 av_log(h->s.avctx, AV_LOG_ERROR, "ref %u overflow\n", tmp);
4546 ref[list][i]= tmp;
4549 ref[list][i] = -1;
4564 h->ref_cache[list][ scan8[4*i]+8 ]=h->ref_cache[list][ scan8[4*i]+9 ]= ref[list][i];
4617 av_log(h->s.avctx, AV_LOG_ERROR, "ref %u overflow\n", val);
4651 av_log(h->s.avctx, AV_LOG_ERROR, "ref %u overflow\n", val);
4688 av_log(h->s.avctx, AV_LOG_ERROR, "ref %u overflow\n", val);
5112 int ref = 0;
5128 ref++;
5130 if(ref >= 32 /*h->ref_list[list]*/){
5134 return ref;
5597 int i, j, sub_partition_count[4], list, ref[2][4];
5631 ref[list][i] = decode_cabac_mb_ref( h, list, 4*i );
5632 if(ref[list][i] >= (unsigned)h->ref_count[list]){
5633 av_log(s->avctx, AV_LOG_ERROR, "Reference %d >= %d\n", ref[list][i], h->ref_count[list]);
5637 ref[list][i] = 0;
5639 ref[list][i] = -1;
5642 h->ref_cache[list][ scan8[4*i]+8 ]=h->ref_cache[list][ scan8[4*i]+9 ]= ref[list][i];
5719 int ref;
5721 ref= decode_cabac_mb_ref(h, list, 0);
5722 if(ref >= (unsigned)h->ref_count[list]){
5723 av_log(s->avctx, AV_LOG_ERROR, "Reference %d >= %d\n", ref, h->ref_count[list]);
5727 ref=0;
5728 fill_rectangle(&h->ref_cache[list][ scan8[0] ], 4, 4, 8, ref, 1);
5750 int ref;
5752 ref= decode_cabac_mb_ref( h, list, 8*i );
5753 if(ref >= (unsigned)h->ref_count[list]){
5754 av_log(s->avctx, AV_LOG_ERROR, "Reference %d >= %d\n", ref, h->ref_count[list]);
5758 ref=0;
5759 fill_rectangle(&h->ref_cache[list][ scan8[0] + 16*i ], 4, 2, 8, ref, 1);
5785 int ref;
5787 ref= decode_cabac_mb_ref( h, list, 4*i );
5788 if(ref >= (unsigned)h->ref_count[list]){
5789 av_log(s->avctx, AV_LOG_ERROR, "Reference %d >= %d\n", ref, h->ref_count[list]);
5793 ref=0;
5794 fill_rectangle(&h->ref_cache[list][ scan8[0] + 2*i ], 2, 4, 8, ref, 1);
7217 av_log(h->s.avctx, AV_LOG_DEBUG, "sps:%u profile:%d/%d poc:%d ref:%d %dx%d %s %s crop:%d/%d/%d/%d %s %s\n",
7342 av_log(h->s.avctx, AV_LOG_DEBUG, "pps:%u sps:%u %s slice_groups:%d ref:%d/%d %s qp:%d/%d/%d/%d %s %s %s %s\n",
7984 uint8_t src[16], ref[16];
7991 ref[j]= random()%255;
7995 h264_diff_dct_c(block, src, ref, 4);
8006 s->dsp.h264_idct_add(ref, block, 4);
8008 printf("%d ", ref[j]);
8013 int diff= FFABS(src[j] - ref[j]);