/// Sends a decode request for a bitstream buffer given as `fd`.
///
/// `fd` will be closed by Chrome after decoding has occurred.
Sends a decode request for a bitstream buffer given as `fd`.
`fd` will be closed by Chrome after decoding has occurred.
Sends a decode request for a bitstream buffer given as ` fd ` . ` fd ` will be closed by Chrome after decoding has occurred .
pub fn decode(
        &self,
        bitstream_id: i32,
        fd: BufferFd,
        offset: u32,
        bytes_used: u32,
    ) -> Result<()> {
        // Safe because `raw_ptr` is valid and a libvda's API is called properly.
        let r = unsafe {
            bindings::vda_decode((*self.raw_ptr).ctx, bitstream_id, fd, offset, bytes_used)
        };
        Response::new(r).into()
    }
pub fn decode ( & self , bitstream_id : i32 , fd : BufferFd , offset : u32 , bytes_used : u32 , ) -> Result < ( ) > { // Safe because `raw_ptr` is valid and a libvda's API is called properly. let r = unsafe { bindings :: vda_decode ( ( * self . raw_ptr ) . ctx , bitstream_id , fd , offset , bytes_used ) } ; Response :: new ( r ) . into ( ) }
Sends a decode request for a bitstream buffer given as `fd`.
Sends a decode request for a bitstream buffer given as ` fd ` .
&self
bitstream_id
i32
fd
BufferFd
offset
u32
bytes_used
u32