Created by the British Broadcasting Corporation.
#include <me_mode_decn.h>
Collaboration diagram for dirac::ModeDecider:
In addition there is a common_ref mode which if true means the prediction mode of all units within the MB are the same (e.g. all sub-MBs are predicted only from reference 1). In deciding which modes to adopt, the ModeDecider object calculates costs for all permutations, doing motion estimation for the level 1 and level 0 modes as these have not been calculated before. The process of decision for each is as follows. For each MB, we loop over the levels, and call DoLevelDecn. DoLevelDecn does motion estimation if it's necessary. Then it assumes that we don't have a common block mode and calls DoUnitDecn which finds the best mode for each unit in the MB at that level, individually. Then we consider the case where we say that all the modes will be the same, and call DoCommonMode to see if we'll get a lower cost. Then when we've got a best cost for that level we go up to the next one.
dirac::ModeDecider::ModeDecider | ( | const EncoderParams & | encp | ) |
The constructor creates arrays for handling the motion vector data at splitting levels 0 and 1, as motion estimation must be performed for these levels.
dirac::ModeDecider::~ModeDecider | ( | ) |
The destructor destroys the classes created in the constructor
dirac::ModeDecider::ModeDecider | ( | const ModeDecider & | cpy | ) | [private] |
float dirac::ModeDecider::DoCommonMode | ( | PredMode & | predmode, | |
const int | level | |||
) | [private] |
void dirac::ModeDecider::DoLevelDecn | ( | int | level | ) | [private] |
void dirac::ModeDecider::DoMBDecn | ( | ) | [private] |
void dirac::ModeDecider::DoME | ( | const int | xpos, | |
const int | ypos, | |||
const int | level | |||
) | [private] |
void dirac::ModeDecider::DoModeDecn | ( | const FrameBuffer & | my_buffer, | |
int | frame_num, | |||
MEData & | me_data | |||
) |
Does the mode decision
my_buffer | the buffer of all the relevant frames | |
frame_num | the frame number for which motion estimation is being done | |
me_data | the motion vector data into which decisions will be written |
float dirac::ModeDecider::DoUnitDecn | ( | const int | xpos, | |
const int | ypos, | |||
const int | level | |||
) | [private] |
ValueType dirac::ModeDecider::GetDCPred | ( | int | xblock, | |
int | yblock | |||
) | [private] |
float dirac::ModeDecider::ModeCost | ( | const int | xindex, | |
const int | yindex, | |||
const PredMode | predmode | |||
) | [private] |
ModeDecider& dirac::ModeDecider::operator= | ( | const ModeDecider & | rhs | ) | [private] |
FrameSort dirac::ModeDecider::fsort [private] |
BiBlockDiff* dirac::ModeDecider::m_bicheckdiff [private] |
const EncoderParams& dirac::ModeDecider::m_encparams [private] |
IntraBlockDiff* dirac::ModeDecider::m_intradiff [private] |
float dirac::ModeDecider::m_lambda [private] |
OneDArray<float> dirac::ModeDecider::m_level_factor [private] |
OneDArray< MEData* > dirac::ModeDecider::m_me_data_set [private] |
OneDArray<float> dirac::ModeDecider::m_mode_factor [private] |
const PicArray* dirac::ModeDecider::m_pic_data [private] |
const PicArray* dirac::ModeDecider::m_ref1_updata [private] |
const PicArray* dirac::ModeDecider::m_ref2_updata [private] |
int dirac::ModeDecider::m_xmb_loc [private] |
int dirac::ModeDecider::m_ymb_loc [private] |
int dirac::ModeDecider::num_refs [private] |
© 2004 British Broadcasting Corporation.
Dirac code licensed under the Mozilla Public License (MPL) Version 1.1.
HTML documentation generated by Dimitri van Heesch's
excellent Doxygen tool.