Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

FileAC3 Class Reference

#include <fileac3.h>

Inheritance diagram for FileAC3:

FileBase List of all members.

Public Member Functions

 FileAC3 (Asset *asset, File *file)
 ~FileAC3 ()
int reset_parameters_derived ()
int open_file (int rd, int wr)
int close_file ()
int write_samples (double **buffer, int64_t len)

Static Public Member Functions

static void get_parameters (BC_WindowBase *parent_window, Asset *asset, BC_WindowBase *&format_window, int audio_options, int video_options)
static int check_sig ()

Private Attributes

AVCodec * codec
AVCodecContext * codec_context
FILE * fd
int16_t * temp_raw
int temp_raw_allocated
int temp_raw_size
unsigned char * temp_compressed
int compressed_allocated

Detailed Description

Definition at line 10 of file fileac3.h.


Constructor & Destructor Documentation

FileAC3::FileAC3 Asset asset,
File file
 

Definition at line 12 of file fileac3.C.

References FileBase::reset_parameters().

FileAC3::~FileAC3  ) 
 

Definition at line 18 of file fileac3.C.

References close_file().


Member Function Documentation

int FileAC3::check_sig  )  [static]
 

Definition at line 52 of file fileac3.C.

int FileAC3::close_file  )  [virtual]
 

Reimplemented from FileBase.

Definition at line 107 of file fileac3.C.

References FileBase::close_file(), codec, codec_context, fclose(), fd, FileBase::reset_parameters(), temp_compressed, and temp_raw.

Referenced by ~FileAC3().

void FileAC3::get_parameters BC_WindowBase *  parent_window,
Asset asset,
BC_WindowBase *&  format_window,
int  audio_options,
int  video_options
[static]
 

Definition at line 35 of file fileac3.C.

References AC3ConfigAudio::create_objects().

Referenced by File::get_options().

int FileAC3::open_file int  rd,
int  wr
[virtual]
 

Reimplemented from FileBase.

Definition at line 58 of file fileac3.C.

References Asset::ac3_bitrate, FileBase::asset, Asset::channels, codec, codec_context, fd, fopen(), Asset::path, and Asset::sample_rate.

int FileAC3::reset_parameters_derived  )  [virtual]
 

Reimplemented from FileBase.

Definition at line 23 of file fileac3.C.

References codec, codec_context, compressed_allocated, fd, temp_compressed, temp_raw, temp_raw_allocated, and temp_raw_size.

int FileAC3::write_samples double **  buffer,
int64_t  len
[virtual]
 

Reimplemented from FileBase.

Definition at line 135 of file fileac3.C.

References FileBase::asset, Asset::channels, CLAMP, codec_context, compressed_allocated, fd, fwrite(), temp_compressed, temp_raw, temp_raw_allocated, and temp_raw_size.


Member Data Documentation

AVCodec* FileAC3::codec [private]
 

Definition at line 28 of file fileac3.h.

Referenced by close_file(), open_file(), and reset_parameters_derived().

AVCodecContext* FileAC3::codec_context [private]
 

Definition at line 29 of file fileac3.h.

Referenced by close_file(), open_file(), reset_parameters_derived(), and write_samples().

int FileAC3::compressed_allocated [private]
 

Definition at line 35 of file fileac3.h.

Referenced by reset_parameters_derived(), and write_samples().

FILE* FileAC3::fd [private]
 

Definition at line 30 of file fileac3.h.

Referenced by close_file(), open_file(), reset_parameters_derived(), and write_samples().

unsigned char* FileAC3::temp_compressed [private]
 

Definition at line 34 of file fileac3.h.

Referenced by close_file(), reset_parameters_derived(), and write_samples().

int16_t* FileAC3::temp_raw [private]
 

Definition at line 31 of file fileac3.h.

Referenced by close_file(), reset_parameters_derived(), and write_samples().

int FileAC3::temp_raw_allocated [private]
 

Definition at line 32 of file fileac3.h.

Referenced by reset_parameters_derived(), and write_samples().

int FileAC3::temp_raw_size [private]
 

Definition at line 33 of file fileac3.h.

Referenced by reset_parameters_derived(), and write_samples().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:14 2006 for Cinelerra-svn by  doxygen 1.4.4