#[repr(i32)]pub enum VideoAccelerationType {
VIDEO_ACCELERATION_NONE = 0,
VIDEO_ACCELERATION_ANY = 1,
VIDEO_ACCELERATION_D3D11 = 2,
VIDEO_ACCELERATION_VAAPI = 3,
VIDEO_ACCELERATION_MFX = 4,
}
Expand description
Video Acceleration type
Used as value in CAP_PROP_HW_ACCELERATION and VIDEOWRITER_PROP_HW_ACCELERATION
Note: In case of FFmpeg backend, it translated to enum AVHWDeviceType (https://github.com/FFmpeg/FFmpeg/blob/master/libavutil/hwcontext.h)
Variants§
VIDEO_ACCELERATION_NONE = 0
Do not require any specific H/W acceleration, prefer software processing. Reading of this value means that special H/W accelerated handling is not added or not detected by OpenCV.
VIDEO_ACCELERATION_ANY = 1
Prefer to use H/W acceleration. If no one supported, then fallback to software processing.
Note: H/W acceleration may require special configuration of used environment.
Note: Results in encoding scenario may differ between software and hardware accelerated encoders.
VIDEO_ACCELERATION_D3D11 = 2
DirectX 11
VIDEO_ACCELERATION_VAAPI = 3
VAAPI
VIDEO_ACCELERATION_MFX = 4
libmfx (Intel MediaSDK/oneVPL)
Trait Implementations§
Source§impl Clone for VideoAccelerationType
impl Clone for VideoAccelerationType
Source§fn clone(&self) -> VideoAccelerationType
fn clone(&self) -> VideoAccelerationType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VideoAccelerationType
impl Debug for VideoAccelerationType
Source§impl From<VideoAccelerationType> for i32
impl From<VideoAccelerationType> for i32
Source§fn from(v: VideoAccelerationType) -> Self
fn from(v: VideoAccelerationType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for VideoAccelerationType
impl PartialEq for VideoAccelerationType
Source§impl TryFrom<i32> for VideoAccelerationType
impl TryFrom<i32> for VideoAccelerationType
impl Copy for VideoAccelerationType
impl Eq for VideoAccelerationType
impl StructuralPartialEq for VideoAccelerationType
Auto Trait Implementations§
impl Freeze for VideoAccelerationType
impl RefUnwindSafe for VideoAccelerationType
impl Send for VideoAccelerationType
impl Sync for VideoAccelerationType
impl Unpin for VideoAccelerationType
impl UnwindSafe for VideoAccelerationType
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