#include <filebase.h>
Inheritance diagram for FileBase:

Public Member Functions | |
| FileBase (Asset *asset, File *file) | |
| virtual | ~FileBase () |
| int | get_mode (char *mode, int rd, int wr) |
| int | reset_parameters () |
| virtual void | get_parameters (BC_WindowBase *parent_window, Asset *asset, BC_WindowBase **format_window, int audio_options, int video_options, int lock_compressor) |
| virtual int | get_index (char *index_path) |
| virtual int | check_header () |
| virtual int | reset_parameters_derived () |
| virtual int | read_header () |
| virtual int | open_file (int rd, int wr) |
| virtual int | close_file () |
| virtual int | close_file_derived () |
| int | set_dither () |
| virtual int | seek_end () |
| virtual int | seek_start () |
| virtual int64_t | get_video_position () |
| virtual int64_t | get_audio_position () |
| virtual int | set_video_position (int64_t x) |
| virtual int | set_audio_position (int64_t x) |
| virtual int | get_memory_usage () |
| virtual int | write_samples (double **buffer, int64_t len) |
| virtual int | write_frames (VFrame ***frames, int len) |
| virtual int | read_compressed_frame (VFrame *buffer) |
| virtual int | write_compressed_frame (VFrame *buffers) |
| virtual int64_t | compressed_frame_size () |
| virtual int | read_samples (double *buffer, int64_t len) |
| virtual int | prefer_samples_float () |
| virtual int | read_samples_float (float *buffer, int64_t len) |
| virtual int | read_frame (VFrame *frame) |
| virtual int | colormodel_supported (int colormodel) |
| virtual int | can_copy_from (Edit *edit, int64_t position) |
| virtual int | get_render_strategy (ArrayList< int > *render_strategies) |
Protected Member Functions | |
| int64_t | samples_to_raw (char *out_buffer, float **in_buffer, int64_t input_len, int bits, int channels, int byte_order, int signed_) |
| int | raw_to_samples (float *out_buffer, char *in_buffer, int64_t samples, int bits, int channels, int channel, int feather, float lfeather_len, float lfeather_gain, float lfeather_slope) |
| int | overlay_float_buffer (float *out_buffer, float *in_buffer, int64_t samples, float lfeather_len, float lfeather_gain, float lfeather_slope) |
| int64_t | frame_to_raw (unsigned char *out_buffer, VFrame *in_frame, int w, int h, int use_alpha, int use_float, int color_model) |
| int | get_audio_buffer (char **buffer, int64_t len, int64_t bits, int64_t channels) |
| int | get_float_buffer (float **buffer, int64_t len) |
| int | get_video_buffer (unsigned char **buffer, int depth) |
| int | get_row_pointers (unsigned char *buffer, unsigned char ***pointers, int depth) |
| int64_t | ima4_samples_to_bytes (int64_t samples, int channels) |
| int64_t | ima4_bytes_to_samples (int64_t bytes, int channels) |
Static Protected Member Functions | |
| static int | search_render_strategies (ArrayList< int > *render_strategies, int render_strategy) |
| static int | match4 (char *in, char *out) |
Protected Attributes | |
| char * | audio_buffer_in |
| char * | audio_buffer_out |
| float * | float_buffer |
| unsigned char * | video_buffer_in |
| unsigned char * | video_buffer_out |
| unsigned char ** | row_pointers_in |
| unsigned char ** | row_pointers_out |
| int64_t | prev_buffer_position |
| int64_t | prev_frame_position |
| int64_t | prev_bytes |
| int64_t | prev_len |
| int | prev_track |
| int | prev_layer |
| Asset * | asset |
| int | wr |
| int | rd |
| int | dither |
| int | internal_byte_order |
| File * | file |
Private Member Functions | |
| float | ulawtofloat (char ulaw) |
| char | floattoulaw (float value) |
| int | generate_ulaw_tables () |
| int | delete_ulaw_tables () |
| int | init_ima4 () |
| int | delete_ima4 () |
| int | ima4_decode_block (int16_t *output, unsigned char *input) |
| int | ima4_decode_sample (int *predictor, int nibble, int *index, int *step) |
| int | ima4_encode_block (unsigned char *output, int16_t *input, int step, int channel) |
| int | ima4_encode_sample (int *last_sample, int *last_index, int *nibble, int next_sample) |
Private Attributes | |
| float * | ulawtofloat_table |
| float * | ulawtofloat_ptr |
| unsigned char * | floattoulaw_table |
| unsigned char * | floattoulaw_ptr |
| int * | last_ima4_samples |
| int * | last_ima4_indexes |
| int | ima4_block_size |
| int | ima4_block_samples |
| OverlayFrame * | overlayer |
Static Private Attributes | |
| static int | ima4_step [89] |
| static int | ima4_index [16] |
Friends | |
| class | File |
| class | FileList |
| class | FrameWriter |
Definition at line 18 of file filebase.h.
|
||||||||||||
|
Definition at line 12 of file filebase.C. References get_byte_order(), init_ima4(), internal_byte_order, overlayer, and reset_parameters(). |
|
|
Definition at line 22 of file filebase.C. References audio_buffer_in, audio_buffer_out, delete_ima4(), float_buffer, overlayer, row_pointers_in, row_pointers_out, video_buffer_in, and video_buffer_out. |
|
||||||||||||
|
Reimplemented in FileDV, FileJPEG, FileMOV, FileMPEG, FilePNG, FileTGA, FileTIFF, and FileYUV. Definition at line 85 of file filebase.h. Referenced by File::can_copy_from(). |
|
|
Definition at line 47 of file filebase.h. |
|
|
Reimplemented in FileAC3, FileAVI, FileCR2, FileDV, FileList, FileMOV, FileMPEG, FileOGG, FileSndFile, FileVorbis, and FileYUV. Definition at line 35 of file filebase.C. References audio_buffer_in, audio_buffer_out, close_file_derived(), delete_ima4(), float_buffer, reset_parameters(), row_pointers_in, row_pointers_out, video_buffer_in, and video_buffer_out. Referenced by FileVorbis::close_file(), FileSndFile::close_file(), FileMPEG::close_file(), FileMOV::close_file(), FileList::close_file(), FileAC3::close_file(), File::close_file(), and FileGIF::~FileGIF(). |
|
|
Reimplemented in FileDV, FileGIF, and FileOGG. Definition at line 52 of file filebase.h. Referenced by close_file(). |
|
|
Reimplemented in FileCR2, FileDV, FileEXR, FileJPEG, FileMOV, FileMPEG, FileOGG, FilePNG, FileTGA, FileTIFF, and FileYUV. Definition at line 83 of file filebase.h. Referenced by File::colormodel_supported(). |
|
|
Reimplemented in FileAVI, FileDV, and FileMOV. Definition at line 70 of file filebase.h. Referenced by File::compressed_frame_size(). |
|
|
Definition at line 36 of file filebaseima4.C. References last_ima4_indexes, and last_ima4_samples. Referenced by close_file(), and ~FileBase(). |
|
|
Definition at line 101 of file filebaseulaw.C. References floattoulaw_table, and ulawtofloat_table. Referenced by reset_parameters(). |
|
|
Definition at line 15 of file filebaseulaw.C. References floattoulaw_ptr. Referenced by samples_to_raw(). |
|
||||||||||||||||||||||||||||||||
|
|
|
|
Definition at line 26 of file filebaseulaw.C. References floattoulaw_ptr, floattoulaw_table, uBIAS, uCLIP, ulawtofloat_ptr, and ulawtofloat_table. Referenced by raw_to_samples(), and samples_to_raw(). |
|
||||||||||||||||||||
|
Definition at line 369 of file filebaseaudio.C. References File::bytes_per_sample(), file, and prev_bytes. |
|
|
Reimplemented in FileDV, and FileOGG. Definition at line 57 of file filebase.h. |
|
||||||||||||
|
Definition at line 382 of file filebaseaudio.C. References prev_len. |
|
|
Reimplemented in FileMPEG. Definition at line 46 of file filebase.h. Referenced by File::get_index(). |
|
|
Reimplemented in FileEXR, FileGIF, FileList, and FileTGA. Definition at line 63 of file filebase.h. Referenced by File::get_memory_usage(). |
|
||||||||||||||||
|
Definition at line 79 of file filebase.C. References asset, fclose(), fopen(), and Asset::path. |
|
||||||||||||||||||||||||||||
|
Definition at line 37 of file filebase.h. |
|
|
Definition at line 86 of file filebase.h. |
|
||||||||||||||||
|
Definition at line 125 of file filebase.C. References asset, Asset::height, and Asset::width. |
|
||||||||||||
|
Definition at line 113 of file filebase.C. References asset, Asset::height, and Asset::width. |
|
|
Reimplemented in FileDV, and FileOGG. Definition at line 56 of file filebase.h. |
|
||||||||||||
|
Definition at line 241 of file filebaseima4.C. References ima4_block_samples, and ima4_block_size. |
|
||||||||||||
|
Definition at line 44 of file filebaseima4.C. |
|
||||||||||||||||||||
|
Definition at line 91 of file filebaseima4.C. References ima4_index, and ima4_step. |
|
||||||||||||||||||||
|
Definition at line 129 of file filebaseima4.C. References asset, Asset::channels, ima4_block_size, ima4_encode_sample(), last_ima4_indexes, and last_ima4_samples. |
|
||||||||||||||||||||
|
Definition at line 186 of file filebaseima4.C. References ima4_index, and ima4_step. Referenced by ima4_encode_block(). |
|
||||||||||||
|
Definition at line 235 of file filebaseima4.C. References ima4_block_samples, and ima4_block_size. |
|
|
Definition at line 28 of file filebaseima4.C. References asset, Asset::channels, ima4_block_samples, ima4_block_size, last_ima4_indexes, and last_ima4_samples. Referenced by FileBase(). |
|
||||||||||||
|
Definition at line 144 of file filebase.C. Referenced by FilePNG::can_copy_from(), FileMOV::can_copy_from(), FileJPEGList::can_copy_from(), FileJPEG::can_copy_from(), FileMOV::compressiontostr(), FileMOV::get_best_colormodel(), FileMOV::open_file(), and FileMOV::write_frames(). |
|
||||||||||||
|
Reimplemented in FileAC3, FileAVI, FileCR2, FileDV, FileGIF, FileList, FileMOV, FileMPEG, FileOGG, FileSndFile, FileVorbis, and FileYUV. Definition at line 50 of file filebase.h. Referenced by File::open_file(). |
|
||||||||||||||||||||||||||||
|
Definition at line 349 of file filebaseaudio.C. References CENTER_MACRO1, CENTER_MACRO2, LFEATHER_MACRO1, and LFEATHER_MACRO2. |
|
|
Reimplemented in FileMPEG, and FileVorbis. Definition at line 76 of file filebase.h. Referenced by File::read_samples(). |
|
||||||||||||||||||||||||||||||||||||||||||||
|
Definition at line 212 of file filebaseaudio.C. References File::bytes_per_sample(), CENTER_MACRO1, CENTER_MACRO2, file, generate_ulaw_tables(), LFEATHER_MACRO1, LFEATHER_MACRO2, READ_16_MACRO, READ_24_MACRO, READ_8_MACRO, and READ_ULAW_MACRO. |
|
|
Reimplemented in FileAVI, FileDV, and FileMOV. Definition at line 68 of file filebase.h. Referenced by File::read_compressed_frame(). |
|
|
Reimplemented in FileAVI, FileCR2, FileDV, FileList, FileMOV, FileMPEG, FileOGG, and FileYUV. Definition at line 79 of file filebase.h. Referenced by File::read_frame(). |
|
|
Reimplemented in FileGIF. Definition at line 49 of file filebase.h. |
|
||||||||||||
|
Reimplemented in FileAVI, FileDV, FileMOV, FileMPEG, FileOGG, FileSndFile, and FileVorbis. Definition at line 73 of file filebase.h. Referenced by File::read_samples(). |
|
||||||||||||
|
Reimplemented in FileMPEG, and FileVorbis. Definition at line 77 of file filebase.h. Referenced by File::read_samples(). |
|
|
|
Reimplemented in FileAC3, FileDV, FileGIF, FileList, FileMOV, FileMPEG, FileOGG, and FileVorbis. Definition at line 48 of file filebase.h. Referenced by reset_parameters(). |
|
||||||||||||||||||||||||||||||||
|
Definition at line 7 of file filebaseaudio.C. References asset, File::bytes_per_sample(), Asset::channels, dither, file, floattoulaw(), generate_ulaw_tables(), get_byte_order(), and swap_bytes(). |
|
||||||||||||
|
Definition at line 155 of file filebase.C. |
|
|
Definition at line 54 of file filebase.h. |
|
|
Definition at line 55 of file filebase.h. |
|
|
Reimplemented in FileAVI, FileDV, FileMOV, FileMPEG, FileOGG, and FileSndFile. Definition at line 59 of file filebase.h. Referenced by File::set_audio_position(). |
|
|
Definition at line 49 of file filebase.C. References dither. Referenced by File::open_file(). |
|
|
Reimplemented in FileAVI, FileDV, FileMOV, FileMPEG, FileOGG, and FileYUV. Definition at line 58 of file filebase.h. Referenced by File::set_video_position(). |
|
|
Definition at line 9 of file filebaseulaw.C. References ulawtofloat_ptr. |
|
|
Reimplemented in FileAVI, FileDV, and FileMOV. Definition at line 69 of file filebase.h. Referenced by File::write_compressed_frame(). |
|
||||||||||||
|
Reimplemented in FileAVI, FileDV, FileList, FileMOV, FileMPEG, FileOGG, and FileYUV. Definition at line 67 of file filebase.h. Referenced by File::write_frames(). |
|
||||||||||||
|
Reimplemented in FileAC3, FileAVI, FileDV, FileMOV, FileMPEG, FileOGG, FileSndFile, and FileVorbis. Definition at line 65 of file filebase.h. Referenced by File::write_samples(). |
|
|
Definition at line 25 of file filebase.h. |
|
|
Definition at line 26 of file filebase.h. |
|
|
Definition at line 27 of file filebase.h. Referenced by FileList::open_file(). |
|
|
|
Definition at line 135 of file filebase.h. Referenced by close_file(), reset_parameters(), and ~FileBase(). |
|
|
Definition at line 135 of file filebase.h. Referenced by close_file(), reset_parameters(), and ~FileBase(). |
|
|
Definition at line 147 of file filebase.h. Referenced by reset_parameters(), samples_to_raw(), and set_dither(). |
|
|
|
Definition at line 136 of file filebase.h. Referenced by close_file(), reset_parameters(), and |