[FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

Michael Niedermayer michael at niedermayer.cc
Sat Feb 13 12:31:32 CET 2016


On Sat, Feb 13, 2016 at 11:44:04AM +0100, Mats Peterson wrote:
> On 02/13/2016 11:40 AM, Mats Peterson wrote:
> >On 02/13/2016 11:39 AM, Paul B Mahol wrote:
> >>On 2/13/16, Mats Peterson <matsp888-at-yahoo.com at ffmpeg.org> wrote:
> >>>On 02/13/2016 11:28 AM, Mats Peterson wrote:
> >>>>>>Once again, how are we supposed to know how many colors the palette
> >>>>>>consists of at the end of avpkt->data?
> >>>>>
> >>>>>palette size = packet size - width*height
> >>>>>
> >>>>
> >>>>Nope. You have to take the stride in account as well, not just the
> >>>>width
> >>>>and height, and it varies in nut, depending on whether you use "-vcodec
> >>>>copy" or "-vcodec rawvideo".
> >>>>
> >>>>Mats
> >>>>
> >>>
> >>>And you'll have to calculate the stride by subtracting the palette size
> >>>from the packet size, then divide by the height.
> >>
> >>Nope, pixels outside of width x height are ignored.
> >>_______________________________________________
> >
> >I need the stride for the alignment to 16 bytes. It's not done for fun.
> >
> >Mats
> >
> 
> And pixels outside of the width are still in the packet, that's
> what's called the stride.

just double checked, this is not the case in written pal8 nut files
nor does the nut spec say anything about that.

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

I have never wished to cater to the crowd; for what I know they do not
approve, and what they approve I do not know. -- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160213/8e1c358e/attachment.sig>


More information about the ffmpeg-devel mailing list