|
Coin3D is Free Software, published under the BSD 3-clause license. |
https://bitbucket.org/Coin3D/ http://www.kongsberg.com/kogt/ |
#include <simage_quicktime.h>#include <Carbon/Carbon.h>#include <ApplicationServices/ApplicationServices.h>#include <QuickTime/ImageCompression.h>#include <QuickTime/QuickTimeComponents.h>#include <stdlib.h>#include <sys/param.h>Go to the source code of this file.
Data Structures | |
| struct | BitmapInfo |
Macros | |
| #define | ERR_NO_ERROR 0 /* no error */ |
| #define | ERR_OPEN 1 /* could not open file */ |
| #define | ERR_CG 2 /* internal CG error */ |
| #define | ERR_WRITE 3 /* error writing file */ |
| #define | ERR_UNSUPPORTED 4 /* unsupported write format */ |
| #define | ERR_BAD_DEPTH 5 /* unsupported bit depth */ |
| #define | ERR_MEM 6 /* out of memory */ |
Functions | |
| static bool | system_is_bigendian (void) |
| static char * | cc_basename (const char *path) |
| static char * | cc_dirname (const char *path) |
| static int | get_importer (const char *filename, GraphicsImportComponent *c) |
| static void | open_exporter (const char *fext, GraphicsExportComponent *ge) |
| static void | cfstring_append_ostype (CFMutableStringRef str, OSType *t) |
| static int | create_file (const char *filename, FSSpec *fss) |
| static void | v_flip (const unsigned char *px, int width, int height, int numcomponents, unsigned char *newpx) |
| static void | argb_to_rgba (uint32_t *px, int width, int height) |
| static void | rgba_to_argb (uint32_t *px, int width, int height) |
| int | simage_quicktime_error (char *cstr, int buflen) |
| int | simage_quicktime_identify (const char *file, const unsigned char *header, int headerlen) |
| unsigned char * | simage_quicktime_load (const char *file, int *width, int *height, int *numcomponents) |
| char * | simage_quicktime_get_savers (void) |
| int | simage_quicktime_save (const char *filename, const unsigned char *px, int width, int height, int numcomponents, const char *filetypeext) |
Variables | |
| static int | quicktimeerror = 0 |
| #define ERR_BAD_DEPTH 5 /* unsupported bit depth */ |
Definition at line 32 of file simage_quicktime.c.
Referenced by simage_quicktime_error(), and simage_quicktime_save().
| #define ERR_CG 2 /* internal CG error */ |
Definition at line 29 of file simage_quicktime.c.
Referenced by simage_quicktime_error(), simage_quicktime_load(), and simage_quicktime_save().
| #define ERR_MEM 6 /* out of memory */ |
Definition at line 33 of file simage_quicktime.c.
Referenced by simage_quicktime_error(), and simage_quicktime_load().
| #define ERR_NO_ERROR 0 /* no error */ |
Definition at line 27 of file simage_quicktime.c.
| #define ERR_OPEN 1 /* could not open file */ |
Definition at line 28 of file simage_quicktime.c.
Referenced by simage_quicktime_error(), and simage_quicktime_load().
| #define ERR_UNSUPPORTED 4 /* unsupported write format */ |
Definition at line 31 of file simage_quicktime.c.
Referenced by simage_quicktime_error(), and simage_quicktime_save().
| #define ERR_WRITE 3 /* error writing file */ |
Definition at line 30 of file simage_quicktime.c.
Referenced by simage_quicktime_error(), and simage_quicktime_save().
|
static |
Definition at line 324 of file simage_quicktime.c.
References system_is_bigendian().
Referenced by simage_quicktime_load().
|
static |
Definition at line 93 of file simage_quicktime.c.
Referenced by create_file(), and get_importer().
|
static |
Definition at line 125 of file simage_quicktime.c.
Referenced by create_file(), and get_importer().
|
static |
Definition at line 246 of file simage_quicktime.c.
Referenced by simage_quicktime_get_savers().
|
static |
Definition at line 264 of file simage_quicktime.c.
References cc_basename(), and cc_dirname().
Referenced by simage_quicktime_save().
|
static |
Definition at line 170 of file simage_quicktime.c.
References cc_basename(), and cc_dirname().
Referenced by simage_quicktime_identify(), and simage_quicktime_load().
|
static |
Definition at line 203 of file simage_quicktime.c.
References system_is_bigendian().
Referenced by simage_quicktime_save().
|
static |
Definition at line 341 of file simage_quicktime.c.
References system_is_bigendian().
Referenced by simage_quicktime_save().
| int simage_quicktime_error | ( | char * | cstr, |
| int | buflen | ||
| ) |
Definition at line 358 of file simage_quicktime.c.
References ERR_BAD_DEPTH, ERR_CG, ERR_MEM, ERR_OPEN, ERR_UNSUPPORTED, ERR_WRITE, and quicktimeerror.
Referenced by add_internal_loaders(), and add_internal_savers().
| char* simage_quicktime_get_savers | ( | void | ) |
Definition at line 478 of file simage_quicktime.c.
References cfstring_append_ostype(), and system_is_bigendian().
Referenced by add_internal_savers().
| int simage_quicktime_identify | ( | const char * | file, |
| const unsigned char * | header, | ||
| int | headerlen | ||
| ) |
Definition at line 386 of file simage_quicktime.c.
References get_importer().
Referenced by add_internal_loaders().
| unsigned char* simage_quicktime_load | ( | const char * | file, |
| int * | width, | ||
| int * | height, | ||
| int * | numcomponents | ||
| ) |
Definition at line 397 of file simage_quicktime.c.
References argb_to_rgba(), BitmapInfo::bitsPerPixel, BitmapInfo::bytesPerRow, BitmapInfo::data, ERR_CG, ERR_MEM, ERR_OPEN, get_importer(), BitmapInfo::height, BitmapInfo::numcomponents, quicktimeerror, BitmapInfo::size, v_flip(), and BitmapInfo::width.
Referenced by add_internal_loaders().
| int simage_quicktime_save | ( | const char * | filename, |
| const unsigned char * | px, | ||
| int | width, | ||
| int | height, | ||
| int | numcomponents, | ||
| const char * | filetypeext | ||
| ) |
Definition at line 529 of file simage_quicktime.c.
References create_file(), ERR_BAD_DEPTH, ERR_CG, ERR_UNSUPPORTED, ERR_WRITE, open_exporter(), quicktimeerror, rgba_to_argb(), and v_flip().
Referenced by add_internal_savers().
|
static |
Definition at line 64 of file simage_quicktime.c.
Referenced by argb_to_rgba(), open_exporter(), rgba_to_argb(), and simage_quicktime_get_savers().
|
static |
Definition at line 303 of file simage_quicktime.c.
Referenced by simage_quicktime_load(), and simage_quicktime_save().
|
static |
Definition at line 45 of file simage_quicktime.c.
Referenced by simage_quicktime_error(), simage_quicktime_load(), and simage_quicktime_save().