File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ VideoGenerator::VideoGenerator(const VideoFrameDesc& frameDesc)
11
11
: _inputFrame(NULL )
12
12
, _blackImage(NULL )
13
13
, _frameDesc(frameDesc)
14
- , _videoTransform()
15
14
{
16
15
}
17
16
@@ -57,8 +56,8 @@ bool VideoGenerator::decodeNextFrame(Frame& frameBuffer)
57
56
// Take image from _inputFrame
58
57
else
59
58
{
60
- LOG_DEBUG (" Copy data of the image specified when decode next frame" )
61
- frameBuffer. copyData (*_inputFrame);
59
+ LOG_DEBUG (" Convert data of the image specified when decode next frame" )
60
+ _videoTransform. convert (*_inputFrame, frameBuffer );
62
61
}
63
62
return true ;
64
63
}
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ class AvExport VideoGenerator : public IDecoder
23
23
24
24
/* *
25
25
* @brief Force to return this frame when calling the decoding methods.
26
- * @param inputFrame: should have the same properties as the given frames when decoding.
26
+ * @param inputFrame: could have other properties than the given frame when decoding (will be converted).
27
+ * @see decodeNextFrame
27
28
*/
28
29
void setNextFrame (Frame& inputFrame) { _inputFrame = &inputFrame; }
29
30
You can’t perform that action at this time.
0 commit comments