media: add inline attributes
This commit is contained in:
parent
7dc9858ee0
commit
a8eceeada1
@ -11,6 +11,7 @@ pub enum Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl From<AVMediaType> for Type {
|
impl From<AVMediaType> for Type {
|
||||||
|
#[inline(always)]
|
||||||
fn from(value: AVMediaType) -> Self {
|
fn from(value: AVMediaType) -> Self {
|
||||||
match value {
|
match value {
|
||||||
AVMEDIA_TYPE_UNKNOWN => Type::Unknown,
|
AVMEDIA_TYPE_UNKNOWN => Type::Unknown,
|
||||||
@ -25,6 +26,7 @@ impl From<AVMediaType> for Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Into<AVMediaType> for Type {
|
impl Into<AVMediaType> for Type {
|
||||||
|
#[inline(always)]
|
||||||
fn into(self) -> AVMediaType {
|
fn into(self) -> AVMediaType {
|
||||||
match self {
|
match self {
|
||||||
Type::Unknown => AVMEDIA_TYPE_UNKNOWN,
|
Type::Unknown => AVMEDIA_TYPE_UNKNOWN,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user