mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-21 07:59:43 +08:00
x86: dsputil: Move hpeldsp-related declarations to a separate header
This commit is contained in:
@@ -22,7 +22,6 @@
|
|||||||
#ifndef AVCODEC_X86_DSPUTIL_X86_H
|
#ifndef AVCODEC_X86_DSPUTIL_X86_H
|
||||||
#define AVCODEC_X86_DSPUTIL_X86_H
|
#define AVCODEC_X86_DSPUTIL_X86_H
|
||||||
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "libavcodec/avcodec.h"
|
#include "libavcodec/avcodec.h"
|
||||||
@@ -61,17 +60,4 @@ void ff_gmc_mmx(uint8_t *dst, uint8_t *src,
|
|||||||
void ff_vector_clipf_sse(float *dst, const float *src,
|
void ff_vector_clipf_sse(float *dst, const float *src,
|
||||||
float min, float max, int len);
|
float min, float max, int len);
|
||||||
|
|
||||||
void ff_avg_pixels8_x2_mmx(uint8_t *block, const uint8_t *pixels,
|
|
||||||
ptrdiff_t line_size, int h);
|
|
||||||
|
|
||||||
void ff_avg_pixels8_xy2_mmx(uint8_t *block, const uint8_t *pixels,
|
|
||||||
ptrdiff_t line_size, int h);
|
|
||||||
void ff_avg_pixels16_xy2_mmx(uint8_t *block, const uint8_t *pixels,
|
|
||||||
ptrdiff_t line_size, int h);
|
|
||||||
|
|
||||||
void ff_put_pixels8_xy2_mmx(uint8_t *block, const uint8_t *pixels,
|
|
||||||
ptrdiff_t line_size, int h);
|
|
||||||
void ff_put_pixels16_xy2_mmx(uint8_t *block, const uint8_t *pixels,
|
|
||||||
ptrdiff_t line_size, int h);
|
|
||||||
|
|
||||||
#endif /* AVCODEC_X86_DSPUTIL_X86_H */
|
#endif /* AVCODEC_X86_DSPUTIL_X86_H */
|
||||||
|
38
libavcodec/x86/hpeldsp.h
Normal file
38
libavcodec/x86/hpeldsp.h
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of Libav.
|
||||||
|
*
|
||||||
|
* Libav is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Libav 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
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with Libav; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef AVCODEC_X86_HPELDSP_H
|
||||||
|
#define AVCODEC_X86_HPELDSP_H
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
void ff_avg_pixels8_x2_mmx(uint8_t *block, const uint8_t *pixels,
|
||||||
|
ptrdiff_t line_size, int h);
|
||||||
|
|
||||||
|
void ff_avg_pixels8_xy2_mmx(uint8_t *block, const uint8_t *pixels,
|
||||||
|
ptrdiff_t line_size, int h);
|
||||||
|
void ff_avg_pixels16_xy2_mmx(uint8_t *block, const uint8_t *pixels,
|
||||||
|
ptrdiff_t line_size, int h);
|
||||||
|
|
||||||
|
void ff_put_pixels8_xy2_mmx(uint8_t *block, const uint8_t *pixels,
|
||||||
|
ptrdiff_t line_size, int h);
|
||||||
|
void ff_put_pixels16_xy2_mmx(uint8_t *block, const uint8_t *pixels,
|
||||||
|
ptrdiff_t line_size, int h);
|
||||||
|
|
||||||
|
#endif /* AVCODEC_X86_HPELDSP_H */
|
@@ -29,8 +29,8 @@
|
|||||||
#include "libavcodec/avcodec.h"
|
#include "libavcodec/avcodec.h"
|
||||||
#include "libavcodec/hpeldsp.h"
|
#include "libavcodec/hpeldsp.h"
|
||||||
#include "libavcodec/pixels.h"
|
#include "libavcodec/pixels.h"
|
||||||
#include "dsputil_x86.h"
|
|
||||||
#include "fpel.h"
|
#include "fpel.h"
|
||||||
|
#include "hpeldsp.h"
|
||||||
|
|
||||||
void ff_put_pixels8_x2_mmxext(uint8_t *block, const uint8_t *pixels,
|
void ff_put_pixels8_x2_mmxext(uint8_t *block, const uint8_t *pixels,
|
||||||
ptrdiff_t line_size, int h);
|
ptrdiff_t line_size, int h);
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "dsputil_x86.h"
|
#include "hpeldsp.h"
|
||||||
#include "inline_asm.h"
|
#include "inline_asm.h"
|
||||||
|
|
||||||
#if HAVE_MMX_INLINE
|
#if HAVE_MMX_INLINE
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "libavcodec/pixels.h"
|
#include "libavcodec/pixels.h"
|
||||||
#include "dsputil_x86.h"
|
#include "hpeldsp.h"
|
||||||
#include "inline_asm.h"
|
#include "inline_asm.h"
|
||||||
|
|
||||||
#if HAVE_INLINE_ASM
|
#if HAVE_INLINE_ASM
|
||||||
|
@@ -30,7 +30,7 @@
|
|||||||
#include "libavutil/attributes.h"
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/mem.h"
|
#include "libavutil/mem.h"
|
||||||
#include "libavutil/x86/cpu.h"
|
#include "libavutil/x86/cpu.h"
|
||||||
#include "dsputil_x86.h"
|
#include "hpeldsp.h"
|
||||||
|
|
||||||
#if HAVE_YASM
|
#if HAVE_YASM
|
||||||
void ff_put_rv40_chroma_mc8_mmx (uint8_t *dst, uint8_t *src,
|
void ff_put_rv40_chroma_mc8_mmx (uint8_t *dst, uint8_t *src,
|
||||||
|
Reference in New Issue
Block a user