video-utils

video-utils — Useful boilerplate for video filters

Synopsis


#include <video-utils.h>

#define             GST_VIDEO_FILTER_SET_CAPS_BOILERPLATE_FULL(type, type_as_function, hook_function)
#define             GST_VIDEO_FILTER_SET_CAPS_BOILERPLATE(type, type_as_function)
#define             GST_VIDEO_FILTER_GET_UNIT_SIZE_BOILERPLATE(type_as_function)

Description

Details

GST_VIDEO_FILTER_SET_CAPS_BOILERPLATE_FULL()

#define             GST_VIDEO_FILTER_SET_CAPS_BOILERPLATE_FULL(type, type_as_function, hook_function)

Define a typical set_caps function for a video filter, allowing for additional custom verification and initialization.

type :

the name of the type struct

type_as_function :

the prefix for the functions

hook_function :

a function with GstBaseTransform set_caps signature that can extract custom additional info or accept/reject caps

GST_VIDEO_FILTER_SET_CAPS_BOILERPLATE()

#define             GST_VIDEO_FILTER_SET_CAPS_BOILERPLATE(type, type_as_function)

Define a typical set_caps function for a video filter.

type :

the name of the type struct

type_as_function :

the prefix for the functions

GST_VIDEO_FILTER_GET_UNIT_SIZE_BOILERPLATE()

#define             GST_VIDEO_FILTER_GET_UNIT_SIZE_BOILERPLATE(type_as_function)

Define a typical get_unit_size function for a video filter that provides proper unit size for x-raw-rgb and some standard x-raw-yuv colorspaces (YUY2, YUYV, YVYU, IYUV, I420, YV12).

type_as_function :

the prefix for the functions