| 1 |
use std::mem::MaybeUninit; |
| 2 |
|
| 3 |
pub(crate) mod block; |
| 4 |
pub(crate) mod frame; |
| 5 |
pub(crate) mod hadamard; |
| 6 |
pub(crate) mod mc; |
| 7 |
pub(crate) mod motion; |
| 8 |
pub(crate) mod plane; |
| 9 |
pub(crate) mod prediction; |
| 10 |
pub(crate) mod sad; |
| 11 |
pub(crate) mod satd; |
| 12 |
pub(crate) mod superblock; |
| 13 |
pub(crate) mod tile; |
| 14 |
|
| 15 |
/// Assume all the elements are initialized. |
| 16 |
pub unsafe fn slice_assume_init_mut<T: Copy>(slice: &'_ mut [MaybeUninit<T>]) -> &'_ mut [T] { |
| 17 |
&mut *(slice as *mut [MaybeUninit<T>] as *mut [T]) |
| 18 |
} |