MUAN
|
#include <video_encoder.h>
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) |
bool VideoEncoder::avffmpeg_read | ( | ImgList * | imgl, |
const char * | fname | ||
) |
References ImgList::img_h, ImgList::img_w, imgnode_alloc(), and verify_frame_duplication().
Referenced by avi_read(), and mpg_read().
bool VideoEncoder::avffmpeg_write | ( | ImgList * | imgl, |
const char * | fname | ||
) |
References add_audio_stream(), add_video_stream(), close_audio(), close_video(), ImgList::head, ImgList::img_h, ImgList::img_w, ImgNode::next, open_audio(), open_video(), test_file(), ui_message(), write_audio_frame(), and write_video_frame().
Referenced by avi_write(), and mpg_write().
bool VideoEncoder::avi_read | ( | ImgList * | imgl, |
const char * | fname, | ||
int | load_mode | ||
) |
Reads a specified file.
imgl | the ImageList where the file will be stored. |
fname | the file name. |
load_mode | -- 0 if compare muan number; 1 if compare entire frame; 2 if not verifiy duplication. |
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.
fname | the file name. |
imgl | the ImageList. |
file_format | the file format to be writed. |
max_frames | the maximum frame supported number. |
max_file_size | the maximum file size suported. |
time_stamp | the file time_stamp |
isOpenDML |
References avffmpeg_write().
bool VideoEncoder::jpg_read | ( | ImgList * | imgl, |
const char * | dirname, | ||
int | load_mode | ||
) |
References ImgList::img_h, ImgList::img_w, imgnode_alloc(), and read_JPEG_file().
bool VideoEncoder::jpg_write | ( | ImgList * | imgl, |
const char * | fname, | ||
int | quality | ||
) |
References Image::c, ImgList::head, img_create(), img_free(), ImgList::img_h, ImgList::img_w, ImgNode::next, and write_JPEG_file().
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.
f1 | the frame to compare. |
f2 | the frame to compare. |
load_mode | how to compare: 0 if compare entire frame; 1 if not verifiy duplication. |
References verify_image_duplication().
Referenced by avffmpeg_read().
bool VideoEncoder::verify_image_duplication | ( | unsigned char * | i1, |
unsigned char * | i2, | ||
int | w, | ||
int | h | ||
) |
Referenced by verify_frame_duplication().