Blender  V3.3
Macros | Functions | Variables
bpy_app_ffmpeg.c File Reference
#include "BLI_utildefines.h"
#include <Python.h>
#include "bpy_app_ffmpeg.h"
#include "../generic/py_capi_utils.h"

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 (void)
 
PyObject * BPY_app_ffmpeg_struct (void)
 

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") \
}
DRWShaderLibrary * lib

Definition at line 24 of file bpy_app_ffmpeg.c.

◆ FFMPEG_LIB_VERSION

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

◆ SetObjItem

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

◆ SetStrItem

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

Function Documentation

◆ BPY_app_ffmpeg_struct()

PyObject* BPY_app_ffmpeg_struct ( void  )

Definition at line 117 of file bpy_app_ffmpeg.c.

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

Referenced by make_app_info().

◆ make_ffmpeg_info()

static PyObject* make_ffmpeg_info ( void  )
static

Definition at line 50 of file bpy_app_ffmpeg.c.

References BlenderAppFFmpegType, FFMPEG_LIB_VERSION, NULL, 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 43 of file bpy_app_ffmpeg.c.

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"},
{NULL},
}
#define DEF_FFMPEG_LIB_VERSION(lib)

Definition at line 30 of file bpy_app_ffmpeg.c.

◆ BlenderAppFFmpegType

PyTypeObject BlenderAppFFmpegType
static

Definition at line 22 of file bpy_app_ffmpeg.c.

Referenced by BPY_app_ffmpeg_struct(), and make_ffmpeg_info().