mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Added parameters to constructor of blackborder processor
Added blur line removal Moved blackborder classes to hyperion namespace
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
|
||||
// Local-Hyperion includes
|
||||
#include "BlackBorderProcessor.h"
|
||||
|
||||
BlackBorderProcessor::BlackBorderProcessor() :
|
||||
_unknownSwitchCnt(600),
|
||||
_borderSwitchCnt(50),
|
||||
using namespace hyperion;
|
||||
|
||||
BlackBorderProcessor::BlackBorderProcessor(
|
||||
const unsigned unknownFrameCnt,
|
||||
const unsigned borderFrameCnt,
|
||||
const unsigned blurRemoveCnt) :
|
||||
_unknownSwitchCnt(unknownFrameCnt),
|
||||
_borderSwitchCnt(borderFrameCnt),
|
||||
_blurRemoveCnt(blurRemoveCnt),
|
||||
_detector(),
|
||||
_currentBorder({BlackBorder::unknown, 0}),
|
||||
_lastDetectedBorder({BlackBorder::unknown, 0}),
|
||||
@@ -12,6 +20,11 @@ BlackBorderProcessor::BlackBorderProcessor() :
|
||||
|
||||
BlackBorder BlackBorderProcessor::getCurrentBorder() const
|
||||
{
|
||||
if (_currentBorder.size > 0)
|
||||
{
|
||||
return {_currentBorder.type, _currentBorder.size+int(_blurRemoveCnt)};
|
||||
}
|
||||
|
||||
return _currentBorder;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user