#include <caca.h>
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avdevice.h"
Go to the source code of this file.
#define DEFINE_LIST_DITHER |
( |
|
thing, |
|
|
|
thing_str |
|
) |
| |
Value:{ \
const
char *
const *thing = caca_get_dither_## thing ##_list(
c->dither);
\ for (i = 0; thing[
i]; i += 2) \
}
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
#define AV_LOG_INFO
Standard information.
Definition at line 75 of file caca.c.
#define CHECK_DITHER_OPT |
( |
|
opt | ) |
|
Value: if (caca_set_dither_##opt(
c->dither,
c->opt) < 0) {
\ } \
} while (0)
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame 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.Frame references ownership and permissions
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" |
|
|
) |
| |
Initial value:= {
{
"charset",
"set charset used to render output",
OFFSET(charset),
AV_OPT_TYPE_STRING, {.str =
"default" }, 0, 0, ENC },
}
static void list_drivers(CACAContext *c)
static const char * window_title
offset must point to two consecutive integers
Definition at line 205 of file caca.c.
Initial value:= {
.class_name = "caca outdev",
}
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name.
static const AVOption options[]
Definition at line 222 of file caca.c.
Initial value:= {
.name = "caca",
}
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
static int caca_write_trailer(AVFormatContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int write_trailer(AVFormatContext *s1)
static int caca_write_header(AVFormatContext *s)
#define flags(name, subs,...)
static int caca_write_packet(AVFormatContext *s, AVPacket *pkt)
static void write_header(FFV1Context *f)
static const AVClass caca_class
Definition at line 230 of file caca.c.