Go to the documentation of this file.
28 #define OFFSET(x) offsetof(GfxCaptureContext, x)
29 #define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
31 {
"window_title",
"ECMAScript regular expression to match against the window title. "
32 "Supports PCRE style (?i) prefix for case-insensitivity.",
34 {
"window_class",
"as window_title, but against the window class",
36 {
"window_exe",
"as window_title, but against the windows executable name",
42 {
"display_border",
"display yellow border around captured window",
47 {
"width",
"force width of the output frames, negative values round down the width to the nearest multiple of that number",
49 {
"height",
"force height of the output frames, negative values round down the height to the nearest multiple of that number",
51 {
"crop_left",
"number of pixels to crop from the left of the captured area",
53 {
"crop_top",
"number of pixels to crop from the top of the captured area",
55 {
"crop_right",
"number of pixels to crop from the right of the captured area",
57 {
"crop_bottom",
"number of pixels to crop from the bottom of the captured area",
63 {
"scale_aspect",
"scale source to fit initial size while preserving aspect ratio",
90 .
p.
name =
"gfxcapture",
92 .p.priv_class = &gfxcapture_class,
static const AVFilterPad gfxcapture_outputs[]
@ AV_OPT_TYPE_VIDEO_RATE
Underlying C type is AVRational.
static const AVOption gfxcapture_options[]
@ AV_PIX_FMT_BGRA
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
const char * name
Filter name.
const FFFilter ff_vsrc_gfxcapture
A filter pad used for either input or output.
av_cold void ff_gfxcapture_uninit(AVFilterContext *avctx) NOEXCEPT
av_cold int ff_gfxcapture_init(AVFilterContext *avctx) NOEXCEPT
#define FILTER_OUTPUTS(array)
int ff_gfxcapture_activate(AVFilterContext *avctx) NOEXCEPT
@ GFX_MONITOR_IDX_DEFAULT
#define FF_FILTER_FLAG_HWFRAME_AWARE
The filter is aware of hardware frames, and any hardware frame context should not be automatically pr...
#define AV_PIX_FMT_X2BGR10
int(* init)(AVBSFContext *ctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define AVFILTER_FLAG_HWDEVICE
The filter can create hardware frames using AVFilterContext.hw_device_ctx.
@ AV_PIX_FMT_D3D11
Hardware surfaces for Direct3D11.
static void uninit(AVBSFContext *ctx)
const char * name
Pad name.
AVFILTER_DEFINE_CLASS(gfxcapture)
@ GFX_RESIZE_SCALE_ASPECT
@ AV_OPT_TYPE_INT
Underlying C type is int.
AVFilter p
The public AVFilter.
#define AV_PIX_FMT_RGBAF16
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
@ AV_OPT_TYPE_STRING
Underlying C type is a uint8_t* that is either NULL or points to a C string allocated with the av_mal...
int ff_gfxcapture_config_props(AVFilterLink *outlink) NOEXCEPT
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
#define FILTER_SINGLE_PIXFMT(pix_fmt_)
@ AV_OPT_TYPE_UINT64
Underlying C type is uint64_t.