Commit 4ebb23aa authored by Rishikesh More's avatar Rishikesh More Committed by Henrik Gramner

mips: MSA mc optimizations

Signed-off-by: 's avatarRishikesh More <rishikesh.more@imgtec.com>
parent cd19444d
......@@ -143,6 +143,13 @@ OBJASM = $(ASMSRC:%.S=%.o)
endif
endif
# MSA optims
ifeq ($(SYS_ARCH),MIPS)
ifneq ($(findstring HAVE_MSA 1, $(CONFIG)),)
SRCS += common/mips/mc-c.c
endif
endif
ifneq ($(HAVE_GETOPT_LONG),1)
SRCCLI += extras/getopt.c
endif
......
......@@ -38,6 +38,9 @@
#if ARCH_AARCH64
#include "aarch64/mc.h"
#endif
#if ARCH_MIPS
#include "mips/mc.h"
#endif
static inline void pixel_avg( pixel *dst, intptr_t i_dst_stride,
......@@ -659,6 +662,10 @@ void x264_mc_init( int cpu, x264_mc_functions_t *pf, int cpu_independent )
#if ARCH_AARCH64
x264_mc_init_aarch64( cpu, pf );
#endif
#if HAVE_MSA
if( cpu&X264_CPU_MSA )
x264_mc_init_mips( cpu, pf );
#endif
if( cpu_independent )
{
......
This diff is collapsed.
/*****************************************************************************
* mc.h: msa motion compensation
*****************************************************************************
* Copyright (C) 2015 x264 project
*
* Authors: Neha Rana <neha.rana@imgtec.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.
*
* This program is also available under a commercial proprietary license.
* For more information, contact us at licensing@x264.com.
*****************************************************************************/
#ifndef X264_MIPS_MC_H
#define X264_MIPS_MC_H
void x264_mc_init_mips( int cpu, x264_mc_functions_t *pf );
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment