[vlc-devel] [PATCH 1/2] Adds Intel QuickSync Video Encoder

Julien 'Lta' BALLET elthariel at gmail.com
Fri May 17 11:25:49 CEST 2013


On Fri, May 17, 2013 at 8:13 AM, Rafaël Carré <funman at videolan.org> wrote:

> Le 17/05/2013 03:48, Julien 'Lta' BALLET a écrit :
> > Hi,
> >
> > Thank you again funman for reviewing the patch.
> > I still have a question.
> >
> >
> > On Thu, May 16, 2013 at 4:50 PM, Rafaël Carré <funman at videolan.org>
> wrote:
> >
> >>> +// Frame pool for QuickSync video encoder with Intel Media SDK's
> format frames.
> >>> +typedef struct qsv_frame_pool_t
> >>> +{
> >>> +    mfxFrameInfo          fmt;            // IntelMediaSDK format
> info.
> >>> +    mfxFrameSurface1      *frames;        // An allocated array of
> 'size' frames.
> >>> +    unsigned int          size;           // The number of frame in
> the pool.
> >>> +} qsv_frame_pool_t;
> >>
> >> Still unnecessary padding.
> >
> > Are you talking of the padding at the end of the structure or the
> > possible padding between fmt and frames ?
>
> Padding between fmt and frames, the biggest members (pointers) should
> appear first in the struct
>
>
fmt is an Intel Media SDK defined struct, it's far larger than a pointer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20130517/618ee310/attachment.html>


More information about the vlc-devel mailing list