Go to the documentation of this file.
34 #define SYNC_BEGIN ESC "[?2026h"
35 #define SYNC_END ESC "[?2026l"
36 #define CURSOR_SAVE ESC "7"
37 #define CURSOR_RESTORE ESC "8"
38 #define CURSOR_HOME ESC "[H"
39 #define CURSOR_BOTTOM ESC "[999H"
41 #define OSC_START ESC "]1337;"
46 #define TMUX_DCS ESC "Ptmux;"
52 #define FILEPART_CHUNK ((1 << 20) - 4096)
54 #define WRITE_LITERAL(pb, str) avio_write(pb, (const unsigned char *)(str), \
83 size_t b64_len = strlen(
c->b64);
88 if (
c->display_width &&
c->display_width[0])
90 if (
c->display_height &&
c->display_height[0])
145 #define OFFSET(x) offsetof(ITerm2Context, x)
146 #define ENC AV_OPT_FLAG_ENCODING_PARAM
149 {
"display_width",
"on-screen width (auto, N cells, Npx, N%%)",
151 {
"display_height",
"on-screen height (auto, N cells, Npx, N%%)",
153 {
"keep_aspect",
"preserve aspect ratio when scaling",
155 {
"tmux",
"wrap image in tmux DCS passthrough, requires tmux set -g allow-passthrough on",
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
static int iterm2_write_packet(AVFormatContext *s, AVPacket *pkt)
static av_cold void iterm2_deinit(AVFormatContext *s)
static int iterm2_write_trailer(AVFormatContext *s)
static void write_image(ITerm2Context *c, AVIOContext *pb, int size)
static const AVOption options[]
void avio_flush(AVIOContext *s)
Force flushing of buffered data.
#define LIBAVUTIL_VERSION_INT
Describe the class of an AVClass context structure.
const FFOutputFormat ff_iterm2_muxer
const char * av_default_item_name(void *ptr)
Return the context name.
static void osc_close(ITerm2Context *c, AVIOContext *pb)
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
static void osc_open(ITerm2Context *c, AVIOContext *pb)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
#define AV_BASE64_SIZE(x)
Calculate the output size needed to base64-encode x bytes to a null-terminated string.
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
int avio_printf(AVIOContext *s, const char *fmt,...) av_printf_format(2
Writes a formatted string to the context.
@ AV_CLASS_CATEGORY_MUXER
char * av_base64_encode(char *out, int out_size, const uint8_t *in, int in_size)
Encode data to base64 and null-terminate.
IDirect3DDxgiInterfaceAccess _COM_Outptr_ void ** p
This structure stores compressed data.
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
static const AVClass iterm2_class
void av_fast_malloc(void *ptr, unsigned int *size, size_t min_size)
Allocate a buffer, reusing the given one if large enough.
#define WRITE_LITERAL(pb, str)
@ 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...