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::Track;
|
||||
|
||||
use scrap::codec as vpx_encode;
|
||||
use scrap::vpxcodec as vpx_encode;
|
||||
use scrap::{Capturer, Display, STRIDE_ALIGN};
|
||||
|
||||
const USAGE: &'static str = "
|
||||
|
@ -5,9 +5,9 @@ use std::{
|
||||
sync::{Arc, Mutex},
|
||||
};
|
||||
|
||||
use crate::codec::*;
|
||||
#[cfg(feature = "hwcodec")]
|
||||
use crate::hwcodec::*;
|
||||
use crate::vpxcodec::*;
|
||||
|
||||
use hbb_common::{
|
||||
anyhow::anyhow,
|
||||
|
@ -1,4 +1,4 @@
|
||||
pub use self::codec::*;
|
||||
pub use self::vpxcodec::*;
|
||||
|
||||
cfg_if! {
|
||||
if #[cfg(quartz)] {
|
||||
@ -27,11 +27,11 @@ cfg_if! {
|
||||
}
|
||||
}
|
||||
|
||||
pub mod codec;
|
||||
pub mod coder;
|
||||
mod convert;
|
||||
#[cfg(feature = "hwcodec")]
|
||||
pub mod hwcodec;
|
||||
pub mod vpxcodec;
|
||||
pub use self::convert::*;
|
||||
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
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -27,8 +27,8 @@ use hbb_common::tokio::{
|
||||
},
|
||||
};
|
||||
use scrap::{
|
||||
codec::{VpxEncoderConfig, VpxVideoCodecId},
|
||||
coder::{Encoder, EncoderCfg, HwEncoderConfig},
|
||||
vpxcodec::{VpxEncoderConfig, VpxVideoCodecId},
|
||||
Capturer, Display,
|
||||
};
|
||||
use std::{
|
||||
|
Loading…
x
Reference in New Issue
Block a user