Added a new DummyReader, which can be given any framerate, samplerate, width, height, etc... and used in unit tests, such as the FrameMap unit tests.

This commit is contained in:
Jonathan Thomas
2012-10-16 16:45:31 -05:00
parent b78fca6090
commit a57b81a734
8 changed files with 174 additions and 12 deletions

View File

@@ -86,8 +86,11 @@ tr1::shared_ptr<Frame> ImageReader::GetFrame(int requested_frame) throw(ReaderCl
throw ReaderClosed("The ImageReader is closed. Call Open() before calling this method.", path);
if (image_frame)
{
// Always return same frame (regardless of which frame number was requested)
image_frame->number = requested_frame;
return image_frame;
}
else
// no frame loaded
throw InvalidFile("No frame could be created from this type of file.", path);