Lines Matching refs:startcode
233 int len, size, startcode, c, flags, header_len; in mpegps_read_pes_header() local
244 startcode = find_next_start_code(s->pb, &size, &m->header_state); in mpegps_read_pes_header()
246 if (startcode < 0) { in mpegps_read_pes_header()
253 if (startcode == PACK_START_CODE) in mpegps_read_pes_header()
255 if (startcode == SYSTEM_HEADER_START_CODE) in mpegps_read_pes_header()
257 if (startcode == PADDING_STREAM) { in mpegps_read_pes_header()
261 if (startcode == PRIVATE_STREAM_2) { in mpegps_read_pes_header()
339 if (startcode == PROGRAM_STREAM_MAP) { in mpegps_read_pes_header()
345 if (!((startcode >= 0x1c0 && startcode <= 0x1df) || in mpegps_read_pes_header()
346 (startcode >= 0x1e0 && startcode <= 0x1ef) || in mpegps_read_pes_header()
347 (startcode == 0x1bd) || in mpegps_read_pes_header()
348 (startcode == PRIVATE_STREAM_2) || in mpegps_read_pes_header()
349 (startcode == 0x1fd))) in mpegps_read_pes_header()
357 if (startcode != PRIVATE_STREAM_2) in mpegps_read_pes_header()
423 startcode = ((startcode & 0xff) << 8) | id_ext; in mpegps_read_pes_header()
435 if (startcode == PRIVATE_STREAM_1) { in mpegps_read_pes_header()
441 startcode = avio_r8(s->pb); in mpegps_read_pes_header()
443 if (startcode == 0x0b) { in mpegps_read_pes_header()
445 startcode = 0x80; in mpegps_read_pes_header()
460 if (startcode == s->streams[i]->id && in mpegps_read_pes_header()
469 *pstart_code = startcode; in mpegps_read_pes_header()
480 int len, startcode, i, es_type, ret; in mpegps_read_packet() local
488 len = mpegps_read_pes_header(s, &dummy_pos, &startcode, &pts, &dts); in mpegps_read_packet()
492 if (startcode >= 0x80 && startcode <= 0xcf) { in mpegps_read_packet()
500 if (startcode >= 0xb0 && startcode <= 0xbf) { in mpegps_read_packet()
504 } else if (startcode >= 0xa0 && startcode <= 0xaf) { in mpegps_read_packet()
517 if (st->id == startcode) in mpegps_read_packet()
521 es_type = m->psm_es_type[startcode & 0xff]; in mpegps_read_packet()
550 } else if (startcode >= 0x1e0 && startcode <= 0x1ef) { in mpegps_read_packet()
561 } else if (startcode == PRIVATE_STREAM_2) { in mpegps_read_packet()
564 } else if (startcode >= 0x1c0 && startcode <= 0x1df) { in mpegps_read_packet()
570 } else if (m->imkh_cctv && startcode == 0x1c0 && len > 80) { in mpegps_read_packet()
578 } else if (startcode >= 0x80 && startcode <= 0x87) { in mpegps_read_packet()
581 } else if ((startcode >= 0x88 && startcode <= 0x8f) || in mpegps_read_packet()
582 (startcode >= 0x98 && startcode <= 0x9f)) { in mpegps_read_packet()
586 } else if (startcode >= 0xa0 && startcode <= 0xaf) { in mpegps_read_packet()
593 } else if (startcode >= 0xb0 && startcode <= 0xbf) { in mpegps_read_packet()
596 } else if (startcode >= 0xc0 && startcode <= 0xcf) { in mpegps_read_packet()
600 } else if (startcode >= 0x20 && startcode <= 0x3f) { in mpegps_read_packet()
603 } else if (startcode >= 0xfd55 && startcode <= 0xfd5f) { in mpegps_read_packet()
616 st->id = startcode; in mpegps_read_packet()
631 if (startcode >= 0xa0 && startcode <= 0xaf) { in mpegps_read_packet()
657 int len, startcode; in mpegps_read_dts() local
665 len = mpegps_read_pes_header(s, &pos, &startcode, &pts, &dts); in mpegps_read_dts()
671 if (startcode == s->streams[stream_index]->id && in mpegps_read_dts()
962 int n, to_read, startcode; in vobsub_read_packet() local
967 ret = mpegps_read_pes_header(vobsub->sub_ctx, NULL, &startcode, &pts, &dts); in vobsub_read_packet()
983 if ((startcode & 0x1f) != s->streams[pkt->stream_index]->id) in vobsub_read_packet()