Go to the documentation of this file.
29 # define WRITER_NAME "aviowriter"
51 if (
ctx->close_on_uninit &&
ctx->avio_context) {
100 ctx = (*pwctx)->priv;
109 ctx->close_on_uninit = close_on_uninit;
124 ctx = (*pwctx)->priv;
125 ctx->avio_context = avio_ctx;
126 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
static const char * iowriter_get_name(void *ctx)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int avtextwriter_context_close(AVTextWriterContext **pwctx)
int avtextwriter_create_file(AVTextWriterContext **pwctx, const char *output_filename, int close_on_uninit)
#define AVIO_FLAG_WRITE
write-only
int avtextwriter_create_avio(AVTextWriterContext **pwctx, AVIOContext *avio_ctx, int close_on_uninit)
void avio_flush(AVIOContext *s)
Force flushing of buffered data.
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)
#define av_err2str(errnum)
Convenience macro, the return value should be used only directly in function arguments but never stan...
static const AVClass iowriter_class
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
static void uninit(AVBSFContext *ctx)
#define writer_put_str(wctx_, str_)
static void io_printf(AVTextWriterContext *wctx, const char *fmt,...)
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_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_close(AVIOContext *s)
Close the resource accessed by the AVIOContext s and free it.
#define writer_printf(wctx_, fmt_,...)