Libav
Data Structures | Macros | Functions | Variables
img2enc.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/avstring.h"
#include "libavutil/log.h"
#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"
#include "libavutil/opt.h"

Go to the source code of this file.

Data Structures

struct  RenameIO
 
struct  VideoMuxData
 

Macros

#define OFFSET(x)   offsetof(VideoMuxData, x)
 
#define ENC   AV_OPT_FLAG_ENCODING_PARAM
 

Functions

static int write_header (AVFormatContext *s)
 
static int open_temporary (AVFormatContext *s, RenameIO *out, const char *filename)
 
static void close_and_rename (AVFormatContext *s, RenameIO *out)
 
static int write_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const AVOption muxoptions []
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET (   x)    offsetof(VideoMuxData, x)

Definition at line 151 of file img2enc.c.

◆ ENC

#define ENC   AV_OPT_FLAG_ENCODING_PARAM

Definition at line 152 of file img2enc.c.

Function Documentation

◆ write_header()

static int write_header ( AVFormatContext s)
static

Definition at line 45 of file img2enc.c.

◆ open_temporary()

static int open_temporary ( AVFormatContext s,
RenameIO out,
const char *  filename 
)
static

Definition at line 60 of file img2enc.c.

Referenced by write_packet().

◆ close_and_rename()

static void close_and_rename ( AVFormatContext s,
RenameIO out 
)
static

Definition at line 72 of file img2enc.c.

Referenced by write_packet().

◆ write_packet()

static int write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 78 of file img2enc.c.

Variable Documentation

◆ muxoptions

const AVOption muxoptions[]
static
Initial value:
= {
{ "start_number", "first number in the sequence", OFFSET(img_number), AV_OPT_TYPE_INT, { .i64 = 1 }, 1, INT_MAX, ENC },
{ "update", "continuously overwrite one file", OFFSET(update), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, ENC },
{ NULL },
}
#define OFFSET(x)
Definition: img2enc.c:151
NULL
Definition: eval.c:55
#define ENC
Definition: img2enc.c:152

Definition at line 153 of file img2enc.c.