Blender V5.0
bpy_app_oiio.cc File Reference
#include "BLI_utildefines.h"
#include <Python.h>
#include "../generic/python_compat.hh"
#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)

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)
Value:
PyStructSequence_SET_ITEM(oiio_info, pos++, obj)
uint pos

Referenced by make_oiio_info().

Function Documentation

◆ BPY_app_oiio_struct()

PyObject * BPY_app_oiio_struct ( )
nodiscard

Definition at line 67 of file bpy_app_oiio.cc.

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

Referenced by make_app_info().

◆ make_oiio_info()

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 29 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 22 of file bpy_app_oiio.cc.

◆ BlenderAppOIIOType

PyTypeObject BlenderAppOIIOType
static

Definition at line 20 of file bpy_app_oiio.cc.

Referenced by BPY_app_oiio_struct(), and make_oiio_info().