scrap: rename codec.rs to vpxcodec.rs
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
70968638bf
commit
6677fc9b30
@ -17,7 +17,7 @@ use scrap::coder::{EncoderApi, EncoderCfg};
|
|||||||
use webm::mux;
|
use webm::mux;
|
||||||
use webm::mux::Track;
|
use webm::mux::Track;
|
||||||
|
|
||||||
use scrap::codec as vpx_encode;
|
use scrap::vpxcodec as vpx_encode;
|
||||||
use scrap::{Capturer, Display, STRIDE_ALIGN};
|
use scrap::{Capturer, Display, STRIDE_ALIGN};
|
||||||
|
|
||||||
const USAGE: &'static str = "
|
const USAGE: &'static str = "
|
||||||
|
@ -5,9 +5,9 @@ use std::{
|
|||||||
sync::{Arc, Mutex},
|
sync::{Arc, Mutex},
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::codec::*;
|
|
||||||
#[cfg(feature = "hwcodec")]
|
#[cfg(feature = "hwcodec")]
|
||||||
use crate::hwcodec::*;
|
use crate::hwcodec::*;
|
||||||
|
use crate::vpxcodec::*;
|
||||||
|
|
||||||
use hbb_common::{
|
use hbb_common::{
|
||||||
anyhow::anyhow,
|
anyhow::anyhow,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
pub use self::codec::*;
|
pub use self::vpxcodec::*;
|
||||||
|
|
||||||
cfg_if! {
|
cfg_if! {
|
||||||
if #[cfg(quartz)] {
|
if #[cfg(quartz)] {
|
||||||
@ -27,11 +27,11 @@ cfg_if! {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub mod codec;
|
|
||||||
pub mod coder;
|
pub mod coder;
|
||||||
mod convert;
|
mod convert;
|
||||||
#[cfg(feature = "hwcodec")]
|
#[cfg(feature = "hwcodec")]
|
||||||
pub mod hwcodec;
|
pub mod hwcodec;
|
||||||
|
pub mod vpxcodec;
|
||||||
pub use self::convert::*;
|
pub use self::convert::*;
|
||||||
pub const STRIDE_ALIGN: usize = 64; // commonly used in libvpx vpx_img_alloc caller
|
pub const STRIDE_ALIGN: usize = 64; // commonly used in libvpx vpx_img_alloc caller
|
||||||
pub const HW_STRIDE_ALIGN: usize = 0; // recommended by av_frame_get_buffer
|
pub const HW_STRIDE_ALIGN: usize = 0; // recommended by av_frame_get_buffer
|
||||||
|
@ -27,8 +27,8 @@ use hbb_common::tokio::{
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
use scrap::{
|
use scrap::{
|
||||||
codec::{VpxEncoderConfig, VpxVideoCodecId},
|
|
||||||
coder::{Encoder, EncoderCfg, HwEncoderConfig},
|
coder::{Encoder, EncoderCfg, HwEncoderConfig},
|
||||||
|
vpxcodec::{VpxEncoderConfig, VpxVideoCodecId},
|
||||||
Capturer, Display,
|
Capturer, Display,
|
||||||
};
|
};
|
||||||
use std::{
|
use std::{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user