2007-11-28 00:23:34 +02: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 18:39:36 +03:00
|
|
|
#ifndef AVCODEC_X86_DSPUTIL_X86_H
|
|
|
|
#define AVCODEC_X86_DSPUTIL_X86_H
|
2007-11-28 00:23:34 +02:00
|
|
|
|
2007-12-13 00:45:03 +02:00
|
|
|
#include <stdint.h>
|
2013-02-26 19:29:48 +03:00
|
|
|
|
2014-01-29 15:07:57 +03:00
|
|
|
#include "libavcodec/avcodec.h"
|
2008-05-09 14:56:36 +03:00
|
|
|
#include "libavcodec/dsputil.h"
|
2013-04-22 12:23:47 +03:00
|
|
|
|
2013-12-30 14:09:03 +03:00
|
|
|
void ff_dsputilenc_init_mmx(DSPContext *c, AVCodecContext *avctx,
|
|
|
|
unsigned high_bit_depth);
|
2014-01-31 10:15:56 +03:00
|
|
|
void ff_dsputil_init_pix_mmx(DSPContext *c, AVCodecContext *avctx);
|
2009-08-29 19:55:50 +03:00
|
|
|
|
2014-01-31 10:15:56 +03: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);
|
2014-05-22 00:02:39 +03:00
|
|
|
void ff_put_signed_pixels_clamped_sse2(const int16_t *block, uint8_t *pixels,
|
|
|
|
int line_size);
|
2008-02-26 01:14:22 +02:00
|
|
|
|
2013-05-08 02:45:39 +03:00
|
|
|
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-01-23 19:44:56 +03:00
|
|
|
void ff_mmx_idct(int16_t *block);
|
|
|
|
void ff_mmxext_idct(int16_t *block);
|
2010-03-07 00:37:08 +02:00
|
|
|
|
2013-12-23 18:39:36 +03:00
|
|
|
#endif /* AVCODEC_X86_DSPUTIL_X86_H */
|