FilePNG Class Reference

#include <filepng.h>

Inherits FileList.

Collaboration diagram for FilePNG:

Collaboration graph
[legend]

Public Member Functions

 FilePNG (Asset *asset, File *file)
 ~FilePNG ()
int colormodel_supported (int colormodel)
int read_frame (VFrame *frame, VFrame *data)
int write_frame (VFrame *frame, VFrame *data, FrameWriterUnit *unit)
int can_copy_from (Edit *edit, int64_t position)
FrameWriterUnitnew_writer_unit (FrameWriter *writer)
int read_frame_header (char *path)

Static Public Member Functions

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

Data Fields

int native_cmodel
VFrametemp

Detailed Description

Definition at line 10 of file filepng.h.


Constructor & Destructor Documentation

FilePNG::FilePNG ( Asset asset,
File file 
)

Definition at line 15 of file filepng.C.

FilePNG::~FilePNG (  ) 

Definition at line 20 of file filepng.C.


Member Function Documentation

int FilePNG::check_sig ( Asset asset  )  [static]

Definition at line 26 of file filepng.C.

References fclose(), fopen(), fread(), and Asset::path.

Referenced by File::open_file().

Here is the call graph for this function:

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

Definition at line 56 of file filepng.C.

References PNGConfigVideo::create_objects(), BC_WindowBase::run_window(), and window.

Referenced by File::get_options().

Here is the call graph for this function:

int FilePNG::get_best_colormodel ( Asset asset,
int  driver 
) [static]

Definition at line 109 of file filepng.C.

References BC_RGB888, BC_RGBA8888, and Asset::png_use_alpha.

Referenced by File::get_best_colormodel().

int FilePNG::colormodel_supported ( int  colormodel  )  [virtual]

Reimplemented from FileBase.

Definition at line 90 of file filepng.C.

References BC_RGB161616, BC_RGB888, BC_RGBA16161616, BC_RGBA8888, and native_cmodel.

int FilePNG::read_frame ( VFrame frame,
VFrame data 
) [virtual]

int FilePNG::write_frame ( VFrame frame,
VFrame data,
FrameWriterUnit unit 
) [virtual]

int FilePNG::can_copy_from ( Edit edit,
int64_t  position 
) [virtual]

Reimplemented from FileBase.

Definition at line 75 of file filepng.C.

References Edit::asset, Asset::format, FileBase::match4(), QUICKTIME_PNG, and Asset::vcodec.

Here is the call graph for this function:

FrameWriterUnit * FilePNG::new_writer_unit ( FrameWriter writer  )  [virtual]

Reimplemented from FileList.

Definition at line 383 of file filepng.C.

int FilePNG::read_frame_header ( char *  path  )  [virtual]

Reimplemented from FileList.

Definition at line 120 of file filepng.C.

References FileBase::asset, BC_ILACE_MODE_NOTINTERLACED, BC_RGB161616, BC_RGB888, BC_RGBA16161616, BC_RGBA8888, eprintf, fclose(), fopen(), Asset::height, Asset::interlace_mode, native_cmodel, NULL, Asset::path, and Asset::width.

Here is the call graph for this function:


Field Documentation

Definition at line 33 of file filepng.h.

Referenced by colormodel_supported(), read_frame(), read_frame_header(), and write_frame().

Reimplemented from FileList.

Definition at line 35 of file filepng.h.


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:25:35 2008 for Cinelerra by  doxygen 1.5.5