169 files changed, 64432 insertions, 116 deletions
diff --git a/tvapi/libtv/tv/AutoBackLight.h b/tvapi/libtv/tv/AutoBackLight.h new file mode 100644 index 0000000..0c860d9 --- a/dev/null +++ b/tvapi/libtv/tv/AutoBackLight.h @@ -0,0 +1,49 @@ +// +// +// amlogic 2015 +// +// @ Project : tv +// @ File Name : +// @ Date : 2015 -7 +// @ Author : hao.fu +// +// + + +#if !defined(_AUTOBACKLIGHT_H) +#define _AUTOBACKLIGHT_H +#include "../tvin/CTvin.h" +#include "../tvutils/CThread.h" +#include "../vpp/CVpp.h" + +class AutoBackLight: public CThread +{ +private: + tv_source_input_type_t mAutoBacklightSource; + int mCur_source_default_backlight; + int mCur_sig_state; + bool mAutoBacklight_OnOff_Flag; + int mCurrent_backlight; + int mCur_dest_backlight; + + void adjustDstBacklight(); + void adjustBacklight(); + int HistogramGet_AVE(); + bool threadLoop(); + +public: + enum SIG_STATE { + SIG_STATE_STABLE = 1, + SIG_STATE_NOSIG = 2, + }; + CVpp *myVpp; + CTvin *myTvin; + + AutoBackLight( CVpp *mVpp, CTvin *pTvin ); + ~AutoBackLight(); + void updateSigState(int state); + void startAutoBacklight( tv_source_input_type_t source_type ); + void stopAutoBacklight(); + bool isAutoBacklightOn(); +}; +#endif |