• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching refs:mb_type

48         const int mb_type = mb_types[xy + (y4 >> 2) * h->mb_stride];    \
49 if (!USES_LIST(mb_type, list)) \
59 const uint32_t *mb_types = h->cur_pic_ptr->mb_type;
350 static void fill_decode_neighbors(H264Context *h, int mb_type)
373 const int left_mb_field_flag = IS_INTERLACED(h->cur_pic.mb_type[mb_xy - 1]);
374 const int curr_mb_field_flag = IS_INTERLACED(mb_type);
391 topleft_xy += h->mb_stride & (((h->cur_pic.mb_type[top_xy - 1] >> 7) & 1) - 1);
392 topright_xy += h->mb_stride & (((h->cur_pic.mb_type[top_xy + 1] >> 7) & 1) - 1);
393 top_xy += h->mb_stride & (((h->cur_pic.mb_type[top_xy] >> 7) & 1) - 1);
413 h->topleft_type = h->cur_pic.mb_type[topleft_xy];
414 h->top_type = h->cur_pic.mb_type[top_xy];
415 h->topright_type = h->cur_pic.mb_type[topright_xy];
416 h->left_type[LTOP] = h->cur_pic.mb_type[left_xy[LTOP]];
417 h->left_type[LBOT] = h->cur_pic.mb_type[left_xy[LBOT]];
439 static void fill_decode_caches(H264Context *h, int mb_type)
459 if (!IS_SKIP(mb_type)) {
460 if (IS_INTRA(mb_type)) {
472 if (IS_INTERLACED(mb_type) != IS_INTERLACED(left_type[LTOP])) {
473 if (IS_INTERLACED(mb_type)) {
483 int left_typei = h->cur_pic.mb_type[left_xy[LTOP] + h->mb_stride];
504 if (IS_INTRA4x4(mb_type)) {
548 uint32_t top_empty = CABAC(h) && !IS_INTRA(mb_type) ? 0 : 0x40404040;
579 nnz_cache[3 + 8 * 12 + 2 * 8 * i] = CABAC(h) && !IS_INTRA(mb_type) ? 0 : 64;
588 h->top_cbp = IS_INTRA(mb_type) ? 0x7CF : 0x00F;
595 h->left_cbp = IS_INTRA(mb_type) ? 0x7CF : 0x00F;
600 if (IS_INTER(mb_type) || (IS_DIRECT(mb_type) && h->direct_spatial_mv_pred)) {
608 if (!USES_LIST(mb_type, list))
610 av_assert2(!(IS_DIRECT(mb_type) && !h->direct_spatial_mv_pred));
625 if (mb_type & (MB_TYPE_16x8 | MB_TYPE_8x8)) {
681 if ((mb_type & (MB_TYPE_SKIP | MB_TYPE_DIRECT2)) && !FRAME_MBAFF(h))
684 if (!(mb_type & (MB_TYPE_SKIP | MB_TYPE_DIRECT2))) {
766 #define MAP_F2F(idx, mb_type) \
767 if (!IS_INTERLACED(mb_type) && h->ref_cache[list][idx] >= 0) { \
777 #define MAP_F2F(idx, mb_type) \
778 if (IS_INTERLACED(mb_type) && h->ref_cache[list][idx] >= 0) { \
800 int mb_type = 0;
805 mb_type |= MB_TYPE_INTERLACED;
808 // just for fill_caches. pred_direct_motion will set the real mb_type
809 mb_type |= MB_TYPE_L0L1 | MB_TYPE_DIRECT2 | MB_TYPE_SKIP;
811 fill_decode_neighbors(h, mb_type);
812 fill_decode_caches(h, mb_type); //FIXME check what is needed and what not ...
814 ff_h264_pred_direct_motion(h, &mb_type);
815 mb_type |= MB_TYPE_SKIP;
817 mb_type |= MB_TYPE_16x16 | MB_TYPE_P0L0 | MB_TYPE_P1L0 | MB_TYPE_SKIP;
819 fill_decode_neighbors(h, mb_type);
823 write_back_motion(h, mb_type);
824 h->cur_pic.mb_type[mb_xy] = mb_type;