Lines Matching refs:sl
66 #define MB_FIELD(sl) (sl)->mb_field_decoding_flag
75 #define MB_FIELD(sl) 0
562 int ff_h264_get_slice_type(const H264SliceContext *sl);
570 int ff_h264_decode_ref_pic_list_reordering(H264SliceContext *sl, void *logctx);
571 int ff_h264_build_ref_list(H264Context *h, H264SliceContext *sl);
579 int ff_h264_decode_ref_pic_marking(H264SliceContext *sl, GetBitContext *gb,
582 void ff_h264_hl_decode_mb(const H264Context *h, H264SliceContext *sl);
589 int ff_h264_decode_mb_cavlc(const H264Context *h, H264SliceContext *sl);
595 int ff_h264_decode_mb_cabac(const H264Context *h, H264SliceContext *sl);
597 void ff_h264_init_cabac_states(const H264Context *h, H264SliceContext *sl);
599 void ff_h264_direct_dist_scale_factor(const H264Context *const h, H264SliceContext *sl);
600 void ff_h264_direct_ref_list_init(const H264Context *const h, H264SliceContext *sl);
601 void ff_h264_pred_direct_motion(const H264Context *const h, H264SliceContext *sl,
604 void ff_h264_filter_mb_fast(const H264Context *h, H264SliceContext *sl, int mb_x, int mb_y,
607 void ff_h264_filter_mb(const H264Context *h, H264SliceContext *sl, int mb_x, int mb_y,
656 H264SliceContext *sl, int n)
659 const int left = sl->intra4x4_pred_mode_cache[index8 - 1];
660 const int top = sl->intra4x4_pred_mode_cache[index8 - 8];
672 H264SliceContext *sl)
674 int8_t *i4x4 = sl->intra4x4_pred_mode + h->mb2br_xy[sl->mb_xy];
675 int8_t *i4x4_cache = sl->intra4x4_pred_mode_cache;
684 H264SliceContext *sl)
686 const int mb_xy = sl->mb_xy;
688 uint8_t *nnz_cache = sl->non_zero_count_cache;
708 H264SliceContext *sl,
714 int16_t(*mv_src)[2] = &sl->mv_cache[list][scan8[0]];
720 uint8_t (*mvd_dst)[2] = &sl->mvd_table[list][FMO ? 8 * sl->mb_xy
721 : h->mb2br_xy[sl->mb_xy]];
722 uint8_t(*mvd_src)[2] = &sl->mvd_cache[list][scan8[0]];
735 int8_t *ref_cache = sl->ref_cache[list];
744 H264SliceContext *sl,
748 const int b_xy = 4 * sl->mb_x + 4 * sl->mb_y * h->b_stride; // try mb2b(8)_xy
749 const int b8_xy = 4 * sl->mb_xy;
752 write_back_motion_list(h, sl, b_stride, b_xy, b8_xy, mb_type, 0);
758 write_back_motion_list(h, sl, b_stride, b_xy, b8_xy, mb_type, 1);
760 if (sl->slice_type_nos == AV_PICTURE_TYPE_B && CABAC(h)) {
762 uint8_t *direct_table = &h->direct_table[4 * sl->mb_xy];
763 direct_table[1] = sl->sub_mb_type[1] >> 1;
764 direct_table[2] = sl->sub_mb_type[2] >> 1;
765 direct_table[3] = sl->sub_mb_type[3] >> 1;
770 static av_always_inline int get_dct8x8_allowed(const H264Context *h, H264SliceContext *sl)
773 return !(AV_RN64A(sl->sub_mb_type) &
777 return !(AV_RN64A(sl->sub_mb_type) &
782 int ff_h264_field_end(H264Context *h, H264SliceContext *sl, int in_setup);
788 void ff_h264_slice_context_init(H264Context *h, H264SliceContext *sl);
790 void ff_h264_draw_horiz_band(const H264Context *h, H264SliceContext *sl, int y, int height);