ardour
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
VideoImageFrame Class Reference

a single video-frame to be displayed in the video timeline More...

#include <video_image_frame.h>

Inheritance diagram for VideoImageFrame:

Public Member Functions

 VideoImageFrame (PublicEditor &, ArdourCanvas::Container &, int, int, std::string, std::string)
 
virtual ~VideoImageFrame ()
 
void set_position (framepos_t)
 
void set_videoframe (framepos_t, int rightend=-1)
 
framepos_t get_video_frame_number ()
 
int get_height ()
 
int get_width ()
 
int get_rightend ()
 
framepos_t get_req_frame ()
 
std::string get_video_server_url ()
 
std::string get_video_filename ()
 
void http_download_done (char *)
 

Public Attributes

PBD::Signal0< void > ImgChanged
 

Protected Member Functions

void reposition ()
 
void exposeimg ()
 
void fill_frame (const uint8_t r, const uint8_t g, const uint8_t b)
 
void draw_line ()
 
void draw_x ()
 
void cut_rightend ()
 
void http_get (framepos_t fn)
 
void http_get_again (framepos_t fn)
 

Protected Attributes

PublicEditoreditor
 
ArdourCanvas::Container * _parent
 
ArdourCanvas::Image * image
 
boost::shared_ptr
< ArdourCanvas::Image::Data > 
img
 
int clip_width
 
int clip_height
 
int rightend
 
std::string video_server_url
 
std::string video_filename
 
double unit_position
 
framepos_t sample_position
 
framepos_t video_frame_number
 
framepos_t req_video_frame_number
 
framepos_t want_video_frame_number
 
bool queued_request
 
pthread_mutex_t request_lock
 
pthread_mutex_t queue_lock
 
pthread_t thread_id_tt
 
bool thread_active
 

Detailed Description

a single video-frame to be displayed in the video timeline

Definition at line 46 of file video_image_frame.h.

Constructor & Destructor Documentation

VideoImageFrame::VideoImageFrame ( PublicEditor ed,
ArdourCanvas::Container &  parent,
int  w,
int  h,
std::string  vsurl,
std::string  vfn 
)

Definition at line 45 of file video_image_frame.cc.

VideoImageFrame::~VideoImageFrame ( )
virtual

Definition at line 73 of file video_image_frame.cc.

Member Function Documentation

void VideoImageFrame::cut_rightend ( )
protected

Definition at line 174 of file video_image_frame.cc.

void VideoImageFrame::draw_line ( )
protected

Definition at line 122 of file video_image_frame.cc.

void VideoImageFrame::draw_x ( )
protected

Definition at line 155 of file video_image_frame.cc.

void VideoImageFrame::exposeimg ( )
protected

Definition at line 97 of file video_image_frame.cc.

void VideoImageFrame::fill_frame ( const uint8_t  r,
const uint8_t  g,
const uint8_t  b 
)
protected

Definition at line 137 of file video_image_frame.cc.

int VideoImageFrame::get_height ( )
inline

Definition at line 56 of file video_image_frame.h.

framepos_t VideoImageFrame::get_req_frame ( )
inline

Definition at line 59 of file video_image_frame.h.

int VideoImageFrame::get_rightend ( )
inline

Definition at line 58 of file video_image_frame.h.

std::string VideoImageFrame::get_video_filename ( )
inline

Definition at line 61 of file video_image_frame.h.

framepos_t VideoImageFrame::get_video_frame_number ( )
inline

Definition at line 54 of file video_image_frame.h.

std::string VideoImageFrame::get_video_server_url ( )
inline

Definition at line 60 of file video_image_frame.h.

int VideoImageFrame::get_width ( )
inline

Definition at line 57 of file video_image_frame.h.

void VideoImageFrame::http_download_done ( char *  data)

Definition at line 227 of file video_image_frame.cc.

void VideoImageFrame::http_get ( framepos_t  fn)
protected

Definition at line 263 of file video_image_frame.cc.

void VideoImageFrame::http_get_again ( framepos_t  fn)
protected

Definition at line 286 of file video_image_frame.cc.

void VideoImageFrame::reposition ( )
protected

Definition at line 91 of file video_image_frame.cc.

void VideoImageFrame::set_position ( framepos_t  sample)

Definition at line 82 of file video_image_frame.cc.

void VideoImageFrame::set_videoframe ( framepos_t  videoframenumber,
int  rightend = -1 
)

Definition at line 102 of file video_image_frame.cc.

Member Data Documentation

ArdourCanvas::Container* VideoImageFrame::_parent
protected

Definition at line 69 of file video_image_frame.h.

int VideoImageFrame::clip_height
protected

Definition at line 74 of file video_image_frame.h.

int VideoImageFrame::clip_width
protected

Definition at line 73 of file video_image_frame.h.

PublicEditor& VideoImageFrame::editor
protected

Definition at line 68 of file video_image_frame.h.

ArdourCanvas::Image* VideoImageFrame::image
protected

Definition at line 70 of file video_image_frame.h.

boost::shared_ptr<ArdourCanvas::Image::Data> VideoImageFrame::img
protected

Definition at line 71 of file video_image_frame.h.

PBD::Signal0<void> VideoImageFrame::ImgChanged

Definition at line 64 of file video_image_frame.h.

pthread_mutex_t VideoImageFrame::queue_lock
protected

Definition at line 101 of file video_image_frame.h.

bool VideoImageFrame::queued_request
protected

Definition at line 98 of file video_image_frame.h.

framepos_t VideoImageFrame::req_video_frame_number
protected

Definition at line 96 of file video_image_frame.h.

pthread_mutex_t VideoImageFrame::request_lock
protected

Definition at line 100 of file video_image_frame.h.

int VideoImageFrame::rightend
protected

Definition at line 75 of file video_image_frame.h.

framepos_t VideoImageFrame::sample_position
protected

Definition at line 81 of file video_image_frame.h.

bool VideoImageFrame::thread_active
protected

Definition at line 104 of file video_image_frame.h.

pthread_t VideoImageFrame::thread_id_tt
protected

Definition at line 103 of file video_image_frame.h.

double VideoImageFrame::unit_position
protected

Definition at line 80 of file video_image_frame.h.

std::string VideoImageFrame::video_filename
protected

Definition at line 78 of file video_image_frame.h.

framepos_t VideoImageFrame::video_frame_number
protected

Definition at line 82 of file video_image_frame.h.

std::string VideoImageFrame::video_server_url
protected

Definition at line 77 of file video_image_frame.h.

framepos_t VideoImageFrame::want_video_frame_number
protected

Definition at line 97 of file video_image_frame.h.


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