Reword decode16 and DdsCompression::None docs, check the 16-bit buffer
length before narrowing for BC1-BC3, and test typeless DXGI codes, padded
16-bit rows, G16R16 masks and decode16 of BC1.
A no-op v17 -> v18 step so FilmCraft can save per-clip camera raw
Source Settings (Interpretation::raw) and older builds refuse such
projects instead of dropping the settings on save. Library part of
storytold/filmcraft#1078 (Part of storytold/filmcraft#1065); the MXF
CinemaDNG part already landed in #1145.
encode16 writes 16-bit pixels uncompressed as R16_UNORM, R16G16_UNORM or
R16G16B16A16_UNORM with the DX10 header, and fits BC4/BC5 endpoints and
indices against the 16-bit values; BC1-BC3 round to 8 bits first.
Texture::decode16 reads these formats (and legacy FourCC 36, wide channel
masks, BC4/BC5 interpolated at 16 bits) without losing precision.
- A bitmap that the item or byte limit refuses is counted in
dropped_images once, however many pieces a clip cuts it into.
- An EMF+ pen whose texture brush was not read is counted in
dropped_images, as a lost texture brush object is.
- An EMF+ clip path or region path whose figures all lie on a line
encloses no area, so it gives an empty area instead of its bounding
rectangle.
XML readers skip an element, attribute list or notation declaration to its
first `>`, quotes and brackets included. The guard's scans now end these
declarations the same way. A `]` inside `<!ELEMENT svg ] >` no longer ends
the internal subset for `too_wide` and `prescan`, and a `[` in one no longer
lets a later `<!--` hide the entity declarations after it from `declared`.
sniff_delimiter reads the first 64 KiB of the text and leaves out a
record cut off at that point (#1209). When the first record is longer
than the sample, no record is counted and the function returns comma,
so a semicolon or tab file with a very wide first row opens as one
column.
When no candidate delimiter finds coherent complete records with a
delimiter in each, a candidate that finds no complete record now
counts the delimiters read so far in the first record. Delimiters
inside quoted fields are not counted. A quote inside a field that does
not start with one makes that record incoherent, and the coherent
candidate is picked. When one of those candidates ends the sample
inside a quoted field, each of them counts only up to that field's
opening quote. The per-candidate loop moved into a scan_delimiter
helper, which runs a second scan over the text before that quote.
declared() skipped a comment or CDATA section wherever `<!--` or
`<![CDATA[` appeared, including inside an entity's quoted value, another
declaration's literal or a processing instruction. With
`<!ENTITY c "<!--">` before a large entity, the scan skipped to the end
of the file, the large entity was never recorded, and
entities_expand_past let its references through to the XML reader.
- declared() reads a declaration's quoted literals and a processing
instruction as text: a comment or CDATA marker there starts nothing,
and the declarations after it are still read.
- prescan() counts the markup in an entity's value the same way, and a
comment, CDATA section or instruction that closes inside the value
still opens and closes no element.
- too_wide() and prescan() find the end of the internal subset past
quoted literals, comments and instructions, so a `]>` in a value no
longer ends the document type early.
TeX skips the blanks after a control space, `\ ` or `\` and a tab, as it
does after `\` at a line end. The lexer left them to the whitespace branch,
which added a second space, so text taken as written, such as a reference
or an `\item` label, read `one two`. The control-space branch now skips
them the way the line-end branch does, and a blank line after one still
ends the paragraph.
A caller could only tell from skipped_records that part of a file was
not read. Picture now also reports:
- truncated: the parse stopped at a limit that ends it (items, bytes
kept, SAVEDC depth, clip paths), in the file or in an EMF+ metafile
image drawn in it.
- dropped_images: images that were not read: bitmaps past a size, byte
or decode limit or not decodable, EMF+ metafile images that do not
parse or are nested too deep, and pattern or texture brushes whose
bitmap was not read. An image with no pixels, or drawn from a source
rectangle that selects none, is not counted.
- ignored_clips: SELECTCLIPPATH with RGN_OR, RGN_XOR or RGN_DIFF, EMF+
clips combined with XOR, exclude or complement, EMF+ unions drawn as
the rectangle around both areas, and EMF+ clip paths and regions
whose area stands in for the one the file gives, when the clip that
results can differ from the one the file asks for.
- unplayed_raster_ops: bitmaps drawn as plain copies because their
raster operation is not SRCCOPY, SRCAND, SRCPAINT or SRCINVERT, and
operations without a source other than PATCOPY, BLACKNESS and
WHITENESS.
Behavior changes:
- An EMF+ metafile image adds its own counts, skipped_records included,
once, the first time it is drawn. A nested picture without a size
still draws nothing, and its counts are kept.
- A raster operation that takes no source no longer draws the record's
bitmap. PATCOPY, BLACKNESS and WHITENESS fill the destination in
STRETCHDIBITS and STRETCHDIB, as they already did in BITBLT,
STRETCHBLT, DIBBITBLT and DIBSTRETCHBLT. Other such operations
(DSTINVERT, PATINVERT) are left out and counted.