|
Blender
V3.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 (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, LogImageElement logElement) |
| int | logImageSetDataRGBA (LogImageFile *logImage, 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 25 of file logImageCore.h.
| typedef struct LogImageElement LogImageElement |
| typedef struct LogImageFile LogImageFile |
| enum descriptor |
Definition at line 144 of file logImageCore.h.
| enum format |
| Enumerator | |
|---|---|
| format_DPX | |
| format_Cineon | |
Definition at line 38 of file logImageCore.h.
| enum transfer |
Definition at line 102 of file logImageCore.h.
| BLI_INLINE float clamp_float | ( | float | x, |
| float | low, | ||
| float | high | ||
| ) |
Definition at line 259 of file logImageCore.h.
References high(), low(), and 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 246 of file logImageCore.h.
| BLI_INLINE unsigned int float_uint | ( | float | value, |
| unsigned int | max | ||
| ) |
Definition at line 272 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, |
| LogImageElement | logElement | ||
| ) |
Definition at line 197 of file logImageCore.c.
References LogImageElement::bitsPerSample, LogImageElement::depth, ELEM, LogImageElement::packing, and width.
Referenced by cineonOpen(), fillCineonMainHeader(), fillDpxMainHeader(), logImageElementGetData10Packed(), logImageElementGetData12Packed(), logImageElementGetData8(), logImageSetData10(), logImageSetData12(), logImageSetData16(), and logImageSetData8().
| void logImageClose | ( | LogImageFile * | logImage | ) |
Definition at line 175 of file logImageCore.c.
References LogImageFile::file, MEM_freeN, and NULL.
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 144 of file logImageCore.c.
References cineonCreate(), dpxCreate(), height, NULL, and width.
Referenced by imb_save_dpx_cineon().
| int logImageGetDataRGBA | ( | LogImageFile * | logImage, |
| float * | data, | ||
| int | dataIsLinearRGB | ||
| ) |
Definition at line 421 of file logImageCore.c.
References convertLogElementToRGBA(), data, 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, NULL, LogImageFile::numElements, verbose, width, and LogImageFile::width.
Referenced by imb_load_dpx_cineon().
| void logImageGetSize | ( | LogImageFile * | logImage, |
| int * | width, | ||
| int * | height, | ||
| int * | depth | ||
| ) |
Definition at line 186 of file logImageCore.c.
References LogImageFile::depth, height, LogImageFile::height, width, and LogImageFile::width.
Referenced by imb_load_dpx_cineon().
| int logImageIsCineon | ( | const void * | buffer, |
| unsigned int | size | ||
| ) |
Definition at line 94 of file logImageCore.c.
References buffer, CINEON_FILE_MAGIC, size(), and swap_uint().
Referenced by imb_is_a_cineon(), logImageOpenFromFile(), and logImageOpenFromMemory().
| int logImageIsDpx | ( | const void * | buffer, |
| unsigned int | size | ||
| ) |
Definition at line 84 of file logImageCore.c.
References buffer, DPX_FILE_MAGIC, size(), and swap_uint().
Referenced by imb_is_a_dpx(), logImageOpenFromFile(), and logImageOpenFromMemory().
| LogImageFile* logImageOpenFromFile | ( | const char * | filepath, |
| int | cineon | ||
| ) |
Definition at line 104 of file logImageCore.c.
References BLI_fopen(), cineonOpen(), dpxOpen(), logImageIsCineon(), logImageIsDpx(), NULL, and void.
| LogImageFile* logImageOpenFromMemory | ( | const unsigned char * | buffer, |
| unsigned int | size | ||
| ) |
Definition at line 132 of file logImageCore.c.
References buffer, cineonOpen(), dpxOpen(), logImageIsCineon(), logImageIsDpx(), NULL, and size().
Referenced by imb_load_dpx_cineon().
| int logImageSetDataRGBA | ( | LogImageFile * | logImage, |
| float * | data, | ||
| int | dataIsLinearRGB | ||
| ) |
Definition at line 233 of file logImageCore.c.
References LogImageElement::bitsPerSample, convertRGBAToLogElement(), data, LogImageFile::depth, LogImageFile::element, LogImageFile::height, imb_alloc_pixels(), logImageSetData10(), logImageSetData12(), logImageSetData16(), logImageSetData8(), MEM_freeN, NULL, and LogImageFile::width.
Referenced by imb_save_dpx_cineon().
| void logImageSetVerbose | ( | int | verbosity | ) |
Definition at line 73 of file logImageCore.c.
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 224 of file logImageCore.h.
References usdtokens::b(), swap(), and x.
Referenced by cineonOpen(), dpxOpen(), fillCineonMainHeader(), and fillDpxMainHeader().
| BLI_INLINE unsigned int swap_uint | ( | unsigned int | x, |
| int | swap | ||
| ) |
Definition at line 214 of file logImageCore.h.
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 204 of file logImageCore.h.
Referenced by dpxOpen(), fillDpxMainHeader(), logImageElementGetData12(), logImageElementGetData16(), logImageSetData12(), and logImageSetData16().