43 #define OFFSET(x) offsetof(PermsContext, x)
44 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_VIDEO_PARAM
75 static const char *
const perm_str[2] = {
"RO",
"RW" };
91 default: out_perm = in_perm;
break;
96 in_perm == out_perm ?
" (no-op)" :
"");
98 if (in_perm ==
RO && out_perm ==
RW) {
101 }
else if (in_perm ==
RW && out_perm ==
RO) {
109 if (in_perm ==
RW && out_perm ==
RO)
114 #if CONFIG_APERMS_FILTER
116 #define aperms_options options
143 .priv_class = &aperms_class,
147 #if CONFIG_PERMS_FILTER
149 #define perms_options options
176 .priv_class = &perms_class,
This structure describes decoded (raw) audio or video data.
const char * name
Pad name.
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
static const char *const perm_str[2]
#define AV_LOG_VERBOSE
Detailed information.
static const AVOption options[]
A filter pad used for either input or output.
A link between two filters.
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void * priv
private data for use by the filter
static const AVFilterPad outputs[]
AVFrame * av_frame_clone(const AVFrame *src)
Create a new frame that references the same data as src.
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
#define AV_LOG_INFO
Standard information.
static const AVFilterPad inputs[]
int av_frame_is_writable(AVFrame *frame)
Check if the frame data is writable.
static unsigned int av_lfg_get(AVLFG *c)
Get the next random unsigned 32-bit number using an ALFG.
Describe the class of an AVClass context structure.
const char * name
Filter name.
av_cold void av_lfg_init(AVLFG *c, unsigned int seed)
AVFilterLink ** outputs
array of pointers to output links
int av_frame_make_writable(AVFrame *frame)
Ensure that the frame data is writable, avoiding data copy if possible.
AVFilterContext * dst
dest filter
#define AVFILTER_DEFINE_CLASS(fname)
uint32_t av_get_random_seed(void)
Get a seed to use in conjunction with random functions.
mode
Use these values in ebur128_init (or'ed).
static av_cold int init(AVFilterContext *ctx)