[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libcaca] Re: What is pitch?



Zeeshan Ali wrote:

> I thought of it
>as 
>s the number of bytes in a row & therefore defined it
>as:  image_width * bpp/8. Then i saw this formula in
>the vlc's libcaca plugin: ((image_width + 15) & ~15)
>
I didn't read the libcaca sources for answering that, but mainly the 
pitch is actulally size of a complete screen ligne bpp/8 (even if some 
libs/ systems use the size of one pixel to determine that, so pixel*bpp).
The use in VLC could be part of ANOTHER bug in VLC ? :))









-- 
This is the libcaca mailing-list, see http://sam.zoy.org/projects/libcaca/
Trouble unsubscribing? Please contact <sam@zoy.org>
List archives are at http://sam.zoy.org/projects/libcaca/threads.html