You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
This avoids mmx (the size 16 h264qpel dsp now no longer uses any mmx) and improves performance, particularly for the avg case: Old benchmarks: avg_h264_qpel_16_mc01_8_c: 780.0 ( 1.00x) avg_h264_qpel_16_mc01_8_sse2: 91.2 ( 8.55x) avg_h264_qpel_16_mc03_8_c: 804.0 ( 1.00x) avg_h264_qpel_16_mc03_8_sse2: 91.2 ( 8.82x) put_h264_qpel_16_mc01_8_c: 779.5 ( 1.00x) put_h264_qpel_16_mc01_8_sse2: 82.8 ( 9.41x) put_h264_qpel_16_mc03_8_c: 770.1 ( 1.00x) put_h264_qpel_16_mc03_8_sse2: 82.5 ( 9.33x) New benchmarks: avg_h264_qpel_16_mc01_8_c: 783.9 ( 1.00x) avg_h264_qpel_16_mc01_8_sse2: 84.1 ( 9.32x) avg_h264_qpel_16_mc03_8_c: 797.4 ( 1.00x) avg_h264_qpel_16_mc03_8_sse2: 83.9 ( 9.51x) put_h264_qpel_16_mc01_8_c: 767.4 ( 1.00x) put_h264_qpel_16_mc01_8_sse2: 80.5 ( 9.53x) put_h264_qpel_16_mc03_8_c: 779.9 ( 1.00x) put_h264_qpel_16_mc03_8_sse2: 80.3 ( 9.71x) (qpeldsp will use these functions when it gets ported to SSE2; then the mmxext functions will be removed as well.) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
45 lines
2.0 KiB
C
45 lines
2.0 KiB
C
/*
|
|
* This file is part of FFmpeg.
|
|
*
|
|
* FFmpeg 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.
|
|
*
|
|
* FFmpeg 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 FFmpeg; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef AVCODEC_X86_QPEL_H
|
|
#define AVCODEC_X86_QPEL_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
void ff_put_pixels8x8_l2_mmxext(uint8_t *dst,
|
|
const uint8_t *src1, const uint8_t *src2,
|
|
ptrdiff_t dstStride, ptrdiff_t src1Stride);
|
|
void ff_avg_pixels8x8_l2_mmxext(uint8_t *dst,
|
|
const uint8_t *src1, const uint8_t *src2,
|
|
ptrdiff_t dstStride, ptrdiff_t src1Stride);
|
|
void ff_put_pixels16x16_l2_mmxext(uint8_t *dst,
|
|
const uint8_t *src1, const uint8_t *src2,
|
|
ptrdiff_t dstStride, ptrdiff_t src1Stride);
|
|
void ff_put_pixels16x16_l2_sse2(uint8_t *dst,
|
|
const uint8_t *src1, const uint8_t *src2,
|
|
ptrdiff_t dstStride, ptrdiff_t src1Stride);
|
|
void ff_avg_pixels16x16_l2_mmxext(uint8_t *dst,
|
|
const uint8_t *src1, const uint8_t *src2,
|
|
ptrdiff_t dstStride, ptrdiff_t src1Stride);
|
|
void ff_avg_pixels16x16_l2_sse2(uint8_t *dst,
|
|
const uint8_t *src1, const uint8_t *src2,
|
|
ptrdiff_t dstStride, ptrdiff_t src1Stride);
|
|
|
|
#endif /* AVCODEC_X86_QPEL_H */
|