Home
last modified time | relevance | path

Searched refs:nal_length_size (Results 1 – 25 of 42) sorted by relevance

12

/third_party/ffmpeg/libavcodec/
Dhevc_parse.c25 HEVCSEI *sei, int is_nalff, int nal_length_size, in hevc_decode_nal_units() argument
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() argument
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()
Dh2645_parse.h110 void *logctx, int is_nalff, int nal_length_size,
118 static inline int get_nalsize(int nal_length_size, const uint8_t *buf, in get_nalsize() argument
123 if (*buf_index >= buf_size - nal_length_size) { in get_nalsize()
128 for (i = 0; i < nal_length_size; i++) in get_nalsize()
Dmediacodecdec.c131 int nal_length_size = 0; in h264_set_extradata() local
136 &ps, &is_avc, &nal_length_size, 0, avctx); in h264_set_extradata()
197 int nal_length_size = 0; in hevc_set_extradata() local
210 &ps, &sei, &is_nalff, &nal_length_size, 0, 1, avctx); in hevc_set_extradata()
Dcbs_h2645.h30 int nal_length_size; member
Dh264_parser.c57 int nal_length_size; member
81 if (p->is_avc && !p->nal_length_size) in h264_find_frame_end()
88 for (j = 0; j < p->nal_length_size; j++) in h264_find_frame_end()
281 nalsize = get_nalsize(p->nal_length_size, buf, buf_size, &buf_index, avctx); in parse_nal_units()
582 &p->ps, &p->is_avc, &p->nal_length_size, in h264_parse()
Dhevc_parse.h33 HEVCSEI *sei, int *is_nalff, int *nal_length_size,
Dhevc_parser.c47 int nal_length_size; member
200 ctx->nal_length_size, AV_CODEC_ID_HEVC, 1, 0); in parse_nal_units()
313 &ctx->is_avc, &ctx->nal_length_size, avctx->err_recognition, in hevc_parse()
Dh2645_parse.c393 void *logctx, int is_nalff, int nal_length_size, in ff_h2645_packet_split() argument
416 extract_length = get_nalsize(nal_length_size, in ff_h2645_packet_split()
421 bytestream2_skip(&bc, nal_length_size); in ff_h2645_packet_split()
Dh264_parse.h85 int *is_avc, int *nal_length_size,
Dh264dec.c390 &h->ps, &h->is_avc, &h->nal_length_size, in h264_decode_init()
573 if (h->nal_length_size == 4) { in decode_nal_units()
580 ret = ff_h2645_packet_split(&h->pkt, buf, buf_size, avctx, h->is_avc, h->nal_length_size, in decode_nal_units()
981 &h->ps, &h->is_avc, &h->nal_length_size, in h264_decode_frame()
987 &h->ps, &h->is_avc, &h->nal_length_size, in h264_decode_frame()
1032 …{ "nal_length_size", "nal_length_size", OFFSET(nal_length_size), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 4…
/third_party/gstreamer/gstplugins_bad/gst/mpegpsmux/
Dmpegpsmux_h264.c85 guint8 nal_length_size = 0; in mpegpsmux_prepare_h264() local
102 nal_length_size = (codec_data.data[offset] & 0x03) + 1; in mpegpsmux_prepare_h264()
103 GST_LOG_OBJECT (mux, "NAL length will be coded on %u bytes", nal_length_size); in mpegpsmux_prepare_h264()
161 switch (nal_length_size) { in mpegpsmux_prepare_h264()
173 nal_length_size); in mpegpsmux_prepare_h264()
176 in_offset += nal_length_size; in mpegpsmux_prepare_h264()
/third_party/ffmpeg/libavformat/
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()
Dmovenccenc.c233 int nal_length_size, AVIOContext *pb, const uint8_t *buf_in, int size) in ff_mov_cenc_avc_write_nal_units() argument
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()
Davc.c254 int nal_length_size) in ff_avc_mp4_find_startcode() argument
258 if (end - start < nal_length_size) in ff_avc_mp4_find_startcode()
260 while (nal_length_size--) in ff_avc_mp4_find_startcode()
Davc.h35 int nal_length_size);
Dmovenccenc.h73 int ff_mov_cenc_avc_write_nal_units(AVFormatContext *s, MOVMuxCencContext* ctx, int nal_length_size,
/third_party/gstreamer/gstplugins_bad/ext/avtp/
Dgstavtpcvfpay.c155 avtpcvfpay->nal_length_size = 0; in gst_avtp_cvf_pay_init()
266 if (G_UNLIKELY (avtpcvfpay->nal_length_size == 0)) { in gst_avtp_cvf_pay_extract_nals()
281 while (size > avtpcvfpay->nal_length_size) { in gst_avtp_cvf_pay_extract_nals()
287 for (i = 0; i < avtpcvfpay->nal_length_size; i++) { in gst_avtp_cvf_pay_extract_nals()
296 offset += avtpcvfpay->nal_length_size; in gst_avtp_cvf_pay_extract_nals()
297 data += avtpcvfpay->nal_length_size; in gst_avtp_cvf_pay_extract_nals()
298 size -= avtpcvfpay->nal_length_size; in gst_avtp_cvf_pay_extract_nals()
720 avtpcvfpay->nal_length_size = (data[4] & NAL_LEN_SIZE_MASK) + 1; in gst_avtp_cvf_pay_new_caps()
722 avtpcvfpay->nal_length_size); in gst_avtp_cvf_pay_new_caps()
Dgstavtpcvfpay.h55 guint8 nal_length_size; member
/third_party/gstreamer/gstplugins_good/gst/rtp/
Dgstrtph265pay.c679 rtph265pay->nal_length_size = (data[21] & 0x3) + 1; in gst_rtp_h265_pay_setcaps()
680 GST_DEBUG_OBJECT (rtph265pay, "nal length %u", rtph265pay->nal_length_size); in gst_rtp_h265_pay_setcaps()
1494 guint nal_length_size; in gst_rtp_h265_pay_handle_buffer() local
1499 nal_length_size = rtph265pay->nal_length_size; in gst_rtp_h265_pay_handle_buffer()
1510 while (remaining_buffer_size > nal_length_size) { in gst_rtp_h265_pay_handle_buffer()
1514 for (i = 0; i < nal_length_size; i++) { in gst_rtp_h265_pay_handle_buffer()
1520 offset += nal_length_size; in gst_rtp_h265_pay_handle_buffer()
1521 remaining_buffer_size -= nal_length_size; in gst_rtp_h265_pay_handle_buffer()
1539 if (remaining_buffer_size - nal_len <= nal_length_size) { in gst_rtp_h265_pay_handle_buffer()
Dgstrtph264pay.c611 rtph264pay->nal_length_size = (data[4] & 0x03) + 1; in gst_rtp_h264_pay_setcaps()
612 GST_DEBUG_OBJECT (rtph264pay, "nal length %u", rtph264pay->nal_length_size); in gst_rtp_h264_pay_setcaps()
1441 guint nal_length_size; in gst_rtp_h264_pay_handle_buffer() local
1456 nal_length_size = rtph264pay->nal_length_size; in gst_rtp_h264_pay_handle_buffer()
1458 while (remaining_buffer_size > nal_length_size) { in gst_rtp_h264_pay_handle_buffer()
1463 for (i = 0; i < nal_length_size; i++) { in gst_rtp_h264_pay_handle_buffer()
1469 offset += nal_length_size; in gst_rtp_h264_pay_handle_buffer()
1470 remaining_buffer_size -= nal_length_size; in gst_rtp_h264_pay_handle_buffer()
1483 if (remaining_buffer_size - nal_len <= nal_length_size) { in gst_rtp_h264_pay_handle_buffer()
Dgstrtph265pay.h67 guint nal_length_size; member
Dgstrtph264pay.h73 guint nal_length_size; member
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecparsers/
Dgsth264parser.c1554 const guint8 * data, guint offset, gsize size, guint8 nal_length_size, in gst_h264_parser_identify_nalu_avc() argument
1563 if (offset > G_MAXUINT32 - nal_length_size) { in gst_h264_parser_identify_nalu_avc()
1569 if (size < offset + nal_length_size) { in gst_h264_parser_identify_nalu_avc()
1579 nal_length_size * 8); in gst_h264_parser_identify_nalu_avc()
1581 nalu->offset = offset + nal_length_size; in gst_h264_parser_identify_nalu_avc()
1583 if (nalu->size > G_MAXUINT32 - nal_length_size) { in gst_h264_parser_identify_nalu_avc()
1589 if (size < (gsize) nalu->size + nal_length_size) { in gst_h264_parser_identify_nalu_avc()
3265 gst_h264_create_sei_memory_avc (guint8 nal_length_size, GArray * messages) in gst_h264_create_sei_memory_avc() argument
3267 g_return_val_if_fail (nal_length_size > 0 && nal_length_size < 5, NULL); in gst_h264_create_sei_memory_avc()
3271 return gst_h264_create_sei_memory_internal (nal_length_size, TRUE, messages); in gst_h264_create_sei_memory_avc()
[all …]
Dgsth264parser.h1235 … guint offset, gsize size, guint8 nal_length_size,
1320 GstMemory * gst_h264_create_sei_memory_avc (guint8 nal_length_size,
1330 guint8 nal_length_size,
/third_party/gstreamer/gstplugins_bad/gst/videoparsers/
Dgsth265parse.h63 guint nal_length_size; member

12