FFmpeg
Data Structures | Functions | Variables
wvenc.c File Reference
#include "libavutil/attributes.h"
#include "apetag.h"
#include "avformat.h"
#include "mux.h"
#include "wv.h"

Go to the source code of this file.

Data Structures

struct  WvMuxContext
 

Functions

static av_cold int wv_init (AVFormatContext *ctx)
 
static int wv_write_packet (AVFormatContext *ctx, AVPacket *pkt)
 
static av_cold int wv_write_trailer (AVFormatContext *ctx)
 

Variables

const FFOutputFormat ff_wv_muxer
 

Function Documentation

◆ wv_init()

static av_cold int wv_init ( AVFormatContext ctx)
static

Definition at line 34 of file wvenc.c.

◆ wv_write_packet()

static int wv_write_packet ( AVFormatContext ctx,
AVPacket pkt 
)
static

Definition at line 45 of file wvenc.c.

◆ wv_write_trailer()

static av_cold int wv_write_trailer ( AVFormatContext ctx)
static

Definition at line 63 of file wvenc.c.

Variable Documentation

◆ ff_wv_muxer

const FFOutputFormat ff_wv_muxer
Initial value:
= {
.p.name = "wv",
.p.long_name = NULL_IF_CONFIG_SMALL("raw WavPack"),
.p.mime_type = "audio/x-wavpack",
.p.extensions = "wv",
.priv_data_size = sizeof(WvMuxContext),
.p.audio_codec = AV_CODEC_ID_WAVPACK,
.p.video_codec = AV_CODEC_ID_NONE,
.init = wv_init,
.write_packet = wv_write_packet,
.write_trailer = wv_write_trailer,
.p.flags = AVFMT_NOTIMESTAMPS,
}

Definition at line 80 of file wvenc.c.

AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:479
wv_write_trailer
static av_cold int wv_write_trailer(AVFormatContext *ctx)
Definition: wvenc.c:63
WvMuxContext
Definition: wvenc.c:30
wv_init
static av_cold int wv_init(AVFormatContext *ctx)
Definition: wvenc.c:34
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:115
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
wv_write_packet
static int wv_write_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: wvenc.c:45
AV_CODEC_ID_WAVPACK
@ AV_CODEC_ID_WAVPACK
Definition: codec_id.h:463