Skip to content

Commit

Permalink
removed Vulkan support hwaccel
Browse files Browse the repository at this point in the history
  • Loading branch information
gerwin3 committed Aug 30, 2024
1 parent 7872433 commit 05f4ba8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/hwaccel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ pub enum HardwareAccelerationDeviceType {
/// OpenCL
OpenCl,
/// MediaCodec
MeiaCodec,
/// Vulkan
Vulkan,
MediaCodec,
/// Direct3D 12 Video Acceleration
D3D12Va,
}
Expand Down Expand Up @@ -90,8 +88,7 @@ impl HardwareAccelerationDeviceType {
ffmpeg::ffi::AVHWDeviceType::AV_HWDEVICE_TYPE_D3D11VA => Some(Self::D3D11Va),
ffmpeg::ffi::AVHWDeviceType::AV_HWDEVICE_TYPE_DRM => Some(Self::Drm),
ffmpeg::ffi::AVHWDeviceType::AV_HWDEVICE_TYPE_OPENCL => Some(Self::OpenCl),
ffmpeg::ffi::AVHWDeviceType::AV_HWDEVICE_TYPE_MEDIACODEC => Some(Self::MeiaCodec),
ffmpeg::ffi::AVHWDeviceType::AV_HWDEVICE_TYPE_VULKAN => Some(Self::Vulkan),
ffmpeg::ffi::AVHWDeviceType::AV_HWDEVICE_TYPE_MEDIACODEC => Some(Self::MediaCodec),
ffmpeg::ffi::AVHWDeviceType::AV_HWDEVICE_TYPE_NONE => None,
// FIXME: Find a way to handle the new variants in ffmpeg 7 without breaking backwards
// compatibility...
Expand Down Expand Up @@ -131,12 +128,9 @@ impl From<HardwareAccelerationDeviceType> for ffmpeg::ffi::AVHWDeviceType {
HardwareAccelerationDeviceType::OpenCl => {
ffmpeg::ffi::AVHWDeviceType::AV_HWDEVICE_TYPE_OPENCL
}
HardwareAccelerationDeviceType::MeiaCodec => {
HardwareAccelerationDeviceType::MediaCodec => {
ffmpeg::ffi::AVHWDeviceType::AV_HWDEVICE_TYPE_MEDIACODEC
}
HardwareAccelerationDeviceType::Vulkan => {
ffmpeg::ffi::AVHWDeviceType::AV_HWDEVICE_TYPE_VULKAN
}
HardwareAccelerationDeviceType::D3D12Va => {
unimplemented!()
}
Expand Down

0 comments on commit 05f4ba8

Please sign in to comment.