move whole logic to MF-grabber

This commit is contained in:
unknown
2024-06-05 21:40:51 +02:00
parent 0b75e90c54
commit 9cd21272c9
8 changed files with 21 additions and 30 deletions

View File

@@ -31,7 +31,7 @@ public:
PixelFormat pixelFormat, uint8_t* sharedData,
int size, int width, int height, int lineLength,
int cropLeft, int cropTop, int cropBottom, int cropRight,
VideoMode videoMode, bool bottomUp, FlipMode flipMode, int pixelDecimation);
VideoMode videoMode, FlipMode flipMode, int pixelDecimation);
void process();
@@ -55,7 +55,6 @@ private:
int _cropTop;
int _cropBottom;
int _cropRight;
bool _bottomUp;
FlipMode _flipMode;
VideoMode _videoMode;
bool _doTransform;
@@ -96,14 +95,14 @@ public:
PixelFormat pixelFormat, uint8_t* sharedData,
int size, int width, int height, int lineLength,
int cropLeft, int cropTop, int cropBottom, int cropRight,
VideoMode videoMode, bool bottomUp, FlipMode flipMode, int pixelDecimation)
VideoMode videoMode, FlipMode flipMode, int pixelDecimation)
{
auto encThread = qobject_cast<EncoderThread*>(_thread);
if (encThread != nullptr)
encThread->setup(pixelFormat, sharedData,
size, width, height, lineLength,
cropLeft, cropTop, cropBottom, cropRight,
videoMode, bottomUp, flipMode, pixelDecimation);
videoMode, flipMode, pixelDecimation);
}
bool isBusy()

View File

@@ -109,7 +109,6 @@ private:
EncoderThreadManager* _threadManager;
PixelFormat _pixelFormat,
_pixelFormatConfig;
bool _bottomUp;
int _lineLength,
_frameByteSize,
_noSignalCounterThreshold,