Skip to content

Commit

Permalink
encoder: vaapi: Move From<VaError> to common module
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrzesik authored and Gnurou committed Feb 29, 2024
1 parent e7aa1ea commit 102c0f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions src/backend/vaapi/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ const INITIAL_SCRATCH_POOL_SIZE: usize = 16;
/// scratch frames.
const MAX_SCRATCH_POOL_SIZE: usize = INITIAL_SCRATCH_POOL_SIZE * 4;

impl From<libva::VaError> for StatelessBackendError {
fn from(value: libva::VaError) -> Self {
Self::Other(value.into())
}
}

pub struct Reconstructed(PooledVaSurface<()>);

impl Reconstructed {
Expand Down
6 changes: 0 additions & 6 deletions src/encoder/stateless/h264/vaapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,12 +415,6 @@ where
}
}

impl From<libva::VaError> for StatelessBackendError {
fn from(value: libva::VaError) -> Self {
Self::Other(value.into())
}
}

impl<M, H> StatelessEncoder<H, VaapiBackend<M, H>>
where
M: SurfaceMemoryDescriptor,
Expand Down

0 comments on commit 102c0f3

Please sign in to comment.