Add FFmpeg 6.1 support (#14)

Co-authored-by: Rafie <simulping@protonmail.com>
This commit is contained in:
FreezyLemon
2024-04-02 14:47:59 +02:00
committed by GitHub
parent 1af767b881
commit 30aabf9033
8 changed files with 56 additions and 38 deletions

View File

@ -404,6 +404,17 @@ pub enum Pixel {
#[cfg(feature = "ffmpeg_6_0")]
RGBAF32LE,
#[cfg(feature = "ffmpeg_6_1")]
P212BE,
#[cfg(feature = "ffmpeg_6_1")]
P212LE,
#[cfg(feature = "ffmpeg_6_1")]
P412BE,
#[cfg(feature = "ffmpeg_6_1")]
P412LE,
#[cfg(feature = "ffmpeg_6_1")]
GBRAP14BE,
#[cfg(feature = "rpi")]
RPI,
#[cfg(feature = "rpi")]
@ -1215,6 +1226,17 @@ impl From<Pixel> for AVPixelFormat {
#[cfg(feature = "ffmpeg_6_0")]
Pixel::RGBAF32LE => AV_PIX_FMT_RGBAF32LE,
#[cfg(feature = "ffmpeg_6_1")]
Pixel::P212BE => AV_PIX_FMT_P212BE,
#[cfg(feature = "ffmpeg_6_1")]
Pixel::P212LE => AV_PIX_FMT_P212LE,
#[cfg(feature = "ffmpeg_6_1")]
Pixel::P412BE => AV_PIX_FMT_P412BE,
#[cfg(feature = "ffmpeg_6_1")]
Pixel::P412LE => AV_PIX_FMT_P412LE,
#[cfg(feature = "ffmpeg_6_1")]
Pixel::GBRAP14BE => AV_PIX_FMT_GBRAP14BE,
#[cfg(feature = "rpi")]
Pixel::RPI => AV_PIX_FMT_RPI,
#[cfg(feature = "rpi")]