FFmpeg
|
#import <CoreImage/CoreImage.h>
#import <AppKit/AppKit.h>
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
Go to the source code of this file.
Data Structures | |
struct | CoreImageContext |
Macros | |
#define | CLAMP_WARNING |
#define | SafeCFRelease(ptr) |
#define | OFFSET(x) offsetof(CoreImageContext, x) |
#define | FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
#define | GENERATOR_OPTIONS |
#define | FILTER_OPTIONS |
Functions | |
static int | config_output (AVFilterLink *link) |
static int | config_input (AVFilterLink *link) |
Determine image properties from input link of filter chain. More... | |
static void | list_filters (CoreImageContext *ctx) |
Print a list of all available filters including options and respective value ranges and defaults. More... | |
static int | query_formats (AVFilterContext *fctx) |
static int | query_formats_src (AVFilterContext *fctx) |
static int | apply_filter (CoreImageContext *ctx, AVFilterLink *link, AVFrame *frame) |
static int | filter_frame (AVFilterLink *link, AVFrame *frame) |
Apply all valid filters successively to the input image. More... | |
static int | request_frame (AVFilterLink *link) |
static void | set_option (CoreImageContext *ctx, CIFilter *filter, const char *key, const char *value) |
Set an option of the given filter to the provided key-value pair. More... | |
static CIFilter * | create_filter (CoreImageContext *ctx, const char *filter_name, AVDictionary *filter_options) |
Create a filter object by a given name and set all options to defaults. More... | |
static av_cold int | init (AVFilterContext *fctx) |
static av_cold int | init_src (AVFilterContext *fctx) |
static av_cold void | uninit (AVFilterContext *fctx) |
AVFILTER_DEFINE_CLASS (coreimage) | |
AVFILTER_DEFINE_CLASS (coreimagesrc) | |
Variables | |
static const AVFilterPad | vf_coreimage_inputs [] |
static const AVFilterPad | vf_coreimage_outputs [] |
static const AVFilterPad | vsrc_coreimagesrc_outputs [] |
static const AVOption | coreimage_options [] |
AVFilter | ff_vf_coreimage |
static const AVOption | coreimagesrc_options [] |
AVFilter | ff_vsrc_coreimagesrc |
Video processing based on Apple's CoreImage API
Definition in file vf_coreimage.m.
#define CLAMP_WARNING |
#define SafeCFRelease | ( | ptr | ) |
#define OFFSET | ( | x | ) | offsetof(CoreImageContext, x) |
Definition at line 630 of file vf_coreimage.m.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 631 of file vf_coreimage.m.
#define GENERATOR_OPTIONS |
Definition at line 633 of file vf_coreimage.m.
#define FILTER_OPTIONS |
Definition at line 642 of file vf_coreimage.m.
|
static |
Definition at line 65 of file vf_coreimage.m.
|
static |
Determine image properties from input link of filter chain.
Definition at line 83 of file vf_coreimage.m.
|
static |
Print a list of all available filters including options and respective value ranges and defaults.
Definition at line 94 of file vf_coreimage.m.
Referenced by init().
|
static |
Definition at line 138 of file vf_coreimage.m.
|
static |
Definition at line 160 of file vf_coreimage.m.
|
static |
Definition at line 181 of file vf_coreimage.m.
Referenced by filter_frame(), and request_frame().
|
static |
Apply all valid filters successively to the input image.
The final output image is copied from the GPU by "drawing" using a bitmap context.
Definition at line 318 of file vf_coreimage.m.
|
static |
Definition at line 323 of file vf_coreimage.m.
|
static |
Set an option of the given filter to the provided key-value pair.
Definition at line 358 of file vf_coreimage.m.
Referenced by create_filter().
|
static |
Create a filter object by a given name and set all options to defaults.
Overwrite any option given by the user to the provided value in filter_options.
Definition at line 451 of file vf_coreimage.m.
Referenced by init().
|
static |
Definition at line 470 of file vf_coreimage.m.
Referenced by init_src().
|
static |
Definition at line 565 of file vf_coreimage.m.
|
static |
Definition at line 576 of file vf_coreimage.m.
AVFILTER_DEFINE_CLASS | ( | coreimage | ) |
AVFILTER_DEFINE_CLASS | ( | coreimagesrc | ) |
|
static |
Definition at line 602 of file vf_coreimage.m.
|
static |
Definition at line 612 of file vf_coreimage.m.
|
static |
Definition at line 620 of file vf_coreimage.m.
|
static |
Definition at line 650 of file vf_coreimage.m.
AVFilter ff_vf_coreimage |
Definition at line 657 of file vf_coreimage.m.
|
static |
Definition at line 670 of file vf_coreimage.m.
AVFilter ff_vsrc_coreimagesrc |
Definition at line 678 of file vf_coreimage.m.