Home
last modified time | relevance | path

Searched refs:header_size (Results 1 – 25 of 217) sorted by relevance

123456789

/third_party/ffmpeg/libavformat/
Drtpdec_mpa_robust.c47 unsigned header_size; in mpa_robust_parse_rtp_header() local
56 header_size = 1; in mpa_robust_parse_rtp_header()
59 header_size = 2; in mpa_robust_parse_rtp_header()
63 return header_size; in mpa_robust_parse_rtp_header()
72 int err, header_size; in mpa_robust_parse_packet() local
78 header_size = mpa_robust_parse_rtp_header(ctx, buf, len, &adu_size, in mpa_robust_parse_packet()
80 if (header_size < 0) { in mpa_robust_parse_packet()
82 return header_size; in mpa_robust_parse_packet()
84 buf += header_size; in mpa_robust_parse_packet()
85 len -= header_size; in mpa_robust_parse_packet()
[all …]
Drtpenc_h264_hevc.c63 int header_size; in nal_send() local
67 header_size = 1; in nal_send()
70 header_size = 2; in nal_send()
82 if (buffered_size + 2 + header_size + size <= s->max_payload_size && in nal_send()
102 int flag_byte, header_size; in nal_send() local
123 header_size = 2; in nal_send()
164 header_size = 3; in nal_send()
167 while (size + header_size > s->max_payload_size) { in nal_send()
168 memcpy(&s->buf[header_size], buf, s->max_payload_size - header_size); in nal_send()
170 buf += s->max_payload_size - header_size; in nal_send()
[all …]
Drtpenc_latm.c32 int header_size; in ff_rtp_send_latm() local
43 header_size = size/0xFF + 1; in ff_rtp_send_latm()
44 memset(s->buf, 0xFF, header_size - 1); in ff_rtp_send_latm()
45 s->buf[header_size - 1] = size % 0xFF; in ff_rtp_send_latm()
51 len = FFMIN(size, s->max_payload_size - (!offset ? header_size : 0)); in ff_rtp_send_latm()
54 memcpy(s->buf + header_size, buff, len); in ff_rtp_send_latm()
55 ff_rtp_send_data(s1, s->buf, header_size + len, !size); in ff_rtp_send_latm()
Drtpdec_h263_rfc2190.c55 int header_size, ret; in h263_handle_packet() local
76 header_size = 4; in h263_handle_packet()
81 header_size = 8; in h263_handle_packet()
82 if (len < header_size) { in h263_handle_packet()
85 len, header_size); in h263_handle_packet()
92 header_size = 12; in h263_handle_packet()
93 if (len < header_size) { in h263_handle_packet()
96 len, header_size); in h263_handle_packet()
118 buf += header_size; in h263_handle_packet()
119 len -= header_size; in h263_handle_packet()
Dvqf.c98 int header_size; in vqf_read_header() local
108 header_size = avio_rb32(s->pb); in vqf_read_header()
110 if (header_size < 0) in vqf_read_header()
126 if ((unsigned) len > INT_MAX/2 || header_size < 8) { in vqf_read_header()
131 header_size -= 8; in vqf_read_header()
162 avio_skip(s->pb, FFMIN(len, header_size)); in vqf_read_header()
165 add_metadata(s, chunk_tag, len, header_size); in vqf_read_header()
169 header_size -= len; in vqf_read_header()
171 } while (header_size >= 0 && !avio_feof(s->pb)); in vqf_read_header()
Dsoxdec.c50 unsigned header_size, comment_size; in sox_read_header() local
62 header_size = avio_rl32(pb); in sox_read_header()
69 header_size = avio_rb32(pb); in sox_read_header()
92 if ((header_size + 4) & 7 || header_size < SOX_FIXED_HDR + comment_size in sox_read_header()
112 avio_skip(pb, header_size - SOX_FIXED_HDR - comment_size); in sox_read_header()
D4xm.c213 int header_size; in fourxm_read_header() local
228 header_size = size - 4; in fourxm_read_header()
229 if (fourcc_tag != HEAD_TAG || header_size < 0) in fourxm_read_header()
233 header = av_malloc(header_size); in fourxm_read_header()
236 if (avio_read(pb, header, header_size) != header_size) { in fourxm_read_header()
242 for (i = 0; i < header_size - 8; i++) { in fourxm_read_header()
245 if (size > header_size - i - 8 && (fourcc_tag == vtrk_TAG || fourcc_tag == strk_TAG)) { in fourxm_read_header()
246 av_log(s, AV_LOG_ERROR, "chunk larger than array %d>%d\n", size, header_size - i - 8); in fourxm_read_header()
252 if (header_size - i < 16) { in fourxm_read_header()
260 header_size - i)) < 0) in fourxm_read_header()
[all …]
Drtpenc_vp8.c29 int len, max_packet_size, header_size; in ff_rtp_send_vp8() local
40 header_size = s->buf_ptr - s->buf; in ff_rtp_send_vp8()
41 max_packet_size = s->max_payload_size - header_size; in ff_rtp_send_vp8()
48 ff_rtp_send_data(s1, s->buf, len + header_size, size == len); in ff_rtp_send_vp8()
Dmca.c50 uint32_t header_size, data_size, data_offset, loop_start, loop_end, in read_header() local
72 header_size = avio_rl32(s->pb); in read_header()
115 header_size = m->data_start; in read_header()
119 if (0x30 * par->channels + 0x4 > header_size) in read_header()
121 data_offset = header_size - 0x30 * par->channels - 0x4; in read_header()
128 if ((int64_t)header_size + data_size > file_size) { in read_header()
147 if (0x30 * par->channels + nb_metadata * 0x14 > header_size) in read_header()
150 header_size - 0x30 * par->channels + nb_metadata * 0x14; in read_header()
Dvocdec.c44 int header_size; in voc_read_header() local
47 header_size = avio_rl16(pb) - 22; in voc_read_header()
48 if (header_size != 4) { in voc_read_header()
49 av_log(s, AV_LOG_ERROR, "unknown header size: %d\n", header_size); in voc_read_header()
52 avio_skip(pb, header_size); in voc_read_header()
Dlxfdec.c117 uint32_t version, audio_format, header_size, channels, tmp; in get_packet_header() local
131 header_size = bytestream_get_le32(&p); in get_packet_header()
135 if (header_size < (version ? 72 : 60) || in get_packet_header()
136 header_size > LXF_MAX_PACKET_HEADER_SIZE || in get_packet_header()
137 (header_size & 3)) { in get_packet_header()
138 av_log(s, AV_LOG_ERROR, "Invalid header size 0x%"PRIx32"\n", header_size); in get_packet_header()
144 header_size - (p - header))) != in get_packet_header()
145 header_size - (p - header)) in get_packet_header()
148 if (check_checksum(header, header_size)) in get_packet_header()
Dnistspheredec.c39 int32_t header_size = -1; in nist_read_header() local
50 sscanf(buffer, "%"SCNd32, &header_size); in nist_read_header()
51 if (header_size <= 0) in nist_read_header()
57 if (avio_tell(s->pb) >= header_size) in nist_read_header()
85 if (avio_tell(s->pb) > header_size) in nist_read_header()
88 avio_skip(s->pb, header_size - avio_tell(s->pb)); in nist_read_header()
Dsoxenc.c41 int64_t header_size; member
57 sox->header_size = SOX_FIXED_HDR + comment_size; in sox_write_header()
61 avio_wl32(pb, sox->header_size); in sox_write_header()
68 avio_wb32(pb, sox->header_size); in sox_write_header()
95 int64_t num_samples = (file_size - sox->header_size - 4LL) >> 2LL; in sox_write_trailer()
/third_party/gstreamer/gstplugins_bad/tests/check/libs/
Disoff.c18 guint header_size; in GST_START_TEST() local
22 &header_size, &size)); in GST_START_TEST()
24 fail_unless_equals_int (header_size, 8); in GST_START_TEST()
42 guint header_size; in GST_START_TEST() local
46 &header_size, &size)); in GST_START_TEST()
48 fail_unless_equals_int (header_size, 16); in GST_START_TEST()
69 guint header_size; in GST_START_TEST() local
73 &header_size, &size)); in GST_START_TEST()
75 fail_unless_equals_int (header_size, 24); in GST_START_TEST()
98 guint header_size; in GST_START_TEST() local
[all …]
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/isoff/
Dgstisoff.c69 guint8 extended_type[16], guint * header_size, guint64 * size) in gst_isoff_parse_box_header() argument
100 if (header_size) in gst_isoff_parse_box_header()
101 *header_size = gst_byte_reader_get_pos (reader) - header_start_offset; in gst_isoff_parse_box_header()
418 guint header_size; in gst_isoff_traf_box_parse() local
424 &header_size, &size)) in gst_isoff_traf_box_parse()
426 if (gst_byte_reader_get_remaining (reader) < size - header_size) in gst_isoff_traf_box_parse()
432 size - header_size); in gst_isoff_traf_box_parse()
440 size - header_size); in gst_isoff_traf_box_parse()
449 size - header_size); in gst_isoff_traf_box_parse()
461 size - header_size); in gst_isoff_traf_box_parse()
[all …]
/third_party/ffmpeg/libavcodec/
Dadx_parser.c34 int header_size; member
50 if (!s->header_size) { in adx_parse()
56 int header_size = ((state >> 32) & 0xFFFF) + 4; in adx_parse() local
57 if (channels > 0 && header_size >= 8) { in adx_parse()
58 s->header_size = header_size; in adx_parse()
60 s->remaining = i - 7 + s->header_size + s->block_size; in adx_parse()
68 if (s->header_size) { in adx_parse()
Dmlp_parse.c88 int ratebits, channel_arrangement, header_size; in ff_mlp_read_major_sync() local
93 header_size = mlp_get_major_sync_size(gb->buffer, gb->size_in_bits >> 3); in ff_mlp_read_major_sync()
94 if (header_size < 0 || gb->size_in_bits < header_size << 3) { in ff_mlp_read_major_sync()
99 checksum = ff_mlp_checksum16(gb->buffer, header_size - 2); in ff_mlp_read_major_sync()
100 if (checksum != AV_RL16(gb->buffer+header_size-2)) { in ff_mlp_read_major_sync()
109 mh->header_size = header_size; in ff_mlp_read_major_sync()
162 skip_bits_long(gb, 4 + (header_size - 17) * 8); in ff_mlp_read_major_sync()
Dadxdec.c40 int ret, header_size; in adx_decode_init() local
44 avctx->extradata_size, &header_size, in adx_decode_init()
112 int header_size; in adx_decode_frame() local
114 new_extradata_size, &header_size, in adx_decode_frame()
129 int header_size; in adx_decode_frame() local
130 if ((ret = ff_adx_decode_header(avctx, buf, buf_size, &header_size, in adx_decode_frame()
137 if (buf_size < header_size) in adx_decode_frame()
139 buf += header_size; in adx_decode_frame()
140 buf_size -= header_size; in adx_decode_frame()
Dsbc_parser.c29 int header_size; member
84 if (pc->header_size) { in sbc_parse()
85 memcpy(pc->header + pc->header_size, buf, in sbc_parse()
86 sizeof(pc->header) - pc->header_size); in sbc_parse()
89 pc->header_size = 0; in sbc_parse()
97 pc->header_size = FFMIN(sizeof(pc->header), buf_size); in sbc_parse()
98 memcpy(pc->header, buf, pc->header_size); in sbc_parse()
Dtruemotion2rt.c62 int header_size; in truemotion2rt_decode_header() local
74 header_size = ((buf[0] >> 5) | (buf[0] << 3)) & 0x7f; in truemotion2rt_decode_header()
75 if (header_size < 10) { in truemotion2rt_decode_header()
76 av_log(avctx, AV_LOG_ERROR, "invalid header size (%d)\n", header_size); in truemotion2rt_decode_header()
80 if (header_size + 1 > size) { in truemotion2rt_decode_header()
86 for (i = 1; i < header_size; i++) in truemotion2rt_decode_header()
101 av_log(avctx, AV_LOG_DEBUG, "Header size: %d\n", header_size); in truemotion2rt_decode_header()
102 return header_size; in truemotion2rt_decode_header()
/third_party/gstreamer/gstplugins_bad/gst/rtmp2/rtmp/
Drtmpchunkstream.c253 gsize header_size = chunk_header_sizes[type], offset; in serialize_next() local
263 header_size += 1; in serialize_next()
266 header_size += 2; in serialize_next()
269 header_size += 3; in serialize_next()
274 header_size += 4; in serialize_next()
277 GST_TRACE ("Allocating buffer, header size %" G_GSIZE_FORMAT, header_size); in serialize_next()
279 ret = gst_buffer_new_allocate (NULL, header_size, NULL); in serialize_next()
330 g_assert (offset == header_size); in serialize_next()
411 guint32 header_size; in gst_rtmp_chunk_stream_parse_header() local
425 header_size = 2; in gst_rtmp_chunk_stream_parse_header()
[all …]
/third_party/ffmpeg/tools/
Dqt-faststart.c106 uint32_t header_size; member
142 atom.header_size = ATOM_PREAMBLE_SIZE; in parse_atoms()
153 atom.header_size = ATOM_PREAMBLE_SIZE + 8; in parse_atoms()
161 if (atom.size < atom.header_size) { in parse_atoms()
166 atom.size -= atom.header_size; in parse_atoms()
286 static void set_atom_size(unsigned char *header, uint32_t header_size, uint64_t size) in set_atom_size() argument
288 switch (header_size) { in set_atom_size()
312 memcpy(context->dest, atom->data - atom->header_size, atom->header_size + 8); in upgrade_stco_atom()
314 set_atom_size(context->dest, atom->header_size, atom->header_size + 8 + offset_count * 8); in upgrade_stco_atom()
315 context->dest += atom->header_size + 8; in upgrade_stco_atom()
[all …]
/third_party/libunwind/src/coredump/
D_UCD_corefile_elf.c109 unsigned header_size = sizeof(Elf64_Nhdr); in _UCD_elf_visit_notes() local
112 unsigned note_size = header_size + name_size + desc_size; in _UCD_elf_visit_notes()
113 char *name = (char *)(note) + header_size; in _UCD_elf_visit_notes()
114 uint8_t *desc = (uint8_t *)(note) + header_size + name_size; in _UCD_elf_visit_notes()
/third_party/mesa3d/src/intel/compiler/
Dbrw_lower_logical_sends.cpp41 assert(inst->header_size == 0); in lower_urb_read_logical_send()
47 unsigned header_size = 0; in lower_urb_read_logical_send() local
48 payload_sources[header_size++] = inst->src[URB_LOGICAL_SRC_HANDLE]; in lower_urb_read_logical_send()
50 payload_sources[header_size++] = inst->src[URB_LOGICAL_SRC_PER_SLOT_OFFSETS]; in lower_urb_read_logical_send()
52 bld.LOAD_PAYLOAD(payload, payload_sources, inst->mlen, header_size); in lower_urb_read_logical_send()
57 inst->header_size = header_size; in lower_urb_read_logical_send()
87 assert(inst->header_size == 0); in lower_urb_write_logical_send()
93 unsigned header_size = 0; in lower_urb_write_logical_send() local
94 payload_sources[header_size++] = inst->src[URB_LOGICAL_SRC_HANDLE]; in lower_urb_write_logical_send()
96 payload_sources[header_size++] = inst->src[URB_LOGICAL_SRC_PER_SLOT_OFFSETS]; in lower_urb_write_logical_send()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/mpegtsmux/
Dgstbasetsmuxjpeg2000.c48 const guint header_size = private_data->interlace ? 48 : 38; in gst_base_ts_mux_prepare_jpeg2000() local
65 gst_byte_writer_init_with_size (&wr, header_size, FALSE); in gst_base_ts_mux_prepare_jpeg2000()
115 out_buf = gst_buffer_new_and_alloc (header_size); in gst_base_ts_mux_prepare_jpeg2000()
119 gst_buffer_fill (out_buf, 0, elsm_header, header_size); in gst_base_ts_mux_prepare_jpeg2000()

123456789