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 45 of file jvdec.c.

◆ decode2x2()

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

Decode 2x2 block.

Definition at line 68 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 95 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 125 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 149 of file jvdec.c.

◆ decode_close()

static av_cold int decode_close ( AVCodecContext avctx)
static

Definition at line 236 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 245 of file jvdec.c.

FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:287
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
decode_frame
static int decode_frame(AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
Definition: jvdec.c:149
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:365
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:236
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:45
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201