2007-11-27 23:23:34 +01:00
|
|
|
/*
|
|
|
|
* MMX optimized DSP utils
|
|
|
|
* Copyright (c) 2007 Aurelien Jacobs <aurel@gnuage.org>
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
2013-12-23 16:39:36 +01:00
|
|
|
#ifndef AVCODEC_X86_DSPUTIL_X86_H
|
|
|
|
#define AVCODEC_X86_DSPUTIL_X86_H
|
2007-11-27 23:23:34 +01:00
|
|
|
|
2007-12-12 23:45:03 +01:00
|
|
|
#include <stdint.h>
|
2013-02-26 17:29:48 +01:00
|
|
|
|
2014-01-29 13:07:57 +01:00
|
|
|
#include "libavcodec/avcodec.h"
|
2008-05-09 13:56:36 +02:00
|
|
|
#include "libavcodec/dsputil.h"
|
2013-04-22 11:23:47 +02:00
|
|
|
|
2013-12-30 12:09:03 +01:00
|
|
|
void ff_dsputilenc_init_mmx(DSPContext *c, AVCodecContext *avctx,
|
|
|
|
unsigned high_bit_depth);
|
2014-01-31 08:15:56 +01:00
|
|
|
void ff_dsputil_init_pix_mmx(DSPContext *c, AVCodecContext *avctx);
|
2009-08-29 18:55:50 +02:00
|
|
|
|
2014-01-31 08:15:56 +01:00
|
|
|
void ff_add_pixels_clamped_mmx(const int16_t *block, uint8_t *pixels,
|
|
|
|
int line_size);
|
|
|
|
void ff_put_pixels_clamped_mmx(const int16_t *block, uint8_t *pixels,
|
|
|
|
int line_size);
|
|
|
|
void ff_put_signed_pixels_clamped_mmx(const int16_t *block, uint8_t *pixels,
|
|
|
|
int line_size);
|
2008-02-26 00:14:22 +01:00
|
|
|
|
2013-05-08 01:45:39 +02:00
|
|
|
void ff_clear_block_mmx(int16_t *block);
|
|
|
|
void ff_clear_block_sse(int16_t *block);
|
|
|
|
void ff_clear_blocks_mmx(int16_t *blocks);
|
|
|
|
void ff_clear_blocks_sse(int16_t *blocks);
|
|
|
|
|
|
|
|
void ff_add_bytes_mmx(uint8_t *dst, uint8_t *src, int w);
|
|
|
|
|
|
|
|
void ff_add_hfyu_median_prediction_cmov(uint8_t *dst, const uint8_t *top,
|
|
|
|
const uint8_t *diff, int w,
|
|
|
|
int *left, int *left_top);
|
|
|
|
|
|
|
|
void ff_draw_edges_mmx(uint8_t *buf, int wrap, int width, int height,
|
|
|
|
int w, int h, int sides);
|
|
|
|
|
|
|
|
void ff_gmc_mmx(uint8_t *dst, uint8_t *src,
|
|
|
|
int stride, int h, int ox, int oy,
|
|
|
|
int dxx, int dxy, int dyx, int dyy,
|
|
|
|
int shift, int r, int width, int height);
|
|
|
|
|
2013-05-14 10:55:28 +02:00
|
|
|
void ff_gmc_sse(uint8_t *dst, uint8_t *src,
|
|
|
|
int stride, int h, int ox, int oy,
|
|
|
|
int dxx, int dxy, int dyx, int dyy,
|
|
|
|
int shift, int r, int width, int height);
|
|
|
|
|
2013-05-08 01:45:39 +02:00
|
|
|
void ff_vector_clipf_sse(float *dst, const float *src,
|
|
|
|
float min, float max, int len);
|
2013-04-23 17:10:59 +02:00
|
|
|
|
2012-04-19 22:36:17 +02:00
|
|
|
|
2013-01-23 17:44:56 +01:00
|
|
|
void ff_mmx_idct(int16_t *block);
|
|
|
|
void ff_mmxext_idct(int16_t *block);
|
2010-03-06 23:37:08 +01:00
|
|
|
|
2013-12-23 16:39:36 +01:00
|
|
|
#endif /* AVCODEC_X86_DSPUTIL_X86_H */
|