FFmpeg
 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
 

Macros

#define WV_DEFAULT_BLOCK_SIZE   32768
 

Functions

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)
 

Variables

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 
)
static

Definition at line 43 of file libwavpackenc.c.

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

Definition at line 84 of file libwavpackenc.c.

Referenced by wavpack_encode_init().

static av_cold int wavpack_encode_init ( AVCodecContext avctx)
static

Definition at line 111 of file libwavpackenc.c.

static av_cold int wavpack_encode_close ( AVCodecContext avctx)
static

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
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: avcodec.h:881
signed 32 bits
Definition: samplefmt.h:63
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)
#define AV_CODEC_CAP_SMALL_LAST_FRAME
Codec can be fed a final frame with a smaller size.
Definition: avcodec.h:886
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:59
static enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:701

Definition at line 183 of file libwavpackenc.c.