[FFmpeg-devel] Video frame line size

Roelof van Wyk RWyk at irdeto.com
Fri Jan 3 09:05:19 CET 2014


-----Original Message-----
From: ffmpeg-devel-bounces at ffmpeg.org [mailto:ffmpeg-devel-bounces at ffmpeg.org] On Behalf Of Ronald S. Bultje
Sent: Thursday, January 02, 2014 1:44 PM
To: FFmpeg development discussions and patches
Subject: Re: [FFmpeg-devel] Video frame line size


On Thu, Jan 2, 2014 at 6:50 AM, Roelof van Wyk <RWyk at irdeto.com> wrote:

> I am writing a filter plug-in and have noticed a 1920x1080 10-bit 
> video input frame with a line size of 3904 bytes. Given 2 bytes per 
> pixel for 10-bit pixel format I have expected a line size of 3840 
> bytes instead. Can someone please tell me what this additional 64 bytes is used for?

In most encoders (and a few decoders), the edges are used to extend sides for out-of-visible-frame motion estimation (or in the case of a decoder:
motion compensation).

ffmpeg-devel mailing list
ffmpeg-devel at ffmpeg.org

More information about the ffmpeg-devel mailing list