skia2/resources/images
Leon Scroggins III 469d67e7d9 Expose more info in SkCodec::FrameInfo
Bug: b/160984428

Add more fields to SkCodec::FrameInfo, which describes the properties of
an individual frame in an animated image. This allows a client that
wishes to seek to determine frame dependencies so that they can decode
an arbitrary frame, which in turn will allow SkCodec to remove
SkCodec::FrameInfo::fRequiredFrame. Currently, SkCodec seeks through the
stream to determine frame dependencies, but this is unnecessary work
(and storage) for a client that does not want to seek.

These fields also support the proposed APIs in go/animated-ndk.

Move SkCodecAnimation::Blend from SkCodecAnimationPriv (and delete that
file) into SkCodecAnimation.h. Rename its values to be more clear.

Merge common code for populating SkCodec::FrameInfo.

Add a test for a GIF with offsets outside the range of the image. Note
that libwebp rejects such an image.

Update libgifcodec.

Change-Id: Ie27e0531e7d62eaae153eccb3105bf2121b5aac4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/339857
Commit-Queue: Leon Scroggins <scroggo@google.com>
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Reviewed-by: Nigel Tao <nigeltao@google.com>
2020-12-02 22:37:20 +00:00
..
orientation Parse out the orientation in the SubIFD of EXIF 2020-10-12 13:50:27 +00:00
1x1.png
1x3.png
1x16.png
2x2.png
3x1.png
3x3.png
16x1.png
alphabetAnim.gif
arrow.png
b78329453.jpeg Update libjpeg-turbo to pre-2.0.0 (from 1.5.3) 2018-06-26 15:22:12 +00:00
baby_tux.png
baby_tux.webp
blendBG.webp
box.gif
brickwork_normal-map.jpg
brickwork-texture.jpg
cmyk_yellow_224_224_32.jpg Allow decoding without color conversion - part 2 2020-02-07 19:24:33 +00:00
CMYK.jpg
color_wheel_with_profile.png
color_wheel.gif
color_wheel.ico
color_wheel.jpg
color_wheel.png
color_wheel.webp
colorTables.gif
crbug807324.png Support pngs with incorrect CMF bytes 2018-02-28 21:46:03 +00:00
cropped_mandrill.jpg
dng_with_preview.dng
dog.jpg
ducky.jpg move ducky images into images 2020-03-25 12:19:56 +00:00
ducky.png move ducky images into images 2020-03-25 12:19:56 +00:00
example_1.png Revert "Revert "Compile all fiddle examples locally"" 2019-03-16 00:48:09 +00:00
example_2.png Revert "Revert "Compile all fiddle examples locally"" 2019-03-16 00:48:09 +00:00
example_3.png Revert "Revert "Compile all fiddle examples locally"" 2019-03-16 00:48:09 +00:00
example_4.png Revert "Revert "Compile all fiddle examples locally"" 2019-03-16 00:48:09 +00:00
example_5.png Revert "Revert "Compile all fiddle examples locally"" 2019-03-16 00:48:09 +00:00
example_6.png Revert "Revert "Compile all fiddle examples locally"" 2019-03-16 00:48:09 +00:00
exif-orientation-2-ur.jpg
explosion_sprites.png Experimental Particle System 2019-02-12 18:53:41 +00:00
flightAnim.gif [skottie] Multi-frame image support 2018-10-03 19:02:35 +00:00
flower-bc1.dds Add SW decode of ETC1 and a GM 2020-02-03 13:56:15 +00:00
flower-etc1.ktx Add SW decode of ETC1 and a GM 2020-02-03 13:56:15 +00:00
flutter_logo.jpg
gamut.png
gif-transparent-index.gif Have SkWuffsCodec use PIXEL_BLEND__SRC_OVER 2020-10-05 18:24:48 +00:00
google_chrome.ico
grayscale.jpg
grayscale.png Reland "Add an SkImageGenerator that uses NDK APIs" 2020-08-05 18:55:30 +00:00
half-transparent-white-pixel.png
half-transparent-white-pixel.webp
icc-v2-gbr.jpg
iconstrip.png
index8.png
lut_identity.png Runtime effect implementation of color cube filter 2020-05-28 15:45:48 +00:00
lut_sepia.png Runtime effect implementation of color cube filter 2020-05-28 15:45:48 +00:00
mandrill_16.png Add sRGB profile to mandrill images 2018-07-09 23:02:39 +00:00
mandrill_32.png Add sRGB profile to mandrill images 2018-07-09 23:02:39 +00:00
mandrill_64.png Add sRGB profile to mandrill images 2018-07-09 23:02:39 +00:00
mandrill_128.png Add sRGB profile to mandrill images 2018-07-09 23:02:39 +00:00
mandrill_256.png Add sRGB profile to mandrill images 2018-07-09 23:02:39 +00:00
mandrill_512_q075.jpg
mandrill_512.png
mandrill_cmyk.jpg Reland "Switch SkCodec to use skcms plus fixes"" 2018-08-27 16:16:14 +00:00
mandrill_h1v1.jpg
mandrill_h2v1.jpg
mandrill_sepia.png Runtime effect implementation of color cube filter 2020-05-28 15:45:48 +00:00
mandrill.wbmp
out-of-palette.gif Test a GIF with an out of range transparent index 2018-10-12 14:20:02 +00:00
plane_interlaced.png
plane.png
purple-displayprofile.png Reland "Switch SkCodec to use skcms plus fixes"" 2018-08-27 16:16:14 +00:00
rainbow-gradient.png
randPixels.bmp
randPixels.gif
randPixels.jpg
randPixels.png
randPixels.webp
randPixelsAnim2.gif
randPixelsAnim.gif
randPixelsOffset.gif
required.gif
required.webp
rle.bmp
sample_1mp_rotated.dng
sample_1mp.dng
shadowreference.png
ship.png
stoplight_h.webp Handle EXIF orientation in SkAnimCodecPlayer 2020-11-12 14:43:47 +00:00
stoplight.webp Handle EXIF orientation in SkAnimCodecPlayer 2020-11-12 14:43:47 +00:00
test640x479.gif
text.png Initial version of rescaling async readback API 2019-05-17 16:39:10 +00:00
webp-color-profile-crash.webp
webp-color-profile-lossless.webp
webp-color-profile-lossy-alpha.webp
webp-color-profile-lossy.webp
wide_gamut_yellow_224_224_64.jpeg Allow decoding without color conversion - part 2 2020-02-07 19:24:33 +00:00
wide-gamut.png Reland "Switch SkCodec to use skcms plus fixes"" 2018-08-27 16:16:14 +00:00
xOffsetTooBig.gif Expose more info in SkCodec::FrameInfo 2020-12-02 22:37:20 +00:00
yellow_rose.png
yellow_rose.webp