#[repr(u8)]pub enum ScaleCode {
None = 0,
FiveFourths = 1,
FiveThirds = 2,
Double = 3,
}Expand description
Two-bit horizontal / vertical scale code per §9.1’s Table.
Parallels the decoder-side crate::frame_header::ScaleCode enum
but is duplicated here as a u8 for unambiguous round-trip with the
2-bit field on the wire. Encoder Phase 1 only emits
ScaleCode::None (= 0) since upscaling has no decode effect.
Variants§
None = 0
0 — no upscaling. Encoder default.
FiveFourths = 1
1 — upscale by 5/4.
FiveThirds = 2
2 — upscale by 5/3.
Double = 3
3 — upscale by 2.
Trait Implementations§
impl Copy for ScaleCode
impl Eq for ScaleCode
impl StructuralPartialEq for ScaleCode
Auto Trait Implementations§
impl Forget for ScaleCode
impl Freeze for ScaleCode
impl Move for ScaleCode
impl RefUnwindSafe for ScaleCode
impl Send for ScaleCode
impl Sync for ScaleCode
impl Unpin for ScaleCode
impl UnsafeUnpin for ScaleCode
impl UnwindSafe for ScaleCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more