pub struct KeyframeAnimationDecoder;Available on crate features
decoder and point_cloud_decode only.Expand description
Decodes a Draco bitstream into KeyframeAnimation data.
Implementations§
Source§impl KeyframeAnimationDecoder
impl KeyframeAnimationDecoder
Sourcepub fn decode(
&mut self,
in_buffer: &mut DecoderBuffer<'_>,
animation: &mut KeyframeAnimation,
) -> Status
pub fn decode( &mut self, in_buffer: &mut DecoderBuffer<'_>, animation: &mut KeyframeAnimation, ) -> Status
Decodes in_buffer into animation. Mirrors C++
KeyframeAnimationDecoder::Decode.
The point cloud underneath is decoded with PointCloudDecoder’s
default, on the calling thread. A caller that wants more threads decodes
it the same way this does, with a decoder of its own:
use draco_core::{DecoderBuffer, KeyframeAnimation, PointCloud, PointCloudDecoder};
let mut point_cloud = PointCloud::new();
let mut decoder = PointCloudDecoder::new();
decoder.set_threads(0);
decoder.decode(&mut DecoderBuffer::new(bytes), &mut point_cloud)?;
let animation = KeyframeAnimation::from_point_cloud(point_cloud);Trait Implementations§
Source§impl Debug for KeyframeAnimationDecoder
impl Debug for KeyframeAnimationDecoder
Auto Trait Implementations§
impl Freeze for KeyframeAnimationDecoder
impl RefUnwindSafe for KeyframeAnimationDecoder
impl Send for KeyframeAnimationDecoder
impl Sync for KeyframeAnimationDecoder
impl Unpin for KeyframeAnimationDecoder
impl UnsafeUnpin for KeyframeAnimationDecoder
impl UnwindSafe for KeyframeAnimationDecoder
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