picture: add inline attributes

This commit is contained in:
meh 2015-08-05 19:34:05 +02:00
parent a8eceeada1
commit 5d718ffdb9

View File

@ -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,