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


#define HISTORY_SIZE   (64 * 1024)


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)


AVCodec ff_notchlc_decoder

Macro Definition Documentation


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)

Definition at line 63 of file notchlc.c.

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

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 

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 

Definition at line 456 of file notchlc.c.

static av_cold int decode_end ( AVCodecContext avctx)

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
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:153
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.