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

VFrame Class Reference

#include <vframe.h>

List of all members.

Public Member Functions

 VFrame (unsigned char *data, int w, int h, int color_model=BC_RGBA8888, long bytes_per_line=-1)
 VFrame (unsigned char *data, long y_offset, long u_offset, long v_offset, int w, int h, int color_model=BC_RGBA8888, long bytes_per_line=-1)
 VFrame (unsigned char *png_data)
 VFrame (const PngData &png_data)
 VFrame (VFrame &vframe)
 VFrame ()
 ~VFrame ()
int equivalent (VFrame *src)
int reallocate (unsigned char *data, long y_offset, long u_offset, long v_offset, int w, int h, int color_model, long bytes_per_line)
void set_memory (unsigned char *data, long y_offset, long u_offset, long v_offset)
void set_compressed_memory (unsigned char *data, int data_size, int data_allocated)
int read_png (unsigned char *data)
int read_png (const PngData &png_data)
int equals (VFrame *frame)
int params_match (int w, int h, int color_model)
long set_shm_offset (long offset)
long get_shm_offset ()
int copy_from (VFrame *frame)
int clear_frame ()
int allocate_compressed_data (long bytes)
long get_number ()
void set_number (long number)
long get_compressed_allocated ()
long get_compressed_size ()
long set_compressed_size (long size)
int get_color_model ()
unsigned char * get_data ()
unsigned char ** get_rows ()
unsigned char * get_y ()
unsigned char * get_u ()
unsigned char * get_v ()
int get_w ()
int get_h ()
int get_w_fixed ()
int get_h_fixed ()
int get_bytes_per_pixel ()
long get_bytes_per_line ()
long get_data_size ()
void rotate270 ()
void rotate90 ()
void flip_vert ()
int get_field2_offset ()
int set_field2_offset (int value)
void set_keyframe (int value)
int get_keyframe ()
void overlay (VFrame *src, int out_x1, int out_y1)

Static Public Member Functions

static int get_scale_tables (int *column_table, int *row_table, int in_x1, int in_y1, int in_x2, int in_y2, int out_x1, int out_y1, int out_x2, int out_y2)
static int calculate_bytes_per_pixel (int colormodel)
static long calculate_data_size (int w, int h, int bytes_per_line=-1, int color_model=BC_RGB888)

Private Member Functions

int clear_objects ()
int reset_parameters ()
void create_row_pointers ()
int allocate_data (unsigned char *data, long y_offset, long u_offset, long v_offset, int w, int h, int color_model, long bytes_per_line)

Private Attributes

int field2_offset
int shared
long shm_offset
long bytes_per_line
int bytes_per_pixel
unsigned char * data
unsigned char ** rows
int color_model
long compressed_allocated
long compressed_size
unsigned char * y
unsigned char * u
unsigned char * v
long y_offset
long u_offset
long v_offset
int w
int h
unsigned char * image
long image_offset
long image_size
long sequence_number
int is_keyframe

Friends

class PngReadFunction


Detailed Description

Definition at line 15 of file vframe.h.


Constructor & Destructor Documentation

VFrame::VFrame unsigned char *  data,
int  w,
int  h,
int  color_model = BC_RGBA8888,
long  bytes_per_line = -1
 

Definition at line 63 of file vframe.C.

VFrame::VFrame unsigned char *  data,
long  y_offset,
long  u_offset,
long  v_offset,
int  w,
int  h,
int  color_model = BC_RGBA8888,
long  bytes_per_line = -1
 

Definition at line 74 of file vframe.C.

VFrame::VFrame unsigned char *  png_data  ) 
 

Definition at line 37 of file vframe.C.

VFrame::VFrame const PngData png_data  ) 
 

Definition at line 46 of file vframe.C.

VFrame::VFrame VFrame vframe  ) 
 

Definition at line 55 of file vframe.C.

VFrame::VFrame  ) 
 

Definition at line 95 of file vframe.C.

VFrame::~VFrame  ) 
 

Definition at line 112 of file vframe.C.


Member Function Documentation

int VFrame::allocate_compressed_data long  bytes  ) 
 

Definition at line 384 of file vframe.C.

int VFrame::allocate_data unsigned char *  data,
long  y_offset,
long  u_offset,
long  v_offset,
int  w,
int  h,
int  color_model,
long  bytes_per_line
[private]
 

Definition at line 278 of file vframe.C.

int VFrame::calculate_bytes_per_pixel int  colormodel  )  [static]
 

Definition at line 217 of file vframe.C.

long VFrame::calculate_data_size int  w,
int  h,
int  bytes_per_line = -1,
int  color_model = BC_RGB888
[static]
 

Definition at line 233 of file vframe.C.

int VFrame::clear_frame  ) 
 

Definition at line 536 of file vframe.C.

int VFrame::clear_objects  )  [private]
 

Definition at line 167 of file vframe.C.

int VFrame::copy_from VFrame frame  ) 
 

Definition at line 647 of file vframe.C.

void VFrame::create_row_pointers  )  [private]
 

Definition at line 239 of file vframe.C.

int VFrame::equals VFrame frame  ) 
 

Definition at line 513 of file vframe.C.

int VFrame::equivalent VFrame src  ) 
 

Definition at line 118 of file vframe.C.

void VFrame::flip_vert  ) 
 

Definition at line 632 of file vframe.C.

long VFrame::get_bytes_per_line  ) 
 

Definition at line 222 of file vframe.C.

int VFrame::get_bytes_per_pixel  ) 
 

Definition at line 764 of file vframe.C.

int VFrame::get_color_model  ) 
 

Definition at line 507 of file vframe.C.

long VFrame::get_compressed_allocated  ) 
 

Definition at line 491 of file vframe.C.

long VFrame::get_compressed_size  ) 
 

Definition at line 496 of file vframe.C.

unsigned char * VFrame::get_data  ) 
 

Definition at line 486 of file vframe.C.

long VFrame::get_data_size  ) 
 

Definition at line 227 of file vframe.C.

int VFrame::get_field2_offset  ) 
 

Definition at line 195 of file vframe.C.

int VFrame::get_h  ) 
 

Definition at line 783 of file vframe.C.

int VFrame::get_h_fixed  ) 
 

Definition at line 793 of file vframe.C.

int VFrame::get_keyframe  ) 
 

Definition at line 211 of file vframe.C.

long VFrame::get_number  ) 
 

Definition at line 818 of file vframe.C.

unsigned char ** VFrame::get_rows  ) 
 

Definition at line 769 of file vframe.C.

int VFrame::get_scale_tables int *  column_table,
int *  row_table,
int  in_x1,
int  in_y1,
int  in_x2,
int  in_y2,
int  out_x1,
int  out_y1,
int  out_x2,
int  out_y2
[static]
 

Definition at line 739 of file vframe.C.

long VFrame::get_shm_offset  ) 
 

Definition at line 132 of file vframe.C.

unsigned char * VFrame::get_u  ) 
 

Definition at line 803 of file vframe.C.

unsigned char * VFrame::get_v  ) 
 

Definition at line 808 of file vframe.C.

int VFrame::get_w  ) 
 

Definition at line 778 of file vframe.C.

int VFrame::get_w_fixed  ) 
 

Definition at line 788 of file vframe.C.

unsigned char * VFrame::get_y  ) 
 

Definition at line 798 of file vframe.C.

void VFrame::overlay VFrame src,
int  out_x1,
int  out_y1
 

Definition at line 725 of file vframe.C.

int VFrame::params_match int  w,
int  h,
int  color_model
 

Definition at line 137 of file vframe.C.

int VFrame::read_png const PngData png_data  ) 
 

Definition at line 419 of file vframe.C.

int VFrame::read_png unsigned char *  data  ) 
 

Definition at line 408 of file vframe.C.

int VFrame::reallocate unsigned char *  data,
long  y_offset,
long  u_offset,
long  v_offset,
int  w,
int  h,
int  color_model,
long  bytes_per_line
 

Definition at line 362 of file vframe.C.

int VFrame::reset_parameters  )  [private]
 

Definition at line 145 of file vframe.C.

void VFrame::rotate270  ) 
 

Definition at line 601 of file vframe.C.

void VFrame::rotate90  ) 
 

Definition at line 570 of file vframe.C.

void VFrame::set_compressed_memory unsigned char *  data,
int  data_size,
int  data_allocated
 

Definition at line 349 of file vframe.C.

long VFrame::set_compressed_size long  size  ) 
 

Definition at line 501 of file vframe.C.

int VFrame::set_field2_offset int  value  ) 
 

Definition at line 200 of file vframe.C.

void VFrame::set_keyframe int  value  ) 
 

Definition at line 206 of file vframe.C.

void VFrame::set_memory unsigned char *  data,
long  y_offset,
long  u_offset,
long  v_offset
 

Definition at line 333 of file vframe.C.

void VFrame::set_number long  number  ) 
 

Definition at line 813 of file vframe.C.

long VFrame::set_shm_offset long  offset  ) 
 

Definition at line 126 of file vframe.C.


Friends And Related Function Documentation

friend class PngReadFunction [friend]
 

Definition at line 41 of file vframe.h.


Member Data Documentation

long VFrame::bytes_per_line [private]
 

Definition at line 154 of file vframe.h.

int VFrame::bytes_per_pixel [private]
 

Definition at line 155 of file vframe.h.

int VFrame::color_model [private]
 

Definition at line 161 of file vframe.h.

long VFrame::compressed_allocated [private]
 

Definition at line 163 of file vframe.h.

long VFrame::compressed_size [private]
 

Definition at line 165 of file vframe.h.

unsigned char* VFrame::data [private]
 

Definition at line 157 of file vframe.h.

int VFrame::field2_offset [private]
 

Definition at line 149 of file vframe.h.

int VFrame::h [private]
 

Definition at line 172 of file vframe.h.

unsigned char* VFrame::image [private]
 

Definition at line 174 of file vframe.h.

long VFrame::image_offset [private]
 

Definition at line 175 of file vframe.h.

long VFrame::image_size [private]
 

Definition at line 176 of file vframe.h.

int VFrame::is_keyframe [private]
 

Definition at line 179 of file vframe.h.

unsigned char** VFrame::rows [private]
 

Definition at line 159 of file vframe.h.

long VFrame::sequence_number [private]
 

Definition at line 178 of file vframe.h.

int VFrame::shared [private]
 

Definition at line 151 of file vframe.h.

long VFrame::shm_offset [private]
 

Definition at line 152 of file vframe.h.

unsigned char * VFrame::u [private]
 

Definition at line 167 of file vframe.h.

long VFrame::u_offset [private]
 

Definition at line 169 of file vframe.h.

unsigned char * VFrame::v [private]
 

Definition at line 167 of file vframe.h.

long VFrame::v_offset [private]
 

Definition at line 170 of file vframe.h.

int VFrame::w [private]
 

Definition at line 172 of file vframe.h.

unsigned char* VFrame::y [private]
 

Definition at line 167 of file vframe.h.

long VFrame::y_offset [private]
 

Definition at line 168 of file vframe.h.


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