Vuo  2.3.2
Enumerations | Functions
VuoImageColorDepth

Description

An image's color bit-depth.

Enumerations

enum  VuoImageColorDepth { VuoImageColorDepth_8 , VuoImageColorDepth_16 , VuoImageColorDepth_32 }
 An image's color bit-depth. More...
 

Functions

unsigned int VuoImageColorDepth_getGlInternalFormat (unsigned int baseFormat, VuoImageColorDepth imageColorDepth)
 Returns the OpenGL internal format constant for a texture with the specified baseFormat and imageColorDepth. More...
 
VuoImageColorDepth VuoImageColorDepth_makeFromJson (struct json_object *js)
 Decodes the JSON object js to create a new value. More...
 
struct json_objectVuoImageColorDepth_getJson (const VuoImageColorDepth value)
 Encodes value as a JSON object. More...
 
VuoList_VuoImageColorDepth VuoImageColorDepth_getAllowedValues (void)
 Returns a list of values that instances of this type can have. More...
 
char * VuoImageColorDepth_getSummary (const VuoImageColorDepth value)
 Returns a compact string representation of value. More...
 
VuoImageColorDepth VuoImageColorDepth_makeFromString (const char *str)
 Automatically generated function. More...
 
char * VuoImageColorDepth_getString (const VuoImageColorDepth value)
 Automatically generated function. More...
 
void VuoImageColorDepth_retain (VuoImageColorDepth value)
 Automatically generated function. More...
 
void VuoImageColorDepth_release (VuoImageColorDepth value)
 Automatically generated function. More...
 

Enumeration Type Documentation

◆ VuoImageColorDepth

An image's color bit-depth.

Definition at line 28 of file VuoImageColorDepth.h.

Function Documentation

◆ VuoImageColorDepth_getAllowedValues()

VuoList_VuoImageColorDepth VuoImageColorDepth_getAllowedValues ( void  )

Returns a list of values that instances of this type can have.

Definition at line 135 of file VuoImageColorDepth.c.

◆ VuoImageColorDepth_getGlInternalFormat()

unsigned int VuoImageColorDepth_getGlInternalFormat ( unsigned int  baseFormat,
VuoImageColorDepth  imageColorDepth 
)

Returns the OpenGL internal format constant for a texture with the specified baseFormat and imageColorDepth.

baseFormat can be:

  • GL_RGB
  • GL_BGR
  • GL_YCBCR_422_APPLE
  • GL_RGBA
  • GL_BGRA
  • GL_LUMINANCE
  • GL_LUMINANCE_ALPHA

Definition at line 44 of file VuoImageColorDepth.c.

◆ VuoImageColorDepth_getJson()

struct json_object* VuoImageColorDepth_getJson ( const VuoImageColorDepth  value)

Encodes value as a JSON object.

Definition at line 112 of file VuoImageColorDepth.c.

◆ VuoImageColorDepth_getString()

char* VuoImageColorDepth_getString ( const VuoImageColorDepth  value)

Automatically generated function.

◆ VuoImageColorDepth_getSummary()

char* VuoImageColorDepth_getSummary ( const VuoImageColorDepth  value)

Returns a compact string representation of value.

Definition at line 147 of file VuoImageColorDepth.c.

◆ VuoImageColorDepth_makeFromJson()

VuoImageColorDepth VuoImageColorDepth_makeFromJson ( json_object js)

Decodes the JSON object js to create a new value.

Example:
"8bpc"

Definition at line 93 of file VuoImageColorDepth.c.

◆ VuoImageColorDepth_makeFromString()

VuoImageColorDepth VuoImageColorDepth_makeFromString ( const char *  str)

Automatically generated function.

◆ VuoImageColorDepth_release()

void VuoImageColorDepth_release ( VuoImageColorDepth  value)

Automatically generated function.

◆ VuoImageColorDepth_retain()

void VuoImageColorDepth_retain ( VuoImageColorDepth  value)

Automatically generated function.