[FFmpeg-devel] [UGLY] [PATCH] swscale: add float pixel format

wm4 nfxjfg at googlemail.com
Fri Oct 11 20:29:04 CEST 2013


On Wed,  9 Oct 2013 13:10:10 +0000
Paul B Mahol <onemda at gmail.com> wrote:

> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
>  libavutil/pixdesc.c | 26 ++++++++++++++++++++++++++
>  libavutil/pixdesc.h |  5 +++++
>  libavutil/pixfmt.h  |  3 +++
>  3 files changed, 34 insertions(+)
> 
> diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c
> index 9a33000..3def37c 100644
> --- a/libavutil/pixdesc.c
> +++ b/libavutil/pixdesc.c
> @@ -1842,6 +1842,32 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
>          },
>          .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_BE,
>      },
> +    [AV_PIX_FMT_FLOAT_RGBA32BE] = {
> +        .name = "rgbaf32be",
> +        .nb_components = 4,
> +        .log2_chroma_w = 0,
> +        .log2_chroma_h = 0,
> +        .comp = {
> +            { 0, 0, 1, 0, 31 },        /* R */
> +            { 1, 1, 1, 0, 31 },        /* G */
> +            { 2, 1, 1, 0, 31 },        /* B */
> +            { 3, 1, 1, 0, 31 },        /* A */
> +        },
> +        .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_FLOAT, AV_PIX_FMT_FLAG_BE,

Looks like AV_PIX_FMT_FLAG_BE should be part of the flags?


More information about the ffmpeg-devel mailing list