Blender V5.0
bpy_app_ocio.cc File Reference
#include "BLI_utildefines.h"
#include <Python.h>
#include "../generic/python_compat.hh"
#include "bpy_app_ocio.hh"
#include "../generic/py_capi_utils.hh"
#include "OCIO_version.hh"

Go to the source code of this file.

Macros

#define SetStrItem(str)
#define SetObjItem(obj)

Functions

static PyObject * make_ocio_info ()
PyObject * BPY_app_ocio_struct ()

Variables

static PyTypeObject BlenderAppOCIOType
static PyStructSequence_Field app_ocio_info_fields []
static PyStructSequence_Desc app_ocio_info_desc

Macro Definition Documentation

◆ SetObjItem

#define SetObjItem ( obj)
Value:
PyStructSequence_SET_ITEM(ocio_info, pos++, obj)
uint pos

Referenced by make_ocio_info().

◆ SetStrItem

#define SetStrItem ( str)
Value:
PyStructSequence_SET_ITEM(ocio_info, pos++, PyUnicode_FromString(str))
#define str(s)

Referenced by make_ocio_info().

Function Documentation

◆ BPY_app_ocio_struct()

PyObject * BPY_app_ocio_struct ( )
nodiscard

Definition at line 77 of file bpy_app_ocio.cc.

References app_ocio_info_desc, BlenderAppOCIOType, make_ocio_info(), Py_HashPointer, and ret.

Referenced by make_app_info().

◆ make_ocio_info()

Variable Documentation

◆ app_ocio_info_desc

PyStructSequence_Desc app_ocio_info_desc
static
Initial value:
= {
"bpy.app.ocio",
"This module contains information about OpenColorIO blender is linked against",
}
#define ARRAY_SIZE(arr)
static PyStructSequence_Field app_ocio_info_fields[]

Definition at line 31 of file bpy_app_ocio.cc.

Referenced by BPY_app_ocio_struct().

◆ app_ocio_info_fields

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

Definition at line 24 of file bpy_app_ocio.cc.

◆ BlenderAppOCIOType

PyTypeObject BlenderAppOCIOType
static

Definition at line 22 of file bpy_app_ocio.cc.

Referenced by BPY_app_ocio_struct(), and make_ocio_info().