FFmpeg
Data Structures | Macros | Functions | Variables
notchlc.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "bytestream.h"
#include "get_bits.h"
#include "internal.h"
#include "lzf.h"
#include "thread.h"

Go to the source code of this file.

Data Structures

struct  NotchLCContext
 

Macros

#define BITSTREAM_READER_LE
 
#define HISTORY_SIZE   (64 * 1024)
 

Functions

static av_cold int decode_init (AVCodecContext *avctx)
 
static int lz4_decompress (AVCodecContext *avctx, GetByteContext *gb, PutByteContext *pb)
 
static int decode_blocks (AVCodecContext *avctx, AVFrame *p, ThreadFrame *frame, unsigned uncompressed_size)
 
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int decode_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_notchlc_decoder
 

Macro Definition Documentation

#define BITSTREAM_READER_LE

Definition at line 26 of file notchlc.c.

#define HISTORY_SIZE   (64 * 1024)

Definition at line 74 of file notchlc.c.

Referenced by lz4_decompress().

Function Documentation

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 63 of file notchlc.c.

static int lz4_decompress ( AVCodecContext avctx,
GetByteContext gb,
PutByteContext pb 
)
static

Definition at line 76 of file notchlc.c.

Referenced by decode_frame().

static int decode_blocks ( AVCodecContext avctx,
AVFrame p,
ThreadFrame frame,
unsigned  uncompressed_size 
)
static

Definition at line 149 of file notchlc.c.

Referenced by decode_frame().

static int decode_frame ( AVCodecContext avctx,
void data,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 456 of file notchlc.c.

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 519 of file notchlc.c.

Variable Documentation

AVCodec ff_notchlc_decoder
Initial value:
= {
.name = "notchlc",
.long_name = NULL_IF_CONFIG_SMALL("NotchLC"),
.priv_data_size = sizeof(NotchLCContext),
.close = decode_end,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int decode_init(AVCodecContext *avctx)
Definition: notchlc.c:63
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: notchlc.c:456
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:153
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: codec.h:106
static av_cold int decode_end(AVCodecContext *avctx)
Definition: notchlc.c:519
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:50

Definition at line 531 of file notchlc.c.