Go to the documentation of this file.
31 # define WRITER_NAME "aviowriter"
43 if (
ctx->close_on_uninit)
98 ctx->close_on_uninit = 1;
113 ctx = (*pwctx)->priv;
114 ctx->avio_context = avio_ctx;
115 ctx->close_on_uninit = close_on_uninit;
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
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#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.
void avio_w8(AVIOContext *s, int b)
#define writer_w8(wctx_, b_)
static av_cold void iowriter_uninit(AVTextWriterContext *wctx)
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 uninit(AVBSFContext *ctx)
void avtextwriter_context_close(AVTextWriterContext **pwctx)
#define writer_put_str(wctx_, str_)
static void io_printf(AVTextWriterContext *wctx, const char *fmt,...)
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...
#define writer_printf(wctx_, fmt_,...)