#ifndef CB_MERGEINDEX_H
#define CB_MERGEINDEX_H
#include "libde265/nal-parser.h"
#include "libde265/decctx.h"
#include "libde265/slice.h"
#include "libde265/scan.h"
#include "libde265/intrapred.h"
#include "libde265/transform.h"
#include "libde265/fallback-dct.h"
#include "libde265/quality.h"
#include "libde265/fallback.h"
#include "libde265/configparam.h"
#include "libde265/encoder/algo/algo.h"
#include "libde265/encoder/algo/tb-split.h"
class Algo_CB_MergeIndex : public Algo_CB
{
public:
Algo_CB_MergeIndex() : mCodeResidual(false) { }
virtual ~Algo_CB_MergeIndex() { }
void set_code_residual(bool flag=true) { mCodeResidual=flag; }
void setChildAlgo(Algo_TB_Split* algo) { mTBSplit = algo; }
virtual const char* name() const { return "cb-mergeindex"; }
protected:
Algo_TB_Split* mTBSplit;
bool mCodeResidual;
};
class Algo_CB_MergeIndex_Fixed : public Algo_CB_MergeIndex
{
public:
virtual enc_cb* analyze(encoder_context*,
context_model_table&,
enc_cb* cb);
};
#endif