FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
opusenc.h File Reference
#include "internal.h"
#include "opus_celt.h"
#include "libavfilter/bufferqueue.h"

Go to the source code of this file.

Data Structures

struct  OpusEncOptions
 
struct  OpusPacketInfo
 

Macros

#define FF_BUFQUEUE_SIZE   145
 
#define OPUS_MAX_LOOKAHEAD   ((FF_BUFQUEUE_SIZE - 1)*2.5f)
 
#define OPUS_MAX_CHANNELS   2
 
#define OPUS_MAX_FRAMES_PER_PACKET   48
 
#define OPUS_BLOCK_SIZE(x)   (2 * 15 * (1 << ((x) + 2)))
 
#define OPUS_SAMPLES_TO_BLOCK_SIZE(x)   (ff_log2((x) / (2 * 15)) - 2)
 

Functions

void ff_celt_enc_bitalloc (OpusRangeCoder *rc, CeltFrame *f)
 

Macro Definition Documentation

#define FF_BUFQUEUE_SIZE   145

Definition at line 29 of file opusenc.h.

#define OPUS_MAX_LOOKAHEAD   ((FF_BUFQUEUE_SIZE - 1)*2.5f)

Definition at line 32 of file opusenc.h.

#define OPUS_MAX_CHANNELS   2

Definition at line 34 of file opusenc.h.

#define OPUS_MAX_FRAMES_PER_PACKET   48

Definition at line 37 of file opusenc.h.

#define OPUS_BLOCK_SIZE (   x)    (2 * 15 * (1 << ((x) + 2)))
#define OPUS_SAMPLES_TO_BLOCK_SIZE (   x)    (ff_log2((x) / (2 * 15)) - 2)

Definition at line 41 of file opusenc.h.

Referenced by psy_output_groups().

Function Documentation

void ff_celt_enc_bitalloc ( OpusRangeCoder rc,
CeltFrame f 
)

Definition at line 285 of file opusenc.c.

Referenced by bands_dist(), and celt_encode_frame().