picture: add inline attributes
This commit is contained in:
parent
a8eceeada1
commit
5d718ffdb9
@ -13,6 +13,7 @@ pub enum Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl From<AVPictureType> for Type {
|
impl From<AVPictureType> for Type {
|
||||||
|
#[inline(always)]
|
||||||
fn from(value: AVPictureType) -> Type {
|
fn from(value: AVPictureType) -> Type {
|
||||||
match value {
|
match value {
|
||||||
AV_PICTURE_TYPE_NONE => Type::None,
|
AV_PICTURE_TYPE_NONE => Type::None,
|
||||||
@ -28,6 +29,7 @@ impl From<AVPictureType> for Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Into<AVPictureType> for Type {
|
impl Into<AVPictureType> for Type {
|
||||||
|
#[inline(always)]
|
||||||
fn into(self) -> AVPictureType {
|
fn into(self) -> AVPictureType {
|
||||||
match self {
|
match self {
|
||||||
Type::None => AV_PICTURE_TYPE_NONE,
|
Type::None => AV_PICTURE_TYPE_NONE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user