mirror of
https://github.com/encounter/rust-ffmpeg.git
synced 2026-07-10 21:18:39 -07:00
media: add inline attributes
This commit is contained in:
@@ -11,6 +11,7 @@ pub enum Type {
|
||||
}
|
||||
|
||||
impl From<AVMediaType> for Type {
|
||||
#[inline(always)]
|
||||
fn from(value: AVMediaType) -> Self {
|
||||
match value {
|
||||
AVMEDIA_TYPE_UNKNOWN => Type::Unknown,
|
||||
@@ -25,6 +26,7 @@ impl From<AVMediaType> for Type {
|
||||
}
|
||||
|
||||
impl Into<AVMediaType> for Type {
|
||||
#[inline(always)]
|
||||
fn into(self) -> AVMediaType {
|
||||
match self {
|
||||
Type::Unknown => AVMEDIA_TYPE_UNKNOWN,
|
||||
|
||||
Reference in New Issue
Block a user