#include "libmpeg3.h"#include "mpeg3private.h"#include "mpeg3protos.h"#include <errno.h>#include <fcntl.h>#include <stdlib.h>#include <string.h>

Go to the source code of this file.
Functions | |
| int | mpeg3_major () |
| int | mpeg3_minor () |
| int | mpeg3_release () |
| mpeg3_t * | mpeg3_new (char *path) |
| mpeg3_index_t * | mpeg3_new_index () |
| void | mpeg3_delete_index (mpeg3_index_t *index) |
| int | mpeg3_delete (mpeg3_t *file) |
| int | mpeg3_check_sig (char *path) |
| static int | is_toc (uint32_t bits) |
| static int | is_ifo (uint32_t bits) |
| static int | is_transport (uint32_t bits) |
| static int | is_bd (uint32_t bits1, uint32_t bits2) |
| static int | is_program (uint32_t bits) |
| static int | is_mpeg_audio (uint32_t bits) |
| static int | is_mpeg_video (uint32_t bits) |
| static int | is_ac3 (uint32_t bits) |
| static int | calculate_packet_size (int is_transport, int is_program, int is_audio, int is_video, int is_bd) |
| int | mpeg3_get_file_type (mpeg3_t *file, mpeg3_t *old_file, int *toc_atracks, int *toc_vtracks) |
| static void | copy_subtitles (mpeg3_t *file, mpeg3_t *old_file) |
| mpeg3_t * | mpeg3_open_copy (char *path, mpeg3_t *old_file, int *error_return) |
| mpeg3_t * | mpeg3_open (char *path, int *error_return) |
| int | mpeg3_close (mpeg3_t *file) |
| int | mpeg3_set_cpus (mpeg3_t *file, int cpus) |
| int | mpeg3_has_audio (mpeg3_t *file) |
| int | mpeg3_total_astreams (mpeg3_t *file) |
| int | mpeg3_audio_channels (mpeg3_t *file, int stream) |
| int | mpeg3_sample_rate (mpeg3_t *file, int stream) |
| long | mpeg3_get_sample (mpeg3_t *file, int stream) |
| int | mpeg3_set_sample (mpeg3_t *file, long sample, int stream) |
| long | mpeg3_audio_samples (mpeg3_t *file, int stream) |
| char * | mpeg3_audio_format (mpeg3_t *file, int stream) |
| int | mpeg3_has_video (mpeg3_t *file) |
| int | mpeg3_total_vstreams (mpeg3_t *file) |
| int | mpeg3_video_width (mpeg3_t *file, int stream) |
| int | mpeg3_video_height (mpeg3_t *file, int stream) |
| float | mpeg3_aspect_ratio (mpeg3_t *file, int stream) |
| double | mpeg3_frame_rate (mpeg3_t *file, int stream) |
| long | mpeg3_video_frames (mpeg3_t *file, int stream) |
| long | mpeg3_get_frame (mpeg3_t *file, int stream) |
| int | mpeg3_set_frame (mpeg3_t *file, long frame, int stream) |
| int | mpeg3_seek_byte (mpeg3_t *file, int64_t byte) |
| int | mpeg3_previous_frame (mpeg3_t *file, int stream) |
| int64_t | mpeg3_tell_byte (mpeg3_t *file) |
| int64_t | mpeg3_get_bytes (mpeg3_t *file) |
| double | mpeg3_get_time (mpeg3_t *file) |
| int | mpeg3_end_of_audio (mpeg3_t *file, int stream) |
| int | mpeg3_end_of_video (mpeg3_t *file, int stream) |
| int | mpeg3_drop_frames (mpeg3_t *file, long frames, int stream) |
| int | mpeg3_colormodel (mpeg3_t *file, int stream) |
| int | mpeg3_set_rowspan (mpeg3_t *file, int bytes, int stream) |
| int | mpeg3_read_frame (mpeg3_t *file, unsigned char **output_rows, int in_x, int in_y, int in_w, int in_h, int out_w, int out_h, int color_model, int stream) |
| int | mpeg3_read_yuvframe (mpeg3_t *file, char *y_output, char *u_output, char *v_output, int in_x, int in_y, int in_w, int in_h, int stream) |
| int | mpeg3_read_yuvframe_ptr (mpeg3_t *file, char **y_output, char **u_output, char **v_output, int stream) |
| int | mpeg3_read_audio (mpeg3_t *file, float *output_f, short *output_i, int channel, long samples, int stream) |
| int | mpeg3_reread_audio (mpeg3_t *file, float *output_f, short *output_i, int channel, long samples, int stream) |
| int | mpeg3_read_audio_chunk (mpeg3_t *file, unsigned char *output, long *size, long max_size, int stream) |
| int | mpeg3_read_video_chunk (mpeg3_t *file, unsigned char *output, long *size, long max_size, int stream) |
| int64_t | mpeg3_memory_usage (mpeg3_t *file) |
| static int calculate_packet_size | ( | int | is_transport, | |
| int | is_program, | |||
| int | is_audio, | |||
| int | is_video, | |||
| int | is_bd | |||
| ) | [static] |
Definition at line 249 of file libmpeg3.c.
References MPEG3_BD_PACKET_SIZE, MPEG3_DVD_PACKET_SIZE, and MPEG3_TS_PACKET_SIZE.
Referenced by mpeg3_get_file_type().
Definition at line 387 of file libmpeg3.c.
References mpeg3_t::have_palette, mpeg3_strack_t::id, memcpy, mpeg3_copy_strack(), mpeg3_new_strack(), mpeg3_t::palette, mpeg3_t::strack, and mpeg3_t::total_sstreams.
Referenced by mpeg3_open_copy().

| static int is_ac3 | ( | uint32_t | bits | ) | [static] |
Definition at line 244 of file libmpeg3.c.
References MPEG3_AC3_START_CODE.
Referenced by mpeg3_get_file_type().
| static int is_bd | ( | uint32_t | bits1, | |
| uint32_t | bits2 | |||
| ) | [static] |
Definition at line 220 of file libmpeg3.c.
References MPEG3_SYNC_BYTE.
Referenced by mpeg3_get_file_type().
| static int is_ifo | ( | uint32_t | bits | ) | [static] |
Definition at line 210 of file libmpeg3.c.
References MPEG3_IFO_PREFIX.
Referenced by mpeg3_get_file_type().
| static int is_mpeg_audio | ( | uint32_t | bits | ) | [static] |
Definition at line 230 of file libmpeg3.c.
References MPEG3_ID3_PREFIX, and MPEG3_RIFF_CODE.
Referenced by mpeg3_get_file_type().
| static int is_mpeg_video | ( | uint32_t | bits | ) | [static] |
Definition at line 238 of file libmpeg3.c.
References MPEG3_PICTURE_START_CODE, and MPEG3_SEQUENCE_START_CODE.
Referenced by mpeg3_get_file_type().
| static int is_program | ( | uint32_t | bits | ) | [static] |
Definition at line 225 of file libmpeg3.c.
References MPEG3_PACK_START_CODE.
Referenced by mpeg3_get_file_type().
| static int is_toc | ( | uint32_t | bits | ) | [static] |
Definition at line 204 of file libmpeg3.c.
References MPEG3_TOC_PREFIX.
Referenced by mpeg3_get_file_type().
| static int is_transport | ( | uint32_t | bits | ) | [static] |
Definition at line 215 of file libmpeg3.c.
References MPEG3_SYNC_BYTE.
Referenced by mpeg3_get_file_type().
| float mpeg3_aspect_ratio | ( | mpeg3_t * | file, | |
| int | stream | |||
| ) |
Definition at line 666 of file libmpeg3.c.
References mpeg3_vtrack_t::aspect_ratio, mpeg3_t::total_vstreams, and mpeg3_t::vtrack.
| int mpeg3_audio_channels | ( | mpeg3_t * | file, | |
| int | stream | |||
| ) |
Definition at line 577 of file libmpeg3.c.
References mpeg3_t::atrack, mpeg3_atrack_t::channels, and mpeg3_t::total_astreams.
Referenced by main(), FileMPEG::open_file(), and FileMPEG::to_streamchannel().
| char* mpeg3_audio_format | ( | mpeg3_t * | file, | |
| int | stream | |||
| ) |
Definition at line 623 of file libmpeg3.c.
References mpeg3_t::atrack, AUDIO_AAC, AUDIO_AC3, AUDIO_JESUS, AUDIO_MPEG, AUDIO_PCM, AUDIO_UNKNOWN, and mpeg3_atrack_t::format.
Referenced by main().
| long mpeg3_audio_samples | ( | mpeg3_t * | file, | |
| int | stream | |||
| ) |
Definition at line 615 of file libmpeg3.c.
References mpeg3_t::atrack, mpeg3_t::total_astreams, and mpeg3_atrack_t::total_samples.
Referenced by main(), mpeg3_get_time(), and FileMPEG::open_file().
| int mpeg3_check_sig | ( | char * | path | ) |
Definition at line 129 of file libmpeg3.c.
References bits, MPEG3_AC3_START_CODE, mpeg3_delete_fs(), MPEG3_ID3_PREFIX, MPEG3_IFO_PREFIX, mpeg3_new_fs(), MPEG3_PACK_START_CODE, MPEG3_PICTURE_START_CODE, MPEG3_RIFF_CODE, MPEG3_SEQUENCE_START_CODE, MPEG3_SYNC_BYTE, MPEG3_TOC_PREFIX, mpeg3io_close_file(), mpeg3io_open_file(), mpeg3io_read_int32(), and strrchr.
Referenced by FileMPEG::check_sig(), and readcmdline().

| int mpeg3_close | ( | mpeg3_t * | file | ) |
Definition at line 551 of file libmpeg3.c.
References mpeg3_delete().
Referenced by FileMPEG::close_file(), FileMPEG::create_index(), FileMPEG::get_info(), main(), mpeg2enc(), and mpeg3_generate_toc().

| int mpeg3_colormodel | ( | mpeg3_t * | file, | |
| int | stream | |||
| ) |
Definition at line 845 of file libmpeg3.c.
References mpeg3video_colormodel(), mpeg3_t::total_vstreams, mpeg3_vtrack_t::video, and mpeg3_t::vtrack.
Referenced by main(), FileMPEG::open_file(), and FileMPEG::read_frame().

| int mpeg3_delete | ( | mpeg3_t * | file | ) |
Definition at line 58 of file libmpeg3.c.
References mpeg3_t::atrack, mpeg3_t::audio_eof, mpeg3_t::channel_counts, debug, mpeg3_t::demuxer, mpeg3_t::frame_offsets, mpeg3_t::fs, mpeg3_t::indexes, mpeg3_t::keyframe_numbers, mpeg3_delete_atrack(), mpeg3_delete_demuxer(), mpeg3_delete_fs(), mpeg3_delete_index(), mpeg3_delete_strack(), mpeg3_delete_vtrack(), mpeg3_t::sample_offsets, mpeg3_t::strack, mpeg3_t::total_astreams, mpeg3_t::total_frame_offsets, mpeg3_t::total_indexes, mpeg3_t::total_keyframe_numbers, mpeg3_t::total_sample_offsets, mpeg3_t::total_sstreams, mpeg3_t::total_vstreams, and mpeg3_t::vtrack.
Referenced by mpeg3_close(), mpeg3_open_copy(), mpeg3_start_toc(), and mpeg3_stop_toc().

| void mpeg3_delete_index | ( | mpeg3_index_t * | index | ) |
Definition at line 49 of file libmpeg3.c.
References mpeg3_index_t::index_channels, and mpeg3_index_t::index_data.
Referenced by mpeg3_delete().
| int mpeg3_drop_frames | ( | mpeg3_t * | file, | |
| long | frames, | |||
| int | stream | |||
| ) |
Definition at line 829 of file libmpeg3.c.
References mpeg3_vtrack_t::current_position, mpeg3_t::last_stream_read, mpeg3_t::last_type_read, mpeg3video_drop_frames(), mpeg3_t::total_vstreams, mpeg3_vtrack_t::video, and mpeg3_t::vtrack.

| int mpeg3_end_of_audio | ( | mpeg3_t * | file, | |
| int | stream | |||
| ) |
Definition at line 813 of file libmpeg3.c.
References mpeg3_t::atrack, mpeg3_atrack_t::channels, mpeg3_atrack_t::demuxer, and mpeg3demux_eof().
Referenced by main().

| int mpeg3_end_of_video | ( | mpeg3_t * | file, | |
| int | stream | |||
| ) |
Definition at line 821 of file libmpeg3.c.
References mpeg3_vtrack_t::demuxer, mpeg3demux_eof(), and mpeg3_t::vtrack.
Referenced by main(), and read_mpeg().

| double mpeg3_frame_rate | ( | mpeg3_t * | file, | |
| int | stream | |||
| ) |
Definition at line 673 of file libmpeg3.c.
References mpeg3_vtrack_t::frame_rate, mpeg3_t::total_vstreams, and mpeg3_t::vtrack.
Referenced by main(), mpeg3_get_time(), FileMPEG::open_file(), read_mpeg(), and readcmdline().
| int64_t mpeg3_get_bytes | ( | mpeg3_t * | file | ) |
Definition at line 768 of file libmpeg3.c.
References mpeg3_t::demuxer, and mpeg3demux_movie_size().
Referenced by FileMPEG::get_info(), and mpeg3_get_time().

| int mpeg3_get_file_type | ( | mpeg3_t * | file, | |
| mpeg3_t * | old_file, | |||
| int * | toc_atracks, | |||
| int * | toc_vtracks | |||
| ) |
Definition at line 275 of file libmpeg3.c.
References bits, calculate_packet_size(), fprintf, mpeg3_t::fs, is_ac3(), mpeg3_t::is_audio_stream, is_bd(), mpeg3_t::is_bd, is_ifo(), mpeg3_t::is_ifo_file, is_mpeg_audio(), is_mpeg_video(), is_program(), mpeg3_t::is_program_stream, is_toc(), is_transport(), mpeg3_t::is_transport_stream, mpeg3_t::is_video_stream, mpeg3_read_ifo(), mpeg3_read_toc(), mpeg3io_close_file(), mpeg3io_read_int32(), and mpeg3_t::packet_size.
Referenced by mpeg3_open_copy(), and mpeg3_start_toc().

| long mpeg3_get_frame | ( | mpeg3_t * | file, | |
| int | stream | |||
| ) |
Definition at line 689 of file libmpeg3.c.
References mpeg3_vtrack_t::current_position, mpeg3_t::total_vstreams, and mpeg3_t::vtrack.
Referenced by read_mpeg().
| long mpeg3_get_sample | ( | mpeg3_t * | file, | |
| int | stream | |||
| ) |
Definition at line 593 of file libmpeg3.c.
References mpeg3_t::atrack, mpeg3_atrack_t::current_position, and mpeg3_t::total_astreams.
Referenced by FileMPEG::set_audio_position().
| double mpeg3_get_time | ( | mpeg3_t * | file | ) |
Definition at line 773 of file libmpeg3.c.
References mpeg3_t::atrack, mpeg3_vtrack_t::demuxer, mpeg3_atrack_t::demuxer, mpeg3_t::is_program_stream, mpeg3_t::is_transport_stream, mpeg3_t::last_stream_read, mpeg3_t::last_type_read, MAX, mpeg3_audio_samples(), mpeg3_frame_rate(), mpeg3_get_bytes(), mpeg3_sample_rate(), mpeg3_video_frames(), mpeg3demux_get_time(), mpeg3demux_tell_byte(), mpeg3_t::total_astreams, mpeg3_t::total_vstreams, and mpeg3_t::vtrack.

| int mpeg3_has_audio | ( | mpeg3_t * | file | ) |
Definition at line 567 of file libmpeg3.c.
References mpeg3_t::total_astreams.
Referenced by main(), and FileMPEG::open_file().
| int mpeg3_has_video | ( | mpeg3_t * | file | ) |
Definition at line 640 of file libmpeg3.c.
References mpeg3_t::total_vstreams.
Referenced by main(), and FileMPEG::open_file().
| int mpeg3_major | ( | ) |
Definition at line 11 of file libmpeg3.c.
References MPEG3_MAJOR.
Referenced by AboutPrefs::create_objects(), and main().
| int64_t mpeg3_memory_usage | ( | mpeg3_t * | file | ) |
Definition at line 1039 of file libmpeg3.c.
References mpeg3_vtrack_t::frame_cache, mpeg3_cache_usage(), mpeg3_t::total_vstreams, and mpeg3_t::vtrack.
Referenced by FileMPEG::get_memory_usage().

| int mpeg3_minor | ( | ) |
Definition at line 16 of file libmpeg3.c.
References MPEG3_MINOR.
Referenced by AboutPrefs::create_objects(), and main().
| mpeg3_t* mpeg3_new | ( | char * | path | ) |
Definition at line 28 of file libmpeg3.c.
References mpeg3_t::cpus, mpeg3_t::demuxer, mpeg3_t::fs, mpeg3_t::index_bytes, mpeg3_new_demuxer(), mpeg3_new_fs(), mpeg3_t::seekable, and mpeg3_t::subtitle_track.
Referenced by mpeg3_open_copy(), and mpeg3_start_toc().

| mpeg3_index_t* mpeg3_new_index | ( | ) |
Definition at line 42 of file libmpeg3.c.
References mpeg3_index_t::index_zoom.
Referenced by mpeg3_do_toc(), and mpeg3_read_toc().
| mpeg3_t* mpeg3_open | ( | char * | path, | |
| int * | error_return | |||
| ) |
Definition at line 546 of file libmpeg3.c.
References mpeg3_open_copy().
Referenced by FileMPEG::create_index(), FileMPEG::get_info(), main(), mpeg3_generate_toc(), FileMPEG::open_file(), and readcmdline().

Definition at line 402 of file libmpeg3.c.
References mpeg3_demuxer_t::astream_table, mpeg3_t::atrack, AUDIO_UNKNOWN, copy_subtitles(), mpeg3_t::demuxer, mpeg3_t::fs, mpeg3_t::is_audio_stream, mpeg3_t::is_bd, mpeg3_t::is_program_stream, mpeg3_t::is_transport_stream, mpeg3_t::is_video_stream, mpeg3_create_title(), mpeg3_delete(), mpeg3_get_demuxer(), mpeg3_get_file_type(), MPEG3_MAX_STREAMS, mpeg3_new(), mpeg3_new_atrack(), mpeg3_new_vtrack(), mpeg3demux_copy_titles(), mpeg3io_close_file(), mpeg3io_open_file(), mpeg3_t::source_date, mpeg3_t::total_astreams, mpeg3_demuxer_t::total_titles, mpeg3_t::total_vstreams, mpeg3_demuxer_t::vstream_table, and mpeg3_t::vtrack.
Referenced by mpeg3_open().

| int mpeg3_previous_frame | ( | mpeg3_t * | file, | |
| int | stream | |||
| ) |
Definition at line 742 of file libmpeg3.c.
References mpeg3_t::last_stream_read, mpeg3_t::last_type_read, mpeg3video_previous_frame(), mpeg3_t::total_vstreams, mpeg3_vtrack_t::video, and mpeg3_t::vtrack.

| int mpeg3_read_audio | ( | mpeg3_t * | file, | |
| float * | output_f, | |||
| short * | output_i, | |||
| int | channel, | |||
| long | samples, | |||
| int | stream | |||
| ) |
Definition at line 951 of file libmpeg3.c.
References mpeg3_t::atrack, mpeg3_atrack_t::audio, mpeg3_atrack_t::current_position, mpeg3_t::last_stream_read, mpeg3_t::last_type_read, mpeg3audio_decode_audio(), and mpeg3_t::total_astreams.
Referenced by main(), mpeg3_reread_audio(), FileMPEG::read_samples(), and FileMPEG::read_samples_float().

| int mpeg3_read_audio_chunk | ( | mpeg3_t * | file, | |
| unsigned char * | output, | |||
| long * | size, | |||
| long | max_size, | |||
| int | stream | |||
| ) |
Definition at line 999 of file libmpeg3.c.
References mpeg3_t::atrack, mpeg3_atrack_t::audio, mpeg3_t::last_stream_read, mpeg3_t::last_type_read, mpeg3audio_read_raw(), and mpeg3_t::total_astreams.
Referenced by main().

| int mpeg3_read_frame | ( | mpeg3_t * | file, | |
| unsigned char ** | output_rows, | |||
| int | in_x, | |||
| int | in_y, | |||
| int | in_w, | |||
| int | in_h, | |||
| int | out_w, | |||
| int | out_h, | |||
| int | color_model, | |||
| int | stream | |||
| ) |
Definition at line 864 of file libmpeg3.c.
References mpeg3_vtrack_t::current_position, mpeg3_t::last_stream_read, mpeg3_t::last_type_read, mpeg3video_read_frame(), mpeg3_t::total_vstreams, mpeg3_vtrack_t::video, and mpeg3_t::vtrack.
Referenced by FileMPEG::read_frame().

| int mpeg3_read_video_chunk | ( | mpeg3_t * | file, | |
| unsigned char * | output, | |||
| long * | size, | |||
| long | max_size, | |||
| int | stream | |||
| ) |
Definition at line 1018 of file libmpeg3.c.
References mpeg3_t::last_stream_read, mpeg3_t::last_type_read, mpeg3video_read_raw(), mpeg3_t::total_vstreams, mpeg3_vtrack_t::video, and mpeg3_t::vtrack.
Referenced by main().

| int mpeg3_read_yuvframe | ( | mpeg3_t * | file, | |
| char * | y_output, | |||
| char * | u_output, | |||
| char * | v_output, | |||
| int | in_x, | |||
| int | in_y, | |||
| int | in_w, | |||
| int | in_h, | |||
| int | stream | |||
| ) |
Definition at line 899 of file libmpeg3.c.
References mpeg3_vtrack_t::current_position, mpeg3_t::last_stream_read, mpeg3_t::last_type_read, mpeg3video_read_yuvframe(), mpeg3_t::total_vstreams, mpeg3_vtrack_t::video, and mpeg3_t::vtrack.
Referenced by FileMPEG::read_frame(), and read_mpeg().

| int mpeg3_read_yuvframe_ptr | ( | mpeg3_t * | file, | |
| char ** | y_output, | |||
| char ** | u_output, | |||
| char ** | v_output, | |||
| int | stream | |||
| ) |
Definition at line 930 of file libmpeg3.c.
References mpeg3_vtrack_t::current_position, mpeg3_t::last_stream_read, mpeg3_t::last_type_read, mpeg3video_read_yuvframe_ptr(), mpeg3_t::total_vstreams, mpeg3_vtrack_t::video, and mpeg3_t::vtrack.
Referenced by main(), and FileMPEG::read_frame().

| int mpeg3_release | ( | ) |
Definition at line 21 of file libmpeg3.c.
References MPEG3_RELEASE.
Referenced by AboutPrefs::create_objects(), and main().
| int mpeg3_reread_audio | ( | mpeg3_t * | file, | |
| float * | output_f, | |||
| short * | output_i, | |||
| int | channel, | |||
| long | samples, | |||
| int | stream | |||
| ) |
Definition at line 975 of file libmpeg3.c.
References mpeg3_t::atrack, mpeg3_atrack_t::current_position, mpeg3_t::last_stream_read, mpeg3_t::last_type_read, mpeg3_read_audio(), mpeg3_set_sample(), and mpeg3_t::total_astreams.
Referenced by main().

| int mpeg3_sample_rate | ( | mpeg3_t * | file, | |
| int | stream | |||
| ) |
Definition at line 585 of file libmpeg3.c.
References mpeg3_t::atrack, mpeg3_atrack_t::sample_rate, and mpeg3_t::total_astreams.
Referenced by main(), mpeg3_get_time(), and FileMPEG::open_file().
| int mpeg3_seek_byte | ( | mpeg3_t * | file, | |
| int64_t | byte | |||
| ) |
Definition at line 710 of file libmpeg3.c.
References mpeg3_t::atrack, mpeg3_atrack_t::audio, mpeg3_atrack_t::current_position, mpeg3_vtrack_t::current_position, mpeg3audio_seek_byte(), mpeg3video_seek_byte(), mpeg3_t::total_astreams, mpeg3_t::total_vstreams, mpeg3_vtrack_t::video, and mpeg3_t::vtrack.

| int mpeg3_set_cpus | ( | mpeg3_t * | file, | |
| int | cpus | |||
| ) |
Definition at line 558 of file libmpeg3.c.
References mpeg3_t::cpus, mpeg3video_set_cpus(), mpeg3_t::total_vstreams, mpeg3_vtrack_t::video, and mpeg3_t::vtrack.
Referenced by main(), and FileMPEG::open_file().

| int mpeg3_set_frame | ( | mpeg3_t * | file, | |
| long | frame, | |||
| int | stream | |||
| ) |
Definition at line 697 of file libmpeg3.c.
References mpeg3_vtrack_t::current_position, mpeg3video_seek_frame(), mpeg3_t::total_vstreams, mpeg3_vtrack_t::video, and mpeg3_t::vtrack.
Referenced by FileMPEG::set_video_position().

| int mpeg3_set_rowspan | ( | mpeg3_t * | file, | |
| int | bytes, | |||
| int | stream | |||
| ) |
Definition at line 854 of file libmpeg3.c.
References mpeg3video_t::row_span, mpeg3_t::total_vstreams, mpeg3_vtrack_t::video, and mpeg3_t::vtrack.
| int mpeg3_set_sample | ( | mpeg3_t * | file, | |
| long | sample, | |||
| int | stream | |||
| ) |
Definition at line 601 of file libmpeg3.c.
References mpeg3_t::atrack, mpeg3_atrack_t::audio, mpeg3_atrack_t::current_position, mpeg3audio_seek_sample(), and mpeg3_t::total_astreams.
Referenced by mpeg3_reread_audio(), FileMPEG::read_samples(), FileMPEG::read_samples_float(), and FileMPEG::set_audio_position().

| int64_t mpeg3_tell_byte | ( | mpeg3_t * | file | ) |
Definition at line 753 of file libmpeg3.c.
References mpeg3_t::atrack, mpeg3_vtrack_t::demuxer, mpeg3_atrack_t::demuxer, mpeg3_t::last_stream_read, mpeg3_t::last_type_read, mpeg3demux_tell_byte(), and mpeg3_t::vtrack.

| int mpeg3_total_astreams | ( | mpeg3_t * | file | ) |
Definition at line 572 of file libmpeg3.c.
References mpeg3_t::total_astreams.
Referenced by main(), FileMPEG::open_file(), and FileMPEG::to_streamchannel().
| int mpeg3_total_vstreams | ( | mpeg3_t * | file | ) |
Definition at line 645 of file libmpeg3.c.
References mpeg3_t::total_vstreams.
Referenced by main(), and FileMPEG::open_file().
| long mpeg3_video_frames | ( | mpeg3_t * | file, | |
| int | stream | |||
| ) |
Definition at line 681 of file libmpeg3.c.
References mpeg3_vtrack_t::total_frames, mpeg3_t::total_vstreams, and mpeg3_t::vtrack.
Referenced by main(), mpeg3_get_time(), and FileMPEG::open_file().
| int mpeg3_video_height | ( | mpeg3_t * | file, | |
| int | stream | |||
| ) |
Definition at line 658 of file libmpeg3.c.
References mpeg3_vtrack_t::height, mpeg3_t::total_vstreams, and mpeg3_t::vtrack.
Referenced by main(), FileMPEG::open_file(), and readcmdline().
| int mpeg3_video_width | ( | mpeg3_t * | file, | |
| int | stream | |||
| ) |
Definition at line 650 of file libmpeg3.c.
References mpeg3_t::total_vstreams, mpeg3_t::vtrack, and mpeg3_vtrack_t::width.
Referenced by main(), FileMPEG::open_file(), and readcmdline().
1.5.5