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

FileTIFF Class Reference

#include <filetiff.h>

Inheritance diagram for FileTIFF:

FileList FileBase List of all members.

Public Types

enum  {
  NONE, RGB_888, RGB_161616, RGBA_8888,
  RGBA_16161616, RGB_FLOAT, RGBA_FLOAT, GREYSCALE,
  LZW, PACK_BITS, DEFLATE, JPEG
}

Public Member Functions

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

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 char * compression_to_str (int value)
static char * cmodel_to_str (int value)

Public Attributes

Mutex * unit_lock

Detailed Description

Definition at line 14 of file filetiff.h.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
NONE 
RGB_888 
RGB_161616 
RGBA_8888 
RGBA_16161616 
RGB_FLOAT 
RGBA_FLOAT 
GREYSCALE 
LZW 
PACK_BITS 
DEFLATE 
JPEG 

Definition at line 36 of file filetiff.h.


Constructor & Destructor Documentation

FileTIFF::FileTIFF Asset asset,
File file
 

Definition at line 13 of file filetiff.C.

References FileList::temp, and Asset::video_data.

FileTIFF::~FileTIFF  ) 
 

Definition at line 20 of file filetiff.C.

References FileList::temp.


Member Function Documentation

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

Reimplemented from FileBase.

Definition at line 112 of file filetiff.C.

References Edit::asset, and Asset::format.

int FileTIFF::check_sig Asset asset  )  [static]
 

Definition at line 43 of file filetiff.C.

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

Referenced by File::open_file().

char * FileTIFF::cmodel_to_str int  value  )  [static]
 

Definition at line 94 of file filetiff.C.

References GREYSCALE, RGB_161616, RGB_888, RGB_FLOAT, RGBA_16161616, RGBA_8888, and RGBA_FLOAT.

int FileTIFF::colormodel_supported int  colormodel  )  [virtual]
 

Reimplemented from FileBase.

Definition at line 184 of file filetiff.C.

References FileBase::asset, GREYSCALE, RGB_161616, RGB_888, RGB_FLOAT, RGBA_16161616, RGBA_8888, RGBA_FLOAT, and Asset::tiff_cmodel.

char * FileTIFF::compression_to_str int  value  )  [static]
 

Definition at line 79 of file filetiff.C.

References DEFLATE, JPEG, LZW, NONE, and PACK_BITS.

int FileTIFF::get_best_colormodel Asset asset,
int  driver
 

Definition at line 199 of file filetiff.C.

References GREYSCALE, RGB_161616, RGB_888, RGB_FLOAT, RGBA_16161616, RGBA_8888, RGBA_FLOAT, and Asset::tiff_cmodel.

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

Definition at line 26 of file filetiff.C.

References TIFFConfigVideo::create_objects().

Referenced by File::get_options().

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

Reimplemented from FileList.

Definition at line 528 of file filetiff.C.

int FileTIFF::read_frame VFrame *  output,
VFrame *  input
[virtual]
 

Reimplemented from FileList.

Definition at line 284 of file filetiff.C.

References FileBase::asset, FileTIFFUnit::data, GREYSCALE, Asset::height, FileTIFFUnit::offset, RGB_161616, RGBA_16161616, tiff_close(), Asset::tiff_cmodel, tiff_mmap(), tiff_read(), tiff_seek(), tiff_size(), tiff_unmap(), and tiff_write().

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

Reimplemented from FileList.

Definition at line 123 of file filetiff.C.

References FileBase::asset, GREYSCALE, Asset::height, Asset::interlace_mode, Asset::path, RGB_161616, RGB_888, RGB_FLOAT, RGBA_16161616, RGBA_8888, RGBA_FLOAT, Asset::tiff_cmodel, and Asset::width.

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

Reimplemented from FileList.

Definition at line 359 of file filetiff.C.

References FileBase::asset, FileThread::color_model, FileTIFFUnit::data, DEFLATE, Asset::height, JPEG, LZW, FileTIFFUnit::offset, PACK_BITS, RGB_161616, RGB_888, RGB_FLOAT, RGBA_16161616, RGBA_8888, RGBA_FLOAT, tiff_close(), Asset::tiff_cmodel, Asset::tiff_compression, tiff_mmap(), tiff_read(), tiff_seek(), tiff_size(), tiff_unmap(), tiff_write(), and Asset::width.


Member Data Documentation

Mutex* FileTIFF::unit_lock
 

Definition at line 56 of file filetiff.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