FFmpeg
Data Structures | Functions | Variables
jvdec.c File Reference
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "blockdsp.h"
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.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, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
 
static av_cold int decode_close (AVCodecContext *avctx)
 

Variables

const FFCodec 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 43 of file jvdec.c.

◆ decode2x2()

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

Decode 2x2 block.

Definition at line 66 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 93 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 123 of file jvdec.c.

Referenced by decode_frame().

◆ decode_frame()

static int decode_frame ( AVCodecContext avctx,
AVFrame rframe,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 147 of file jvdec.c.

◆ decode_close()

static av_cold int decode_close ( AVCodecContext avctx)
static

Definition at line 228 of file jvdec.c.

Variable Documentation

◆ ff_jv_decoder

const FFCodec ff_jv_decoder
Initial value:
= {
.p.name = "jv",
CODEC_LONG_NAME("Bitmap Brothers JV video"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.id = AV_CODEC_ID_JV,
.priv_data_size = sizeof(JvContext),
.close = decode_close,
.p.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 237 of file jvdec.c.

init
static int init
Definition: av_tx.c:47
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:298
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:264
decode_frame
static int decode_frame(AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
Definition: jvdec.c:147
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
decode_close
static av_cold int decode_close(AVCodecContext *avctx)
Definition: jvdec.c:228
JvContext
Definition: jvdec.c:36
AV_CODEC_ID_JV
@ AV_CODEC_ID_JV
Definition: codec_id.h:201
decode_init
static av_cold int decode_init(AVCodecContext *avctx)
Definition: jvdec.c:43
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201