libavcodec/rv10.c File Reference

RV10/RV20 decoder. More...

#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "dsputil.h"
#include "mpegvideo.h"
#include "mpeg4video.h"
#include "h263.h"

Go to the source code of this file.

Data Structures

struct  RVDecContext

Defines

#define RV_GET_MAJOR_VER(x)   ((x) >> 28)
#define RV_GET_MINOR_VER(x)   (((x) >> 20) & 0xFF)
#define RV_GET_MICRO_VER(x)   (((x) >> 12) & 0xFF)
#define DC_VLC_BITS   14

Functions

int ff_rv_decode_dc (MpegEncContext *s, int n)
static int rv10_decode_picture_header (MpegEncContext *s)
static int rv20_decode_picture_header (RVDecContext *rv)
static av_cold int rv10_decode_init (AVCodecContext *avctx)
static av_cold int rv10_decode_end (AVCodecContext *avctx)
static int rv10_decode_packet (AVCodecContext *avctx, const uint8_t *buf, int buf_size, int buf_size2)
static int get_slice_offset (AVCodecContext *avctx, const uint8_t *buf, int n)
static int rv10_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)

Variables

static const uint16_t rv_lum_code [256]
static const uint8_t rv_lum_bits [256]
static const uint16_t rv_chrom_code [256]
static const uint8_t rv_chrom_bits [256]
static VLC rv_dc_lum
static VLC rv_dc_chrom
AVCodec ff_rv10_decoder
AVCodec ff_rv20_decoder


Detailed Description

RV10/RV20 decoder.

Definition in file rv10.c.


Define Documentation

#define DC_VLC_BITS   14

Definition at line 41 of file rv10.c.

#define RV_GET_MAJOR_VER (  )     ((x) >> 28)

Definition at line 37 of file rv10.c.

Referenced by rv10_decode_init().

#define RV_GET_MICRO_VER (  )     (((x) >> 12) & 0xFF)

Definition at line 39 of file rv10.c.

Referenced by rv10_decode_init().

#define RV_GET_MINOR_VER (  )     (((x) >> 20) & 0xFF)

Definition at line 38 of file rv10.c.

Referenced by rv10_decode_init(), and rv20_decode_picture_header().


Function Documentation

int ff_rv_decode_dc ( MpegEncContext s,
int  n 
)

Definition at line 194 of file rv10.c.

Referenced by h263_decode_block().

static int get_slice_offset ( AVCodecContext avctx,
const uint8_t buf,
int  n 
) [static]

Definition at line 666 of file rv10.c.

Referenced by ff_rv34_decode_frame(), and rv10_decode_frame().

static av_cold int rv10_decode_end ( AVCodecContext avctx  )  [static]

Definition at line 522 of file rv10.c.

static int rv10_decode_frame ( AVCodecContext avctx,
void *  data,
int data_size,
AVPacket avpkt 
) [static]

Definition at line 672 of file rv10.c.

static av_cold int rv10_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 451 of file rv10.c.

static int rv10_decode_packet ( AVCodecContext avctx,
const uint8_t buf,
int  buf_size,
int  buf_size2 
) [static]

Definition at line 530 of file rv10.c.

Referenced by rv10_decode_frame().

static int rv10_decode_picture_header ( MpegEncContext s  )  [static]

Definition at line 245 of file rv10.c.

Referenced by rv10_decode_packet().

static int rv20_decode_picture_header ( RVDecContext rv  )  [static]

Definition at line 301 of file rv10.c.

Referenced by rv10_decode_packet().


Variable Documentation

Initial value:

 {
    .name           = "rv10",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = AV_CODEC_ID_RV10,
    .priv_data_size = sizeof(RVDecContext),
    .init           = rv10_decode_init,
    .close          = rv10_decode_end,
    .decode         = rv10_decode_frame,
    .capabilities   = CODEC_CAP_DR1,
    .max_lowres     = 3,
    .long_name      = NULL_IF_CONFIG_SMALL("RealVideo 1.0"),
    .pix_fmts       = ff_pixfmt_list_420,
}

Definition at line 749 of file rv10.c.

Initial value:

 {
    .name           = "rv20",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = AV_CODEC_ID_RV20,
    .priv_data_size = sizeof(RVDecContext),
    .init           = rv10_decode_init,
    .close          = rv10_decode_end,
    .decode         = rv10_decode_frame,
    .capabilities   = CODEC_CAP_DR1 | CODEC_CAP_DELAY,
    .flush          = ff_mpeg_flush,
    .max_lowres     = 3,
    .long_name      = NULL_IF_CONFIG_SMALL("RealVideo 2.0"),
    .pix_fmts       = ff_pixfmt_list_420,
}

Definition at line 763 of file rv10.c.

const uint8_t rv_chrom_bits[256] [static]

Definition at line 156 of file rv10.c.

Referenced by rv10_decode_init().

const uint16_t rv_chrom_code[256] [static]

Definition at line 120 of file rv10.c.

Referenced by rv10_decode_init().

VLC rv_dc_chrom [static]

Definition at line 192 of file rv10.c.

VLC rv_dc_lum [static]

Definition at line 192 of file rv10.c.

const uint8_t rv_lum_bits[256] [static]

Definition at line 84 of file rv10.c.

Referenced by rv10_decode_init().

const uint16_t rv_lum_code[256] [static]

Definition at line 48 of file rv10.c.

Referenced by rv10_decode_init().


Generated on Fri Oct 26 02:50:07 2012 for FFmpeg by  doxygen 1.5.8