Go to the documentation of this file.
32 # define WRITER_NAME "aviowriter"
45 if (
ctx->close_on_uninit)
59 avio_write(
ctx->avio_context, (
const unsigned char *)str, (
int)strlen(str));
102 ctx->close_on_uninit = 1;
119 ctx = (*pwctx)->priv;
120 ctx->avio_context = avio_ctx;
121 ctx->close_on_uninit = close_on_uninit;
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 void io_w8(AVTextWriterContext *wctx, int b)
int avio_open(AVIOContext **s, const char *filename, int flags)
Create and initialize a AVIOContext for accessing the resource indicated by url.
static void io_put_str(AVTextWriterContext *wctx, const char *str)
void * priv
private data for use by the writer
static const char * output_filename
static av_cold int iowriter_uninit(AVTextWriterContext *wctx)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static void io_vprintf(AVTextWriterContext *wctx, const char *fmt, va_list vl)
int avtextwriter_context_close(AVTextWriterContext **pwctx)
#define av_assert0(cond)
assert() equivalent, that is always enabled.
#define AVIO_FLAG_WRITE
write-only
int avtextwriter_create_avio(AVTextWriterContext **pwctx, AVIOContext *avio_ctx, int close_on_uninit)
Describe the class of an AVClass context structure.
static void writer_w8(AVTextFormatContext *wctx, int b)
void avio_w8(AVIOContext *s, int b)
int avtextwriter_context_open(AVTextWriterContext **pwctx, const AVTextWriter *writer)
int avtextwriter_create_file(AVTextWriterContext **pwctx, const char *output_filename)
#define av_err2str(errnum)
Convenience macro, the return value should be used only directly in function arguments but never stan...
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
static void writer_put_str(AVTextFormatContext *wctx, const char *str)
static void uninit(AVBSFContext *ctx)
int avio_vprintf(AVIOContext *s, const char *fmt, va_list ap)
Writes a formatted string to the context taking a va_list.
const AVTextWriter avtextwriter_avio
AVIOContext * avio_context
int avio_closep(AVIOContext **s)
Close the resource accessed by the AVIOContext *s, free it and set the pointer pointing to it to NULL...