Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add image reading convenience methods
Summary: These code changes add a couple convenience methods to remove/simplify common code patterns used when reading images that can be in unspecified image formats. PixelFrame::readFrame can only read images that aren't image/video, because it doesn't know about image/video frames, but the new VideoRecordFormatStreamPlayer::readFrame can. The benefit of these new helper functions can be seen in the other parts of code modified to use them. At the end of the day, the resulting code should do about the same thing. Reviewed By: kiminoue7 Differential Revision: D51451623 fbshipit-source-id: 69ae21d1de140c8f22a8b5683a2be986bd59f6ee
- Loading branch information