FFmpeg
|
#include "config.h"
#include "libavutil/imgutils.h"
#include "libavutil/thread.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "mpegutils.h"
#include "mpegvideo.h"
#include "mpegvideodec.h"
#include "golomb.h"
#include "rv34.h"
#include "rv40vlc2.h"
#include "rv40data.h"
Go to the source code of this file.
Macros | |
#define | MASK_CUR 0x0001 |
#define | MASK_RIGHT 0x0008 |
#define | MASK_BOTTOM 0x0010 |
#define | MASK_TOP 0x1000 |
#define | MASK_Y_TOP_ROW 0x000F |
#define | MASK_Y_LAST_ROW 0xF000 |
#define | MASK_Y_LEFT_COL 0x1111 |
#define | MASK_Y_RIGHT_COL 0x8888 |
#define | MASK_C_TOP_ROW 0x0003 |
#define | MASK_C_LAST_ROW 0x000C |
#define | MASK_C_LEFT_COL 0x0005 |
#define | MASK_C_RIGHT_COL 0x000A |
Enumerations | |
enum | RV40BlockPos { POS_CUR, POS_TOP, POS_LEFT, POS_BOTTOM } |
Functions | |
static const av_cold VLCElem * | rv40_init_table (VLCInitState *state, int nb_bits, int nb_codes, const uint8_t(*tab)[2]) |
static av_cold void | rv40_init_tables (void) |
Initialize all tables. More... | |
static int | get_dimension (GetBitContext *gb, const int *dim) |
Get stored dimension from bitstream. More... | |
static void | rv40_parse_picture_size (GetBitContext *gb, int *w, int *h) |
Get encoded picture size - usually this is called from rv40_parse_slice_header. More... | |
static int | rv40_parse_slice_header (RV34DecContext *r, GetBitContext *gb, SliceInfo *si) |
static int | rv40_decode_intra_types (RV34DecContext *r, GetBitContext *gb, int8_t *dst) |
Decode 4x4 intra types array. More... | |
static int | rv40_decode_mb_info (RV34DecContext *r) |
Decode macroblock information. More... | |
static void | rv40_adaptive_loop_filter (RV34DSPContext *rdsp, uint8_t *src, int stride, int dmode, int lim_q1, int lim_p1, int alpha, int beta, int beta2, int chroma, int edge, int dir) |
static void | rv40_loop_filter (RV34DecContext *r, int row) |
RV40 loop filtering function. More... | |
static av_cold int | rv40_decode_init (AVCodecContext *avctx) |
Initialize decoder. More... | |
Variables | |
static VLCElem | aic_top_vlc [23590] |
static const VLCElem * | aic_mode1_vlc [AIC_MODE1_NUM] |
static const VLCElem * | aic_mode2_vlc [AIC_MODE2_NUM] |
static const VLCElem * | ptype_vlc [NUM_PTYPE_VLCS] |
static const VLCElem * | btype_vlc [NUM_BTYPE_VLCS] |
static const int | neighbour_offs_x [4] = { 0, 0, -1, 0 } |
static const int | neighbour_offs_y [4] = { 0, -1, 0, 1 } |
const FFCodec | ff_rv40_decoder |
RV40 decoder
Definition in file rv40.c.
enum RV40BlockPos |
|
static |
Definition at line 47 of file rv40.c.
Referenced by rv40_init_tables().
|
static |
|
static |
Get stored dimension from bitstream.
If the width/height is the standard one then it's coded as a 3-bit index. Otherwise it is coded as escaped 8-bit portions.
Definition at line 106 of file rv40.c.
Referenced by rv40_parse_picture_size().
|
static |
Get encoded picture size - usually this is called from rv40_parse_slice_header.
Definition at line 126 of file rv40.c.
Referenced by rv40_parse_slice_header().
|
static |
Definition at line 132 of file rv40.c.
Referenced by rv40_decode_init().
|
static |
Decode 4x4 intra types array.
Definition at line 166 of file rv40.c.
Referenced by rv40_decode_init().
|
static |
Decode macroblock information.
Definition at line 228 of file rv40.c.
Referenced by rv40_decode_init().
|
static |
Definition at line 307 of file rv40.c.
Referenced by rv40_loop_filter().
|
static |
RV40 loop filtering function.
< current macroblock and its neighbours types
flags indicating that macroblock can be filtered with strong filter it is set only for intra coded MB and MB with DCs coded separately
< MB filter clipping value calculated from filtering strength
coded block patterns for luma part of current macroblock and its neighbours Format: LSB corresponds to the top left block, each nibble represents one row of subblocks.
coded block patterns for chroma part of current macroblock and its neighbours Format is the same as for luma with two subblocks in a row.
This mask represents the pattern of luma subblocks that should be filtered in addition to the coded ones because they lie at the edge of 8x8 block with different enough motion vectors
Definition at line 338 of file rv40.c.
Referenced by rv40_decode_init().
|
static |
|
static |
Definition at line 43 of file rv40.c.
Referenced by rv40_decode_intra_types(), and rv40_init_tables().
|
static |
Definition at line 44 of file rv40.c.
Referenced by rv40_decode_intra_types(), and rv40_init_tables().
|
static |
Definition at line 44 of file rv40.c.
Referenced by rv40_decode_intra_types(), and rv40_init_tables().
|
static |
Definition at line 45 of file rv40.c.
Referenced by rv40_decode_mb_info(), and rv40_init_tables().
|
static |
Definition at line 45 of file rv40.c.
Referenced by rv40_decode_mb_info(), and rv40_init_tables().
|
static |
Definition at line 304 of file rv40.c.
Referenced by rv40_loop_filter().
|
static |
Definition at line 305 of file rv40.c.
Referenced by rv40_loop_filter().
const FFCodec ff_rv40_decoder |