/// Provides a buffer for storing encoded output.
///
/// When the output buffer has been filled, an `EncoderEvent::ProcessedOutputBuffer`
/// event can be read from the event pipe.
///
/// The caller is responsible for passing in a unique value for `output_buffer_id`
/// which can be referenced when the event is received.
///
/// This function takes ownership of `fd`.
Provides a buffer for storing encoded output.
When the output buffer has been filled, an `EncoderEvent::ProcessedOutputBuffer`
event can be read from the event pipe.

The caller is responsible for passing in a unique value for `output_buffer_id`
which can be referenced when the event is received.

This function takes ownership of `fd`.
Provides a buffer for storing encoded output . When the output buffer has been filled an ` EncoderEvent :: ProcessedOutputBuffer ` event can be read from the event pipe . The caller is responsible for passing in a unique value for ` output_buffer_id ` which can be referenced when the event is received . This function takes ownership of ` fd ` .
pub fn use_output_buffer(
        &self,
        output_buffer_id: VeaOutputBufferId,
        fd: BufferFd,
        offset: u32,
        size: u32,
    ) -> Result<()> {
        // Safe because `raw_ptr` is valid and libvda's encode API is called properly.
        let r = unsafe {
            bindings::vea_use_output_buffer((*self.raw_ptr).ctx, output_buffer_id, fd, offset, size)
        };
        convert_error_code(r)
    }
pub fn use_output_buffer ( & self , output_buffer_id : VeaOutputBufferId , fd : BufferFd , offset : u32 , size : u32 , ) -> Result < ( ) > { // Safe because `raw_ptr` is valid and libvda's encode API is called properly. let r = unsafe { bindings :: vea_use_output_buffer ( ( * self . raw_ptr ) . ctx , output_buffer_id , fd , offset , size ) } ; convert_error_code ( r ) }
Provides a buffer for storing encoded output.
Provides a buffer for storing encoded output .
&self
output_buffer_id
VeaOutputBufferId
fd
BufferFd
offset
u32
size
u32