#include <caca.h>
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavformat/mux.h"
#include "avdevice.h"
Go to the source code of this file.
◆ DEFINE_LIST_DITHER
| #define DEFINE_LIST_DITHER |
( |
| thing, |
|
|
| thing_str ) |
Value:
{ \
const char *
const *thing = caca_get_dither_## thing ##_list(
c->dither); \
\
av_log(
c->ctx,
AV_LOG_INFO,
"Available %s:\n", thing_str); \
for (
i = 0; thing[
i];
i += 2) \
}
#define i(width, name, range_min, range_max)
#define AV_LOG_INFO
Standard information.
Definition at line 81 of file caca.c.
◆ CHECK_DITHER_OPT
| #define CHECK_DITHER_OPT |
( |
| opt | ) |
|
Value: do { \
if (caca_set_dither_##opt(
c->dither,
c->opt) < 0) { \
av_log(
s,
AV_LOG_ERROR,
"Failed to set value '%s' for option '%s'\n", \
return ret; \
} \
} while (0)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Referenced by caca_write_header().
◆ OFFSET
Value:
Definition at line 197 of file caca.c.
◆ ENC
◆ anonymous enum
| Enumerator |
|---|
| LIST_ALGORITHMS | |
| LIST_ANTIALIASES | |
| LIST_CHARSETS | |
| LIST_COLORS | |
Definition at line 28 of file caca.c.
◆ caca_deinit()
◆ list_drivers()
◆ DEFINE_LIST_DITHER() [1/4]
| DEFINE_LIST_DITHER |
( |
color | , |
|
|
"colors" | ) |
◆ DEFINE_LIST_DITHER() [2/4]
| DEFINE_LIST_DITHER |
( |
charset | , |
|
|
"charsets" | ) |
◆ DEFINE_LIST_DITHER() [3/4]
| DEFINE_LIST_DITHER |
( |
algorithm | , |
|
|
"algorithms" | ) |
◆ DEFINE_LIST_DITHER() [4/4]
| DEFINE_LIST_DITHER |
( |
antialias | , |
|
|
"antialias" | ) |
◆ caca_write_header()
◆ caca_write_packet()
◆ options
Initial value:= {
{
"list_dither",
"list available dither options",
OFFSET(list_dither),
AV_OPT_TYPE_FLAGS, { .i64 = 0 }, 0, INT_MAX,
ENC, .unit =
"list_dither" },
}
static void list_drivers(CACAContext *c)
static const char * window_title
@ AV_OPT_TYPE_IMAGE_SIZE
Underlying C type is two consecutive integers.
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
@ AV_OPT_TYPE_FLAGS
Underlying C type is unsigned int.
@ AV_OPT_TYPE_BOOL
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...
static const uint32_t color[16+AV_CLASS_CATEGORY_NB]
Definition at line 200 of file caca.c.
◆ caca_class
Initial value:= {
.class_name = "caca outdev",
}
const char * av_default_item_name(void *ptr)
Return the context name.
#define LIBAVUTIL_VERSION_INT
@ AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT
Definition at line 217 of file caca.c.
◆ ff_caca_muxer
Initial value:= {
.p.name = "caca",
}
static void caca_deinit(AVFormatContext *s)
static const AVClass caca_class
static int caca_write_packet(AVFormatContext *s, AVPacket *pkt)
static int caca_write_header(AVFormatContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition at line 225 of file caca.c.