[FFmpeg-devel] [PATCH V7 1/2] libswscale/x86/yuv2rgb: Change inline assembly into nasm code

Ronald S. Bultje rsbultje at gmail.com
Sun Jan 19 16:55:09 EET 2020


Hi,

On Sat, Jan 18, 2020 at 9:49 PM Fu, Ting <ting.fu at intel.com> wrote:

> Since NASM function will get only the address of SwsConext c ( in order to
> be compatible with yuv2rgb_c function in parameters), not the address of
> c->redDither nor the c->dstW. I have no way to get the value of c->dstW by
> using address offset.


Nasm and related variants have "struc" (like "struct" in C) for this.

See for example this code:
https://code.videolan.org/videolan/dav1d/blob/master/src/x86/film_grain.asm#L64

Hope this helps,
Ronald


More information about the ffmpeg-devel mailing list