extern C class MPEG : public ColorVideo

Class MPEG provides an interface between tracking and MPEG files, allowing users to use MPEG sequences as a source of video sequences

Inheritance:


Public Methods

int auto_step(int bval)
Set auto_step_mode, which forces forwarding of the sequence after bval number of calls to grab
void circle(float x, float y, int r, int color = 1)
void clearcircle(float x, float y, int r)
void clearcubic(float x, float y, int length, float angle, float a, float b, float c)
void clearline(float x, float y, int length, float angle, int samp = 1)
void close()
void cubic(float x, float y, int length, float angle, float a, float b, float c, int color = 1)
virtual void* current_frame_ptr()
char* device_info()
int forward()
This loads an image and forces the sequence forward by one step
virtual int grab_static(int *im, int x, int y, int width, int height, float angle = 0.0, int sampw = 1, int samph = 1, short int mask = 0xff)
Grab an image, but do not forward the sequence (i
void line(float x, float y, int length, float angle, int color = 1, int samp = 1)
MPEG(char *fname)
void point(int x, int y, Color color = 1, int size=1)
virtual int pre_grab()
int show(int x, int y, int width, int height, int* image)
~MPEG()

Protected Methods

void construct_name(char *buff)
Protected function that constructs file names
int map_color(Color colin)

Private Fields

int auto_step_mode
* cb_values
XConsole con
* cr_values
int frame_count
ImageDesc img_info
int* lum_values
FILE* mpeg_file
char* name
Image vimage
XWindow* win

Inherited from ColorVideo:

Public Methods

virtual void set_grab_type(Device_output_type ot)

Inherited from Video:

Public Methods

virtual int bytesperpixel()
virtual void clearline2(float x1, float y1, float x2, float y2)
virtual void* direct_memptr()
virtual int grab(int *image, int x, int y, int width, int height, float angle = 0.0, int sampw =1, int samph =1, short int mask = 0xff)
virtual int grab(Image &image, int x, int y, float angle = 0.0, int sampw =1, int samph =1, short int mask = 0xff)
virtual int grab_aligned(Image &image, int x, int y, int sampw =1, int samph =1, short int mask = 0xff)
virtual int grab_aligned(Image &image, float &x, float &y, int sampw =1, int samph =1, short int mask = 0xff)
virtual int grab_aligned(int *image, float &x, float &y, int width, int height, int sampw =1, int samph =1, short int mask = 0xff)
virtual int grab_region(Image &image, int lx, int ly, int sampw =1, int samph = 1)
virtual int grab_region(int *image, int lx, int ly, int ux, int uy, int sampw =1, int samph = 1)
int height()
int in_view(const Image &x, int cx, int cy, float angle)
int in_view(int cx, int cy, int w, int h)
int in_view(int cx, int cy, int w, int h, float angle)
int in_view(const Image &x, int cx, int cy)
int in_view2(int x1, int y1, int x2, int y2)
virtual int is_mappable()
virtual void line2(float x1, float y1, float x2, float y2, Color color = default_color)
Device_output_type output_data_type()
virtual int post_grab()
int width()

Protected Fields

int _bytesperpixel
int _is_mappable
int fg_ncols
int fg_nrows
Device_output_type input_type
int ncols
int nrows
Device_output_type output_type

Protected Methods

int adjust_to_first_coord(float &x, int width)
void map_image(int *x, int npixels)
void map_image(Image &x)
void set_fg_size(int nrows_in, int ncols_in)
Device_output_type set_input_type(Device_output_type ot)
void set_size(int nrows_in, int ncols_in)

Documentation

Class MPEG provides an interface between tracking and MPEG files, allowing users to use MPEG sequences as a source of video sequences.

See also, Class Image_SequenceMono (in files IMG_SEQ.*).

Image vimage

char* name

FILE* mpeg_file

ImageDesc img_info

int* lum_values

* cr_values

* cb_values

int frame_count

int auto_step_mode

XConsole con

XWindow* win

int map_color(Color colin)

void construct_name(char *buff)
Protected function that constructs file names. It assumes the user supplies a format string with a single %d directive for the image number.

MPEG(char *fname)

~MPEG()

void close()

char* device_info()

virtual int pre_grab()

virtual void* current_frame_ptr()

virtual int grab_static(int *im, int x, int y, int width, int height, float angle = 0.0, int sampw = 1, int samph = 1, short int mask = 0xff)
Grab an image, but do not forward the sequence (i.e., grab the same image again, in absence of explicit command to do otherwise).

int auto_step(int bval)
Set auto_step_mode, which forces forwarding of the sequence after bval number of calls to grab

int forward()
This loads an image and forces the sequence forward by one step. Should be called explicitly in the event that update_step is 0.

int show(int x, int y, int width, int height, int* image)

void point(int x, int y, Color color = 1, int size=1)

void line(float x, float y, int length, float angle, int color = 1, int samp = 1)

void clearline(float x, float y, int length, float angle, int samp = 1)

void circle(float x, float y, int r, int color = 1)

void clearcircle(float x, float y, int r)

void cubic(float x, float y, int length, float angle, float a, float b, float c, int color = 1)

void clearcubic(float x, float y, int length, float angle, float a, float b, float c)


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de