[FFmpeg-devel] [PATCH 1/2] avutil/pixfmt.h: add native-endian RGB32F and RGBA32F formats
Leo Izen
leo.izen at gmail.com
Sun Oct 2 10:58:34 EEST 2022
Add an AV_PIX_FMT_NE macro for RGB32FBE/RGB32FLE and also one for
RGBA32FBE/RGBA32FLE for packed 32-bit float RGB samples, and also
packed 32-bit float RGBA samples, respectively.
Signed-off-by: Leo Izen <leo.izen at gmail.com>
---
libavutil/pixfmt.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h
index f8b3c0514f..224670a731 100644
--- a/libavutil/pixfmt.h
+++ b/libavutil/pixfmt.h
@@ -495,6 +495,9 @@ enum AVPixelFormat {
#define AV_PIX_FMT_RGBAF16 AV_PIX_FMT_NE(RGBAF16BE, RGBAF16LE)
+#define AV_PIX_FMT_RGBF32 AV_PIX_FMT_NE(RGBF32BE, RGBF32LE)
+#define AV_PIX_FMT_RGBAF32 AV_PIX_FMT_NE(RGBAF32BE, RGBAF32LE)
+
/**
* Chromaticity coordinates of the source primaries.
* These values match the ones defined by ISO/IEC 23091-2_2019 subclause 8.1 and ITU-T H.273.
--
2.37.3
More information about the ffmpeg-devel
mailing list