|
static GFINLINE u16 | convert16 (u8 *p) |
|
static GFINLINE u32 | convert32 (u8 *p) |
|
static FILE * | file_open (const char *name) |
|
static Bool | file_okay (FILE *fd) |
|
static void | file_close (FILE *fd) |
|
static Bool | file_read_bytes (FILE *fd, u8 *buffer, u32 len) |
|
static void | file_skip_bytes (FILE *fd, s32 len) |
|
static u64 | file_size (FILE *fd) |
|
static mpeg2ps_record_pes_t * | create_record (s64 loc, u64 ts) |
|
void | mpeg2ps_record_pts (mpeg2ps_stream_t *sptr, s64 location, mpeg2ps_ts_t *pTs) |
|
int | MPEG12_ParseSeqHdr (unsigned char *pbuffer, u32 buflen, s32 *have_mpeg2, u32 *height, u32 *width, Double *frame_rate, Double *bitrate, u32 *aspect_ratio) |
|
s32 | MPEG12_PictHdrType (unsigned char *pbuffer) |
|
static u64 | read_pts (u8 *pak) |
|
static mpeg2ps_stream_t * | mpeg2ps_stream_create (u8 stream_id, u8 substream) |
|
static void | mpeg2ps_stream_destroy (mpeg2ps_stream_t *sptr) |
|
static void | adv_past_pack_hdr (FILE *fd, u8 *pak, u32 read_from_start) |
|
static Bool | find_pack_start (FILE *fd, u8 *saved, u32 len) |
|
static void | copy_bytes_to_pes_buffer (mpeg2ps_stream_t *sptr, u16 pes_len) |
|
static Bool | read_to_next_pes_header (FILE *fd, u8 *stream_id, u16 *pes_len) |
|
static Bool | read_pes_header_data (FILE *fd, u16 orig_pes_len, u16 *pes_left, Bool *have_ts, mpeg2ps_ts_t *ts) |
|
static Bool | search_for_next_pes_header (mpeg2ps_stream_t *sptr, u16 *pes_len, Bool *have_ts, s64 *found_loc) |
|
static Bool | mpeg2ps_stream_read_next_pes_buffer (mpeg2ps_stream_t *sptr) |
|
static Bool | mpeg2ps_stream_find_mpeg_video_frame (mpeg2ps_stream_t *sptr) |
|
static Bool | mpeg2ps_stream_find_ac3_frame (mpeg2ps_stream_t *sptr) |
|
static Bool | mpeg2ps_stream_find_mp3_frame (mpeg2ps_stream_t *sptr) |
|
static Bool | mpeg2ps_stream_read_frame (mpeg2ps_stream_t *sptr, u8 **buffer, u32 *buflen, Bool advance_pointers) |
|
static void | get_info_from_frame (mpeg2ps_stream_t *sptr, u8 *buffer, u32 buflen) |
|
static void | clear_stream_buffer (mpeg2ps_stream_t *sptr) |
|
static u64 | convert_ts (mpeg2ps_stream_t *sptr, mpeg2ps_ts_type_t ts_type, u64 ts, u64 base_ts, u32 frames_since_ts) |
|
static mpeg2ps_stream_t * | find_stream_from_id (mpeg2ps_t *ps, u8 stream_id, u8 substream) |
|
static Bool | add_stream (mpeg2ps_t *ps, u8 stream_id, u8 substream, s64 first_loc, mpeg2ps_ts_t *ts) |
|
static void | check_fd_for_stream (mpeg2ps_t *ps, mpeg2ps_stream_t *sptr) |
|
static void | advance_frame (mpeg2ps_stream_t *sptr) |
|
static void | get_info_for_all_streams (mpeg2ps_t *ps) |
|
static void | mpeg2ps_scan_file (mpeg2ps_t *ps) |
|
u64 | mpeg2ps_get_max_time_msec (mpeg2ps_t *ps) |
|
u32 | mpeg2ps_get_video_stream_count (mpeg2ps_t *ps) |
|
static Bool | invalid_video_streamno (mpeg2ps_t *ps, u32 streamno) |
|
mpeg2ps_video_type_t | mpeg2ps_get_video_stream_type (mpeg2ps_t *ps, u32 streamno) |
|
u32 | mpeg2ps_get_video_stream_width (mpeg2ps_t *ps, u32 streamno) |
|
u32 | mpeg2ps_get_video_stream_height (mpeg2ps_t *ps, u32 streamno) |
|
u32 | mpeg2ps_get_video_stream_aspect_ratio (mpeg2ps_t *ps, u32 streamno) |
|
Double | mpeg2ps_get_video_stream_bitrate (mpeg2ps_t *ps, u32 streamno) |
|
Double | mpeg2ps_get_video_stream_framerate (mpeg2ps_t *ps, u32 streamno) |
|
u32 | mpeg2ps_get_video_stream_id (mpeg2ps_t *ps, u32 streamno) |
|
static Bool | invalid_audio_streamno (mpeg2ps_t *ps, u32 streamno) |
|
u32 | mpeg2ps_get_audio_stream_count (mpeg2ps_t *ps) |
|
mpeg2ps_audio_type_t | mpeg2ps_get_audio_stream_type (mpeg2ps_t *ps, u32 streamno) |
|
u32 | mpeg2ps_get_audio_stream_sample_freq (mpeg2ps_t *ps, u32 streamno) |
|
u32 | mpeg2ps_get_audio_stream_channels (mpeg2ps_t *ps, u32 streamno) |
|
u32 | mpeg2ps_get_audio_stream_bitrate (mpeg2ps_t *ps, u32 streamno) |
|
u32 | mpeg2ps_get_audio_stream_id (mpeg2ps_t *ps, u32 streamno) |
|
mpeg2ps_t * | mpeg2ps_init (const char *filename) |
|
void | mpeg2ps_close (mpeg2ps_t *ps) |
|
static u64 | stream_convert_frame_ts_to_msec (mpeg2ps_stream_t *sptr, mpeg2ps_ts_type_t ts_type, u64 base_dts, u32 *freq_ts) |
|
Bool | mpeg2ps_get_video_frame (mpeg2ps_t *ps, u32 streamno, u8 **buffer, u32 *buflen, u8 *frame_type, mpeg2ps_ts_type_t ts_type, u64 *decode_timestamp, u64 *compose_timestamp) |
|
Bool | mpeg2ps_get_audio_frame (mpeg2ps_t *ps, u32 streamno, u8 **buffer, u32 *buflen, mpeg2ps_ts_type_t ts_type, u32 *freq_timestamp, u64 *timestamp) |
|
static void | mpeg2ps_binary_seek (mpeg2ps_t *ps, mpeg2ps_stream_t *sptr, u64 search_dts, u64 start_dts, u64 start_loc, u64 end_dts, u64 end_loc) |
|
static mpeg2ps_record_pes_t * | search_for_ts (mpeg2ps_stream_t *sptr, u64 dts) |
|
static Bool | mpeg2ps_seek_frame (mpeg2ps_t *ps, mpeg2ps_stream_t *sptr, u64 search_msec_timestamp) |
|
Bool | mpeg2ps_seek_video_frame (mpeg2ps_t *ps, u32 streamno, u64 msec_timestamp) |
|
Bool | mpeg2ps_seek_audio_frame (mpeg2ps_t *ps, u32 streamno, u64 msec_timestamp) |
|
u64 | mpeg2ps_get_first_cts (mpeg2ps_t *ps) |
|