Main Page | Modules | Class List | File List | Class Members | File Members

movie.h

Go to the documentation of this file.
00001 
00014 /* This library is free software; you can redistribute it and/or
00015    modify it under the terms of the GNU Lesser General Public
00016    License as published by the Free Software Foundation; either
00017    version 2.1 of the License, or (at your option) any later version.
00018 
00019    This library is distributed in the hope that it will be useful,
00020    but WITHOUT ANY WARRANTY; without even the implied warranty of
00021    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00022    Lesser General Public License for more details.
00023 
00024    You should have received a copy of the GNU Lesser General Public
00025    License along with this library; if not, write to the Free Software
00026    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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 /* #ifndef _GAN_MOVIE_H */
00111 

Generated on Fri Mar 17 12:44:48 2006 by  doxygen 1.3.9.1