done..!
   Thanks & cheers

--- On Fri, 28/1/11, Tomas Härdin <[email protected]> wrote:

From: Tomas Härdin <[email protected]>
Subject: Re: [libav-user] Getting the 24bit pixel value, instead of RGB 
values..any ideas..
To: "Libav* user questions and discussions" <[email protected]>
Date: Friday, 28 January, 2011, 1:59 PM

Nimo s skrev 2011-01-27 09:03:
> Hello..!
> In a Image instead of getting RGB values, how to get the exact pixel values?
> I mean in an 24bit image we will have 16581375 colors.

You mean 16777216 colors?

> I wanna extract each pixel values in range of 0 - 16581375 instead of 
> individual R,G&  B values..

Uhm.. Why?
Anyway, if your image is PIX_FMT_RGB24 then you simply take every byte triplet 
and stuff them in an int array or something. You shouldn't have to though, 
since that's basically pointless copying.

/Tomas
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user


_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to