FFmpeg  4.0
Data Structures | Functions | Variables
jvdec.c File Reference

Bitmap Brothers JV video decoder. More...

#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "blockdsp.h"
#include "get_bits.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  JvContext
 

Functions

static av_cold int decode_init (AVCodecContext *avctx)
 
static void decode2x2 (GetBitContext *gb, uint8_t *dst, int linesize)
 Decode 2x2 block. More...
 
static void decode4x4 (GetBitContext *gb, uint8_t *dst, int linesize)
 Decode 4x4 block. More...
 
static void decode8x8 (GetBitContext *gb, uint8_t *dst, int linesize, BlockDSPContext *bdsp)
 Decode 8x8 block. More...
 
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int decode_close (AVCodecContext *avctx)
 

Variables

AVCodec ff_jv_decoder
 

Detailed Description

Bitmap Brothers JV video decoder.

Author
Peter Ross pross.nosp@m.@xvi.nosp@m.d.org

Definition in file jvdec.c.

Function Documentation

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 42 of file jvdec.c.

◆ decode2x2()

static void decode2x2 ( GetBitContext gb,
uint8_t dst,
int  linesize 
)
inlinestatic

Decode 2x2 block.

Definition at line 65 of file jvdec.c.

Referenced by decode4x4().

◆ decode4x4()

static void decode4x4 ( GetBitContext gb,
uint8_t dst,
int  linesize 
)
inlinestatic

Decode 4x4 block.

Definition at line 92 of file jvdec.c.

Referenced by decode8x8().

◆ decode8x8()

static void decode8x8 ( GetBitContext gb,
uint8_t dst,
int  linesize,
BlockDSPContext bdsp 
)
inlinestatic

Decode 8x8 block.

Definition at line 122 of file jvdec.c.

Referenced by decode_frame().

◆ decode_frame()

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

Definition at line 146 of file jvdec.c.

◆ decode_close()

static av_cold int decode_close ( AVCodecContext avctx)
static

Definition at line 216 of file jvdec.c.

Variable Documentation

◆ ff_jv_decoder

AVCodec ff_jv_decoder
Initial value:
= {
.name = "jv",
.long_name = NULL_IF_CONFIG_SMALL("Bitmap Brothers JV video"),
.priv_data_size = sizeof(JvContext),
.close = decode_close,
.capabilities = AV_CODEC_CAP_DR1,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int decode_init(AVCodecContext *avctx)
Definition: jvdec.c:42
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: jvdec.c:146
static av_cold int decode_close(AVCodecContext *avctx)
Definition: jvdec.c:216
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:959

Definition at line 225 of file jvdec.c.