[FFmpeg-devel] [PATCH v3] lavc/rawdec: Use AV_PIX_FMT_PAL8 for 1-bit raw QuickTime video

Mats Peterson matsp888 at yahoo.com
Mon Jan 18 01:50:18 CET 2016


On 01/17/2016 10:50 PM, Mats Peterson wrote:
> Alright Michael, I'm not entirely sure of what I'm doing regarding the
> FFALIGN(avctx->width, 32), but at least the two odd-width (113 and 129

In fact, I *am* sure of what I'm doing, since the original rows are 
obviously 4-byte aligned, and for 1 bpp to 8 bpp conversion the row 
alignment of the 8 bpp data will be 8 * 4 = 32 bytes. The question is 
whether the overhead of using 32-byte rather than 16-byte alignment is 
acceptable. I suppose it is. It only concerns 1, 2 and 4 bpp files.

Mats



More information about the ffmpeg-devel mailing list