On 10.05.2013 16:56, Andre DRASZIK wrote:
This can be used to calculate (and return) the pixel address and pitch
for split buffer formats, for the CbCr or Cb and Cr components (2-plane
or 3-plane formats).

Signed-off-by: André Draszik<andre.dras...@st.com>

OK.

What about a convenience function that returns all three pointers and pitches 
in an array?

Also, passing the config is enough, as we are passing pointer/pitch already, 
this is very
important when you have the buffer or allocation only, the surface might be 
destroyed by that
time, or the surface might already have another config, that's why the config 
gets copied into
buffers/allocations when they are created from surface.

        get_ ( const CoreSurfaceConfig  * const config,
               const void               * const data,
               int                        pitch,
               int                        x,
               int                        y,
               unsigned int               num,  <=== should be 1, 2 or 3 as 
limit for output arrays
               u8                      ** pointers,
               int                      * pitches )

--
Denis Oliver Kropp
CEO
DirectFB integrated media GmbH
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to