diff mbox series

[FFmpeg-devel] float in tiff

Message ID CAPYw7P4CrZwkY3wy2Q0uXxk2-j7jX-YEPgsnyE5z38D67cWn+A@mail.gmail.com
State New
Headers show
Series [FFmpeg-devel] float in tiff | expand

Checks

Context Check Description
yinshiyou/configure_loongarch64 warning Failed to apply patch
andriy/make_x86 fail Make failed

Commit Message

Paul B Mahol Sept. 14, 2022, 4:01 p.m. UTC
Patches attached.

Comments

Paul B Mahol Sept. 23, 2022, 6:14 p.m. UTC | #1
On 9/14/22, Paul B Mahol <onemda@gmail.com> wrote:
> Patches attached.
>

Will apply soon.
Mark Reid Sept. 27, 2022, 8:54 p.m. UTC | #2
On Fri, Sep 23, 2022 at 11:14 AM Paul B Mahol <onemda@gmail.com> wrote:

> On 9/14/22, Paul B Mahol <onemda@gmail.com> wrote:
> > Patches attached.
> >
>
> Will apply soon.
>

Were you planning on adding swscale support for the rgbaf32 formats? Didn't
want to start working on it if you already started :)


> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
>
Paul B Mahol Sept. 28, 2022, 8:42 a.m. UTC | #3
On 9/27/22, Mark Reid <mindmark@gmail.com> wrote:
> On Fri, Sep 23, 2022 at 11:14 AM Paul B Mahol <onemda@gmail.com> wrote:
>
>> On 9/14/22, Paul B Mahol <onemda@gmail.com> wrote:
>> > Patches attached.
>> >
>>
>> Will apply soon.
>>
>
> Were you planning on adding swscale support for the rgbaf32 formats? Didn't
> want to start working on it if you already started :)

Nope, feel free to do it.

>
>
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel@ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
>>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
>
diff mbox series

Patch

From 05f484b592d6e381a593b114556e242e23677067 Mon Sep 17 00:00:00 2001
From: Paul B Mahol <onemda@gmail.com>
Date: Wed, 14 Sep 2022 16:41:48 +0200
Subject: [PATCH 4/4] avfilter/vf_extractplanes: add support for packed rgb
 float formats

Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
 libavfilter/vf_extractplanes.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libavfilter/vf_extractplanes.c b/libavfilter/vf_extractplanes.c
index 60b55578cf..3c794eaa28 100644
--- a/libavfilter/vf_extractplanes.c
+++ b/libavfilter/vf_extractplanes.c
@@ -124,6 +124,7 @@  AVFILTER_DEFINE_CLASS(extractplanes);
 
 #define FLOAT_FORMATS(suf)                                     \
         AV_PIX_FMT_GRAYF32##suf,                               \
+        AV_PIX_FMT_RGBF32##suf, AV_PIX_FMT_RGBAF32##suf,       \
         AV_PIX_FMT_GBRPF32##suf, AV_PIX_FMT_GBRAPF32##suf      \
 
 static int query_formats(AVFilterContext *ctx)
@@ -283,6 +284,13 @@  static void extract_from_packed(uint8_t *dst, int dst_linesize,
                 dst[x * 2    ] = src[x * step + comp * 2    ];
                 dst[x * 2 + 1] = src[x * step + comp * 2 + 1];
             }
+        case 4:
+            for (x = 0; x < width; x++) {
+                dst[x * 4    ] = src[x * step + comp * 4    ];
+                dst[x * 4 + 1] = src[x * step + comp * 4 + 1];
+                dst[x * 4 + 2] = src[x * step + comp * 4 + 2];
+                dst[x * 4 + 3] = src[x * step + comp * 4 + 3];
+            }
             break;
         }
         dst += dst_linesize;
-- 
2.37.2