• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/

Lines Matching refs:mb_type

48                 const int mb_type = mb_types[xy+(y4>>2)*s->mb_stride];\
49 if(!USES_LIST(mb_type,list))\
59 const uint32_t *mb_types = s->current_picture_ptr->f.mb_type;
330 static void fill_decode_neighbors(H264Context *h, int mb_type){
353 const int left_mb_field_flag = IS_INTERLACED(s->current_picture.f.mb_type[mb_xy - 1]);
354 const int curr_mb_field_flag = IS_INTERLACED(mb_type);
370 topleft_xy += s->mb_stride & (((s->current_picture.f.mb_type[top_xy - 1] >> 7) & 1) - 1);
371 topright_xy += s->mb_stride & (((s->current_picture.f.mb_type[top_xy + 1] >> 7) & 1) - 1);
372 top_xy += s->mb_stride & (((s->current_picture.f.mb_type[top_xy ] >> 7) & 1) - 1);
392 h->topleft_type = s->current_picture.f.mb_type[topleft_xy];
393 h->top_type = s->current_picture.f.mb_type[top_xy];
394 h->topright_type = s->current_picture.f.mb_type[topright_xy];
395 h->left_type[LTOP] = s->current_picture.f.mb_type[left_xy[LTOP]];
396 h->left_type[LBOT] = s->current_picture.f.mb_type[left_xy[LBOT]];
412 static void fill_decode_caches(H264Context *h, int mb_type){
432 if(!IS_SKIP(mb_type)){
433 if(IS_INTRA(mb_type)){
445 if(IS_INTERLACED(mb_type) != IS_INTERLACED(left_type[LTOP])){
446 if(IS_INTERLACED(mb_type)){
456 int left_typei = s->current_picture.f.mb_type[left_xy[LTOP] + s->mb_stride];
477 if(IS_INTRA4x4(mb_type)){
521 uint32_t top_empty = CABAC && !IS_INTRA(mb_type) ? 0 : 0x40404040;
552 nnz_cache[3+8*12 + 2*8*i]= CABAC && !IS_INTRA(mb_type) ? 0 : 64;
561 h->top_cbp = IS_INTRA(mb_type) ? 0x7CF : 0x00F;
569 h->left_cbp = IS_INTRA(mb_type) ? 0x7CF : 0x00F;
574 if(IS_INTER(mb_type) || (IS_DIRECT(mb_type) && h->direct_spatial_mv_pred)){
582 if(!USES_LIST(mb_type, list)){
585 assert(!(IS_DIRECT(mb_type) && !h->direct_spatial_mv_pred));
599 if(mb_type & (MB_TYPE_16x8|MB_TYPE_8x8)){
648 if((mb_type&(MB_TYPE_SKIP|MB_TYPE_DIRECT2)) && !FRAME_MBAFF)
651 if(!(mb_type&(MB_TYPE_SKIP|MB_TYPE_DIRECT2))){
728 #define MAP_F2F(idx, mb_type)\
729 if(!IS_INTERLACED(mb_type) && h->ref_cache[list][idx] >= 0){\
737 #define MAP_F2F(idx, mb_type)\
738 if(IS_INTERLACED(mb_type) && h->ref_cache[list][idx] >= 0){\
759 int mb_type=0;
764 mb_type|= MB_TYPE_INTERLACED;
768 // just for fill_caches. pred_direct_motion will set the real mb_type
769 mb_type|= MB_TYPE_L0L1|MB_TYPE_DIRECT2|MB_TYPE_SKIP;
771 fill_decode_neighbors(h, mb_type);
772 fill_decode_caches(h, mb_type); //FIXME check what is needed and what not ...
774 ff_h264_pred_direct_motion(h, &mb_type);
775 mb_type|= MB_TYPE_SKIP;
779 mb_type|= MB_TYPE_16x16|MB_TYPE_P0L0|MB_TYPE_P1L0|MB_TYPE_SKIP;
781 fill_decode_neighbors(h, mb_type);
785 write_back_motion(h, mb_type);
786 s->current_picture.f.mb_type[mb_xy] = mb_type;