[Ffmpeg-devel] [PATCH/RFC] 1-7 and 9-15 bits per pixel PGM files

Michael Niedermayer michaelni
Mon Apr 9 12:24:14 CEST 2007


Hi

On Mon, Apr 09, 2007 at 12:08:07PM +0200, Reimar D?ffinger wrote:
> Hello,
> On Mon, Apr 09, 2007 at 11:27:33AM +0200, Ivo wrote:
> > I don't think linesize can be odd with 2 bytes per pixel grayscale, can it?
> 
> Sure it "can", just as it "can" be smaller than the number of bytes
> needed to represent one line. For the later case it was decided that we
> will not define behaviour for this case, I don't remember the former
> problem ever coming up though.
> Both case probably should be documented somewhere if they aren't, maybe
> in the get_buffer description in avcodec.h?
> Or in FF_COMMON_FRAME? There linesize is not documented at all..

linesize must be "aligned" adequately for the architecture, this is maybe
not documented but it should be

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No human being will ever know the Truth, for even if they happen to say it
by chance, they would not even known they had done so. -- Xenophanes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070409/4fcdec62/attachment.pgp>



More information about the ffmpeg-devel mailing list