[FFmpeg-devel] How to wire asm to the makefile

Book Moons waic9e at protonmail.com
Mon Jul 9 08:23:22 EEST 2018


(Those *_altivec files in libswscale are C code with intrinsics)

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On July 9, 2018 12:29 AM, Book Moons <waic9e at protonmail.com> wrote:

> Hello,
> 
> I have a Power optimized function in asm for an upcoming patch. Having some trouble figuring out how to wire it up to the makefiles / build system. Are there any docs on how to do that?
> 
> The only other example of Power asm seems to be libavcodec/ppc/fft_altivec.S. That's simply appended to the OBJS-yes variable:
> 
> OBJS-$(CONFIG_FFT) += ppc/fft_init.o
> 
> ppc/fft_altivec.o
> 
> ppc/fft_vsx.o
> 
> Doing the same thing in the relevant makefile (for libswscale/ppc) doesn't seem to work.
> 
> OBJS += ppc/swscale_altivec.o
> 
> ppc/yuv2rgb_altivec.o
> 
> ppc/yuv2yuv_altivec.o
> 
> ppc/hScale8To15_vsx.o
> 
> It looks for a .c file. Building with that change gives this error:
> 
> > make: *** No rule to make target 'src/libswscale/ppc/hScale8To15_vsx.c', needed by 'libswscale/ppc/hScale8To15_vsx.o'. Stop.
> 
> ffmpeg-devel mailing list
> 
> ffmpeg-devel at ffmpeg.org
> 
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel




More information about the ffmpeg-devel mailing list