Coin3D is Free Software, published under the BSD 3-clause license. |
https://bitbucket.org/Coin3D/ http://www.kongsberg.com/kogt/ |
#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"
#include "simage_avi.h"
Data Structures | |
struct | simage_movie_s |
struct | simage_movie_importer |
struct | simage_movie_exporter |
Functions | |
static void | add_internal_importers (void) |
static void | add_internal_exporters (void) |
s_movie * | s_movie_open (const char *filename) |
s_movie * | s_movie_create (const char *filename, s_params *params) |
s_image * | s_movie_get_image (s_movie *movie, s_image *prealloc, s_params *params) |
int | s_movie_put_image (s_movie *movie, s_image *image, s_params *params) |
void | s_movie_close (s_movie *movie) |
void | s_movie_destroy (s_movie *movie) |
s_params * | s_movie_params (s_movie *movie) |
void | s_movie_importer_add (s_movie_open_func *open, s_movie_get_func *get, s_movie_close_func *close) |
void | s_movie_exporter_add (s_movie_create_func *create, s_movie_put_func *put, s_movie_close_func *close) |
Variables | |
static struct simage_movie_importer * | importers |
static struct simage_movie_exporter * | exporters |
|
static |
|
static |
s_movie* s_movie_open | ( | const char * | filename | ) |
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
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
void s_movie_close | ( | s_movie * | movie | ) |
Closes the newly created movie file.
void s_movie_destroy | ( | s_movie * | movie | ) |
Cleans up all resources allocated by "<s_movie_create>"(...)
void s_movie_importer_add | ( | s_movie_open_func * | open, |
s_movie_get_func * | get, | ||
s_movie_close_func * | close | ||
) |
void s_movie_exporter_add | ( | s_movie_create_func * | create, |
s_movie_put_func * | put, | ||
s_movie_close_func * | close | ||
) |
|
static |
|
static |