All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
libwavpackenc.c File Reference
#include <wavpack/wavpack.h>
#include <string.h>
#include "libavutil/attributes.h"
#include "libavutil/opt.h"
#include "libavutil/samplefmt.h"
#include "audio_frame_queue.h"
#include "avcodec.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  LibWavpackContext


#define WV_DEFAULT_BLOCK_SIZE   32768


static int wavpack_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_output)
static int encode_callback (void *id, void *data, int32_t count)
static av_cold int wavpack_encode_init (AVCodecContext *avctx)
static av_cold int wavpack_encode_close (AVCodecContext *avctx)


AVCodec ff_libwavpack_encoder

Macro Definition Documentation

#define WV_DEFAULT_BLOCK_SIZE   32768

Definition at line 30 of file libwavpackenc.c.

Referenced by wavpack_encode_init().

Function Documentation

static int wavpack_encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame frame,
int *  got_output 

Definition at line 43 of file libwavpackenc.c.

static int encode_callback ( void id,
void data,
int32_t  count 

Definition at line 84 of file libwavpackenc.c.

Referenced by wavpack_encode_init().

static av_cold int wavpack_encode_init ( AVCodecContext avctx)

Definition at line 111 of file libwavpackenc.c.

static av_cold int wavpack_encode_close ( AVCodecContext avctx)

Definition at line 172 of file libwavpackenc.c.

Variable Documentation

AVCodec ff_libwavpack_encoder
Initial value:
= {
.name = "libwavpack",
.priv_data_size = sizeof(LibWavpackContext),
static av_cold int wavpack_encode_init(AVCodecContext *avctx)
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: avcodec.h:981
signed 32 bits
Definition: samplefmt.h:62
static int wavpack_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_output)
Definition: libwavpackenc.c:43
static av_cold int wavpack_encode_close(AVCodecContext *avctx)
Codec can be fed a final frame with a smaller size.
Definition: avcodec.h:986
Audio sample formats.
Definition: samplefmt.h:58
static enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:701

Definition at line 183 of file libwavpackenc.c.