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

Go to the source code of this file.

Macros

#define DEF_FFMPEG_LIB_VERSION(lib)
 
#define SetStrItem(str)   PyStructSequence_SET_ITEM(ffmpeg_info, pos++, PyUnicode_FromString(str))
 
#define SetObjItem(obj)   PyStructSequence_SET_ITEM(ffmpeg_info, pos++, obj)
 
#define FFMPEG_LIB_VERSION(lib)
 

Functions

static PyObject * make_ffmpeg_info ()
 
PyObject * BPY_app_ffmpeg_struct ()
 

Variables

static PyTypeObject BlenderAppFFmpegType
 
static PyStructSequence_Field app_ffmpeg_info_fields []
 
static PyStructSequence_Desc app_ffmpeg_info_desc
 

Macro Definition Documentation

◆ DEF_FFMPEG_LIB_VERSION

#define DEF_FFMPEG_LIB_VERSION ( lib)
Value:
{(#lib "_version"), ("The " #lib " version as a tuple of 3 numbers")}, \
{ \
(#lib "_version_string"), ("The " #lib " version formatted as a string") \
}
static DynamicLibrary lib

Definition at line 28 of file bpy_app_ffmpeg.cc.

◆ FFMPEG_LIB_VERSION

#define FFMPEG_LIB_VERSION ( lib)
Value:
{ \
SetStrItem("Unknown"); \
SetStrItem("Unknown"); \
} \
(void)0

Referenced by make_ffmpeg_info().

◆ SetObjItem

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

Referenced by make_ffmpeg_info().

◆ SetStrItem

#define SetStrItem ( str)    PyStructSequence_SET_ITEM(ffmpeg_info, pos++, PyUnicode_FromString(str))

Function Documentation

◆ BPY_app_ffmpeg_struct()

PyObject * BPY_app_ffmpeg_struct ( )

Definition at line 121 of file bpy_app_ffmpeg.cc.

References app_ffmpeg_info_desc, BlenderAppFFmpegType, make_ffmpeg_info(), and ret.

Referenced by make_app_info().

◆ make_ffmpeg_info()

static PyObject * make_ffmpeg_info ( )
static

Definition at line 54 of file bpy_app_ffmpeg.cc.

References BlenderAppFFmpegType, FFMPEG_LIB_VERSION, pos, SetObjItem, and UNLIKELY.

Referenced by BPY_app_ffmpeg_struct().

Variable Documentation

◆ app_ffmpeg_info_desc

PyStructSequence_Desc app_ffmpeg_info_desc
static
Initial value:
= {
"bpy.app.ffmpeg",
"This module contains information about FFmpeg blender is linked against",
}
#define ARRAY_SIZE(arr)
static PyStructSequence_Field app_ffmpeg_info_fields[]

Definition at line 47 of file bpy_app_ffmpeg.cc.

Referenced by BPY_app_ffmpeg_struct().

◆ app_ffmpeg_info_fields

PyStructSequence_Field app_ffmpeg_info_fields[]
static
Initial value:
= {
{"supported", "Boolean, True when Blender is built with FFmpeg support"},
{nullptr},
}
#define DEF_FFMPEG_LIB_VERSION(lib)

Definition at line 34 of file bpy_app_ffmpeg.cc.

◆ BlenderAppFFmpegType

PyTypeObject BlenderAppFFmpegType
static

Definition at line 26 of file bpy_app_ffmpeg.cc.

Referenced by BPY_app_ffmpeg_struct(), and make_ffmpeg_info().