Blender V4.3
bpy_app_oiio.cc File Reference
#include "BLI_utildefines.h"
#include <Python.h>
#include "bpy_app_oiio.hh"
#include "../generic/py_capi_utils.hh"
#include "openimageio_api.h"

Go to the source code of this file.

Macros

#define SetObjItem(obj)   PyStructSequence_SET_ITEM(oiio_info, pos++, obj)
 

Functions

static PyObject * make_oiio_info ()
 
PyObject * BPY_app_oiio_struct ()
 

Variables

static PyTypeObject BlenderAppOIIOType
 
static PyStructSequence_Field app_oiio_info_fields []
 
static PyStructSequence_Desc app_oiio_info_desc
 

Macro Definition Documentation

◆ SetObjItem

#define SetObjItem ( obj)    PyStructSequence_SET_ITEM(oiio_info, pos++, obj)

Referenced by make_oiio_info().

Function Documentation

◆ BPY_app_oiio_struct()

PyObject * BPY_app_oiio_struct ( )

Definition at line 65 of file bpy_app_oiio.cc.

References app_oiio_info_desc, BlenderAppOIIOType, make_oiio_info(), and ret.

Referenced by make_app_info().

◆ make_oiio_info()

static PyObject * make_oiio_info ( )
static

Variable Documentation

◆ app_oiio_info_desc

PyStructSequence_Desc app_oiio_info_desc
static
Initial value:
= {
"bpy.app.oiio",
"This module contains information about OpeImageIO blender is linked against",
}
#define ARRAY_SIZE(arr)
static PyStructSequence_Field app_oiio_info_fields[]

Definition at line 27 of file bpy_app_oiio.cc.

Referenced by BPY_app_oiio_struct().

◆ app_oiio_info_fields

PyStructSequence_Field app_oiio_info_fields[]
static
Initial value:
= {
{"supported", "Boolean, True when Blender is built with OpenImageIO support"},
{"version", "The OpenImageIO version as a tuple of 3 numbers"},
{"version_string", "The OpenImageIO version formatted as a string"},
{nullptr},
}

Definition at line 20 of file bpy_app_oiio.cc.

◆ BlenderAppOIIOType

PyTypeObject BlenderAppOIIOType
static

Definition at line 18 of file bpy_app_oiio.cc.

Referenced by BPY_app_oiio_struct(), and make_oiio_info().