Home
last modified time | relevance | path

Searched refs:nal_length_size (Results 1 - 23 of 23) sorted by relevance

/third_party/ffmpeg/libavcodec/
H A Dhevc_parse.c25 HEVCSEI *sei, int is_nalff, int nal_length_size, in hevc_decode_nal_units()
33 nal_length_size, AV_CODEC_ID_HEVC, 1, 0); in hevc_decode_nal_units()
81 HEVCSEI *sei, int *is_nalff, int *nal_length_size, in ff_hevc_decode_extradata()
103 * so put a fake nal_length_size = 2 while parsing them */ in ff_hevc_decode_extradata()
104 *nal_length_size = 2; in ff_hevc_decode_extradata()
121 *nal_length_size, err_recognition, apply_defdispwin, in ff_hevc_decode_extradata()
135 *nal_length_size = nal_len_size; in ff_hevc_decode_extradata()
138 ret = hevc_decode_nal_units(data, size, ps, sei, *is_nalff, *nal_length_size, in ff_hevc_decode_extradata()
24 hevc_decode_nal_units(const uint8_t *buf, int buf_size, HEVCParamSets *ps, HEVCSEI *sei, int is_nalff, int nal_length_size, int err_recognition, int apply_defdispwin, void *logctx) hevc_decode_nal_units() argument
80 ff_hevc_decode_extradata(const uint8_t *data, int size, HEVCParamSets *ps, HEVCSEI *sei, int *is_nalff, int *nal_length_size, int err_recognition, int apply_defdispwin, void *logctx) ff_hevc_decode_extradata() argument
H A Dh2645_parse.h111 void *logctx, int is_nalff, int nal_length_size,
119 static inline int get_nalsize(int nal_length_size, const uint8_t *buf, in get_nalsize() argument
124 if (*buf_index >= buf_size - nal_length_size) { in get_nalsize()
129 for (i = 0; i < nal_length_size; i++) in get_nalsize()
H A Dcbs_h2645.h30 int nal_length_size; member
H A Dh264_parser.c59 int nal_length_size; member
92 if (p->is_avc && !p->nal_length_size) in h264_find_frame_end()
99 for (j = 0; j < p->nal_length_size; j++) in h264_find_frame_end()
294 nalsize = get_nalsize(p->nal_length_size, buf, buf_size, &buf_index, avctx); in parse_nal_units()
602 &p->ps, &p->is_avc, &p->nal_length_size, in h264_parse()
H A Dmediacodecdec.c135 int nal_length_size = 0; in h264_set_extradata() local
140 &ps, &is_avc, &nal_length_size, 0, avctx); in h264_set_extradata()
204 int nal_length_size = 0; in hevc_set_extradata() local
217 &ps, &sei, &is_nalff, &nal_length_size, 0, 1, avctx); in hevc_set_extradata()
H A Dhevc_parse.h33 HEVCSEI *sei, int *is_nalff, int *nal_length_size,
H A Dh264_parse.h124 int *is_avc, int *nal_length_size,
H A Dh2645_parse.c397 void *logctx, int is_nalff, int nal_length_size, in ff_h2645_packet_split()
420 extract_length = get_nalsize(nal_length_size, in ff_h2645_packet_split()
425 bytestream2_skip(&bc, nal_length_size); in ff_h2645_packet_split()
396 ff_h2645_packet_split(H2645Packet *pkt, const uint8_t *buf, int length, void *logctx, int is_nalff, int nal_length_size, enum AVCodecID codec_id, int small_padding, int use_ref) ff_h2645_packet_split() argument
H A Dhevc_parser.c46 int nal_length_size; member
199 ctx->nal_length_size, AV_CODEC_ID_HEVC, 1, 0); in parse_nal_units()
312 &ctx->is_avc, &ctx->nal_length_size, avctx->err_recognition, in hevc_parse()
H A Dh264dec.c396 &h->ps, &h->is_avc, &h->nal_length_size, in h264_decode_init()
591 if (h->nal_length_size == 4) { in decode_nal_units()
598 ret = ff_h2645_packet_split(&h->pkt, buf, buf_size, avctx, h->is_avc, h->nal_length_size, in decode_nal_units()
1004 &h->ps, &h->is_avc, &h->nal_length_size, in h264_decode_frame()
1010 &h->ps, &h->is_avc, &h->nal_length_size, in h264_decode_frame()
1056 { "nal_length_size", "nal_length_size", OFFSET(nal_length_size), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 4, VDX },
H A Dh264_parse.c465 int *is_avc, int *nal_length_size, in ff_h264_decode_extradata()
514 *nal_length_size = (data[4] & 0x03) + 1; in ff_h264_decode_extradata()
464 ff_h264_decode_extradata(const uint8_t *data, int size, H264ParamSets *ps, int *is_avc, int *nal_length_size, int err_recognition, void *logctx) ff_h264_decode_extradata() argument
H A Dhevcdec.h570 int nal_length_size; ///< Number of bytes used for nal length (1, 2 or 4) member
H A Dh264dec.h449 int nal_length_size; ///< Number of bytes used for nal length (1, 2 or 4) member
H A Dcbs_h2645.c536 priv->nal_length_size = (bytestream2_get_byte(&gbc) & 3) + 1; in cbs_h2645_split_fragment()
611 priv->nal_length_size = (bytestream2_get_byte(&gbc) & 3) + 1; in cbs_h2645_split_fragment()
649 priv->mp4, priv->nal_length_size, in cbs_h2645_split_fragment()
H A Dh264_slice.c409 h->nal_length_size = h1->nal_length_size; in ff_h264_update_thread_context()
483 h->nal_length_size = h1->nal_length_size; in ff_h264_update_thread_context_for_user()
H A Dhevcdec.c3308 s->nal_length_size, s->avctx->codec_id, 1, 0); in decode_nal_units()
3462 &s->nal_length_size, s->avctx->err_recognition, in hevc_decode_extradata()
3745 s->nal_length_size = s0->nal_length_size; in hevc_update_thread_context()
/third_party/ffmpeg/libavformat/
H A Drtpenc_h264_hevc.c187 if (s->nal_length_size) in ff_rtp_send_h264_hevc()
188 r = ff_avc_mp4_find_startcode(buf1, end, s->nal_length_size) ? buf1 : end; in ff_rtp_send_h264_hevc()
194 if (s->nal_length_size) { in ff_rtp_send_h264_hevc()
195 r1 = ff_avc_mp4_find_startcode(r, end, s->nal_length_size); in ff_rtp_send_h264_hevc()
198 r += s->nal_length_size; in ff_rtp_send_h264_hevc()
H A Dmovenccenc.c233 int nal_length_size, AVIOContext *pb, const uint8_t *buf_in, int size) in ff_mov_cenc_avc_write_nal_units()
246 if (size < nal_length_size + 1) { in ff_mov_cenc_avc_write_nal_units()
248 size, nal_length_size + 1); in ff_mov_cenc_avc_write_nal_units()
252 avio_write(pb, buf_in, nal_length_size + 1); in ff_mov_cenc_avc_write_nal_units()
255 for (j = 0; j < nal_length_size; j++) { in ff_mov_cenc_avc_write_nal_units()
258 size -= nal_length_size; in ff_mov_cenc_avc_write_nal_units()
270 auxiliary_info_add_subsample(ctx, nal_length_size + 1, nalsize - 1); in ff_mov_cenc_avc_write_nal_units()
232 ff_mov_cenc_avc_write_nal_units(AVFormatContext *s, MOVMuxCencContext* ctx, int nal_length_size, AVIOContext *pb, const uint8_t *buf_in, int size) ff_mov_cenc_avc_write_nal_units() argument
H A Dmovenccenc.h73 int ff_mov_cenc_avc_write_nal_units(AVFormatContext *s, MOVMuxCencContext* ctx, int nal_length_size,
H A Davc.h65 int nal_length_size);
H A Davc.c288 int nal_length_size) in ff_avc_mp4_find_startcode()
292 if (end - start < nal_length_size) in ff_avc_mp4_find_startcode()
294 while (nal_length_size--) in ff_avc_mp4_find_startcode()
286 ff_avc_mp4_find_startcode(const uint8_t *start, const uint8_t *end, int nal_length_size) ff_avc_mp4_find_startcode() argument
H A Drtpenc.h58 int nal_length_size; member
H A Drtpenc.c207 s->nal_length_size = (st->codecpar->extradata[4] & 0x03) + 1; in rtp_write_header()
216 s->nal_length_size = (st->codecpar->extradata[21] & 0x03) + 1; in rtp_write_header()

Completed in 25 milliseconds