#include "mpeg3private.h"#include "mpeg3protos.h"#include <mntent.h>#include <stdint.h>#include <stdlib.h>#include <string.h>#include <sys/stat.h>

Go to the source code of this file.
Functions | |
| mpeg3_fs_t * | mpeg3_new_fs (char *path) |
| int | mpeg3_delete_fs (mpeg3_fs_t *fs) |
| int | mpeg3_copy_fs (mpeg3_fs_t *dst, mpeg3_fs_t *src) |
| int64_t | mpeg3io_get_total_bytes (mpeg3_fs_t *fs) |
| int64_t | mpeg3io_path_total_bytes (char *path) |
| int | mpeg3io_open_file (mpeg3_fs_t *fs) |
| int | mpeg3io_close_file (mpeg3_fs_t *fs) |
| int | mpeg3io_read_data (unsigned char *buffer, int64_t bytes, mpeg3_fs_t *fs) |
| int | mpeg3io_seek (mpeg3_fs_t *fs, int64_t byte) |
| int | mpeg3io_seek_relative (mpeg3_fs_t *fs, int64_t bytes) |
| void | mpeg3io_read_buffer (mpeg3_fs_t *fs) |
| void | mpeg3io_complete_path (char *complete_path, char *path) |
| int | mpeg3io_device (char *path, char *device) |
| void | mpeg3io_get_directory (char *directory, char *path) |
| void | mpeg3io_get_filename (char *filename, char *path) |
| void | mpeg3io_joinpath (char *title_path, char *directory, char *new_filename) |
| int mpeg3_copy_fs | ( | mpeg3_fs_t * | dst, | |
| mpeg3_fs_t * | src | |||
| ) |
Definition at line 29 of file mpeg3io.c.
References mpeg3_fs_t::current_byte, and mpeg3_fs_t::path.
Referenced by mpeg3_copy_title().
| int mpeg3_delete_fs | ( | mpeg3_fs_t * | fs | ) |
Definition at line 21 of file mpeg3io.c.
References mpeg3_fs_t::buffer, mpeg3_fs_t::css, and mpeg3_delete_css().
Referenced by mpeg3_check_sig(), mpeg3_delete(), and mpeg3_delete_title().

| mpeg3_fs_t* mpeg3_new_fs | ( | char * | path | ) |
Definition at line 10 of file mpeg3io.c.
References mpeg3_fs_t::buffer, mpeg3_fs_t::buffer_position, mpeg3_fs_t::css, MPEG3_IO_SIZE, mpeg3_new_css(), and mpeg3_fs_t::path.
Referenced by mpeg3_check_sig(), mpeg3_new(), and mpeg3_new_title().

| int mpeg3io_close_file | ( | mpeg3_fs_t * | fs | ) |
Definition at line 84 of file mpeg3io.c.
References fclose(), and mpeg3_fs_t::fd.
Referenced by mpeg3_check_sig(), mpeg3_delete_demuxer(), mpeg3_generate_toc(), mpeg3_get_file_type(), mpeg3_open_copy(), and mpeg3demux_open_title().

| void mpeg3io_complete_path | ( | char * | complete_path, | |
| char * | path | |||
| ) |
Definition at line 205 of file mpeg3io.c.
References MPEG3_STRLEN.
Referenced by get_ifo_playlist(), and mpeg3_generate_toc().
| int mpeg3io_device | ( | char * | path, | |
| char * | device | |||
| ) |
| void mpeg3io_get_directory | ( | char * | directory, | |
| char * | path | |||
| ) |
| void mpeg3io_get_filename | ( | char * | filename, | |
| char * | path | |||
| ) |
| int64_t mpeg3io_get_total_bytes | ( | mpeg3_fs_t * | fs | ) |
Definition at line 36 of file mpeg3io.c.
References mpeg3_fs_t::path, and mpeg3_fs_t::total_bytes.
Referenced by mpeg3io_open_file().
| void mpeg3io_joinpath | ( | char * | title_path, | |
| char * | directory, | |||
| char * | new_filename | |||
| ) |
| int mpeg3io_open_file | ( | mpeg3_fs_t * | fs | ) |
Definition at line 58 of file mpeg3io.c.
References mpeg3_fs_t::buffer_position, mpeg3_fs_t::css, mpeg3_fs_t::current_byte, fclose(), mpeg3_fs_t::fd, fopen64(), fprintf, mpeg3_get_keys(), mpeg3io_get_total_bytes(), mpeg3_fs_t::path, and mpeg3_fs_t::total_bytes.
Referenced by mpeg3_check_sig(), mpeg3_generate_toc(), mpeg3_open_copy(), mpeg3_start_toc(), and mpeg3demux_open_title().

| int64_t mpeg3io_path_total_bytes | ( | char * | path | ) |
| void mpeg3io_read_buffer | ( | mpeg3_fs_t * | fs | ) |
Definition at line 136 of file mpeg3io.c.
References mpeg3_fs_t::buffer, mpeg3_fs_t::buffer_offset, mpeg3_fs_t::buffer_position, mpeg3_fs_t::buffer_size, mpeg3_fs_t::current_byte, mpeg3_fs_t::fd, fread(), fseeko64(), MIN, and MPEG3_IO_SIZE.
Referenced by mpeg3io_sync_buffer().

| int mpeg3io_read_data | ( | unsigned char * | buffer, | |
| int64_t | bytes, | |||
| mpeg3_fs_t * | fs | |||
| ) |
Definition at line 91 of file mpeg3io.c.
References mpeg3_fs_t::buffer, mpeg3_fs_t::buffer_offset, mpeg3_fs_t::buffer_size, mpeg3_fs_t::current_byte, memcpy, MPEG3_IO_SIZE, and mpeg3io_sync_buffer().
Referenced by get_program_payload(), handle_subtitle(), main(), mpeg3_read_next_packet(), mpeg3_read_prev_packet(), mpeg3_read_toc(), and read_transport().

| int mpeg3io_seek | ( | mpeg3_fs_t * | fs, | |
| int64_t | byte | |||
| ) |
Definition at line 121 of file mpeg3io.c.
References mpeg3_fs_t::current_byte, and mpeg3_fs_t::total_bytes.
Referenced by main(), mpeg3_create_title(), mpeg3_read_prev_packet(), mpeg3_read_toc(), mpeg3_seek_phys(), and prev_code().
| int mpeg3io_seek_relative | ( | mpeg3_fs_t * | fs, | |
| int64_t | bytes | |||
| ) |
Definition at line 128 of file mpeg3io.c.
References mpeg3_fs_t::current_byte, and mpeg3_fs_t::total_bytes.
Referenced by get_pack_header(), get_program_pes_packet(), get_system_header(), handle_scrambling(), and mpeg3demux_read_program().
1.5.5