Fixed bug in AddImage() method on a frame, to copy the image instead of just pointing to it. This fixed many issues in the FrameMapper as well, which copies images alot.

This commit is contained in:
Jonathan Thomas
2013-11-04 15:16:19 -06:00
parent 1bdea062d6
commit 1e7cd7ddbb
4 changed files with 30 additions and 49 deletions

View File

@@ -160,14 +160,6 @@ namespace openshot
/// Close the internal reader
void Close();
/// @brief This method de-interlaces a frame which has alternating fields. In other words
/// alternating horizontal lines, that represent 2 different points of time.
///
/// @returns The de-interlaced frame of video
/// @param frame The frame which needs to be de-interlaced
/// @param isOdd Use the odd horizontal lines (if false, the Even lines are used)
tr1::shared_ptr<Frame> DeInterlaceFrame(tr1::shared_ptr<Frame> frame, bool isOdd);
/// Get a frame based on the target frame rate and the new frame number of a frame
MappedFrame GetMappedFrame(int TargetFrameNumber) throw(OutOfBoundsFrame);