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

Go to the source code of this file.

Data Structures

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 write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int query_codec (enum AVCodecID id, int std_compliance)
 

Variables

static const AVOption muxoptions []
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 210 of file img2enc.c.

◆ ENC

#define ENC   AV_OPT_FLAG_ENCODING_PARAM

Definition at line 211 of file img2enc.c.

Function Documentation

◆ write_header()

static int write_header ( AVFormatContext s)
static

Definition at line 50 of file img2enc.c.

◆ write_packet()

static int write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 81 of file img2enc.c.

◆ query_codec()

static int query_codec ( enum AVCodecID  id,
int  std_compliance 
)
static

Definition at line 199 of file img2enc.c.

Variable Documentation

◆ muxoptions

const AVOption muxoptions[]
static
Initial value:
= {
{ "update", "continuously overwrite one file", OFFSET(update), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, ENC },
{ "start_number", "set first number in the sequence", OFFSET(img_number), AV_OPT_TYPE_INT, { .i64 = 1 }, 0, INT_MAX, ENC },
{ "strftime", "use strftime for filename", OFFSET(use_strftime), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, ENC },
{ "frame_pts", "use current frame pts for filename", OFFSET(frame_pts), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, ENC },
{ "atomic_writing", "write files atomically (using temporary files and renames)", OFFSET(use_rename), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, ENC },
{ NULL },
}

Definition at line 212 of file img2enc.c.

OFFSET
#define OFFSET(x)
Definition: img2enc.c:210
update
static av_always_inline void update(SilenceDetectContext *s, AVFrame *insamples, int is_silence, int current_sample, int64_t nb_samples_notify, AVRational time_base)
Definition: af_silencedetect.c:77
NULL
#define NULL
Definition: coverity.c:32
ENC
#define ENC
Definition: img2enc.c:211
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:223
AV_OPT_TYPE_BOOL
@ AV_OPT_TYPE_BOOL
Definition: opt.h:240