|
Blender V4.3
|
Go to the source code of this file.
Classes | |
| struct | LogImageElement |
| struct | LogImageFile |
Macros | |
| #define | PATHSEP_CHAR '/' |
Typedefs | |
| typedef struct LogImageElement | LogImageElement |
| typedef struct LogImageFile | LogImageFile |
Functions | |
| void | logImageSetVerbose (int verbosity) |
| int | logImageIsDpx (const void *buffer, unsigned int size) |
| int | logImageIsCineon (const void *buffer, unsigned int size) |
| LogImageFile * | logImageOpenFromMemory (const unsigned char *buffer, unsigned int size) |
| LogImageFile * | logImageOpenFromFile (const char *filepath, int cineon) |
| void | logImageGetSize (const LogImageFile *logImage, int *width, int *height, int *depth) |
| LogImageFile * | logImageCreate (const char *filepath, int cineon, int width, int height, int bitsPerSample, int isLogarithmic, int hasAlpha, int referenceWhite, int referenceBlack, float gamma, const char *creator) |
| void | logImageClose (LogImageFile *logImage) |
| size_t | getRowLength (size_t width, const LogImageElement *logElement) |
| int | logImageSetDataRGBA (LogImageFile *logImage, const float *data, int dataIsLinearRGB) |
| int | logImageGetDataRGBA (LogImageFile *logImage, float *data, int dataIsLinearRGB) |
| BLI_INLINE unsigned short | swap_ushort (unsigned short x, int swap) |
| BLI_INLINE unsigned int | swap_uint (unsigned int x, int swap) |
| BLI_INLINE float | swap_float (float x, int swap) |
| BLI_INLINE unsigned int | clamp_uint (unsigned int x, unsigned int low, unsigned int high) |
| BLI_INLINE float | clamp_float (float x, float low, float high) |
| BLI_INLINE unsigned int | float_uint (float value, unsigned int max) |
Cineon image file format library definitions. Cineon and DPX common structures.
This header file contains private details. User code should generally use cineonlib.h and dpxlib.h only. Hmm. I thought the two formats would have more in common!
Definition in file logImageCore.h.
| #define PATHSEP_CHAR '/' |
Definition at line 26 of file logImageCore.h.
Referenced by cineonCreate(), and dpxCreate().
| typedef struct LogImageElement LogImageElement |
| typedef struct LogImageFile LogImageFile |
| enum descriptor |
Definition at line 145 of file logImageCore.h.
| enum format |
| Enumerator | |
|---|---|
| format_DPX | |
| format_Cineon | |
Definition at line 39 of file logImageCore.h.
| enum transfer |
Definition at line 103 of file logImageCore.h.
| BLI_INLINE float clamp_float | ( | float | x, |
| float | low, | ||
| float | high ) |
Definition at line 260 of file logImageCore.h.
References x.
Referenced by convertCbYACrYA_RGBA(), convertCbYCr_RGBA(), convertCbYCrA_RGBA(), convertCbYCrY_RGBA(), convertLuminance_RGBA(), and convertYA_RGBA().
| BLI_INLINE unsigned int clamp_uint | ( | unsigned int | x, |
| unsigned int | low, | ||
| unsigned int | high ) |
Definition at line 247 of file logImageCore.h.
References x.
| BLI_INLINE unsigned int float_uint | ( | float | value, |
| unsigned int | max ) |
Definition at line 273 of file logImageCore.h.
Referenced by convertABGR_RGBA(), convertLogElementToRGBA(), convertRGB_RGBA(), convertRGBA_RGB(), convertRGBA_RGBA(), convertRGBAToLogElement(), logImageSetData10(), logImageSetData12(), logImageSetData16(), and logImageSetData8().
| size_t getRowLength | ( | size_t | width, |
| const LogImageElement * | logElement ) |
Definition at line 238 of file logImageCore.cc.
References getRowLength().
| void logImageClose | ( | LogImageFile * | logImage | ) |
Definition at line 184 of file logImageCore.cc.
References LogImageFile::file, and MEM_freeN().
Referenced by cineonCreate(), cineonOpen(), dpxCreate(), dpxOpen(), imb_load_dpx_cineon(), and imb_save_dpx_cineon().
| LogImageFile * logImageCreate | ( | const char * | filepath, |
| int | cineon, | ||
| int | width, | ||
| int | height, | ||
| int | bitsPerSample, | ||
| int | isLogarithmic, | ||
| int | hasAlpha, | ||
| int | referenceWhite, | ||
| int | referenceBlack, | ||
| float | gamma, | ||
| const char * | creator ) |
Definition at line 155 of file logImageCore.cc.
References cineonCreate(), and dpxCreate().
Referenced by imb_save_dpx_cineon().
| int logImageGetDataRGBA | ( | LogImageFile * | logImage, |
| float * | data, | ||
| int | dataIsLinearRGB ) |
Definition at line 445 of file logImageCore.cc.
References convertLogElementToRGBA(), LogImageElement::depth, LogImageFile::depth, LogImageElement::descriptor, descriptor_ABGR, descriptor_Alpha, descriptor_Blue, descriptor_CbYACrYA, descriptor_CbYCr, descriptor_CbYCrA, descriptor_CbYCrY, descriptor_Chrominance, descriptor_Composite, descriptor_Depth, descriptor_Green, descriptor_Luminance, descriptor_Red, descriptor_RGB, descriptor_RGBA, descriptor_YA, ELEM, LogImageFile::element, LogImageFile::height, imb_alloc_pixels(), logImageElementGetData(), MEM_freeN(), LogImageFile::numElements, printf, verbose, and LogImageFile::width.
Referenced by imb_load_dpx_cineon().
| void logImageGetSize | ( | const LogImageFile * | logImage, |
| int * | width, | ||
| int * | height, | ||
| int * | depth ) |
Definition at line 195 of file logImageCore.cc.
References LogImageFile::depth, LogImageFile::height, and LogImageFile::width.
Referenced by imb_load_dpx_cineon().
Definition at line 105 of file logImageCore.cc.
References CINEON_FILE_MAGIC, and swap_uint().
Referenced by imb_is_a_cineon(), logImageOpenFromFile(), and logImageOpenFromMemory().
Definition at line 95 of file logImageCore.cc.
References DPX_FILE_MAGIC, and swap_uint().
Referenced by logImageOpenFromFile(), and logImageOpenFromMemory().
| LogImageFile * logImageOpenFromFile | ( | const char * | filepath, |
| int | cineon ) |
Definition at line 115 of file logImageCore.cc.
References BLI_fopen(), cineonOpen(), dpxOpen(), logImageIsCineon(), and logImageIsDpx().
| LogImageFile * logImageOpenFromMemory | ( | const unsigned char * | buffer, |
| unsigned int | size ) |
Definition at line 143 of file logImageCore.cc.
References cineonOpen(), dpxOpen(), logImageIsCineon(), and logImageIsDpx().
Referenced by imb_load_dpx_cineon().
| int logImageSetDataRGBA | ( | LogImageFile * | logImage, |
| const float * | data, | ||
| int | dataIsLinearRGB ) |
Definition at line 249 of file logImageCore.cc.
References LogImageElement::bitsPerSample, convertRGBAToLogElement(), LogImageFile::depth, LogImageFile::element, LogImageFile::height, imb_alloc_pixels(), logImageSetData10(), logImageSetData12(), logImageSetData16(), logImageSetData8(), MEM_freeN(), and LogImageFile::width.
Referenced by imb_save_dpx_cineon().
| void logImageSetVerbose | ( | int | verbosity | ) |
Definition at line 84 of file logImageCore.cc.
References cineonSetVerbose(), dpxSetVerbose(), and verbose.
Referenced by imb_load_dpx_cineon(), and imb_save_dpx_cineon().
| BLI_INLINE float swap_float | ( | float | x, |
| int | swap ) |
Definition at line 225 of file logImageCore.h.
Referenced by cineonOpen(), dpxOpen(), fillCineonMainHeader(), and fillDpxMainHeader().
| BLI_INLINE unsigned int swap_uint | ( | unsigned int | x, |
| int | swap ) |
Definition at line 215 of file logImageCore.h.
References x.
Referenced by cineonOpen(), dpxOpen(), fillCineonMainHeader(), fillDpxMainHeader(), logImageElementGetData1(), logImageElementGetData10(), logImageElementGetData10Packed(), logImageElementGetData12Packed(), logImageIsCineon(), logImageIsDpx(), and logImageSetData10().
| BLI_INLINE unsigned short swap_ushort | ( | unsigned short | x, |
| int | swap ) |
Definition at line 205 of file logImageCore.h.
References x.
Referenced by dpxOpen(), fillDpxMainHeader(), logImageElementGetData12(), logImageElementGetData16(), logImageSetData12(), and logImageSetData16().