mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-20 09:13:19 +03:00
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -2209,7 +2209,7 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "hwcodec"
|
name = "hwcodec"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/21pages/hwcodec#91d1cd327c88490f917457072aeef0676ddb2be7"
|
source = "git+https://github.com/21pages/hwcodec#890204e0703a3d361fc7a45f035fe75c0575bb1d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bindgen",
|
"bindgen",
|
||||||
"cc",
|
"cc",
|
||||||
|
|||||||
@@ -50,5 +50,5 @@ gstreamer = { version = "0.16", optional = true }
|
|||||||
gstreamer-app = { version = "0.16", features = ["v1_10"], optional = true }
|
gstreamer-app = { version = "0.16", features = ["v1_10"], optional = true }
|
||||||
gstreamer-video = { version = "0.16", optional = true }
|
gstreamer-video = { version = "0.16", optional = true }
|
||||||
|
|
||||||
[target.'cfg(target_os = "windows")'.dependencies]
|
[target.'cfg(any(target_os = "windows", target_os = "linux"))'.dependencies]
|
||||||
hwcodec = { git = "https://github.com/21pages/hwcodec", optional = true }
|
hwcodec = { git = "https://github.com/21pages/hwcodec", optional = true }
|
||||||
|
|||||||
@@ -246,6 +246,7 @@ pub unsafe fn nv12_to_i420(
|
|||||||
#[cfg(feature = "hwcodec")]
|
#[cfg(feature = "hwcodec")]
|
||||||
pub mod hw {
|
pub mod hw {
|
||||||
use hbb_common::{anyhow::anyhow, ResultType};
|
use hbb_common::{anyhow::anyhow, ResultType};
|
||||||
|
#[cfg(target_os = "windows")]
|
||||||
use hwcodec::{ffmpeg::ffmpeg_linesize_offset_length, AVPixelFormat};
|
use hwcodec::{ffmpeg::ffmpeg_linesize_offset_length, AVPixelFormat};
|
||||||
|
|
||||||
pub fn hw_bgra_to_i420(
|
pub fn hw_bgra_to_i420(
|
||||||
@@ -381,6 +382,8 @@ pub mod hw {
|
|||||||
src_stride_y: usize,
|
src_stride_y: usize,
|
||||||
src_stride_uv: usize,
|
src_stride_uv: usize,
|
||||||
dst: &mut Vec<u8>,
|
dst: &mut Vec<u8>,
|
||||||
|
_i420: &mut Vec<u8>,
|
||||||
|
_align: usize,
|
||||||
) -> ResultType<()> {
|
) -> ResultType<()> {
|
||||||
dst.resize(width * height * 4, 0);
|
dst.resize(width * height * 4, 0);
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|||||||
Reference in New Issue
Block a user