MUAN
VideoEncoder Class Reference

#include <video_encoder.h>

List of all members.

Public Member Functions

bool avi_write (char *fname, ImgList *imgl, int file_format, int max_frames, off_t max_file_size, bool time_stamp, bool isOpenDML)
 Writes a file in the AVI format.
bool avi_read (ImgList *imgl, const char *fname, int load_mode)
 Reads a specified file.
bool mpg_write (ImgList *imgl, const char *fname)
bool mpg_read (ImgList *imgl, const char *fname)
bool avffmpeg_write (ImgList *imgl, const char *fname)
bool avffmpeg_read (ImgList *imgl, const char *fname)
bool jpg_write (ImgList *imgl, const char *fname, int quality)
bool jpg_read (ImgList *imgl, const char *dirname, int load_mode)
bool verify_frame_duplication (unsigned char *i1, unsigned char *i2, int load_mode, int w, int h, int key)
 Compare 2 frames.
bool verify_image_duplication (unsigned char *i1, unsigned char *i2, int w, int h)

Member Function Documentation

bool VideoEncoder::avffmpeg_read ( ImgList imgl,
const char *  fname 
)
bool VideoEncoder::avi_read ( ImgList imgl,
const char *  fname,
int  load_mode 
)

Reads a specified file.

Parameters:
imglthe ImageList where the file will be stored.
fnamethe file name.
load_mode-- 0 if compare muan number; 1 if compare entire frame; 2 if not verifiy duplication.
Returns:
true if the file was successfully read, false otherwise.

References avffmpeg_read().

bool VideoEncoder::avi_write ( char *  fname,
ImgList imgl,
int  file_format,
int  max_frames,
off_t  max_file_size,
bool  time_stamp,
bool  isOpenDML 
)

Writes a file in the AVI format.

Parameters:
fnamethe file name.
imglthe ImageList.
file_formatthe file format to be writed.
max_framesthe maximum frame supported number.
max_file_sizethe maximum file size suported.
time_stampthe file time_stamp
isOpenDML
Returns:
true if the file was successfully writed, false otherwise.

References avffmpeg_write().

bool VideoEncoder::jpg_read ( ImgList imgl,
const char *  dirname,
int  load_mode 
)
bool VideoEncoder::jpg_write ( ImgList imgl,
const char *  fname,
int  quality 
)
bool VideoEncoder::mpg_read ( ImgList imgl,
const char *  fname 
)

References avffmpeg_read().

bool VideoEncoder::mpg_write ( ImgList imgl,
const char *  fname 
)

References avffmpeg_write().

bool VideoEncoder::verify_frame_duplication ( unsigned char *  i1,
unsigned char *  i2,
int  load_mode,
int  w,
int  h,
int  key 
)

Compare 2 frames.

Parameters:
f1the frame to compare.
f2the frame to compare.
load_modehow to compare: 0 if compare entire frame; 1 if not verifiy duplication.
Returns:
true if they coincide, false otherwise.

References verify_image_duplication().

Referenced by avffmpeg_read().

bool VideoEncoder::verify_image_duplication ( unsigned char *  i1,
unsigned char *  i2,
int  w,
int  h 
)

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