-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
follow https://github.com/zmwangx/rust-ffmpeg/commits/master commits …
…to (Update to FFmpeg 7.1 (#213)) [SHA: a7b50dd5f909e071affffe238d434d184da30aee]
- Loading branch information
admin
committed
Oct 8, 2024
1 parent
7daf2f5
commit f328231
Showing
74 changed files
with
2,453 additions
and
1,079 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,36 @@ | ||
// use rsmpeg::ffi; | ||
// use libc::c_int; | ||
// | ||
// #[derive(Eq, PartialEq, Clone, Copy, Debug)] | ||
// pub enum Compliance { | ||
// VeryStrict, | ||
// Strict, | ||
// Normal, | ||
// Unofficial, | ||
// Experimental, | ||
// } | ||
// | ||
// impl From<c_int> for Compliance { | ||
// fn from(value: c_int) -> Self { | ||
// let val_u32: u32 = value as u32; | ||
// match val_u32 { | ||
// ffi::FF_COMPLIANCE_VERY_STRICT => Compliance::VeryStrict, | ||
// ffi::FF_COMPLIANCE_STRICT => Compliance::Strict, | ||
// ffi::FF_COMPLIANCE_NORMAL => Compliance::Normal, | ||
// ffi::FF_COMPLIANCE_UNOFFICIAL => Compliance::Unofficial, | ||
// ffi::FF_COMPLIANCE_EXPERIMENTAL => Compliance::Experimental, | ||
// _ => Compliance::Normal, | ||
// } | ||
// } | ||
// } | ||
// | ||
// impl From<Compliance> for c_int { | ||
// fn from(value: Compliance) -> c_int { | ||
// match value { | ||
// Compliance::VeryStrict => ffi::FF_COMPLIANCE_VERY_STRICT as i32, | ||
// Compliance::Strict => ffi::FF_COMPLIANCE_STRICT as i32, | ||
// Compliance::Normal => ffi::FF_COMPLIANCE_NORMAL as i32, | ||
// Compliance::Unofficial => ffi::FF_COMPLIANCE_UNOFFICIAL, | ||
// Compliance::Experimental => ffi::FF_COMPLIANCE_EXPERIMENTAL, | ||
// } | ||
// } | ||
// } | ||
use rsmpeg::ffi; | ||
use libc::c_int; | ||
|
||
#[derive(Eq, PartialEq, Clone, Copy, Debug)] | ||
pub enum Compliance { | ||
VeryStrict, | ||
Strict, | ||
Normal, | ||
Unofficial, | ||
Experimental, | ||
} | ||
|
||
impl From<c_int> for Compliance { | ||
fn from(value: c_int) -> Self { | ||
match value { | ||
x if x == ffi::FF_COMPLIANCE_VERY_STRICT as i32 => Compliance::VeryStrict, | ||
x if x == ffi::FF_COMPLIANCE_STRICT as i32 => Compliance::Strict, | ||
x if x == ffi::FF_COMPLIANCE_NORMAL as i32 => Compliance::Normal, | ||
x if x == ffi::FF_COMPLIANCE_UNOFFICIAL => Compliance::Unofficial, | ||
x if x == ffi::FF_COMPLIANCE_EXPERIMENTAL => Compliance::Experimental, | ||
_ => Compliance::Normal, | ||
} | ||
} | ||
} | ||
|
||
impl From<Compliance> for c_int { | ||
fn from(value: Compliance) -> c_int { | ||
match value { | ||
Compliance::VeryStrict => ffi::FF_COMPLIANCE_VERY_STRICT as i32, | ||
Compliance::Strict => ffi::FF_COMPLIANCE_STRICT as i32, | ||
Compliance::Normal => ffi::FF_COMPLIANCE_NORMAL as i32, | ||
Compliance::Unofficial => ffi::FF_COMPLIANCE_UNOFFICIAL, | ||
Compliance::Experimental => ffi::FF_COMPLIANCE_EXPERIMENTAL, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.