FFmpeg
|
caca.c File Reference
Include dependency graph for caca.c:
Go to the source code of this file.
Data Structures | |
struct | CACAContext |
Macros | |
#define | DEFINE_LIST_DITHER(thing, thing_str) |
#define | CHECK_DITHER_OPT(opt) |
#define | OFFSET(x) offsetof(CACAContext,x) |
#define | ENC AV_OPT_FLAG_ENCODING_PARAM |
Typedefs | |
typedef struct CACAContext | CACAContext |
Functions | |
static int | caca_write_trailer (AVFormatContext *s) |
static void | list_drivers (CACAContext *c) |
DEFINE_LIST_DITHER (color,"colors") | |
DEFINE_LIST_DITHER (charset,"charsets") | |
DEFINE_LIST_DITHER (algorithm,"algorithms") | |
DEFINE_LIST_DITHER (antialias,"antialias") | |
static int | caca_write_header (AVFormatContext *s) |
static int | caca_write_packet (AVFormatContext *s, AVPacket *pkt) |
Variables | |
static const AVOption | options [] |
static const AVClass | caca_class |
AVOutputFormat | ff_caca_muxer |
Macro Definition Documentation
#define CHECK_DITHER_OPT | ( | opt | ) |
Value:
c->opt, #opt); \
goto fail; \
}
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFilterBuffer structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later.That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another.Buffer references ownership and permissions
Referenced by caca_write_header().
#define DEFINE_LIST_DITHER | ( | thing, | |
thing_str | |||
) |
Value:
#define ENC AV_OPT_FLAG_ENCODING_PARAM |
#define OFFSET | ( | x | ) | offsetof(CACAContext,x) |
Typedef Documentation
typedef struct CACAContext CACAContext |
Function Documentation
|
static |
|
static |
|
static |
Definition at line 44 of file caca.c.
Referenced by caca_write_header().
DEFINE_LIST_DITHER | ( | color | , |
"colors" | |||
) |
DEFINE_LIST_DITHER | ( | charset | , |
"charsets" | |||
) |
DEFINE_LIST_DITHER | ( | algorithm | , |
"algorithms" | |||
) |
DEFINE_LIST_DITHER | ( | antialias | , |
"antialias" | |||
) |
|
static |
Variable Documentation
|
static |
Initial value:
= {
.class_name = "caca_outdev",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
}
AVOutputFormat ff_caca_muxer |
Initial value:
= {
.name = "caca",
.long_name = NULL_IF_CONFIG_SMALL("caca (color ASCII art) output device"),
.priv_data_size = sizeof(CACAContext),
.audio_codec = AV_CODEC_ID_NONE,
.video_codec = AV_CODEC_ID_RAWVIDEO,
.flags = AVFMT_NOFILE,
.priv_class = &caca_class,
}
Definition: libavcodec/avcodec.h:100
static int write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: libavformat/assenc.c:63
struct CACAContext CACAContext
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:345
static int caca_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: caca.c:190
Definition: libavcodec/avcodec.h:116
|
static |
Initial value:
= {
{ "window_size", "set window forced size", OFFSET(window_width), AV_OPT_TYPE_IMAGE_SIZE, {.str = NULL }, 0, 0, ENC},
{ "window_title", "set window title", OFFSET(window_title), AV_OPT_TYPE_STRING, {.str = NULL }, 0, 0, ENC },
{ "algorithm", "set dithering algorithm", OFFSET(algorithm), AV_OPT_TYPE_STRING, {.str = "default" }, 0, 0, ENC },
{ "antialias", "set antialias method", OFFSET(antialias), AV_OPT_TYPE_STRING, {.str = "default" }, 0, 0, ENC },
{ "charset", "set charset used to render output", OFFSET(charset), AV_OPT_TYPE_STRING, {.str = "default" }, 0, 0, ENC },
{ "color", "set color used to render output", OFFSET(color), AV_OPT_TYPE_STRING, {.str = "default" }, 0, 0, ENC },
{ "list_drivers", "list available drivers", OFFSET(list_drivers), AV_OPT_TYPE_INT, {.i64=0}, 0, 1, ENC, "list_drivers" },
{ "list_dither", "list available dither options", OFFSET(list_dither), AV_OPT_TYPE_STRING, {.dbl=0}, 0, 1, ENC, "list_dither" },
{ NULL },
}
Definition: opt.h:222
Definition: opt.h:229
Definition: opt.h:226
Generated on Fri Dec 20 2024 06:56:11 for FFmpeg by 1.8.11