Timothy Nikkel
c457e1bb5a
Bug 1352282. Always fill in the number of loops when decoding an APNG file. r=aosmond
...
If we were doing a first frame only decode we wouldn't fill in this value. The spec says this chunk must come before any image data so it should always be available at the end of any full decode (whether it be truly full or first frame only).
2017-04-05 11:28:40 -05:00
Vedant Sareen
a85a2ad339
Bug 1330907 - Rename Telemetry::ID to Telemetry::HistogramID. r=dexter
...
Changed |print("enum ID : uint32_t {", file=output)| to |print("enum HistogramID : uint32_t {", file=output)| at line 53 of the file |toolkit/components/telemetry/gen-histogram-enum.py|, and then replaced all the textual occurrences of |Telemetry::ID| to |Telemetry::HistogramID| and |ID| to |HistogramID| in 43 other files.
2017-02-16 00:45:15 +05:30
Phil Ringnalda
34488ac6f3
Backed out 5 changesets (bug 1290292, bug 1290293) for gfx assertions
...
CLOSED TREE
Backed out changeset 652c909b75ad (bug 1290293)
Backed out changeset 90a284ea19e3 (bug 1290292)
Backed out changeset 8401d12fe936 (bug 1290293)
Backed out changeset d87488b69c18 (bug 1290293)
Backed out changeset 7368aa665fae (bug 1290293)
2017-02-13 19:28:45 -08:00
Andrew Osmond
f9e03421a5
Bug 1290293 - Part 2e. Make SurfacePipe users clear unwritten pixels if the image is truncated. r=tnikkel
2016-08-18 09:55:45 -04:00
Andrew Osmond
dfcb278a53
Bug 1290293 - Part 2a. Make nsPNGDecoder clear on which surface format is being used. r=tnikkel
2016-08-18 09:55:45 -04:00
Andrew Osmond
781d6b93a4
Bug 1315863 - Use PNG_MAXIMUM_INFLATE_WINDOW to ensure maximum compatibility with existing images. r=glennrp
2016-11-16 15:21:33 -05:00
Glenn Randers-Pehrson
2c405fe01a
Bug 1297907 - Wrap long lines in nsPNGDecoder.cpp. r=tn
2016-09-07 09:03:00 -04:00
Glenn Randers-Pehrson
869efb782a
Bug 1295671 - Detect use of system libpng in nsPNGDecoder.cpp. r=tn
2016-08-27 01:23:00 -04:00
Seth Fowler
f0bf091f5f
Bug 1295506 - Don't yield hidden frames in the PNG decoder. r=edwin
2016-08-17 22:19:42 -07:00
Glenn Randers-Pehrson
e1636363c1
Bug 1288588 - Exit on bad CRC in fcTL or fdAT chunk in an APNG file. r=jrmuizel
2016-08-12 21:31:31 -04:00
Seth Fowler
7dce2e7e42
Bug 1291071 (Part 4) - Clean up Decoder::SpeedHistogram() and related code. r=edwin
2016-08-05 18:50:29 -07:00
Seth Fowler
19ca5240fb
Bug 1292505 (Part 2) - Remove remaining references to Downscaler in the SurfacePipe decoders. r=edwin
2016-08-05 13:44:52 -07:00
Glenn Randers-Pehrson
cf7640f86f
Bug 1240665 - Log all error returns from the PNG decoder. r=tnikkel
2016-07-29 05:11:00 +02:00
Seth Fowler
a708198b8c
Bug 1291054 (Part 4) - Add Decoder convenience methods for the common case of frame rects that cover the whole image. r=edwin
2016-08-02 04:10:52 -07:00
Seth Fowler
b3a5b9908b
Bug 1291054 (Part 3) - Rename Decoder::GetSize() to Decoder::Size() to be consistent with the style guide. r=edwin
2016-08-02 04:10:51 -07:00
Seth Fowler
5da6432bcf
Bug 1291054 (Part 2) - Add a Decoder::OutputSize() getter and use it in the decoders. r=edwin
2016-08-02 04:10:49 -07:00
Glenn Randers-Pehrson
3f5fca62cb
Bug 1283961 - Part 2: Remove limits on PNG image dimensions (nsPNGDecoder). r=seth
2016-07-28 07:37:00 -04:00
Seth Fowler
06d1ffb4e1
Bug 1288040 (Part 5) - Wrap frame timeout values in a FrameTimeout type that ensures they're normalized. r=edwin
2016-07-20 16:30:28 -07:00
Seth Fowler
0f1f4b0ed1
Bug 1287691 (Part 3) - Yield after each frame in the PNG decoder. r=edwin
2016-07-20 02:30:37 -07:00
Makoto Kato
c4a50472e0
Backed out 4 changesets (bug 1287691) due to Windows build failure
...
MozReview-Commit-ID: KgV3nU9a64F
2016-07-20 11:03:59 +09:00
Seth Fowler
69348dbead
Bug 1287691 (Part 3) - Yield after each frame in the PNG decoder. r=edwin
2016-07-19 17:15:01 -07:00
Seth Fowler
6ec86767e0
Bug 1287367 - Allow users of StreamingLexer to detect and handle truncation. r=njn
2016-07-18 23:41:20 -07:00
Seth Fowler
8ad86fa89d
Bug 1287246 (Part 1) - Expose LexerResult from the StreamingLexer API and add an explicit Yield type. r=njn
2016-07-18 01:25:37 -07:00
Seth Fowler
533b93be57
Bug 1286165 (Part 2) - Advance decoders' SourceBufferIterator directly in StreamingLexer. r=edwin,njn
2016-07-15 17:48:57 -07:00
Seth Fowler
2ba15e348c
Bug 1285867 (Part 1) - Remove Decoder's notion of decoder errors. r=edwin
2016-07-15 16:41:11 -07:00
Seth Fowler
24cf4ab2a0
Bug 1285865 (Part 6) - Pass a SourceBufferIterator to Decoder::DoDecode(). r=edwin
2016-07-11 12:13:13 -07:00
Seth Fowler
b0ac5667da
Bug 1285865 (Part 5) - Return a Maybe<TerminalState> from Decoder::DoDecode(). r=edwin
2016-07-11 12:13:11 -07:00
Seth Fowler
56b1768feb
Bug 1285865 (Part 4) - Rename Decoder::WriteInternal() to Decoder::DoDecode() and fix its argument types. r=edwin
2016-07-11 12:13:09 -07:00
Seth Fowler
35e646b868
Bug 1185799 (Part 2) - Make nsBMPDecoder and nsPNGDecoder no longer friends with nsICODecoder. r=edwin
2016-07-07 15:50:46 -07:00
Daniel Holbert
d48e7feafc
Bug 1282670, part 3: Make several imagelib .cpp files #inclue their corresponding .h file as their very first #include, per Gecko convention. r=seth
...
(In some cases, I've left "ImageLogging.h" being included before the corresponding .h file, because I ran across a warning comment saying that it needs to be included before any IPDL-generated files & anything that includes prlog.h; and it seems possible that Foo.cpp's corresponding Foo.h file could include such headers now or in the future.)
MozReview-Commit-ID: HPvUVj8YuKc
2016-06-30 10:27:03 -07:00
Seth Fowler
1056222e7d
Bug 1282566 (Part 3) - Use StreamingLexer in the PNG decoder. r=edwin
2016-06-29 12:12:36 -07:00
Seth Fowler
0d3f54cf22
Bug 1282566 (Part 2) - Remove some unused fields from nsPNGDecoder. r=edwin
2016-06-29 12:12:34 -07:00
Seth Fowler
89d077e405
Bug 1282566 (Part 1) - Use png_process_data_pause for early exits in nsPNGDecoder. r=edwin
2016-06-29 12:12:32 -07:00
Seth Fowler
4b92e6f6e5
Bug 1255107 (Followup) - Add an explicit cast to a usage of DebugOnly to work around MSVC. r=me
2016-06-25 14:36:47 -07:00
Seth Fowler
719b3bd42f
Bug 1255107 (Part 3) - Use SurfacePipe in the PNG decoder. r=njn
2016-06-25 14:04:05 -07:00
Seth Fowler
59b97f061d
Bug 1247152 (Part 1) - Use SurfacePipe in the GIF decoder. r=njn
2016-03-09 15:39:02 -08:00
Timothy Nikkel
82affdffcd
Bug 1249576 - If the first frame of an APNG doesn't cover the whole image mark the image as transparent. r=edwin
...
In (non-animated) PNGs the image data is contained in IDAT chunks. In APNGs there are IDAT chunks, which contain the default image, and fDAT chunks, which contain frames of the animation. The default image is sometimes part of the animation (as the first frame), and sometimes not (displayed only by non-APNG aware viewers).
The default image must have the same size as in the PNG header chunk. But the fDAT images can be any (smaller) size. So the first frame of a PNG is allowed to be smaller than the whole image size so long as we are in an APNG and the first frame is from an fDAT chunk, not an IDAT chunk.
We post transparency if we encounter this case because we don't draw into those pixels on at least the first frame.
2016-02-23 20:22:00 +01:00
Timothy Nikkel
20a5b8ac93
Bug 1120141. Don't use surface with alpha for first frames of all pngs. r=edwin
...
It was a hack, not needed anymore.
2016-02-24 09:56:03 -06:00
Glenn Randers-Pehrson
e0a817bbcf
Bug 75077 - Interpolate interlaced PNG images instead of libpng blocky display. r=seth
2015-11-14 11:33:00 +01:00
Nathan Froyd
435255c077
Bug 1219405 - use LazyLogModule for PNG decoder logging; r=seth
...
This change eliminates some TSan warnings and also eliminates some
boilerplate.
2015-10-28 16:08:06 -04:00
Seth Fowler
4abcc3fd97
Backed out changeset 154fa450fb1f (bug 1214055) because it wasn't ready to land.
2015-10-22 23:34:04 -07:00
Seth Fowler
00a877f5f3
Bug 1214055 - Treat PNGs as transparent during the metadata decode. r=tn
2015-10-22 23:29:38 -07:00
Seth Fowler
c551622a5f
Bug 1207378 (Part 1) - Add support for a frame rect to Downscaler. r=tn
2015-09-26 01:36:19 -07:00
Seth Fowler
afe849ca13
Bug 1146663 (Part 5) - Require that all image decoders support downscale-during-decode. r=tn
2015-09-19 16:21:08 -07:00
Seth Fowler
7a0b6e6fde
Bug 1060609 (Part 2) - Add downscale-during-decode support for the PNG decoder. r=tn,f=glennrp
2015-09-01 14:13:17 -07:00
Seth Fowler
cd53a999b7
Bug 1194900 - Stop deciding when to send invalidations in nsPNGDecoder and let Decoder handle it. r=tn
2015-08-24 19:49:36 -07:00
Glenn Randers-Pehrson
fc3619476b
Bug 1187569 - PNGs getting stuck in a pixelated state. r=seth
2015-08-20 14:17:10 -07:00
Seth Fowler
a15f73c8c3
Bug 1185800 - Add DecoderFlags and SurfaceFlags enum classes and use them instead of imgIContainer flags in all decoder-related code. r=tn
2015-08-14 17:56:44 -07:00
Seth Fowler
4508b595bb
Bug 1194059 (Part 2) - Always detect IS_ANIMATED during the metadata decode. r=tn
2015-08-14 00:37:13 -07:00
Seth Fowler
5bf7c12087
Bug 1191114 (Part 1) - Always detect HAS_TRANSPARENCY during the metadata decode. r=tn
2015-08-12 10:41:02 -07:00