pub struct PredictionModeContextMap<SliceType: SliceWrapper<u8>> {
pub literal_context_map: SliceType,
pub predmode_speed_and_distance_context_map: SliceType,
}
Fields
literal_context_map: SliceType
predmode_speed_and_distance_context_map: SliceType
Implementations
sourceimpl<SliceType: SliceWrapper<u8> + SliceWrapperMut<u8>> PredictionModeContextMap<SliceType>
impl<SliceType: SliceWrapper<u8> + SliceWrapperMut<u8>> PredictionModeContextMap<SliceType>
pub fn distance_context_map_mut(&mut self) -> &mut [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn set_stride_context_speed(&mut self, speed_max: [(u16, u16); 2])
pub fn set_context_map_speed(&mut self, speed_max: [(u16, u16); 2])
pub fn set_mixing_math(&mut self, math_enum: u8)
pub fn set_adv_context_map(&mut self, is_adv: u8)
pub fn set_mixing_values(&mut self, mixing_mask: &[u8; 8192])
pub fn get_mixing_values_mut(&mut self) -> &mut [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn set_combined_stride_context_speed(&mut self, speed_max: [(u16, u16); 2])
pub fn set_literal_prediction_mode(&mut self, val: LiteralPredictionModeNibble)
sourceimpl<SliceType: SliceWrapper<u8>> PredictionModeContextMap<SliceType>
impl<SliceType: SliceWrapper<u8>> PredictionModeContextMap<SliceType>
pub fn from_mut<Other: SliceWrapper<u8>>(
other: PredictionModeContextMap<Other>
) -> PredictionModeContextMap<SliceType> where
SliceType: From<Other>,
pub fn get_mixing_values(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn get_mixing_math(&self) -> u8
pub fn get_is_adv_context_map(&self) -> u8
pub fn has_context_speeds(&self) -> bool
pub fn size_of_combined_array(distance_context_map_size: usize) -> usize
pub fn context_speeds_standard_len(&self) -> usize
pub fn context_speeds_f8(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn distance_context_map(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn f8_to_u16(data: u8) -> u16
pub fn u16_to_f8(data: u16) -> u8
pub fn stride_context_speed_offset() -> usize
pub fn stride_context_speed_max_offset() -> usize
pub fn context_map_speed_offset() -> usize
pub fn context_map_speed_max_offset() -> usize
pub fn combined_stride_context_speed_offset() -> usize
pub fn combined_stride_context_speed_max_offset() -> usize
pub fn literal_prediction_mode(&self) -> LiteralPredictionModeNibble
pub fn stride_context_speed(&self) -> [(u16, u16); 2]
pub fn context_map_speed(&self) -> [(u16, u16); 2]
pub fn combined_stride_context_speed(&self) -> [(u16, u16); 2]
pub fn stride_context_speed_f8(&self) -> [(u8, u8); 2]
pub fn combined_stride_context_speed_f8(&self) -> [(u8, u8); 2]
pub fn context_map_speed_f8(&self) -> [(u8, u8); 2]
Trait Implementations
sourceimpl<SliceType: SliceWrapper<u8> + Clone> Clone for PredictionModeContextMap<SliceType>
impl<SliceType: SliceWrapper<u8> + Clone> Clone for PredictionModeContextMap<SliceType>
sourceimpl<SliceType: Debug + SliceWrapper<u8>> Debug for PredictionModeContextMap<SliceType>
impl<SliceType: Debug + SliceWrapper<u8>> Debug for PredictionModeContextMap<SliceType>
impl<SliceType: SliceWrapper<u8> + Clone + Copy> Copy for PredictionModeContextMap<SliceType>
Auto Trait Implementations
impl<SliceType> RefUnwindSafe for PredictionModeContextMap<SliceType> where
SliceType: RefUnwindSafe,
impl<SliceType> Send for PredictionModeContextMap<SliceType> where
SliceType: Send,
impl<SliceType> Sync for PredictionModeContextMap<SliceType> where
SliceType: Sync,
impl<SliceType> Unpin for PredictionModeContextMap<SliceType> where
SliceType: Unpin,
impl<SliceType> UnwindSafe for PredictionModeContextMap<SliceType> where
SliceType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more