23 #ifndef CODING_OPTIONS_H
24 #define CODING_OPTIONS_H
70 struct CodingOptionData
90 std::vector<CodingOptionData> mOptions;
98 int find_best_rdo_index();
102 template <
class node>
111 node*
get_node() {
return mParent->mOptions[mOptionIdx].mNode; }
113 if (_node != mParent->mOptions[mOptionIdx].mNode) {
117 mParent->mOptions[mOptionIdx].mNode = _node;
124 operator bool()
const {
return mParent; }
135 void set_rdo_cost(
float rdo) { mParent->mOptions[mOptionIdx].rdoCost=rdo; }
142 : mParent(parent), mOptionIdx(idx) { }
Definition: coding-options.h:104
CodingOption()
Definition: coding-options.h:106
context_model_table & get_context()
Definition: coding-options.h:120
float get_cabac_rate() const
Definition: coding-options.h:138
void set_node(node *_node)
Definition: coding-options.h:112
CABAC_encoder_estim * get_cabac()
Definition: coding-options.h:137
void set_rdo_cost(float rdo)
Definition: coding-options.h:135
node * get_node()
Definition: coding-options.h:111
Definition: coding-options.h:34
CodingOptions(encoder_context *, node *, context_model_table &tab)
CodingOption< node > Option
Definition: coding-options.h:39
CodingOption< node > new_option(bool active=true)
void start(enum RateEstimationMethod=Rate_Default)
RateEstimationMethod
Definition: coding-options.h:46
@ Rate_FixedContext
Definition: coding-options.h:49
@ Rate_Default
Definition: coding-options.h:47
@ Rate_AdaptiveContext
Definition: coding-options.h:48
node * return_best_rdo_node()
Definition: contextmodel.h:100
Definition: encoder-context.h:39