On Tue, Oct 08, 2024 at 05:52:27PM -0300, James Almer wrote:
> On 10/8/2024 5:50 PM, Michael Niedermayer wrote:
> > On Mon, Oct 07, 2024 at 11:54:00PM -0300, James Almer wrote:
> > > Signed-off-by: James Almer <jamr...@gmail.com>
> > > ---
> > >   libswscale/input.c | 26 ++++++++++++++++++++++++++
> > >   libswscale/utils.c |  1 +
> > >   2 files changed, 27 insertions(+)
> > > 
> > > diff --git a/libswscale/input.c b/libswscale/input.c
> > > index 7237333e56..3d97c555a3 100644
> > > --- a/libswscale/input.c
> > > +++ b/libswscale/input.c
> > > @@ -764,6 +764,26 @@ static void vyuToUV_c(uint8_t *dstU, uint8_t *dstV, 
> > > const uint8_t *unused0, cons
> > >       }
> > >   }
> > > +static void read_v30xle_Y_c(uint8_t *dst, const uint8_t *src, const 
> > > uint8_t *unused0, const uint8_t *unused1, int width,
> > > +                               uint32_t *unused2, void *opq)
> > > +{
> > > +    int i;
> > > +    for (i = 0; i < width; i++)
> > > +        AV_WN16(dst + i * 2, (AV_RL32(src + i * 4) >> 12) & 0x3FFu);
> > > +}
> > > +
> > > +
> > > +static void read_v30xle_UV_c(uint8_t *dstU, uint8_t *dstV, const uint8_t 
> > > *unused0, const uint8_t *src,
> > > +                               const uint8_t *unused1, int width, 
> > > uint32_t *unused2, void *opq)
> > > +{
> > > +    int i;
> > > +    for (i = 0; i < width; i++) {
> > > +        uint32_t pixel = AV_RL32(src + i * 4);
> > > +        AV_WN16(dstU + i * 2, (pixel >>  2) & 0x3FFu);
> > > +        AV_WN16(dstV + i * 2, (pixel >> 22) & 0x3FFu);
> > > +    }
> > > +}
> > 
> > on ppc:
> > 
> > src/libswscale/input.c: In function ‘read_v30xle_UV_c’:
> > src/libswscale/input.c:781:18: error: two or more data types in declaration 
> > specifiers
> >           uint32_t pixel = AV_RL32(src + i * 4);
> 
> Is pixel a #define in this toolchain?

probably

thx

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to