#include <filempeg.h>
Inheritance diagram for FileMPEG:

Public Member Functions | |
| FileMPEG (Asset *asset, File *file) | |
| ~FileMPEG () | |
| int | open_file (int rd, int wr) |
| int | close_file () |
| int | create_index () |
| int | get_index (char *index_path) |
| int | set_video_position (int64_t x) |
| int | set_audio_position (int64_t x) |
| int | write_samples (double **buffer, int64_t len) |
| int | write_frames (VFrame ***frames, int len) |
| int | read_frame (VFrame *frame) |
| int | read_samples (double *buffer, int64_t len) |
| int | read_samples_float (float *buffer, int64_t len) |
| int | prefer_samples_float () |
| int | colormodel_supported (int colormodel) |
| int | can_copy_from (Edit *edit, int64_t position) |
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 (Asset *asset) |
| static int | get_best_colormodel (Asset *asset, int driver) |
| static char * | strtocompression (char *string) |
| static char * | compressiontostr (char *string) |
Private Member Functions | |
| void | to_streamchannel (int channel, int &stream_out, int &channel_out) |
| int | reset_parameters_derived () |
| void | append_vcommand_line (const char *string) |
| void | append_acommand_line (const char *string) |
Private Attributes | |
| mpeg3_t * | fd |
| FileMPEGVideo * | video_out |
| ArrayList< char * > | vcommand_line |
| FILE * | mjpeg_out |
| int | mjpeg_error |
| Condition * | next_frame_lock |
| Condition * | next_frame_done |
| int | mjpeg_eof |
| int | wrote_header |
| unsigned char * | mjpeg_y |
| unsigned char * | mjpeg_u |
| unsigned char * | mjpeg_v |
| char | mjpeg_command [BCTEXTLEN] |
| FileMPEGAudio * | audio_out |
| ArrayList< char * > | acommand_line |
| VFrame * | temp_frame |
| unsigned char * | toolame_temp |
| int | toolame_allocation |
| int | toolame_result |
| float * | lame_temp [2] |
| int | lame_allocation |
| char * | lame_output |
| int | lame_output_allocation |
| FILE * | lame_fd |
| int | lame_started |
| lame_global_flags * | lame_global |
Friends | |
| class | FileMPEGVideo |
| class | FileMPEGAudio |
Definition at line 38 of file filempeg.h.
|
||||||||||||
|
Definition at line 67 of file filempeg.C. References Asset::byte_order, Asset::format, next_frame_done, next_frame_lock, and FileBase::reset_parameters(). |
|
|
Definition at line 78 of file filempeg.C. References close_file(), next_frame_done, and next_frame_lock. |
|
|
Definition at line 560 of file filempeg.C. References acommand_line. Referenced by open_file(). |
|
|
Definition at line 551 of file filempeg.C. References vcommand_line. Referenced by open_file(). |
|
||||||||||||
|
Reimplemented from FileBase. Definition at line 717 of file filempeg.C. References fd. |
|
|
Definition at line 110 of file filempeg.C. References Asset::path. Referenced by File::open_file(). |
|
|
Reimplemented from FileBase. Definition at line 570 of file filempeg.C. References acommand_line, File::asset, audio_out, FileBase::close_file(), fclose(), fd, FileBase::file, lame_fd, lame_global, lame_output, lame_temp, mjpeg_eof, mjpeg_out, mpeg2enc_set_input_buffers(), MPEG_YUV422, next_frame_lock, FileBase::reset_parameters(), temp_frame, toolame_send_buffer(), toolame_temp, vcommand_line, video_out, and Asset::vmpeg_cmodel. Referenced by ~FileMPEG(). |
|
|
Reimplemented from FileBase. Definition at line 658 of file filempeg.C. |
|
|
Definition at line 1189 of file filempeg.C. |
|
|
Definition at line 445 of file filempeg.C. References FileBase::asset, fclose(), fd, FileBase::file, fopen(), IndexFile::get_index_filename(), Preferences::index_directory, Asset::path, File::preferences, and remove(). Referenced by open_file(). |
|
||||||||||||
|
Definition at line 619 of file filempeg.C. References MPEG_YUV420, MPEG_YUV422, and Asset::vmpeg_cmodel. Referenced by File::get_best_colormodel(). |
|
|
Reimplemented from FileBase. Definition at line 663 of file filempeg.C. References FileBase::asset, Asset::channels, fd, Asset::index_buffer, Asset::index_bytes, Asset::index_offsets, Asset::index_sizes, Asset::index_zoom, Asset::path, and Asset::write_index(). |
|
||||||||||||||||||||||||
|
Definition at line 85 of file filempeg.C. References MPEGConfigVideo::create_objects(), MPEGConfigAudio::create_objects(), and Asset::format. Referenced by File::get_options(). |
|
||||||||||||
|
|
Reimplemented from FileBase. Definition at line 1149 of file filempeg.C. |
|
|
Reimplemented from FileBase. Definition at line 1017 of file filempeg.C. References FileBase::asset, File::current_layer, fd, FileBase::file, Asset::height, and Asset::width. |
|
||||||||||||
|
Reimplemented from FileBase. Definition at line 1117 of file filempeg.C. References File::current_channel, File::current_sample, fd, FileBase::file, and to_streamchannel(). |
|
||||||||||||
|
Reimplemented from FileBase. Definition at line 1154 of file filempeg.C. References File::current_channel, File::current_sample, fd, FileBase::file, and to_streamchannel(). |
|
|
Reimplemented from FileBase. Definition at line 115 of file filempeg.C. References audio_out, fd, lame_allocation, lame_fd, lame_global, lame_output, lame_output_allocation, lame_started, lame_temp, mjpeg_eof, mjpeg_error, mjpeg_out, FileBase::prev_track, temp_frame, toolame_allocation, toolame_result, toolame_temp, video_out, and wrote_header. |
|
|
Reimplemented from FileBase. Definition at line 723 of file filempeg.C. References FileBase::asset, Asset::audio_length, File::current_channel, fd, FileBase::file, and to_streamchannel(). |
|
|
Reimplemented from FileBase. Definition at line 747 of file filempeg.C. References FileBase::asset, File::current_layer, fd, FileBase::file, and Asset::video_length. |
|
|
Definition at line 1184 of file filempeg.C. |
|
||||||||||||||||
|
Definition at line 1108 of file filempeg.C. References File::current_channel, fd, and FileBase::file. Referenced by read_samples(), read_samples_float(), and set_audio_position(). |
|
||||||||||||
|
Reimplemented from FileBase. Definition at line 860 of file filempeg.C. References FileBase::asset, Asset::height, mjpeg_error, mjpeg_u, mjpeg_v, mjpeg_y, mpeg2enc_set_input_buffers(), MPEG_YUV420, MPEG_YUV422, next_frame_done, next_frame_lock, temp_frame, video_out, Asset::vmpeg_cmodel, Asset::vmpeg_derivative, Asset::vmpeg_progressive, and Asset::width. |
|
||||||||||||
|
Reimplemented from FileBase. Definition at line 759 of file filempeg.C. References Asset::ampeg_derivative, FileBase::asset, Asset::channels, fwrite(), lame_allocation, lame_fd, lame_global, lame_output, lame_output_allocation, lame_started, lame_temp, MIN, toolame_allocation, toolame_send_buffer(), and toolame_temp. |
|
|
Definition at line 45 of file filempeg.h. Referenced by open_file(). |
|
|
Definition at line 44 of file filempeg.h. Referenced by open_file(). |
|
|
Definition at line 117 of file filempeg.h. Referenced by append_acommand_line(), close_file(), and FileMPEGAudio::run(). |
|
|
Definition at line 115 of file filempeg.h. Referenced by close_file(), open_file(), and reset_parameters_derived(). |
|
|
Definition at line 84 of file filempeg.h. Referenced by can_copy_from(), close_file(), create_index(), get_index(), open_file(), read_frame(), read_samples(), read_samples_float(), reset_parameters_derived(), set_audio_position(), set_video_position(), and to_streamchannel(). |
|
|
Definition at line 130 of file filempeg.h. Referenced by reset_parameters_derived(), and write_samples(). |
|
|
Definition at line 133 of file filempeg.h. Referenced by close_file(), open_file(), reset_parameters_derived(), and write_samples(). |
|
|
Definition at line 137 of file filempeg.h. Referenced by close_file(), open_file(), reset_parameters_derived(), and write_samples(). |
|
|
Definition at line 131 of file filempeg.h. Referenced by close_file(), reset_parameters_derived(), and write_samples(). |
|
|
Definition at line 132 of file filempeg.h. Referenced by reset_parameters_derived(), and write_samples(). |
|
|
Definition at line 135 of file filempeg.h. Referenced by reset_parameters_derived(), and write_samples(). |
|
|
Definition at line 129 of file filempeg.h. Referenced by close_file(), reset_parameters_derived(), and write_samples(). |
|
|
Definition at line 107 of file filempeg.h. Referenced by open_file(). |
|
|
Definition at line 102 of file filempeg.h. Referenced by close_file(), reset_parameters_derived(), and FileMPEGVideo::run(). |
|
|
Definition at line 99 of file filempeg.h. Referenced by reset_parameters_derived(), FileMPEGVideo::run(), and write_frames(). |
|
|
Definition at line 98 of file filempeg.h. Referenced by close_file(), open_file(), reset_parameters_derived(), and FileMPEGVideo::run(). |
|
|
Definition at line 105 of file filempeg.h. Referenced by FileMPEGVideo::run(), and write_frames(). |
|
|
Definition at line 106 of file filempeg.h. Referenced by FileMPEGVideo::run(), and write_frames(). |
|
|
Definition at line 104 of file filempeg.h. Referenced by FileMPEGVideo::run(), and write_frames(). |
|
|
Definition at line 101 of file filempeg.h. Referenced by FileMPEG(), FileMPEGVideo::run(), write_frames(), and ~FileMPEG(). |
|
|
Definition at line 100 of file filempeg.h. Referenced by close_file(), FileMPEG(), FileMPEGVideo::run(), write_frames(), and ~FileMPEG(). |
|
|
Definition at line 122 of file filempeg.h. Referenced by close_file(), reset_parameters_derived(), and write_frames(). |
|
|
Definition at line 125 of file filempeg.h. Referenced by reset_parameters_derived(), and write_samples(). |
|
|
Definition at line 126 of file filempeg.h. Referenced by reset_parameters_derived(), and FileMPEGAudio::run(). |
|
|
Definition at line 124 of file filempeg.h. Referenced by close_file(), reset_parameters_derived(), and write_samples(). |
|
|
Definition at line 89 of file filempeg.h. Referenced by append_vcommand_line(), close_file(), and FileMPEGVideo::run(). |
|
|
Definition at line 87 of file filempeg.h. Referenced by close_file(), open_file(), reset_parameters_derived(), and write_frames(). |
|
|
Definition at line 103 of file filempeg.h. Referenced by reset_parameters_derived(), and FileMPEGVideo::run(). |
1.4.4