chenke
2017-08-09 2a12817d4ae31a591f788f3fbb82916e385e9e2d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _PL_BlockPredictor_H_
#define _PL_BlockPredictor_H_
 
#include "PipeLine.h"
 
typedef float (plbg_user_score_func_t*)(const PipeMaterial& pm);
 
struct PL_BlockPredictor_Config
{
 
    PL_BlockPredictor_Config() : 
        copyData(true)
    { }
};
 
class PL_BlockPredictor : public PipeLineElem
{
public:
    PL_BlockPredictor();
    virtual ~PL_BlockPredictor();
 
    virtual bool init(void* args);
    virtual void finit();
 
    virtual bool pay(const PipeMaterial& pm);
    virtual bool gain(PipeMaterial& pm);
    
private:
    static bool pay_breaker_MBFT_YUV(const PipeMaterial* pm, void* args);
    
private:
    void* internal;
};
 
PipeLineElem* create_PL_BlockPredictor();
 
#endif