This is a useful format for high-precision intermediates.
Unified · Split
| @@ -797,6 +797,27 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 796 unmodified lines | ||
| 797 | 797 | }, |
| 798 | 798 | .alias = "y16le", |
| 799 | 799 | }, |
| 800 | + [AV_PIX_FMT_GRAY32BE] = { | |
| 801 | + .name = "gray32be", | |
| 802 | + .nb_components = 1, | |
| 803 | + .log2_chroma_w = 0, | |
| 804 | + .log2_chroma_h = 0, | |
| 805 | + .comp = { | |
| 806 | + { 0, 4, 0, 0, 32 }, /* Y */ | |
| 807 | + }, | |
| 808 | + .flags = AV_PIX_FMT_FLAG_BE, | |
| 809 | + .alias = "y32be", | |
| 810 | + }, | |
| 811 | + [AV_PIX_FMT_GRAY32LE] = { | |
| 812 | + .name = "gray32le", | |
| 813 | + .nb_components = 1, | |
| 814 | + .log2_chroma_w = 0, | |
| 815 | + .log2_chroma_h = 0, | |
| 816 | + .comp = { | |
| 817 | + { 0, 4, 0, 0, 32 }, /* Y */ | |
| 818 | + }, | |
| 819 | + .alias = "y32le", | |
| 820 | + }, | |
| 800 | 821 | [AV_PIX_FMT_YUV440P] = { |
| 801 | 822 | .name = "yuv440p", |
| 802 | 823 | .nb_components = 3, |
| @@ -476,6 +476,9 @@ enum AVPixelFormat { · 475 unmodified lines | ||
| 476 | 476 | */ |
| 477 | 477 | AV_PIX_FMT_AMF_SURFACE, |
| 478 | 478 | |
| 479 | + AV_PIX_FMT_GRAY32BE, ///< Y , 32bpp, big-endian | |
| 480 | + AV_PIX_FMT_GRAY32LE, ///< Y , 32bpp, little-endian | |
| 481 | + | |
| 479 | 482 | AV_PIX_FMT_NB ///< number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of formats might differ between versions |
| 480 | 483 | }; |
| 481 | 484 | |
| @@ -497,6 +500,7 @@ enum AVPixelFormat { · 15 unmodified lines | ||
| 497 | 500 | #define AV_PIX_FMT_GRAY12 AV_PIX_FMT_NE(GRAY12BE, GRAY12LE) |
| 498 | 501 | #define AV_PIX_FMT_GRAY14 AV_PIX_FMT_NE(GRAY14BE, GRAY14LE) |
| 499 | 502 | #define AV_PIX_FMT_GRAY16 AV_PIX_FMT_NE(GRAY16BE, GRAY16LE) |
| 503 | +#define AV_PIX_FMT_GRAY32 AV_PIX_FMT_NE(GRAY32BE, GRAY32LE) | |
| 500 | 504 | #define AV_PIX_FMT_YA16 AV_PIX_FMT_NE(YA16BE, YA16LE) |
| 501 | 505 | #define AV_PIX_FMT_RGB48 AV_PIX_FMT_NE(RGB48BE, RGB48LE) |
| 502 | 506 | #define AV_PIX_FMT_RGB565 AV_PIX_FMT_NE(RGB565BE, RGB565LE) |