Go to the documentation of this file.
49 #define IVI_VLC_BITS 13
50 #define IVI5_IS_PROTECTED 0x20
282 #define IVI_NUM_TILES(stride, tile_size) (((stride) + (tile_size) - 1) / (tile_size))
285 #define IVI_MBs_PER_TILE(tile_width, tile_height, mb_size) \
286 ((((tile_width) + (mb_size) - 1) / (mb_size)) * (((tile_height) + (mb_size) - 1) / (mb_size)))
289 #define IVI_TOSIGNED(val) (-(((val) >> 1) ^ -((val) & 1)))
RVMapDesc rvmap_tabs[9]
local corrected copy of the static rvmap tables
uint16_t checksum
frame checksum
uint32_t pic_hdr_size
picture header size in bytes
const uint8_t * inter_scale
quantization coefficient for inter blocks
int ff_ivi_init_planes(AVCodecContext *avctx, IVIPlaneDesc *planes, const IVIPicConfig *cfg, int is_indeo4)
Initialize planes (prepares descriptors, allocates buffers etc).
static const int8_t mv[256][2]
huffman codebook descriptor
This structure describes decoded (raw) audio or video data.
InvTransformPtr * inv_transform
const uint8_t ff_ivi_vertical_scan_8x8[64]
Common scan patterns (defined in ivi_common.c)
static const struct @467 planes[]
uint8_t cbp
coded block pattern
uint8_t eob_sym
end of block symbol
int rvmap_sel
rvmap table selector
uint8_t num_bands
number of bands this plane subdivided into
@ IVI_MB_HUFF
Huffman table is used for coding macroblocks.
DCTransformPtr * dc_transform
VLC * tab
pointer to the table associated with tab_sel
static int ivi_scale_mv(int mv, int mv_scale)
scale motion vector
int(* decode_pic_hdr)(struct IVI45DecContext *ctx, AVCodecContext *avctx)
uint8_t type
macroblock type: 0 - INTRA, 1 - INTER
int num_MBs
number of macroblocks in this tile
void() DCTransformPtr(const int32_t *in, int16_t *out, ptrdiff_t pitch, int blk_size)
const uint8_t * data_ptr
ptr to the first byte of the band data
@ IVI4_FRAMETYPE_BIDIR
bidirectional frame
int inter_scal
signals a sequence of scalable inter frames
IVIPlaneDesc planes[3]
color planes
int is_empty
= 1 if this tile doesn't contain any data
static int ivi_pic_config_cmp(IVIPicConfig *str1, IVIPicConfig *str2)
compare some properties of two pictures
@ IVI4_FRAMETYPE_NULL_LAST
empty frame with no data
uint8_t has_transp
transparency mode status: 1 - enabled
int num_corr
number of correction entries
information for Indeo wavelet band
macroblock/block huffman table descriptor
IVITile * tiles
array of tile descriptors
const uint16_t * intra_base
quantization matrix for intra blocks
information for Indeo macroblock (16x16, 8x8 or 4x4)
int32_t tab_sel
index of one of the predefined tables, or "7" for custom one
const RVMapDesc ff_ivi_rvmap_tabs[9]
Run-value (RLE) tables.
@ IVI4_FRAMETYPE_NULL_FIRST
empty frame with no data
int num_tiles
number of tiles in this band
int8_t mv_x
motion vector (x component)
int16_t * ref_buf
pointer to the reference frame buffer (for motion compensation)
const uint8_t * frame_data
input frame data pointer
const uint8_t * scan
ptr to the scan pattern
int data_size
size of the data in bytes
const uint16_t * inter_base
quantization matrix for inter blocks
IVIHuffDesc cust_desc
custom Huffman codebook descriptor
int buf_switch
used to switch between three buffers
color plane (luma or chroma) information
int(* decode_band_hdr)(struct IVI45DecContext *ctx, IVIBandDesc *band, AVCodecContext *avctx)
int dst_buf
buffer index for the currently decoded frame
int data_size
size of the band data
int ref2_buf
temporal storage for switching buffers
int inherit_mv
tells if motion vector is inherited from reference macroblock
@ IVI4_FRAMETYPE_INTER_NOREF
droppable P-frame
int aheight
aligned band height
int ref_buf
inter frame reference buffer index
int8_t b_mv_x
second motion vector (x component)
int32_t checksum
for debug purposes
run-value (RLE) table descriptor
const uint8_t ff_ivi_horizontal_scan_8x8[64]
int plane
plane number this band belongs to
@ IVI_BLK_HUFF
Huffman table is used for coding blocks.
int mb_size
macroblock size
int16_t * bufs[4]
array of pointers to the band buffers
void ff_ivi_init_static_vlc(void)
Initialize static codes used for macroblock and block decoding.
information for Indeo tile
uint32_t data_size
size of the frame data in bytes from picture header
uint8_t in_q
flag for explicitly stored quantiser delta
@ IVI4_FRAMETYPE_INTRA1
intra frame with slightly different bitstream coding
int scan_size
size of the scantable
static av_always_inline void mv_scale(Mv *dst, const Mv *src, int td, int tb)
const uint8_t * intra_scale
quantization coefficient for intra blocks
IVIMbInfo * mbs
array of macroblock descriptors
int bufsize
band buffer size in bytes
IVIMbInfo * ref_mbs
ptr to the macroblock descriptors of the reference tile
int16_t * buf
pointer to the output buffer for this band
uint8_t esc_sym
escape symbol
int ff_ivi_init_tiles(IVIPlaneDesc *planes, int tile_width, int tile_height)
Initialize tile and macroblock descriptors.
int16_t * b_ref_buf
pointer to the second reference frame buffer (for motion compensation)
int8_t q_delta
quant delta
int8_t b_mv_y
second motion vector (y component)
int ff_ivi_decode_frame(AVCodecContext *avctx, AVFrame *data, int *got_frame, AVPacket *avpkt)
int ff_ivi_dec_huff_desc(GetBitContext *gb, int desc_coded, int which_tab, IVIHuffTab *huff_tab, AVCodecContext *avctx)
Decode a huffman codebook descriptor from the bitstream and select specified huffman table.
int qdelta_present
tells if Qdelta signal is present in the bitstream (Indeo5 only)
RVMapDesc * rv_map
ptr to the RLE table for this band
int is_2d_trans
1 indicates that the two-dimensional inverse transform is used
uint32_t buf_offs
address in the output buffer for this mb
int is_empty
= 1 if this band doesn't contain any data
main external API structure.
IVIHuffTab blk_vlc
current block table descriptor
const uint8_t ff_ivi_direct_scan_4x4[16]
void(* switch_buffers)(struct IVI45DecContext *ctx)
IVIBandDesc * bands
array of band descriptors
uint32_t frame_size
frame size in bytes
IVIHuffTab blk_vlc
vlc table for decoding block data
int prev_frame_type
frame type of the previous frame
int(* decode_mb_info)(struct IVI45DecContext *ctx, IVIBandDesc *band, IVITile *tile, AVCodecContext *avctx)
This structure stores compressed data.
int inherit_qdelta
tells if quantiser delta is inherited from reference macroblock
uint8_t corr[61 *2]
rvmap correction pairs
#define flags(name, subs,...)
@ IVI4_FRAMETYPE_INTER
non-droppable P-frame
int is_halfpel
precision of the motion compensation: 0 - fullpel, 1 - halfpel
int(* is_nonnull_frame)(struct IVI45DecContext *ctx)
int glob_quant
quant base for this band
int ff_ivi_decode_close(AVCodecContext *avctx)
Close Indeo5 decoder and clean up its context.
int quant_mat
dequant matrix index
ptrdiff_t pitch
pitch associated with the buffers above
IVIHuffTab mb_vlc
current macroblock table descriptor
int b_ref_buf
second reference frame buffer index
void() InvTransformPtr(const int32_t *in, int16_t *out, ptrdiff_t pitch, const uint8_t *flags)
Declare inverse transform function types.
VLC cust_tab
vlc table for custom codebook
int8_t mv_y
motion vector (y component)