skia2/include/codec
Leon Scroggins III e132e7be5f Add SkCodec methods for individual frames
Add a version of getFrameInfo that returns information about a single
frame, allowing a client to skip creating the entire vector.

Add getFrameCount, for determining the number of frames in the image.

Reimplement std::vector<FrameInfo> getFrameInfo with the new methods.

Updates to the test:
- getFrameInfo(size_t, FrameInfo*) fails before parsing
- Test both versions of getFrameInfo
- Recreate the codec between tests, to test parsing

Change-Id: I77c19087f2f8dcf2c536d80167b18ad1ca96ae94
Reviewed-on: https://skia-review.googlesource.com/13190
Reviewed-by: Matt Sarett <msarett@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Chris Blume <cblume@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
2017-04-12 15:22:43 +00:00
..
SkAndroidCodec.h Allow BF and BRD clients to request an output color space 2017-04-11 14:27:28 +00:00
SkCodec.h Add SkCodec methods for individual frames 2017-04-12 15:22:43 +00:00
SkEncodedInfo.h Remove unnecessary getColorSpace() API from SkCodec 2016-07-21 11:57:49 -07:00