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

FilePNG Class Reference

#include <filepng.h>

Inheritance diagram for FilePNG:

FileList FileBase List of all members.

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)

Public Attributes

int native_cmodel
VFrame * temp

Detailed Description

Definition at line 10 of file filepng.h.


Constructor & Destructor Documentation

FilePNG::FilePNG Asset asset,
File file
 

Definition at line 14 of file filepng.C.

FilePNG::~FilePNG  ) 
 

Definition at line 19 of file filepng.C.


Member Function Documentation

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

Reimplemented from FileBase.

Definition at line 74 of file filepng.C.

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

int FilePNG::check_sig Asset asset  )  [static]
 

Definition at line 25 of file filepng.C.

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

Referenced by File::open_file().

int FilePNG::colormodel_supported int  colormodel  )  [virtual]
 

Reimplemented from FileBase.

Definition at line 89 of file filepng.C.

References native_cmodel.

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

Definition at line 108 of file filepng.C.

References Asset::png_use_alpha.

Referenced by File::get_best_colormodel().

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

Definition at line 55 of file filepng.C.

References PNGConfigVideo::create_objects().

Referenced by File::get_options().

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

Reimplemented from FileList.

Definition at line 382 of file filepng.C.

int FilePNG::read_frame VFrame *  frame,
VFrame *  data
[virtual]
 

Reimplemented from FileList.

Definition at line 293 of file filepng.C.

References native_cmodel, and read_function().

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

Reimplemented from FileList.

Definition at line 119 of file filepng.C.

References FileBase::asset, fclose(), fopen(), Asset::height, Asset::interlace_mode, native_cmodel, and Asset::width.

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

Reimplemented from FileList.

Definition at line 215 of file filepng.C.

References FileBase::asset, flush_function(), Asset::height, native_cmodel, Asset::png_use_alpha, PNGUnit::temp_frame, Asset::width, and write_function().


Member Data Documentation

int FilePNG::native_cmodel
 

Definition at line 33 of file filepng.h.

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

VFrame* FilePNG::temp
 

Reimplemented from FileList.

Definition at line 35 of file filepng.h.


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