Lines Matching refs:nal
36 #define IS_IRAP_NAL(nal) (nal->type >= 16 && nal->type <= 23) argument
37 #define IS_IDR_NAL(nal) (nal->type == HEVC_NAL_IDR_W_RADL || nal->type == HEVC_NAL_IDR_N_LP) argument
54 static int hevc_parse_slice_header(AVCodecParserContext *s, H2645NAL *nal, in hevc_parse_slice_header() argument
60 GetBitContext *gb = &nal->gb; in hevc_parse_slice_header()
71 if (IS_IRAP_NAL(nal)) { in hevc_parse_slice_header()
156 if (!IS_IDR_NAL(nal)) { in hevc_parse_slice_header()
159 ff_hevc_compute_poc(ps->sps, ctx->pocTid0, pic_order_cnt_lsb, nal->type); in hevc_parse_slice_header()
163 if (nal->temporal_id == 0 && in hevc_parse_slice_header()
164 nal->type != HEVC_NAL_TRAIL_N && in hevc_parse_slice_header()
165 nal->type != HEVC_NAL_TSA_N && in hevc_parse_slice_header()
166 nal->type != HEVC_NAL_STSA_N && in hevc_parse_slice_header()
167 nal->type != HEVC_NAL_RADL_N && in hevc_parse_slice_header()
168 nal->type != HEVC_NAL_RASL_N && in hevc_parse_slice_header()
169 nal->type != HEVC_NAL_RADL_R && in hevc_parse_slice_header()
170 nal->type != HEVC_NAL_RASL_R) in hevc_parse_slice_header()
205 H2645NAL *nal = &ctx->pkt.nals[i]; in parse_nal_units() local
206 GetBitContext *gb = &nal->gb; in parse_nal_units()
208 if (nal->nuh_layer_id > 0) in parse_nal_units()
211 switch (nal->type) { in parse_nal_units()
223 ff_hevc_decode_nal_sei(gb, avctx, sei, ps, nal->type); in parse_nal_units()
246 ret = hevc_parse_slice_header(s, nal, avctx); in parse_nal_units()