simage  1.8.3
Coin3D texture image library
Loading...
Searching...
No Matches
simage_quicktime.c File Reference
#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>

Data Structures

struct  BitmapInfo
 

Macros

#define ERR_BAD_DEPTH   5 /* unsupported bit depth */
 
#define ERR_CG   2 /* internal CG error */
 
#define ERR_MEM   6 /* out of memory */
 
#define ERR_NO_ERROR   0 /* no error */
 
#define ERR_OPEN   1 /* could not open file */
 
#define ERR_UNSUPPORTED   4 /* unsupported write format */
 
#define ERR_WRITE   3 /* error writing file */
 

Functions

static void argb_to_rgba (uint32_t *px, int width, int height)
 
static char * cc_basename (const char *path)
 
static char * cc_dirname (const char *path)
 
static void cfstring_append_ostype (CFMutableStringRef str, OSType *t)
 
static int create_file (const char *filename, FSSpec *fss)
 
static int get_importer (const char *filename, GraphicsImportComponent *c)
 
static void open_exporter (const char *fext, GraphicsExportComponent *ge)
 
static void rgba_to_argb (uint32_t *px, int width, int height)
 
int simage_quicktime_error (char *cstr, int buflen)
 
char * simage_quicktime_get_savers (void)
 
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)
 
int simage_quicktime_save (const char *filename, const unsigned char *px, int width, int height, int numcomponents, const char *filetypeext)
 
static bool system_is_bigendian (void)
 
static void v_flip (const unsigned char *px, int width, int height, int numcomponents, unsigned char *newpx)
 

Variables

static int quicktimeerror = 0
 

Macro Definition Documentation

◆ ERR_BAD_DEPTH

#define ERR_BAD_DEPTH   5 /* unsupported bit depth */

◆ ERR_CG

#define ERR_CG   2 /* internal CG error */

◆ ERR_MEM

#define ERR_MEM   6 /* out of memory */

◆ ERR_NO_ERROR

#define ERR_NO_ERROR   0 /* no error */

◆ ERR_OPEN

#define ERR_OPEN   1 /* could not open file */

◆ ERR_UNSUPPORTED

#define ERR_UNSUPPORTED   4 /* unsupported write format */

◆ ERR_WRITE

#define ERR_WRITE   3 /* error writing file */

Function Documentation

◆ argb_to_rgba()

static void argb_to_rgba ( uint32_t * px,
int width,
int height )
static

◆ cc_basename()

static char * cc_basename ( const char * path)
static

◆ cc_dirname()

static char * cc_dirname ( const char * path)
static

◆ cfstring_append_ostype()

static void cfstring_append_ostype ( CFMutableStringRef str,
OSType * t )
static

◆ create_file()

static int create_file ( const char * filename,
FSSpec * fss )
static

◆ get_importer()

static int get_importer ( const char * filename,
GraphicsImportComponent * c )
static

◆ open_exporter()

static void open_exporter ( const char * fext,
GraphicsExportComponent * ge )
static

◆ rgba_to_argb()

static void rgba_to_argb ( uint32_t * px,
int width,
int height )
static

◆ simage_quicktime_error()

int simage_quicktime_error ( char * cstr,
int buflen )

◆ simage_quicktime_get_savers()

char * simage_quicktime_get_savers ( void )

◆ simage_quicktime_identify()

int simage_quicktime_identify ( const char * file,
const unsigned char * header,
int headerlen )

◆ simage_quicktime_load()

unsigned char * simage_quicktime_load ( const char * file,
int * width,
int * height,
int * numcomponents )

◆ simage_quicktime_save()

int simage_quicktime_save ( const char * filename,
const unsigned char * px,
int width,
int height,
int numcomponents,
const char * filetypeext )

◆ system_is_bigendian()

static bool system_is_bigendian ( void )
static

◆ v_flip()

static void v_flip ( const unsigned char * px,
int width,
int height,
int numcomponents,
unsigned char * newpx )
static

Variable Documentation

◆ quicktimeerror

int quicktimeerror = 0
static