VFrame Class Reference

#include <vframe.h>

Collaboration diagram for VFrame:

Collaboration graph
[legend]

Public Types

enum  { UNKNOWN, RAM, TEXTURE, SCREEN }

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 (VFrame &vframe)
 VFrame ()
 ~VFrame ()
int equivalent (VFrame *src, int test_stacks=0)
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 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 ()
int get_shared ()
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)
void to_texture ()
void to_ram ()
void screen_to_texture (int x=-1, int y=-1, int w=-1, int h=-1)
void draw_texture (float in_x1, float in_y1, float in_x2, float in_y2, float out_x1, float out_y1, float out_x2, float out_y2, int flip_y=0)
void draw_texture (int flip_y=0)
int get_opengl_state ()
void set_opengl_state (int value)
int get_texture_id ()
void set_texture_id (int id)
int get_window_id ()
int get_texture_w ()
int get_texture_h ()
int get_texture_components ()
void enable_opengl ()
void clear_pbuffer ()
BC_PBufferget_pbuffer ()
void bind_texture (int texture_unit=-1)
void init_screen ()
void push_prev_effect (char *name)
void pop_prev_effect ()
void push_next_effect (char *name)
void pop_next_effect ()
char * get_next_effect (int number=0)
char * get_prev_effect (int number=0)
BC_Hashget_params ()
int equal_stacks (VFrame *src)
void copy_stacks (VFrame *src)
void copy_params (VFrame *src)
void clear_stacks ()
void dump_stacks ()
void dump_params ()

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)
static void init_screen (int w, int h)
static unsigned int make_shader (int x,...)
static void dump_shader (int shader_id)

Private Member Functions

void create_pbuffer ()
int clear_objects (int do_opengl)
int reset_parameters (int do_opengl)
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
BC_Texturetexture
BC_PBufferpbuffer
int opengl_state
ArrayList< char * > prev_effects
ArrayList< char * > next_effects
BC_Hashparams

Friends

class PngReadFunction

Detailed Description

Definition at line 20 of file vframe.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
UNKNOWN 
RAM 
TEXTURE 
SCREEN 

Definition at line 192 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 57 of file vframe.C.

References allocate_data(), params, and reset_parameters().

Here is the call graph for this function:

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 68 of file vframe.C.

References allocate_data(), params, and reset_parameters().

Here is the call graph for this function:

VFrame::VFrame ( unsigned char *  png_data  ) 

Definition at line 41 of file vframe.C.

References params, read_png(), and reset_parameters().

Here is the call graph for this function:

VFrame::VFrame ( VFrame vframe  ) 

Definition at line 48 of file vframe.C.

References allocate_data(), bytes_per_line, color_model, copy_stacks(), data, h, memcpy, params, reset_parameters(), and w.

Here is the call graph for this function:

VFrame::VFrame (  ) 

Definition at line 89 of file vframe.C.

References BC_COMPRESSED, color_model, params, and reset_parameters().

Here is the call graph for this function:

VFrame::~VFrame (  ) 

Definition at line 106 of file vframe.C.

References clear_objects(), next_effects, params, prev_effects, and ArrayList< TYPE >::remove_all_objects().

Here is the call graph for this function:


Member Function Documentation

int VFrame::equivalent ( VFrame src,
int  test_stacks = 0 
)

Definition at line 115 of file vframe.C.

References bytes_per_line, equal_stacks(), get_color_model(), get_h(), and get_w().

Referenced by FrameCache::frame_exists(), and FieldFrame::process_buffer().

Here is the call graph for this function:

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 389 of file vframe.C.

References allocate_data(), clear_objects(), and reset_parameters().

Referenced by read_png().

Here is the call graph for this function:

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

Definition at line 360 of file vframe.C.

References create_row_pointers(), shared, u, v, and y.

Referenced by VDeviceX11::new_output_buffer().

Here is the call graph for this function:

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

Definition at line 376 of file vframe.C.

References clear_objects(), compressed_allocated, compressed_size, and shared.

Here is the call graph for this function:

int VFrame::read_png ( unsigned char *  data  ) 

Definition at line 436 of file vframe.C.

References BC_RGB888, BC_RGBA8888, get_h(), get_rows(), get_w(), h, image_offset, image_size, NULL, PngReadFunction::png_read_function(), reallocate(), and w.

Referenced by BC_Bitmap::BC_Bitmap(), and VFrame().

Here is the call graph for this function:

int VFrame::equals ( VFrame frame  ) 

Definition at line 533 of file vframe.C.

References data.

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

Definition at line 140 of file vframe.C.

Referenced by SvgMain::process_realtime(), File::read_frame(), and FileThread::run().

long VFrame::set_shm_offset ( long  offset  ) 

long VFrame::get_shm_offset (  ) 

Definition at line 130 of file vframe.C.

References shm_offset.

int VFrame::copy_from ( VFrame frame  ) 

Definition at line 666 of file vframe.C.

References allocate_compressed_data(), BC_COMPRESSED, BC_YUV420P, BC_YUV422P, calculate_data_size(), color_model, compressed_size, data, get_h(), get_u(), get_v(), get_w(), get_y(), h, memcpy, MIN, and w.

Referenced by Theme::build_button(), Theme::build_toggle(), VDeviceX11::close_all(), FadeEngine::do_fade(), ResourceThread::do_video(), PackageRenderer::do_video(), FrameCache::get_frame(), OverlayFrame::overlay(), ZoomBlurMain::process_buffer(), Reroute::process_buffer(), RadialBlurMain::process_buffer(), PerspectiveMain::process_buffer(), MotionMain::process_buffer(), LinearBlurMain::process_buffer(), InterpolatePixelsMain::process_buffer(), FreezeFrameMain::process_buffer(), Decimate::process_buffer(), ScaleMain::process_buffer(), MotionMain::process_global(), YUVEffect::process_realtime(), WhirlEffect::process_realtime(), WaveEffect::process_realtime(), VideoScopeEffect::process_realtime(), TranslateMain::process_realtime(), SharpenMain::process_realtime(), PolarEffect::process_realtime(), OilEffect::process_realtime(), MotionBlurMain::process_realtime(), IVTCMain::process_realtime(), DownSampleMain::process_realtime(), DelayVideo::process_realtime(), _1080to540Main::process_realtime(), MotionMain::process_rotation(), FileList::read_frame(), VAttachmentPoint::render(), RecordMonitorThread::render_uncompressed(), RotateFrame::rotate(), RecordVideo::run(), HoloMain::set_background(), and FileOGG::write_frames_theora().

Here is the call graph for this function:

int VFrame::clear_frame (  ) 

int VFrame::allocate_compressed_data ( long  bytes  ) 

long VFrame::get_number (  ) 

Definition at line 837 of file vframe.C.

References sequence_number.

Referenced by FileList::write_frames().

void VFrame::set_number ( long  number  ) 

Definition at line 832 of file vframe.C.

References sequence_number.

Referenced by PackageRenderer::do_video().

long VFrame::get_compressed_allocated (  ) 

long VFrame::get_compressed_size (  ) 

long VFrame::set_compressed_size ( long  size  ) 

int VFrame::get_color_model (  ) 

Definition at line 527 of file vframe.C.

References color_model.

Referenced by TimeAvgMain::add_accum(), SelTempAvgMain::add_accum(), HoloMain::add_frames(), FieldFrame::apply_field(), FrameField::average_rows(), BC_Pixmap::BC_Pixmap(), Decimate::calculate_difference(), BC_Capture::capture_frame(), clear_pbuffer(), VDeviceX11::close_all(), FFMPEG::convert_cmodel(), FFMPEG::convert_cmodel_transfer(), AssetPicon::create_objects(), RGB601Main::create_table(), DeInterlaceMain::deinterlace_avg(), DeInterlaceMain::deinterlace_avg_top(), DeInterlaceMain::deinterlace_bobweave(), DeInterlaceMain::deinterlace_swap(), DeInterlaceMain::deinterlace_temporalswap(), DeInterlaceMain::deinterlace_top(), CWindowCanvas::do_eyedrop(), Playback3D::do_fade_sync(), MaskUnit::do_feather(), MaskEngine::do_mask(), Playback3D::do_mask_sync(), DotClient::draw_dot(), Playback3D::draw_output(), MotionMain::draw_pixel(), EffectTV::effecttv_to_frame(), Playback3D::enable_overlay_texture(), FileYUV::ensure_temp(), equivalent(), FrameCache::frame_exists(), EffectTV::frame_to_effecttv(), VDeviceV4L::frame_to_vframe(), get_column(), get_row(), ThresholdMain::handle_opengl(), Overlay::handle_opengl(), DiffKey::handle_opengl(), EffectTV::image_bgset_y(), VModule::import_frame(), FFMPEG::init_picture_from_frame(), VRender::insert_timecode(), VDeviceX11::new_output_buffer(), VDeviceBUZ::new_output_buffer(), VDevice1394::new_output_buffer(), PluginVClient::new_temp(), overlay(), BC_Theme::overlay(), Theme::overlay(), OverlayFrame::overlay(), Playback3D::overlay_sync(), RotateEngine::perform_rotation(), BC_DragWindow::prepare_frame(), RGB601Main::process(), ZoomBlurMain::process_buffer(), TimeFrontMain::process_buffer(), RotateEffect::process_buffer(), Reroute::process_buffer(), PerspectiveMain::process_buffer(), MotionMain::process_buffer(), LiveVideo::process_buffer(), LinearBlurMain::process_buffer(), InvertVideoEffect::process_buffer(), InterpolateVideo::process_buffer(), InterpolatePixelsMain::process_buffer(), GradientMain::process_buffer(), FreezeFrameMain::process_buffer(), FrameField::process_buffer(), FlipMain::process_buffer(), FieldFrame::process_buffer(), DeInterlaceMain::process_buffer(), Decimate::process_buffer(), ScaleMain::process_buffer(), _720to480Main::process_loop(), ZoomBlurUnit::process_package(), WhirlUnit::process_package(), WaveUnit::process_package(), VideoScopeUnit::process_package(), UnsharpUnit::process_package(), TitleTranslateUnit::process_package(), ThresholdUnit::process_package(), RadialBlurUnit::process_package(), PolarUnit::process_package(), OilUnit::process_package(), MotionBlurUnit::process_package(), RotateScanUnit::process_package(), MotionScanUnit::process_package(), AffineUnit::process_package(), LinearBlurUnit::process_package(), IVTCUnit::process_package(), InterpolatePixelsUnit::process_package(), HueUnit::process_package(), HoloClient::process_package(), HistogramUnit::process_package(), GradientUnit::process_package(), GammaUnit::process_package(), DownSampleUnit::process_package(), DotClient::process_package(), DiffKeyClient::process_package(), ChromaKeyUnit::process_package(), BurnClient::process_package(), BrightnessUnit::process_package(), AgingClient::process_package(), BlendUnit::process_package(), ScaleTranslateUnit::process_package(), TranslateUnit::process_package(), ScaleUnit::process_package(), MaskUnit::process_package(), FadeUnit::process_package(), YUVEffect::process_realtime(), WipeMain::process_realtime(), WhirlEffect::process_realtime(), WaveEffect::process_realtime(), TranslateMain::process_realtime(), SwapMain::process_realtime(), SvgMain::process_realtime(), SlideMain::process_realtime(), ShapeWipeMain::process_realtime(), SharpenMain::process_realtime(), PolarEffect::process_realtime(), OilEffect::process_realtime(), MotionBlurMain::process_realtime(), IVTCMain::process_realtime(), IrisSquareMain::process_realtime(), HoloMain::process_realtime(), FlashMain::process_realtime(), DenoiseVideo::process_realtime(), BurnMain::process_realtime(), BandWipeMain::process_realtime(), BandSlideMain::process_realtime(), _1080to540Main::process_realtime(), put_column(), BC_Bitmap::read_frame(), FileYUV::read_frame(), FileThread::read_frame(), FilePNG::read_frame(), FileOGG::read_frame(), FileMPEG::read_frame(), FileMOV::read_frame(), FileList::read_frame(), FileJPEGList::read_frame(), FileJPEG::read_frame(), FileEXR::read_frame(), FileDV::read_frame(), FileCR2::read_frame(), FileAVI::read_frame(), File::read_frame(), FileMOV::read_raw(), FileTGA::read_tga(), _720to480Main::reduce_field(), _1080to540Main::reduce_field(), VAttachmentPoint::render(), RecVideoDVThread::render_frame(), RecVideoMJPGThread::render_frame(), RotateFrame::rotate_obliqueangle(), RotateFrame::rotate_rightangle(), SharpenEngine::run(), ColorBalanceEngine::run(), BlurEngine::run(), FileMOVThread::run(), screen_to_texture(), SetChannelsCanvas::SetChannelsCanvas(), ShiftInterlaceMain::shift_row(), TimeAvgMain::subtract_accum(), SelTempAvgMain::subtract_accum(), HistogramMain::tabulate_curve(), to_texture(), TimeAvgMain::transfer_accum(), SelTempAvgMain::transfer_accum(), VDeviceX11::write_buffer(), VDeviceLML::write_buffer(), VDeviceBUZ::write_buffer(), RecordMonitorThread::write_frame(), FileTIFF::write_frame(), FilePNG::write_frame(), FileJPEGList::write_frame(), FileJPEG::write_frame(), FileEXR::write_frame(), FileYUV::write_frames(), FileMPEG::write_frames(), FileMOV::write_frames(), FileDV::write_frames(), FileOGG::write_frames_theora(), and FileTGA::write_tga().

unsigned char * VFrame::get_data (  ) 

unsigned char ** VFrame::get_rows (  ) 

Definition at line 788 of file vframe.C.

References rows.

Referenced by FieldFrame::apply_field(), BC_Capture::capture_frame(), FFMPEG::convert_cmodel(), FFMPEG::convert_cmodel_transfer(), Playback3D::copy_from_sync(), PaletteWheel::create_objects(), AssetPicon::create_objects(), ResourceThread::do_video(), PaletteWheelValue::draw(), TitleUnit::draw_glyph(), VDeviceV4L::frame_to_vframe(), get_column(), BC_Theme::overlay(), Theme::overlay(), BC_DragWindow::prepare_frame(), PerspectiveMain::process_buffer(), LiveVideo::process_buffer(), FrameField::process_buffer(), ChromaKeyUnit::process_chromakey(), UnsharpUnit::process_package(), RotateScanUnit::process_package(), MotionScanUnit::process_package(), InterpolatePixelsUnit::process_package(), HoloClient::process_package(), DotClient::process_package(), BurnClient::process_package(), AgingClient::process_package(), BlendUnit::process_package(), ScaleTranslateUnit::process_package(), MaskUnit::process_package(), FadeUnit::process_package(), YUVEffect::process_realtime(), WhirlEffect::process_realtime(), WaveEffect::process_realtime(), VideoScopeEffect::process_realtime(), TranslateMain::process_realtime(), SvgMain::process_realtime(), SharpenMain::process_realtime(), PolarEffect::process_realtime(), OilEffect::process_realtime(), MotionBlurMain::process_realtime(), IVTCMain::process_realtime(), DownSampleMain::process_realtime(), BlurMain::process_realtime(), put_column(), BC_Bitmap::read_frame(), FileTIFF::read_frame(), FileThread::read_frame(), FilePNG::read_frame(), FileOGG::read_frame(), FileMPEG::read_frame(), FileMOV::read_frame(), FileList::read_frame(), FileJPEGList::read_frame(), FileJPEG::read_frame(), FileEXR::read_frame(), FileDV::read_frame(), FileCR2::read_frame(), File::read_frame(), read_png(), FileMOV::read_raw(), FileTGA::read_tga(), VideoScopeUnit::render_data(), ThresholdUnit::render_data(), RecVideoMJPGThread::render_frame(), FileMOVThread::run(), to_ram(), to_texture(), px_type< TYPE, COMPONENTS >::transfer(), VDeviceX11::write_buffer(), VDeviceBUZ::write_buffer(), FileTIFF::write_frame(), FilePNG::write_frame(), FileJPEGList::write_frame(), FileJPEG::write_frame(), FileEXR::write_frame(), FileMPEG::write_frames(), FileMOV::write_frames(), FileDV::write_frames(), FileOGG::write_frames_theora(), and FileTGA::write_tga().

unsigned char * VFrame::get_y (  ) 

unsigned char * VFrame::get_u (  ) 

unsigned char * VFrame::get_v (  ) 

int VFrame::get_w (  ) 

Definition at line 797 of file vframe.C.

References w.

Referenced by TimeAvgMain::add_accum(), SelTempAvgMain::add_accum(), PluginVClient::age_temp(), MotionMain::allocate_temp(), FieldFrame::apply_field(), BC_Bitmap::BC_Bitmap(), BC_Pixmap::BC_Pixmap(), BC_Resources::BC_Resources(), BlurEngine::BlurEngine(), Theme::build_button(), Theme::build_patches(), Theme::build_toggle(), Theme::build_transport(), HistogramMain::calculate_automatic(), Decimate::calculate_difference(), BC_ScrollBar::calculate_dimensions(), BC_Toggle::calculate_extents(), Decimate::calculate_fdct(), GammaMain::calculate_max(), ScaleMain::calculate_transfer(), BC_CancelButton::calculate_w(), BC_OKButton::calculate_w(), TipClose::calculate_w(), TipPrev::calculate_w(), TipNext::calculate_w(), PluginShow::calculate_w(), PluginOn::calculate_w(), BC_Capture::capture_frame(), VDeviceX11::close_all(), FFMPEG::convert_cmodel(), FFMPEG::convert_cmodel_transfer(), RotateEngine::coords_to_pixel(), copy_from(), Playback3D::copy_from_sync(), RotateEngine::create_matrix(), BC_FileBox::create_objects(), AssetPicon::create_objects(), AboutPrefs::create_objects(), create_pbuffer(), TrackCanvas::do_edits(), CWindowCanvas::do_eyedrop(), MaskEngine::do_mask(), Playback3D::do_mask_sync(), TrackCanvas::do_plugins(), ResourceThread::do_video(), BC_ListBox::drag_start_event(), BC_WindowBase::draw_3segmenth(), BC_WindowBase::draw_3segmentv(), BC_WindowBase::draw_9segment(), BC_ListBox::draw_background(), TitleUnit::draw_glyph(), TitleMain::draw_mask(), SUV::draw_mwindow_bg(), BlondTheme::draw_mwindow_bg(), BC_Pan::draw_popup(), BC_WindowBase::draw_text(), BC_ListBox::draw_text_recursive(), draw_texture(), TrackCanvas::draw_transitions(), MotionMain::draw_vectors(), BC_WindowBase::draw_vframe(), EffectTV::effecttv_to_frame(), FileYUV::ensure_temp(), equivalent(), FrameCache::frame_exists(), EffectTV::frame_to_effecttv(), VDeviceV4L::frame_to_vframe(), BC_ScrollBar::get_arrow_pixels(), BC_ListBox::get_cursor_item(), SUV::get_cwindow_sizes(), BlondTheme::get_cwindow_sizes(), BlueDotTheme::get_cwindow_sizes(), TrackCanvas::get_handle_coords(), BC_Meter::get_meter_w(), SUV::get_mwindow_sizes(), MicroTheme::get_mwindow_sizes(), BlondTheme::get_mwindow_sizes(), BlueDotTheme::get_mwindow_sizes(), MeterPanel::get_reset_x(), RotateFrame::get_rightdimensions(), BC_ListBox::get_scrollbars(), BC_WindowBase::get_single_text_width(), BC_Slider::get_span(), BC_ScrollBar::get_span(), PlayTransport::get_transport_width(), BC_ListBox::get_xscroll_width(), BC_ListBox::get_yscroll_x(), ZoomBlurMain::handle_opengl(), RotateEffect::handle_opengl(), RadialBlurMain::handle_opengl(), LinearBlurMain::handle_opengl(), GradientMain::handle_opengl(), TitleTranslate::init_packages(), FFMPEG::init_picture_from_frame(), init_screen(), SUV::initialize(), BlondTheme::initialize(), BC_Slider::initialize(), BC_Pot::initialize(), VRender::insert_timecode(), PluginVClient::new_temp(), BC_Theme::overlay(), VDeviceX11::overlay(), Theme::overlay(), OverlayFrame::overlay(), Playback3D::overlay_sync(), RotateEngine::perform_rotation(), BC_DragWindow::prepare_frame(), RGB601Main::process(), AffineEngine::process(), ZoomBlurMain::process_buffer(), TimeFrontMain::process_buffer(), RotateEffect::process_buffer(), PerspectiveMain::process_buffer(), Overlay::process_buffer(), MotionMain::process_buffer(), LiveVideo::process_buffer(), LinearBlurMain::process_buffer(), InvertVideoEffect::process_buffer(), InterpolateVideo::process_buffer(), InterpolatePixelsMain::process_buffer(), GradientMain::process_buffer(), FreezeFrameMain::process_buffer(), FrameField::process_buffer(), FlipMain::process_buffer(), FieldFrame::process_buffer(), DeInterlaceMain::process_buffer(), Decimate::process_buffer(), VirtualVConsole::process_buffer(), ScaleMain::process_buffer(), ChromaKeyUnit::process_chromakey(), MotionMain::process_global(), _720to480Main::process_loop(), ZoomBlurUnit::process_package(), WhirlUnit::process_package(), WaveUnit::process_package(), UnsharpUnit::process_package(), TimeFrontUnit::process_package(), RadialBlurUnit::process_package(), PolarUnit::process_package(), OilUnit::process_package(), MotionBlurUnit::process_package(), RotateScanUnit::process_package(), MotionScanUnit::process_package(), AffineUnit::process_package(), LinearBlurUnit::process_package(), IVTCUnit::process_package(), InterpolatePixelsUnit::process_package(), HueUnit::process_package(), HoloClient::process_package(), HistogramUnit::process_package(), GradientUnit::process_package(), GammaUnit::process_package(), DownSampleUnit::process_package(), DotClient::process_package(), DiffKeyClient::process_package(), ChromaKeyUnit::process_package(), BurnClient::process_package(), AgingClient::process_package(), BlendUnit::process_package(), TranslateUnit::process_package(), MaskUnit::process_package(), FadeUnit::process_package(), YUVEffect::process_realtime(), WipeMain::process_realtime(), WhirlEffect::process_realtime(), WaveEffect::process_realtime(), TranslateMain::process_realtime(), SwapMain::process_realtime(), SvgMain::process_realtime(), SlideMain::process_realtime(), ShapeWipeMain::process_realtime(), PolarEffect::process_realtime(), OilEffect::process_realtime(), MotionBlurMain::process_realtime(), IVTCMain::process_realtime(), IrisSquareMain::process_realtime(), HoloMain::process_realtime(), FlashMain::process_realtime(), DenoiseVideo::process_realtime(), BurnMain::process_realtime(), BlurMain::process_realtime(), BandWipeMain::process_realtime(), BandSlideMain::process_realtime(), _1080to540Main::process_realtime(), MotionMain::process_rotation(), BC_Bitmap::read_frame(), FileYUV::read_frame(), FileTIFF::read_frame(), FileThread::read_frame(), FileOGG::read_frame(), FileMPEG::read_frame(), FileList::read_frame(), FileEXR::read_frame(), File::read_frame(), read_png(), FileTGA::read_tga(), DotMain::reconfigure(), DelayVideo::reconfigure(), _720to480Main::reduce_field(), _1080to540Main::reduce_field(), BC_Meter::region_pixel(), BC_Meter::region_pixels(), VAttachmentPoint::render(), VideoScopeUnit::render_data(), ThresholdUnit::render_data(), PatchGUI::reposition(), AffineEngine::rotate(), RotateFrame::rotate_obliqueangle(), RotateFrame::rotate_rightangle(), BlurEngine::run(), RotateScan::scan_frame(), MotionScan::scan_frame(), screen_to_texture(), BC_ListBox::select_rectangle(), SetChannelsCanvas::SetChannelsCanvas(), ShiftInterlaceMain::shift_row(), MWindow::show_splash(), TimeAvgMain::subtract_accum(), SelTempAvgMain::subtract_accum(), to_ram(), to_texture(), px_type< TYPE, COMPONENTS >::transfer(), TimeAvgMain::transfer_accum(), SelTempAvgMain::transfer_accum(), LabelGUI::translate_pixel(), PatchGUI::update(), VDeviceX11::write_buffer(), FileTIFF::write_frame(), FileEXR::write_frame(), FileYUV::write_frames(), FileMPEG::write_frames(), FileOGG::write_frames_theora(), and FileTGA::write_tga().

int VFrame::get_h (  ) 

Definition at line 802 of file vframe.C.

References h.

Referenced by TimeAvgMain::add_accum(), SelTempAvgMain::add_accum(), PluginVClient::age_temp(), MotionMain::allocate_temp(), FieldFrame::apply_field(), BC_Bitmap::BC_Bitmap(), BC_FileBox::BC_FileBox(), BC_Pixmap::BC_Pixmap(), BC_Resources::BC_Resources(), BlurEngine::BlurEngine(), Theme::build_button(), Theme::build_patches(), Theme::build_toggle(), Theme::build_transport(), HistogramMain::calculate_automatic(), Decimate::calculate_difference(), BC_ScrollBar::calculate_dimensions(), BC_Toggle::calculate_extents(), Decimate::calculate_fdct(), BC_Pot::calculate_h(), BC_PopupMenu::calculate_h(), BC_GenericButton::calculate_h(), BC_CancelButton::calculate_h(), BC_OKButton::calculate_h(), TipClose::calculate_h(), BC_MenuBar::calculate_height(), GammaMain::calculate_max(), ScaleMain::calculate_transfer(), TrackCanvas::calculate_viewport(), BC_Capture::capture_frame(), VDeviceX11::close_all(), FFMPEG::convert_cmodel(), FFMPEG::convert_cmodel_transfer(), RotateEngine::coords_to_pixel(), copy_from(), Playback3D::copy_from_sync(), RotateEngine::create_matrix(), BC_FileBox::create_objects(), ZoomBar::create_objects(), AssetPicon::create_objects(), create_pbuffer(), Playback3D::do_camera_sync(), TrackCanvas::do_edits(), CWindowCanvas::do_eyedrop(), MaskEngine::do_mask(), Playback3D::do_mask_sync(), TrackCanvas::do_plugin_autos(), TrackCanvas::do_plugins(), ResourceThread::do_video(), BC_ListBox::drag_start_event(), BC_WindowBase::draw_3segmenth(), BC_WindowBase::draw_3segmentv(), BC_WindowBase::draw_9segment(), ResourcePixmap::draw_audio_source(), ResourcePixmap::draw_data(), TitleUnit::draw_glyph(), IndexFile::draw_index(), TitleMain::draw_mask(), BC_WindowBase::draw_text(), draw_texture(), TrackCanvas::draw_transitions(), MotionMain::draw_vectors(), BC_WindowBase::draw_vframe(), ResourcePixmap::draw_video_resource(), ResourcePixmap::draw_wave(), TrackCanvas::edit_dimensions(), EffectTV::effecttv_to_frame(), FileYUV::ensure_temp(), equivalent(), FrameCache::frame_exists(), EffectTV::frame_to_effecttv(), VDeviceV4L::frame_to_vframe(), BC_ScrollBar::get_arrow_pixels(), get_column(), SUV::get_cwindow_sizes(), MicroTheme::get_cwindow_sizes(), BlondTheme::get_cwindow_sizes(), BlueDotTheme::get_cwindow_sizes(), TrackCanvas::get_handle_coords(), SUV::get_mwindow_sizes(), MicroTheme::get_mwindow_sizes(), BlondTheme::get_mwindow_sizes(), BlueDotTheme::get_mwindow_sizes(), TrackCanvas::get_pixmap_size(), MeterPanel::get_reset_y(), RotateFrame::get_rightdimensions(), BC_ListBox::get_scrollbars(), BC_Slider::get_span(), BC_ScrollBar::get_span(), BC_WindowBase::get_text_ascent(), TrackCanvas::get_transition_coords(), SUV::get_vwindow_sizes(), MicroTheme::get_vwindow_sizes(), BlondTheme::get_vwindow_sizes(), BlueDotTheme::get_vwindow_sizes(), BC_ListBox::get_xscroll_y(), OutPointGUI::get_y(), InPointGUI::get_y(), LabelGUI::get_y(), BC_ListBox::get_yscroll_height(), RotateEffect::handle_opengl(), RadialBlurMain::handle_opengl(), LinearBlurMain::handle_opengl(), GradientMain::handle_opengl(), ZoomBlurEngine::init_packages(), WhirlEngine::init_packages(), WaveServer::init_packages(), VideoScopeEngine::init_packages(), UnsharpEngine::init_packages(), TitleTranslate::init_packages(), TimeFrontServer::init_packages(), ThresholdEngine::init_packages(), RadialBlurEngine::init_packages(), PolarEngine::init_packages(), OilServer::init_packages(), MotionBlurEngine::init_packages(), LinearBlurEngine::init_packages(), IVTCEngine::init_packages(), InterpolatePixelsEngine::init_packages(), HueEngine::init_packages(), HoloServer::init_packages(), HistogramEngine::init_packages(), GradientServer::init_packages(), GammaEngine::init_packages(), DownSampleServer::init_packages(), DotServer::init_packages(), DiffKeyEngine::init_packages(), ChromaKeyServer::init_packages(), BurnServer::init_packages(), BrightnessEngine::init_packages(), BlurZoomServer::init_packages(), AgingServer::init_packages(), BlendEngine::init_packages(), TranslateEngine::init_packages(), MaskEngine::init_packages(), FadeEngine::init_packages(), FFMPEG::init_picture_from_frame(), init_screen(), SUV::initialize(), MicroTheme::initialize(), BlondTheme::initialize(), BC_Slider::initialize(), BC_Pot::initialize(), VRender::insert_timecode(), PluginVClient::new_temp(), BC_Theme::overlay(), VDeviceX11::overlay(), Theme::overlay(), OverlayFrame::overlay(), Playback3D::overlay_sync(), RotateEngine::perform_rotation(), TrackCanvas::plugin_dimensions(), BC_DragWindow::prepare_frame(), RGB601Main::process(), AffineEngine::process(), ZoomBlurMain::process_buffer(), TimeFrontMain::process_buffer(), RotateEffect::process_buffer(), PerspectiveMain::process_buffer(), Overlay::process_buffer(), MotionMain::process_buffer(), LiveVideo::process_buffer(), LinearBlurMain::process_buffer(), InterpolateVideo::process_buffer(), InterpolatePixelsMain::process_buffer(), GradientMain::process_buffer(), FreezeFrameMain::process_buffer(), FrameField::process_buffer(), FlipMain::process_buffer(), FieldFrame::process_buffer(), DeInterlaceMain::process_buffer(), Decimate::process_buffer(), VirtualVConsole::process_buffer(), ScaleMain::process_buffer(), MotionMain::process_global(), _720to480Main::process_loop(), ZoomBlurUnit::process_package(), WhirlUnit::process_package(), WaveUnit::process_package(), UnsharpUnit::process_package(), TimeFrontUnit::process_package(), RadialBlurUnit::process_package(), PolarUnit::process_package(), OilUnit::process_package(), MotionBlurUnit::process_package(), RotateScanUnit::process_package(), MotionScanUnit::process_package(), AffineUnit::process_package(), LinearBlurUnit::process_package(), IVTCUnit::process_package(), InterpolatePixelsUnit::process_package(), HistogramUnit::process_package(), GradientUnit::process_package(), DownSampleUnit::process_package(), BlendUnit::process_package(), TranslateUnit::process_package(), MaskUnit::process_package(), WipeMain::process_realtime(), WhirlEffect::process_realtime(), WaveEffect::process_realtime(), TranslateMain::process_realtime(), SwapMain::process_realtime(), SvgMain::process_realtime(), SlideMain::process_realtime(), ShiftInterlaceMain::process_realtime(), ShapeWipeMain::process_realtime(), PolarEffect::process_realtime(), OilEffect::process_realtime(), MotionBlurMain::process_realtime(), IVTCMain::process_realtime(), IrisSquareMain::process_realtime(), HoloMain::process_realtime(), FlashMain::process_realtime(), DenoiseVideo::process_realtime(), BurnMain::process_realtime(), BlurMain::process_realtime(), BandWipeMain::process_realtime(), BandSlideMain::process_realtime(), _1080to540Main::process_realtime(), MotionMain::process_rotation(), put_column(), BC_Bitmap::read_frame(), FileYUV::read_frame(), FileThread::read_frame(), File::read_frame(), read_png(), FileTGA::read_tga(), DotMain::reconfigure(), DelayVideo::reconfigure(), _720to480Main::reduce_field(), _1080to540Main::reduce_field(), VAttachmentPoint::render(), VideoScopeUnit::render_data(), ThresholdUnit::render_data(), AffineEngine::rotate(), RotateFrame::rotate_obliqueangle(), RotateFrame::rotate_rightangle(), BlurEngine::run(), RotateScan::scan_frame(), MotionScan::scan_frame(), screen_to_texture(), SetChannelsCanvas::SetChannelsCanvas(), MWindow::show_splash(), TimeAvgMain::subtract_accum(), SelTempAvgMain::subtract_accum(), to_ram(), to_texture(), px_type< TYPE, COMPONENTS >::transfer(), TimeAvgMain::transfer_accum(), SelTempAvgMain::transfer_accum(), Track::vertical_span(), VDeviceX11::write_buffer(), FileTIFF::write_frame(), FileEXR::write_frame(), FileYUV::write_frames(), FileMPEG::write_frames(), FileOGG::write_frames_theora(), and FileTGA::write_tga().

int VFrame::get_w_fixed (  ) 

Definition at line 807 of file vframe.C.

References w.

Referenced by BC_WindowBase::draw_3segment().

int VFrame::get_h_fixed (  ) 

Definition at line 812 of file vframe.C.

References h.

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 758 of file vframe.C.

int VFrame::get_bytes_per_pixel (  ) 

Definition at line 783 of file vframe.C.

References bytes_per_pixel.

Referenced by DotClient::process_package(), and BurnClient::process_package().

long VFrame::get_bytes_per_line (  ) 

int VFrame::get_shared (  ) 

Definition at line 135 of file vframe.C.

References shared.

int VFrame::calculate_bytes_per_pixel ( int  colormodel  )  [static]

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

Definition at line 259 of file vframe.C.

References cmodel_calculate_datasize().

Referenced by allocate_data(), copy_from(), VDeviceV4L::frame_to_vframe(), get_data_size(), FileAVI::read_frame(), rotate270(), rotate90(), and FileThread::start_writing().

Here is the call graph for this function:

long VFrame::get_data_size (  ) 

void VFrame::rotate270 (  ) 

Definition at line 621 of file vframe.C.

References bytes_per_line, bytes_per_pixel, calculate_data_size(), clear_objects(), color_model, data, h, rows, and w.

Here is the call graph for this function:

void VFrame::rotate90 (  ) 

Definition at line 590 of file vframe.C.

References bytes_per_line, bytes_per_pixel, calculate_data_size(), clear_objects(), color_model, data, h, rows, and w.

Here is the call graph for this function:

void VFrame::flip_vert (  ) 

Definition at line 652 of file vframe.C.

References bytes_per_line, h, memcpy, and rows.

Referenced by Playback3D::copy_from_sync(), and to_ram().

int VFrame::get_field2_offset (  ) 

int VFrame::set_field2_offset ( int  value  ) 

Definition at line 226 of file vframe.C.

References field2_offset.

Referenced by RecordVideo::read_buffer(), and RecordMonitorThread::write_frame().

void VFrame::set_keyframe ( int  value  ) 

Definition at line 232 of file vframe.C.

References is_keyframe.

Referenced by FileMOV::read_compressed_frame(), and FileMOV::read_frame().

int VFrame::get_keyframe (  ) 

Definition at line 237 of file vframe.C.

References is_keyframe.

Referenced by FileMOV::write_frames().

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

Definition at line 744 of file vframe.C.

References BC_RGBA8888, get_color_model(), and OVERLAY.

Here is the call graph for this function:

void VFrame::to_texture (  ) 

void VFrame::to_ram (  ) 

Definition at line 168 of file vframe3d.C.

References enable_opengl(), flip_vert(), get_h(), get_rows(), get_w(), opengl_state, pbuffer, RAM, and SCREEN.

Here is the call graph for this function:

void VFrame::screen_to_texture ( int  x = -1,
int  y = -1,
int  w = -1,
int  h = -1 
)

void VFrame::draw_texture ( float  in_x1,
float  in_y1,
float  in_x2,
float  in_y2,
float  out_x1,
float  out_y1,
float  out_x2,
float  out_y2,
int  flip_y = 0 
)

void VFrame::draw_texture ( int  flip_y = 0  ) 

Definition at line 301 of file vframe3d.C.

References draw_texture(), get_h(), and get_w().

Here is the call graph for this function:

int VFrame::get_opengl_state (  ) 

void VFrame::set_opengl_state ( int  value  ) 

int VFrame::get_texture_id (  ) 

Definition at line 40 of file vframe3d.C.

References texture, and BC_Texture::texture_id.

Referenced by Playback3D::draw_output().

void VFrame::set_texture_id ( int  id  ) 

int VFrame::get_window_id (  ) 

Definition at line 35 of file vframe3d.C.

References texture, and BC_Texture::window_id.

int VFrame::get_texture_w (  ) 

int VFrame::get_texture_h (  ) 

int VFrame::get_texture_components (  ) 

Definition at line 56 of file vframe3d.C.

References texture, and BC_Texture::texture_components.

Referenced by Playback3D::overlay_sync().

void VFrame::enable_opengl (  ) 

void VFrame::clear_pbuffer (  ) 

BC_PBuffer * VFrame::get_pbuffer (  ) 

Definition at line 230 of file vframe3d.C.

References pbuffer.

void VFrame::bind_texture ( int  texture_unit = -1  ) 

void VFrame::init_screen ( int  w,
int  h 
) [static]

void VFrame::init_screen (  ) 

unsigned int VFrame::make_shader ( int  x,
  ... 
) [static]

void VFrame::dump_shader ( int  shader_id  )  [static]

Definition at line 538 of file vframe3d.C.

References BC_Synchronous::dump_shader(), and BC_WindowBase::get_synchronous().

Here is the call graph for this function:

void VFrame::push_prev_effect ( char *  name  ) 

Definition at line 842 of file vframe.C.

References ArrayList< TYPE >::append(), MAX_STACK_ELEMENTS, prev_effects, ArrayList< TYPE >::remove_object(), and ArrayList< TYPE >::total.

Referenced by VirtualVNode::render_as_module().

Here is the call graph for this function:

void VFrame::pop_prev_effect (  ) 

Definition at line 850 of file vframe.C.

References ArrayList< TYPE >::last(), prev_effects, ArrayList< TYPE >::remove_object(), and ArrayList< TYPE >::total.

Here is the call graph for this function:

void VFrame::push_next_effect ( char *  name  ) 

void VFrame::pop_next_effect (  ) 

Definition at line 864 of file vframe.C.

References ArrayList< TYPE >::last(), next_effects, ArrayList< TYPE >::remove_object(), and ArrayList< TYPE >::total.

Referenced by PluginServer::read_frame(), and VirtualVNode::render_as_module().

Here is the call graph for this function:

char * VFrame::get_next_effect ( int  number = 0  ) 

Definition at line 870 of file vframe.C.

References next_effects, ArrayList< TYPE >::total, and ArrayList< TYPE >::values.

char * VFrame::get_prev_effect ( int  number = 0  ) 

Definition at line 879 of file vframe.C.

References prev_effects, ArrayList< TYPE >::total, and ArrayList< TYPE >::values.

BC_Hash * VFrame::get_params (  ) 

int VFrame::equal_stacks ( VFrame src  ) 

Definition at line 926 of file vframe.C.

References BC_Hash::equivalent(), next_effects, params, prev_effects, ArrayList< TYPE >::total, and ArrayList< TYPE >::values.

Referenced by equivalent(), and FileThread::read_frame().

Here is the call graph for this function:

void VFrame::copy_stacks ( VFrame src  ) 

void VFrame::copy_params ( VFrame src  ) 

Definition at line 901 of file vframe.C.

References BC_Hash::copy_from(), and params.

Referenced by FileThread::read_frame().

Here is the call graph for this function:

void VFrame::clear_stacks (  ) 

Definition at line 893 of file vframe.C.

References next_effects, params, prev_effects, and ArrayList< TYPE >::remove_all_objects().

Referenced by copy_stacks(), and VirtualVConsole::process_buffer().

Here is the call graph for this function:

void VFrame::dump_stacks (  ) 

void VFrame::dump_params (  ) 

Definition at line 951 of file vframe.C.

References BC_Hash::dump(), and params.

Here is the call graph for this function:

void VFrame::create_pbuffer (  )  [private]

Definition at line 195 of file vframe3d.C.

References BC_Synchronous::current_window, get_h(), BC_WindowBase::get_id(), BC_WindowBase::get_synchronous(), get_w(), pbuffer, SET_TRACE, and BC_PBuffer::window_id.

Referenced by enable_opengl().

Here is the call graph for this function:

int VFrame::clear_objects ( int  do_opengl  )  [private]

int VFrame::reset_parameters ( int  do_opengl  )  [private]

void VFrame::create_row_pointers (  )  [private]

Definition at line 265 of file vframe.C.

References BC_YUV411P, BC_YUV420P, BC_YUV422P, bytes_per_line, color_model, data, h, rows, u, u_offset, v, v_offset, w, y, and y_offset.

Referenced by allocate_data(), and set_memory().

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 304 of file vframe.C.

References bytes_per_pixel, calculate_bytes_per_pixel(), calculate_data_size(), create_row_pointers(), and shared.

Referenced by reallocate(), and VFrame().

Here is the call graph for this function:


Friends And Related Function Documentation

friend class PngReadFunction [friend]

Definition at line 45 of file vframe.h.


Field Documentation

int VFrame::field2_offset [private]

Definition at line 311 of file vframe.h.

Referenced by get_field2_offset(), reset_parameters(), and set_field2_offset().

int VFrame::shared [private]

long VFrame::shm_offset [private]

Definition at line 314 of file vframe.h.

Referenced by get_shm_offset(), reset_parameters(), and set_shm_offset().

long VFrame::bytes_per_line [private]

int VFrame::bytes_per_pixel [private]

Definition at line 317 of file vframe.h.

Referenced by allocate_data(), get_bytes_per_pixel(), rotate270(), and rotate90().

unsigned char* VFrame::data [private]

unsigned char** VFrame::rows [private]

int VFrame::color_model [private]

long VFrame::compressed_size [private]

unsigned char* VFrame::y [private]

Definition at line 329 of file vframe.h.

Referenced by create_row_pointers(), get_y(), reset_parameters(), and set_memory().

unsigned char * VFrame::u [private]

Definition at line 329 of file vframe.h.

Referenced by create_row_pointers(), get_u(), reset_parameters(), and set_memory().

unsigned char * VFrame::v [private]

Definition at line 329 of file vframe.h.

Referenced by create_row_pointers(), get_v(), reset_parameters(), and set_memory().

long VFrame::y_offset [private]

Definition at line 330 of file vframe.h.

Referenced by create_row_pointers(), and reset_parameters().

long VFrame::u_offset [private]

Definition at line 331 of file vframe.h.

Referenced by create_row_pointers(), and reset_parameters().

long VFrame::v_offset [private]

Definition at line 332 of file vframe.h.

Referenced by create_row_pointers(), and reset_parameters().

int VFrame::w [private]

int VFrame::h [private]

unsigned char* VFrame::image [private]

Definition at line 336 of file vframe.h.

Referenced by PngReadFunction::png_read_function().

long VFrame::image_offset [private]

Definition at line 337 of file vframe.h.

Referenced by PngReadFunction::png_read_function(), and read_png().

long VFrame::image_size [private]

Definition at line 338 of file vframe.h.

Referenced by PngReadFunction::png_read_function(), and read_png().

long VFrame::sequence_number [private]

Definition at line 340 of file vframe.h.

Referenced by get_number(), reset_parameters(), and set_number().

int VFrame::is_keyframe [private]

Definition at line 343 of file vframe.h.

Referenced by get_keyframe(), reset_parameters(), and set_keyframe().

int VFrame::opengl_state [private]

Definition at line 350 of file vframe.h.

Referenced by get_opengl_state(), reset_parameters(), set_opengl_state(), to_ram(), and to_texture().

ArrayList<char*> VFrame::prev_effects [private]

ArrayList<char*> VFrame::next_effects [private]

BC_Hash* VFrame::params [private]


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

Generated on Mon Apr 28 14:48:51 2008 for Cinelerra by  doxygen 1.5.5