SkJpegCodec: Add SkJpegSourceMgr
The current skjpeg_source_mgr (in SkJpegUtility.cpp/h) is effectively
two implementations (buffered vs in-memory) controlled via if
Turn these into two implementations of a pure virtual interface
SkJpegSourceMgr. The reason for this it that there will be a third
interface added for buffered non-seekable sources (which will
run an SkJpegSegmentScanner on the data as it is read).
Leave the pre-existing skjpeg_source_mgr in place because it may
be used in other places. It will be removed separately.
Reviewed-by: Brian Osman <firstname.lastname@example.org>
Commit-Queue: Christopher Cameron <email@example.com>
6 files changed