FFmpeg
|
f_perms.c File Reference
#include "libavutil/lfg.h"
#include "libavutil/opt.h"
#include "libavutil/random_seed.h"
#include "audio.h"
#include "video.h"
Include dependency graph for f_perms.c:
Go to the source code of this file.
Data Structures | |
struct | PermsContext |
Macros | |
#define | OFFSET(x) offsetof(PermsContext, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_VIDEO_PARAM |
Enumerations | |
enum | mode { MODE_NONE, MODE_RO, MODE_RW, MODE_TOGGLE, MODE_RANDOM, NB_MODES, PROGRESSIVE, TOP_FIRST, BOTTOM_FIRST, TOP_FIRST_ANALYZE, BOTTOM_FIRST_ANALYZE, ANALYZE, FULL_ANALYZE, AUTO, AUTO_ANALYZE } |
enum | perm { RO, RW } |
Functions | |
static av_cold int | init (AVFilterContext *ctx) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *frame) |
Variables | |
static const AVOption | options [] |
static const char * | perm_str [2] = { "RO", "RW" } |
Macro Definition Documentation
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_VIDEO_PARAM |
#define OFFSET | ( | x | ) | offsetof(PermsContext, x) |
Enumeration Type Documentation
enum mode |
Function Documentation
|
static |
|
static |
Definition at line 57 of file f_perms.c.
Referenced by filter_frame().
Variable Documentation
|
static |
Initial value:
= {
{ "mode", "select permissions mode", OFFSET(mode), AV_OPT_TYPE_INT, {.i64 = MODE_NONE}, MODE_NONE, NB_MODES-1, FLAGS, "mode" },
{ "none", "do nothing", 0, AV_OPT_TYPE_CONST, {.i64 = MODE_NONE}, INT_MIN, INT_MAX, FLAGS, "mode" },
{ "ro", "set all output frames read-only", 0, AV_OPT_TYPE_CONST, {.i64 = MODE_RO}, INT_MIN, INT_MAX, FLAGS, "mode" },
{ "rw", "set all output frames writable", 0, AV_OPT_TYPE_CONST, {.i64 = MODE_RW}, INT_MIN, INT_MAX, FLAGS, "mode" },
{ "toggle", "switch permissions", 0, AV_OPT_TYPE_CONST, {.i64 = MODE_TOGGLE}, INT_MIN, INT_MAX, FLAGS, "mode" },
{ "random", "set permissions randomly", 0, AV_OPT_TYPE_CONST, {.i64 = MODE_RANDOM}, INT_MIN, INT_MAX, FLAGS, "mode" },
{ "seed", "set the seed for the random mode", OFFSET(random_seed), AV_OPT_TYPE_INT64, {.i64 = -1}, -1, UINT32_MAX, FLAGS },
{ NULL }
}
Definition: opt.h:223
Definition: opt.h:222
Definition: f_perms.c:31
Definition: opt.h:229
Definition: f_perms.c:30
Definition: f_perms.c:32
Definition: f_perms.c:29
Definition: f_perms.c:28
Definition: f_perms.c:33
|
static |
Definition at line 75 of file f_perms.c.
Referenced by filter_frame().
Generated on Fri Dec 20 2024 06:56:12 for FFmpeg by 1.8.11