FFmpeg
|
Westwood SNDx codecs. More...
#include <stdint.h>
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "internal.h"
Include dependency graph for ws-snd1.c:
Go to the source code of this file.
Functions | |
static av_cold int | ws_snd_decode_init (AVCodecContext *avctx) |
static int | ws_snd_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) |
Variables | |
static const int8_t | ws_adpcm_4bit [] |
AVCodec | ff_ws_snd1_decoder |
Detailed Description
Westwood SNDx codecs.
Reference documents about VQA format and its audio codecs can be found here: http://www.multimedia.cx
Definition in file ws-snd1.c.
Function Documentation
|
static |
|
static |
Variable Documentation
AVCodec ff_ws_snd1_decoder |
Initial value:
= {
.name = "ws_snd1",
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_WESTWOOD_SND1,
.init = ws_snd_decode_init,
.decode = ws_snd_decode_frame,
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Westwood Audio (SND1)"),
}
static av_cold int ws_snd_decode_init(AVCodecContext *avctx)
Definition: ws-snd1.c:44
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: libavcodec/avcodec.h:743
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
Definition: avutil.h:144
static int ws_snd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: ws-snd1.c:53
|
static |
Initial value:
= {
-9, -8, -6, -5, -4, -3, -2, -1,
0, 1, 2, 3, 4, 5, 6, 8
}
Definition at line 39 of file ws-snd1.c.
Referenced by ws_snd_decode_frame().
Generated on Fri Dec 20 2024 06:56:17 for FFmpeg by 1.8.11