Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/libtheora/x86_vc/x86enc.h
9906 views
1
/********************************************************************
2
* *
3
* THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
4
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
5
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
6
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
7
* *
8
* THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2009 *
9
* by the Xiph.Org Foundation and contributors *
10
* https://www.xiph.org/ *
11
* *
12
********************************************************************
13
14
function:
15
16
********************************************************************/
17
18
#if !defined(_x86_vc_x86enc_H)
19
# define _x86_vc_x86enc_H (1)
20
# include "x86int.h"
21
# if defined(OC_X86_ASM)
22
# define oc_enc_accel_init oc_enc_accel_init_x86
23
# define OC_ENC_USE_VTABLE (1)
24
# endif
25
# include "../encint.h"
26
27
void oc_enc_accel_init_x86(oc_enc_ctx *_enc);
28
29
unsigned oc_enc_frag_sad_mmxext(const unsigned char *_src,
30
const unsigned char *_ref,int _ystride);
31
unsigned oc_enc_frag_sad_thresh_mmxext(const unsigned char *_src,
32
const unsigned char *_ref,int _ystride,unsigned _thresh);
33
unsigned oc_enc_frag_sad2_thresh_mmxext(const unsigned char *_src,
34
const unsigned char *_ref1,const unsigned char *_ref2,int _ystride,
35
unsigned _thresh);
36
unsigned oc_enc_frag_satd_mmxext(unsigned *_dc,const unsigned char *_src,
37
const unsigned char *_ref,int _ystride);
38
unsigned oc_enc_frag_satd2_mmxext(unsigned *_dc,const unsigned char *_src,
39
const unsigned char *_ref1,const unsigned char *_ref2,int _ystride);
40
unsigned oc_enc_frag_intra_satd_mmxext(unsigned *_dc,
41
const unsigned char *_src,int _ystride);
42
void oc_enc_frag_sub_mmx(ogg_int16_t _diff[64],
43
const unsigned char *_x,const unsigned char *_y,int _stride);
44
void oc_enc_frag_sub_128_mmx(ogg_int16_t _diff[64],
45
const unsigned char *_x,int _stride);
46
void oc_enc_frag_copy2_mmxext(unsigned char *_dst,
47
const unsigned char *_src1,const unsigned char *_src2,int _ystride);
48
void oc_enc_fdct8x8_mmxext(ogg_int16_t _y[64],const ogg_int16_t _x[64]);
49
void oc_enc_fdct8x8_x86_64sse2(ogg_int16_t _y[64],const ogg_int16_t _x[64]);
50
51
#endif
52
53