![]() |
simage
1.8.4
Coin3D texture image library
|
#include <assert.h>#include <stdio.h>#include <stdlib.h>#include <config.h>#include <simage.h>#include <simage_private.h>#include <string.h>#include "../mpeg2enc/api.h"Data Structures | |
| struct | simage_movie_exporter |
| struct | simage_movie_importer |
| struct | simage_movie_s |
Functions | |
| static void | add_internal_exporters (void) |
| static void | add_internal_importers (void) |
| void | s_movie_close (s_movie *movie) |
| s_movie * | s_movie_create (const char *filename, s_params *params) |
| void | s_movie_destroy (s_movie *movie) |
| void | s_movie_exporter_add (s_movie_create_func *create, s_movie_put_func *put, s_movie_close_func *close) |
| s_image * | s_movie_get_image (s_movie *movie, s_image *prealloc, s_params *params) |
| void | s_movie_importer_add (s_movie_open_func *open, s_movie_get_func *get, s_movie_close_func *close) |
| s_movie * | s_movie_open (const char *filename) |
| s_params * | s_movie_params (s_movie *movie) |
| int | s_movie_put_image (s_movie *movie, s_image *image, s_params *params) |
Variables | |
| static struct simage_movie_exporter * | exporters |
| static struct simage_movie_importer * | importers |
|
static |
|
static |
| void s_movie_close | ( | s_movie * | movie | ) |
Closes the newly created movie file.
Will create a new move file named filename and attempt to locate a suitable encoder based on the parameters ( params ) supplied.
Returns a pointer to the opened movie on success, NULL on failure
Common parameters:
Parameters specific for the AVI encoder
| void s_movie_destroy | ( | s_movie * | movie | ) |
Cleans up all resources allocated by "<s_movie_create>"(...)
| void s_movie_exporter_add | ( | s_movie_create_func * | create, |
| s_movie_put_func * | put, | ||
| s_movie_close_func * | close ) |
| void s_movie_importer_add | ( | s_movie_open_func * | open, |
| s_movie_get_func * | get, | ||
| s_movie_close_func * | close ) |
| s_movie * s_movie_open | ( | const char * | filename | ) |
Adds (encodes) the image as one frame to the movie. params is currently used only for optimizing AVI encoding: - "allow image modification" <int> : Set to "1" to allow the encoder to modify the image buffer. If this parameter is not set, the encoder will make a local copy of the image before it is encoded.
Example code:
Returns 1 on success, 0 on failure
|
static |
|
static |