hvirtual/libmpeg3/mpeg3io.c File Reference

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

Include dependency graph for mpeg3io.c:

Go to the source code of this file.

Functions

mpeg3_fs_tmpeg3_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)


Function Documentation

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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 
)

Definition at line 217 of file mpeg3io.c.

References fp, and MPEG3_STRLEN.

void mpeg3io_get_directory ( char *  directory,
char *  path 
)

Definition at line 244 of file mpeg3io.c.

References strrchr.

Referenced by get_ifo_playlist().

void mpeg3io_get_filename ( char *  filename,
char *  path 
)

Definition at line 258 of file mpeg3io.c.

References strrchr.

Referenced by get_ifo_playlist().

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 
)

Definition at line 269 of file mpeg3io.c.

Referenced by get_ifo_playlist().

int mpeg3io_open_file ( mpeg3_fs_t fs  ) 

int64_t mpeg3io_path_total_bytes ( char *  path  ) 

Definition at line 51 of file mpeg3io.c.

Referenced by get_ifo_playlist().

void mpeg3io_read_buffer ( 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 
)


Generated on Mon Apr 28 13:59:22 2008 for Cinelerra by  doxygen 1.5.5