2 #ifdef SIMAGE_AVIENC_SUPPORT
35 const char *preferences_filename;
36 const char *mime_type;
38 width = height = fps = 0;
39 preferences_filename = NULL;
46 ((strcmp(mime_type,
"video/x-msvideo") != 0) &&
47 (strcmp(mime_type,
"video/msvideo") != 0) &&
48 (strcmp(mime_type,
"video/avi") != 0))) {
85 handle = (
void *)
avi_begin_encode(filename, width, height, fps, preferences_filename);
87 if (handle == NULL)
return 0;
107 if ( (params != NULL) &&
s_params * s_movie_params(s_movie *movie)
int s_image_set_component_order(s_image *image, int order)
void s_params_set(s_params *params,...)
int s_params_get(s_params *params,...)
s_image * s_image_create(int w, int h, int components, unsigned char *prealloc)
int avienc_movie_create(const char *filename, s_movie *movie, s_params *params)
void s_image_destroy(s_image *image)
int s_image_get_component_order(s_image *image)
int s_image_components(s_image *image)
void s_image_set(s_image *image, int w, int h, int components, unsigned char *data, int copydata)
int s_image_width(s_image *image)
void avienc_movie_close(s_movie *movie)
int avi_encode_bitmap(void *handle, unsigned char *buf, int rgb2bgr)
unsigned char * s_image_data(s_image *image)
int avi_end_encode(void *handle)
int avienc_movie_put(s_movie *movie, s_image *image, s_params *params)
void * avi_begin_encode(const char *filename, int width, int height, int fps, const char *preferences_filename)
int s_image_height(s_image *image)