#ifndef CB_SKIP_H
#define CB_SKIP_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/cb-mergeindex.h"
class Algo_CB_Skip : public Algo_CB
{
public:
virtual ~Algo_CB_Skip() { }
void setSkipAlgo(Algo_CB_MergeIndex* algo) {
mSkipAlgo = algo;
mSkipAlgo->set_code_residual(false);
}
void setNonSkipAlgo(Algo_CB* algo) { mNonSkipAlgo = algo; }
const char* name() const { return "cb-skip"; }
protected:
Algo_CB_MergeIndex* mSkipAlgo;
Algo_CB* mNonSkipAlgo;
};
class Algo_CB_Skip_BruteForce : public Algo_CB_Skip
{
public:
virtual enc_cb* analyze(encoder_context*,
context_model_table&,
enc_cb* cb);
const char* name() const { return "cb-skip-bruteforce"; }
};
#endif