Skip to content

Commit 89becae

Browse files
committed
Add changelog for image-canvas
1 parent efa0ef2 commit 89becae

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

canvas/Changes.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## 0.4.0
2+
3+
This adds support for packed blocks and incomplete YUV color support.
4+
5+
Bug fixes:
6+
- Fixed a buf where bitfield sample parts referred to the wrong bits.
7+
8+
New features:
9+
- Added `Block::Pack1x{2,4,8}` which refer to texel containing multiple pixels
10+
by bit-packing their sample parts in sequence.
11+
- Added `Block::Yuv422,Yuy2,Yuv411` which refer to texels containing multiple
12+
pixels by subsampling some of their sample parts. Their implementation with
13+
regards to bit packing and unpacking is not yet final.
14+
- Added `SampleParts::{UInt1x8,UInt2x4}` to complement bit packing blocks with
15+
more low-depth channels in a single texel.
16+
- More information in `LayoutError` for debugging.
17+
- Added a hidden `Color::Yuv`, not part of the official SemVer interface yet.
18+
119
## 0.3.1 (Mustafar)
220

321
This release is complete enough to provide all relevant RGB-Lab interaction.

canvas/src/color.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ pub enum Color {
2929
luminance: Luminance,
3030
},
3131
/// A lightness, chroma difference scheme.
32+
#[doc(hidden)]
33+
#[deprecated = "DO NOT USE THIS YET! It's members are not final."]
3234
Yuv {
3335
primary: Primaries,
3436
whitepoint: Whitepoint,
@@ -327,6 +329,7 @@ impl Color {
327329
whitepoint: Whitepoint::D65,
328330
};
329331

332+
#[allow(deprecated)]
330333
pub const BT709: Color = Color::Yuv {
331334
luminance: Luminance::Sdr,
332335
primary: Primaries::Bt709,

0 commit comments

Comments
 (0)