rdopt_coding_state.c File Reference

Storing/restoring coding state for Rate-Distortion optimized mode decision. More...

#include "global.h"
#include "rdopt_coding_state.h"
#include "cabac.h"

Include dependency graph for rdopt_coding_state.c:

Go to the source code of this file.

Functions

void delete_coding_state (CSobj *cs)
CSobj * create_coding_state (InputParameters *p_Inp)
static void store_coding_state_nordo (Macroblock *currMB, CSobj *cs)
static void store_coding_state_cavlc (Macroblock *currMB, CSobj *cs)
static void store_coding_state_cabac (Macroblock *currMB, CSobj *cs)
static void reset_coding_state_nordo (Macroblock *currMB, CSobj *cs)
static void reset_coding_state_cavlc (Macroblock *currMB, CSobj *cs)
static void reset_coding_state_cabac (Macroblock *currMB, CSobj *cs)
void init_coding_state_methods (Slice *currSlice)


Detailed Description

Storing/restoring coding state for Rate-Distortion optimized mode decision.

Author:
Heiko Schwarz
Date:
17. April 2001

Definition in file rdopt_coding_state.c.


Function Documentation

CSobj* create_coding_state ( InputParameters p_Inp  ) 

create structure for storing coding state

create structure

Definition at line 54 of file rdopt_coding_state.c.

References create_contexts_MotionInfo(), create_contexts_TextureInfo(), no_mem_exit(), inp_par_enc::partition_mode, and inp_par_enc::symbol_mode.

Referenced by init_rdopt().

Here is the call graph for this function:

void delete_coding_state ( CSobj *  cs  ) 

delete structure for storing coding state

delete structure

Definition at line 29 of file rdopt_coding_state.c.

References delete_contexts_MotionInfo(), and delete_contexts_TextureInfo().

Referenced by clear_rdopt().

Here is the call graph for this function:

void init_coding_state_methods ( Slice currSlice  ) 

Select methods given entropy coding type.

Init methods given entropy coding.

Definition at line 259 of file rdopt_coding_state.c.

References reset_coding_state_cabac(), reset_coding_state_cavlc(), reset_coding_state_nordo(), store_coding_state_cabac(), store_coding_state_cavlc(), and store_coding_state_nordo().

Referenced by init_slice().

Here is the call graph for this function:

static void reset_coding_state_cabac ( Macroblock currMB,
CSobj *  cs 
) [static]

restore coding state (for rd-optimized mode decision)

Definition at line 217 of file rdopt_coding_state.c.

References macroblock::mb_type, slice::mot_ctx, macroblock::mvd, macroblock::p_slice, slice::partArr, and slice::tex_ctx.

Referenced by init_coding_state_methods().

static void reset_coding_state_cavlc ( Macroblock currMB,
CSobj *  cs 
) [static]

restore coding state (for rd-optimized mode decision)

Definition at line 185 of file rdopt_coding_state.c.

References macroblock::mb_type, macroblock::mvd, macroblock::p_slice, and slice::partArr.

Referenced by init_coding_state_methods().

static void reset_coding_state_nordo ( Macroblock currMB,
CSobj *  cs 
) [static]

restore coding state (for non rdo case. basically a dummy function)

Definition at line 175 of file rdopt_coding_state.c.

Referenced by init_coding_state_methods().

static void store_coding_state_cabac ( Macroblock currMB,
CSobj *  cs 
) [static]

store cabac coding state (for rd-optimized mode decision)

Definition at line 138 of file rdopt_coding_state.c.

References macroblock::mb_type, slice::mot_ctx, macroblock::mvd, macroblock::p_slice, slice::partArr, and slice::tex_ctx.

Referenced by init_coding_state_methods().

static void store_coding_state_cavlc ( Macroblock currMB,
CSobj *  cs 
) [static]

store cavlc coding state (for rd-optimized mode decision)

Definition at line 108 of file rdopt_coding_state.c.

References macroblock::mb_type, macroblock::mvd, macroblock::p_slice, and slice::partArr.

Referenced by init_coding_state_methods().

static void store_coding_state_nordo ( Macroblock currMB,
CSobj *  cs 
) [static]

store coding state (for non rdo case. basically a dummy function)

Definition at line 97 of file rdopt_coding_state.c.

Referenced by init_coding_state_methods().


Documentation generated with DoxyGen