= {
{ "mode", "Frame mapping mode",
0, INT_MAX,
FLAGS, .unit =
"mode" },
{ "read", "Mapping should be readable",
INT_MIN, INT_MAX,
FLAGS, .unit =
"mode" },
{ "write", "Mapping should be writeable",
INT_MIN, INT_MAX,
FLAGS, .unit =
"mode" },
{ "overwrite", "Mapping will always overwrite the entire frame",
INT_MIN, INT_MAX,
FLAGS, .unit =
"mode" },
{ "direct", "Mapping should not involve any copying",
INT_MIN, INT_MAX,
FLAGS, .unit =
"mode" },
{ "derive_device", "Derive a new device of this type",
{ "reverse", "Map in reverse (create and allocate in the sink)",
{ .i64 = 0 }, 0, 1,
FLAGS },
}
static uint64_t reverse(uint64_t p, unsigned int deg)
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
@ AV_OPT_TYPE_FLAGS
Underlying C type is unsigned int.
@ AV_OPT_TYPE_INT
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...
@ AV_HWFRAME_MAP_READ
The mapping must be readable.
@ AV_HWFRAME_MAP_DIRECT
The mapping must be direct.
@ AV_HWFRAME_MAP_WRITE
The mapping must be writeable.
@ AV_HWFRAME_MAP_OVERWRITE
The mapped frame will be overwritten completely in subsequent operations, so the current frame data n...