util/format/pixel: add inline attributes
This commit is contained in:
parent
62ebd122ac
commit
79945c2c5e
@ -275,6 +275,7 @@ pub enum Pixel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl From<AVPixelFormat> for Pixel {
|
impl From<AVPixelFormat> for Pixel {
|
||||||
|
#[inline]
|
||||||
fn from(value: AVPixelFormat) -> Self {
|
fn from(value: AVPixelFormat) -> Self {
|
||||||
match value {
|
match value {
|
||||||
AV_PIX_FMT_NONE => Pixel::None,
|
AV_PIX_FMT_NONE => Pixel::None,
|
||||||
@ -485,6 +486,7 @@ impl From<AVPixelFormat> for Pixel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Into<AVPixelFormat> for Pixel {
|
impl Into<AVPixelFormat> for Pixel {
|
||||||
|
#[inline]
|
||||||
fn into(self) -> AVPixelFormat {
|
fn into(self) -> AVPixelFormat {
|
||||||
match self {
|
match self {
|
||||||
Pixel::None => AV_PIX_FMT_NONE,
|
Pixel::None => AV_PIX_FMT_NONE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user