FFmpeg
Data Structures | Macros
opusenc.h File Reference
#include "libavutil/intmath.h"
#include "opus.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)
 

Macro Definition Documentation

◆ FF_BUFQUEUE_SIZE

#define FF_BUFQUEUE_SIZE   145

Definition at line 29 of file opusenc.h.

◆ OPUS_MAX_LOOKAHEAD

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

Definition at line 32 of file opusenc.h.

◆ OPUS_MAX_CHANNELS

#define OPUS_MAX_CHANNELS   2

Definition at line 34 of file opusenc.h.

◆ OPUS_MAX_FRAMES_PER_PACKET

#define OPUS_MAX_FRAMES_PER_PACKET   48

Definition at line 37 of file opusenc.h.

◆ OPUS_BLOCK_SIZE

#define OPUS_BLOCK_SIZE (   x)    (2 * 15 * (1 << ((x) + 2)))

Definition at line 39 of file opusenc.h.

◆ OPUS_SAMPLES_TO_BLOCK_SIZE

#define OPUS_SAMPLES_TO_BLOCK_SIZE (   x)    (ff_log2((x) / (2 * 15)) - 2)

Definition at line 41 of file opusenc.h.