FFmpeg
|
#import <CoreImage/CoreImage.h>
#import <AppKit/AppKit.h>
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "video.h"
#include "libavutil/internal.h"
#include "libavutil/mem.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 | 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 [] |
const AVFilter | ff_vf_coreimage |
static const AVOption | coreimagesrc_options [] |
const 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 595 of file vf_coreimage.m.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 596 of file vf_coreimage.m.
#define GENERATOR_OPTIONS |
Definition at line 598 of file vf_coreimage.m.
#define FILTER_OPTIONS |
Definition at line 607 of file vf_coreimage.m.
|
static |
Definition at line 66 of file vf_coreimage.m.
|
static |
Determine image properties from input link of filter chain.
Definition at line 85 of file vf_coreimage.m.
|
static |
Print a list of all available filters including options and respective value ranges and defaults.
Definition at line 96 of file vf_coreimage.m.
Referenced by init().
|
static |
Definition at line 140 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 277 of file vf_coreimage.m.
|
static |
Definition at line 282 of file vf_coreimage.m.
|
static |
Set an option of the given filter to the provided key-value pair.
Definition at line 324 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 417 of file vf_coreimage.m.
Referenced by init().
|
static |
Definition at line 436 of file vf_coreimage.m.
Referenced by init_src().
|
static |
Definition at line 533 of file vf_coreimage.m.
|
static |
Definition at line 544 of file vf_coreimage.m.
AVFILTER_DEFINE_CLASS | ( | coreimage | ) |
AVFILTER_DEFINE_CLASS | ( | coreimagesrc | ) |
|
static |
Definition at line 570 of file vf_coreimage.m.
|
static |
Definition at line 579 of file vf_coreimage.m.
|
static |
Definition at line 586 of file vf_coreimage.m.
|
static |
Definition at line 615 of file vf_coreimage.m.
const AVFilter ff_vf_coreimage |
Definition at line 622 of file vf_coreimage.m.
|
static |
Definition at line 635 of file vf_coreimage.m.
const AVFilter ff_vsrc_coreimagesrc |
Definition at line 643 of file vf_coreimage.m.