Fixed a big bug on frame rate mapping, due to incorrect # of samples being copied into the new frame. Also, implemented interalacing support, and full pulldown support (in the frame mapper).

This commit is contained in:
Jonathan Thomas
2012-10-18 02:58:09 -05:00
parent 129a2fccd7
commit 5e5ca2a55c
4 changed files with 54 additions and 6 deletions

View File

@@ -137,7 +137,7 @@ int main()
// openshot::FFmpegReader r("/home/jonathan/Aptana Studio Workspace/OpenShotLibrary/src/examples/asdf.wdf");
openshot::FrameMapper r(&r1, Framerate(30,1), PULLDOWN_NONE);
openshot::FrameMapper r(&r1, Framerate(30,1), PULLDOWN_CLASSIC);
// Display debug info
r.Open();
@@ -179,7 +179,7 @@ int main()
//Frame *f = r.GetFrame(1);
//for (int frame = 131; frame >= 1; frame--)
for (int frame = 1; frame <= 2000; frame++)
for (int frame = 1; frame <= 500; frame++)
{
tr1::shared_ptr<Frame> f = r.GetFrame(frame);
//f->AddOverlayNumber(0);