This source file includes following definitions.
- option_SOP_Structure
- add_choice
- add_choice
- option_MEMode
- add_choice
- add_choice
#ifndef ENCODER_PARAMS_H
#define ENCODER_PARAMS_H
#include "libde265/encoder/encoder-types.h"
#include "libde265/encoder/encoder-core.h"
#include "libde265/encoder/sop.h"
enum RateControlMethod
{
RateControlMethod_ConstantQP,
RateControlMethod_ConstantLambda
};
enum IntraPredSearch
{
IntraPredSearch_Complete
};
enum SOP_Structure
{
SOP_Intra,
SOP_LowDelay
};
class option_SOP_Structure : public choice_option<enum SOP_Structure>
{
public:
option_SOP_Structure() {
add_choice("intra", SOP_Intra);
add_choice("low-delay", SOP_LowDelay, true);
}
};
enum MEMode
{
MEMode_Test,
MEMode_Search
};
class option_MEMode : public choice_option<enum MEMode>
{
public:
option_MEMode() {
add_choice("test", MEMode_Test, true);
add_choice("search", MEMode_Search);
}
};
struct encoder_params
{
encoder_params();
void registerParams(config_parameters& config);
option_int min_cb_size;
option_int max_cb_size;
option_int min_tb_size;
option_int max_tb_size;
option_int max_transform_hierarchy_depth_intra;
option_int max_transform_hierarchy_depth_inter;
option_SOP_Structure sop_structure;
sop_creator_trivial_low_delay::params mSOP_LowDelay;
option_ALGO_TB_IntraPredMode mAlgo_TB_IntraPredMode;
option_ALGO_TB_IntraPredMode_Subset mAlgo_TB_IntraPredMode_Subset;
option_ALGO_CB_IntraPartMode mAlgo_CB_IntraPartMode;
option_MEMode mAlgo_MEMode;
enum IntraPredSearch intraPredSearch;
enum RateControlMethod rateControlMethod;
option_ALGO_TB_RateEstimation mAlgo_TB_RateEstimation;
};
#endif