Re: [FFmpeg-devel] [PATCH] avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for H264 lpf and weight/biweight functions

2015-04-22 Thread Shivraj Patil
-Original Message- From: ffmpeg-devel-boun...@ffmpeg.org [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of Timothy Gu Sent: 21 April 2015 00:28 To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH] avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations

Re: [FFmpeg-devel] [PATCH] avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for H264 lpf and weight/biweight functions

2015-04-21 Thread Timothy Gu
On Tue, Apr 21, 2015 at 10:22:48AM +, Parag Salasakar wrote: These are 'optimization' patches for MSA. We surely have plans to add runtime CPU detection code in near future as a separate patch. OK, looking forward to that. Timothy ___

Re: [FFmpeg-devel] [PATCH] avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for H264 lpf and weight/biweight functions

2015-04-21 Thread Parag Salasakar
, 2015 1:59 AM To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH] avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for H264 lpf and weight/biweight functions On Mon, Apr 20, 2015 at 12:04 PM James Almer jamr...@gmail.com wrote: For that matter, do mips processors

Re: [FFmpeg-devel] [PATCH] avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for H264 lpf and weight/biweight functions

2015-04-20 Thread Timothy Gu
On Mon, Apr 20, 2015 at 12:04 PM James Almer jamr...@gmail.com wrote: For that matter, do mips processors even have some sort of cpuid instruction at all? AFAIK it does. See: - https://github.com/torvalds/linux/blob/master/arch/mips/kernel/cpu-probe.c#L519-L520 -

Re: [FFmpeg-devel] [PATCH] avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for H264 lpf and weight/biweight functions

2015-04-20 Thread Timothy Gu
On Mon, Apr 20, 2015 at 2:54 AM shivraj.pa...@imgtec.com wrote: From: Shivraj Patil shivraj.pa...@imgtec.com Signed-off-by: Shivraj Patil shivraj.pa...@imgtec.com --- libavcodec/h264dsp.c|1 + libavcodec/h264dsp.h|2 + libavcodec/mips/Makefile

Re: [FFmpeg-devel] [PATCH] avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for H264 lpf and weight/biweight functions

2015-04-20 Thread James Almer
On 20/04/15 3:58 PM, Timothy Gu wrote: You should fold the _init_msa() function into this function. You also need to add the flags into libavutil/mips/cpu.h as the user might not want to use MSA at runtime. See libavutil/cpu.h and libavutil/*/cpu.h. Timothy User selectable cpuflags are