[FFmpeg-devel] [PATCH] update doc/optimization.txt

Måns Rullgård mans
Wed Sep 22 15:11:49 CEST 2010

Michael Niedermayer <michaelni at gmx.at> writes:

> On Wed, Sep 22, 2010 at 08:37:07AM -0400, Ronald S. Bultje wrote:
>> Also, should I mention (in general tips) that functions that use huge
>> structs (e.g. MpegEncContext) are A) "discouragable" in general and B)
>> better written in inline asm than yasm because of the difficulty of
>> predicting struct offsets?
> B is ok about A, who uses huge structs when its not needed ...

If possible, the asm functions should be passed pointers into (or
values from) the struct in preference over passing a pointer to the
whole struct.

M?ns Rullg?rd
mans at mansr.com

More information about the ffmpeg-devel mailing list