00001
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef _GAN_MOVIE_H
00030 #define _GAN_MOVIE_H
00031
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035
00036 #include <gandalf/image/io/image_io.h>
00037
00051 typedef struct Gan_MovieStruct
00052 {
00054 char *directory;
00055
00057 char *basename;
00058
00060 int no_digits;
00061
00063 char *suffix;
00064
00066 int first;
00067
00069 int step;
00070
00072 int no_images;
00073
00075 Gan_ImageFileFormat file_format;
00076
00078 int crop_xlow, crop_xhigh, crop_ylow, crop_yhigh;
00079 } Gan_MovieStruct;
00080
00081 Gan_MovieStruct *gan_movie_new ( const char *directory,
00082 const char *basename, int no_digits,
00083 const char *suffix,
00084 int first, int no_images,
00085 Gan_ImageFileFormat file_format );
00086 void gan_movie_set_step ( Gan_MovieStruct *movie, int step );
00087 void gan_movie_set_crop_window ( Gan_MovieStruct *movie,
00088 int crop_left, int crop_right,
00089 int crop_top, int crop_bottom );
00090 void gan_movie_free ( Gan_MovieStruct *movie );
00091 char *gan_movie_image_name ( Gan_MovieStruct *movie, int number,
00092 char *string, unsigned slen );
00093 Gan_Image *gan_movie_image_read ( Gan_MovieStruct *movie, int number,
00094 Gan_Image *image );
00095 Gan_Bool gan_movie_image_write ( Gan_MovieStruct *movie, int number,
00096 Gan_Image *image );
00097
00106 #ifdef __cplusplus
00107 }
00108 #endif
00109
00110 #endif
00111