Lines Matching defs:buf

114 typedef int PESCallback (MpegTSFilter *f, const uint8_t *buf, int len,
122 typedef void SectionCallback (MpegTSFilter *f, const uint8_t *buf, int len);
1014 const uint8_t *buf, int buf_size, int is_start)
1021 memcpy(tss->section_buf, buf, buf_size);
1031 memcpy(tss->section_buf + tss->section_index, buf, len);
1172 static int analyze(const uint8_t *buf, int size, int packet_size,
1183 if (buf[i] == 0x47) {
1184 int pid = AV_RB16(buf+1) & 0x1FFF;
1185 int asc = buf[i + 3] & 0x30;
1208 uint8_t buf[PROBE_PACKET_MAX_BUF] = {0};
1213 ret = avio_read_partial(s->pb, buf + buf_size, PROBE_PACKET_MAX_BUF - buf_size);
1218 score = analyze(buf, buf_size, TS_PACKET_SIZE, 0);
1219 dvhs_score = analyze(buf, buf_size, TS_DVHS_PACKET_SIZE, 0);
1220 fec_score = analyze(buf, buf_size, TS_FEC_PACKET_SIZE, 0);
1610 pkt->buf = pes->buffer;
1652 const uint8_t *buf, int buf_size)
1662 memcpy(buf_padded, buf, buf_padded_size);
1736 const uint8_t *buf, int buf_size, int is_start,
1759 p = buf;
2060 const uint8_t *buf, unsigned size,
2066 ffio_init_context(&d->pb, (unsigned char *)buf, size,
2260 static int mp4_read_iods(AVFormatContext *s, const uint8_t *buf, unsigned size,
2266 ret = init_MP4DescrParseContext(&d, s, buf, size, descr, max_descr_count);
2276 static int mp4_read_od(AVFormatContext *s, const uint8_t *buf, unsigned size,
2282 ret = init_MP4DescrParseContext(&d, s, buf, size, descr, max_descr_count);
2794 uint32_t buf;
2809 buf = get16(pp, desc_end);
2810 dovi->dv_profile = (buf >> 9) & 0x7f; // 7 bits
2811 dovi->dv_level = (buf >> 3) & 0x3f; // 6 bits
2812 dovi->rpu_present_flag = (buf >> 2) & 0x01; // 1 bit
2813 dovi->el_present_flag = (buf >> 1) & 0x01; // 1 bit
2814 dovi->bl_present_flag = buf & 0x01; // 1 bit
2816 buf = get16(pp, desc_end);
2817 dependency_pid = buf >> 3; // 13 bits
2820 buf = get8(pp, desc_end);
2821 dovi->dv_bl_signal_compatibility_id = (buf >> 4) & 0x0f; // 4 bits
3573 static int read_packet(AVFormatContext *s, uint8_t *buf, int raw_packet_size,
3580 len = ffio_read_indirect(pb, buf, TS_PACKET_SIZE, data);
3674 int score = analyze(p->buf + TS_PACKET_SIZE *i, TS_PACKET_SIZE *left, TS_PACKET_SIZE , 1);
3675 int dvhs_score = analyze(p->buf + TS_DVHS_PACKET_SIZE*i, TS_DVHS_PACKET_SIZE*left, TS_DVHS_PACKET_SIZE, 1);
3676 int fec_score = analyze(p->buf + TS_FEC_PACKET_SIZE *i, TS_FEC_PACKET_SIZE *left, TS_FEC_PACKET_SIZE , 1);
3951 uint8_t buf[TS_PACKET_SIZE];
3961 if (avio_read(s->pb, buf, TS_PACKET_SIZE) != TS_PACKET_SIZE)
3963 if (buf[0] != 0x47) {
3964 if (mpegts_resync(s, TS_PACKET_SIZE, buf) < 0)
3969 if ((pcr_pid < 0 || (AV_RB16(buf + 1) & 0x1fff) == pcr_pid) &&
3970 parse_pcr(&timestamp, &pcr_l, buf) == 0) {
4044 const uint8_t *buf, int len)
4054 if (buf[0] != 0x47) {
4055 buf++;
4058 handle_packet(ts, buf, len1 - len + TS_PACKET_SIZE);
4059 buf += TS_PACKET_SIZE;