Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
2f770701
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2f770701
编写于
3月 23, 2008
作者:
D
Diego Biurrun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cosmetics: prettyprinting
Originally committed as revision 12566 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
838cc9c8
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
41 addition
and
41 deletion
+41
-41
libpostproc/postprocess_altivec_template.c
libpostproc/postprocess_altivec_template.c
+41
-41
未找到文件。
libpostproc/postprocess_altivec_template.c
浏览文件 @
2f770701
...
...
@@ -354,7 +354,7 @@ static inline void doVertLowPass_altivec(uint8_t *src, int stride, PPContext *c)
0x18
,
0x19
,
0x1A
,
0x1B
,
0x1C
,
0x1D
,
0x1E
,
0x1F
);
#define PACK_AND_STORE(i) \
{
const vector unsigned char perms##i = \
{ const vector unsigned char perms##i = \
vec_lvsr(i * stride, src2); \
const vector unsigned char vf##i = \
vec_packsu(vr##i, (vector signed short)zero); \
...
...
@@ -372,7 +372,7 @@ static inline void doVertLowPass_altivec(uint8_t *src, int stride, PPContext *c)
vec_st(svB##i, i * stride + 16, src2);}
#define PACK_AND_STORE_ALIGNED(i) \
{
const vector unsigned char vf##i = \
{ const vector unsigned char vf##i = \
vec_packsu(vr##i, (vector signed short)zero); \
const vector unsigned char vg##i = \
vec_perm(vf##i, vbT##i, permHH); \
...
...
@@ -509,7 +509,7 @@ static inline void doVertDefFilter_altivec(uint8_t src[], int stride, PPContext
0x18
,
0x19
,
0x1A
,
0x1B
,
0x1C
,
0x1D
,
0x1E
,
0x1F
);
#define STORE(i) \
{
const vector unsigned char perms##i = \
{ const vector unsigned char perms##i = \
vec_lvsr(i * stride, src2); \
const vector unsigned char vg##i = \
vec_perm(st##i, vbT##i, permHH); \
...
...
@@ -544,11 +544,11 @@ static inline void dering_altivec(uint8_t src[], int stride, PPContext *c) {
dt
[
0
]
=
deringThreshold
;
v_dt
=
vec_splat
(
vec_ld
(
0
,
dt
),
0
);
#define LOAD_LINE(i)
\
const vector unsigned char perm##i =
\
vec_lvsl(i * stride, srcCopy);
\
vector unsigned char sA##i = vec_ld(i * stride, srcCopy);
\
vector unsigned char sB##i = vec_ld(i * stride + 16, srcCopy);
\
#define LOAD_LINE(i) \
const vector unsigned char perm##i = \
vec_lvsl(i * stride, srcCopy); \
vector unsigned char sA##i = vec_ld(i * stride, srcCopy); \
vector unsigned char sB##i = vec_ld(i * stride + 16, srcCopy); \
vector unsigned char src##i = vec_perm(sA##i, sB##i, perm##i)
LOAD_LINE
(
0
);
...
...
@@ -872,7 +872,7 @@ static inline void RENAME(tempNoiseReducer)(uint8_t *src, int stride,
#undef LOAD_LINE
#define ACCUMULATE_DIFFS(i) \
vector signed short v_d##i = vec_sub(v_tempBlurredAss##i,
\
vector signed short v_d##i = vec_sub(v_tempBlurredAss##i, \
v_srcAss##i); \
v_dp = vec_msums(v_d##i, v_d##i, v_dp); \
v_sysdp = vec_msums(v_d##i, vsint16_1, v_sysdp)
...
...
@@ -939,7 +939,7 @@ static inline void RENAME(tempNoiseReducer)(uint8_t *src, int stride,
#define OP(i) \
const vector signed short v_temp##i = \
vec_mladd(v_tempBlurredAss##i,
\
vec_mladd(v_tempBlurredAss##i, \
vsint16_7, v_srcAss##i); \
const vector signed short v_temp2##i = \
vec_add(v_temp##i, vsint16_4); \
...
...
@@ -960,7 +960,7 @@ static inline void RENAME(tempNoiseReducer)(uint8_t *src, int stride,
#define OP(i) \
const vector signed short v_temp##i = \
vec_mladd(v_tempBlurredAss##i,
\
vec_mladd(v_tempBlurredAss##i, \
vsint16_3, v_srcAss##i); \
const vector signed short v_temp2##i = \
vec_add(v_temp##i, vsint16_2); \
...
...
@@ -1055,16 +1055,16 @@ static inline void transpose_16x8_char_toPackedAlign_altivec(unsigned char* dst,
vector
unsigned
char
tempO
=
vec_mergeh
(
src7
,
zero
);
vector
unsigned
char
tempP
=
vec_mergel
(
src7
,
zero
);
vector
unsigned
char
temp0
=
vec_mergeh
(
tempA
,
tempI
);
vector
unsigned
char
temp1
=
vec_mergel
(
tempA
,
tempI
);
vector
unsigned
char
temp2
=
vec_mergeh
(
tempB
,
tempJ
);
vector
unsigned
char
temp3
=
vec_mergel
(
tempB
,
tempJ
);
vector
unsigned
char
temp4
=
vec_mergeh
(
tempC
,
tempK
);
vector
unsigned
char
temp5
=
vec_mergel
(
tempC
,
tempK
);
vector
unsigned
char
temp6
=
vec_mergeh
(
tempD
,
tempL
);
vector
unsigned
char
temp7
=
vec_mergel
(
tempD
,
tempL
);
vector
unsigned
char
temp8
=
vec_mergeh
(
tempE
,
tempM
);
vector
unsigned
char
temp9
=
vec_mergel
(
tempE
,
tempM
);
vector
unsigned
char
temp0
=
vec_mergeh
(
tempA
,
tempI
);
vector
unsigned
char
temp1
=
vec_mergel
(
tempA
,
tempI
);
vector
unsigned
char
temp2
=
vec_mergeh
(
tempB
,
tempJ
);
vector
unsigned
char
temp3
=
vec_mergel
(
tempB
,
tempJ
);
vector
unsigned
char
temp4
=
vec_mergeh
(
tempC
,
tempK
);
vector
unsigned
char
temp5
=
vec_mergel
(
tempC
,
tempK
);
vector
unsigned
char
temp6
=
vec_mergeh
(
tempD
,
tempL
);
vector
unsigned
char
temp7
=
vec_mergel
(
tempD
,
tempL
);
vector
unsigned
char
temp8
=
vec_mergeh
(
tempE
,
tempM
);
vector
unsigned
char
temp9
=
vec_mergel
(
tempE
,
tempM
);
vector
unsigned
char
temp10
=
vec_mergeh
(
tempF
,
tempN
);
vector
unsigned
char
temp11
=
vec_mergel
(
tempF
,
tempN
);
vector
unsigned
char
temp12
=
vec_mergeh
(
tempG
,
tempO
);
...
...
@@ -1089,16 +1089,16 @@ static inline void transpose_16x8_char_toPackedAlign_altivec(unsigned char* dst,
tempO
=
vec_mergeh
(
temp7
,
temp15
);
tempP
=
vec_mergel
(
temp7
,
temp15
);
temp0
=
vec_mergeh
(
tempA
,
tempI
);
temp1
=
vec_mergel
(
tempA
,
tempI
);
temp2
=
vec_mergeh
(
tempB
,
tempJ
);
temp3
=
vec_mergel
(
tempB
,
tempJ
);
temp4
=
vec_mergeh
(
tempC
,
tempK
);
temp5
=
vec_mergel
(
tempC
,
tempK
);
temp6
=
vec_mergeh
(
tempD
,
tempL
);
temp7
=
vec_mergel
(
tempD
,
tempL
);
temp8
=
vec_mergeh
(
tempE
,
tempM
);
temp9
=
vec_mergel
(
tempE
,
tempM
);
temp0
=
vec_mergeh
(
tempA
,
tempI
);
temp1
=
vec_mergel
(
tempA
,
tempI
);
temp2
=
vec_mergeh
(
tempB
,
tempJ
);
temp3
=
vec_mergel
(
tempB
,
tempJ
);
temp4
=
vec_mergeh
(
tempC
,
tempK
);
temp5
=
vec_mergel
(
tempC
,
tempK
);
temp6
=
vec_mergeh
(
tempD
,
tempL
);
temp7
=
vec_mergel
(
tempD
,
tempL
);
temp8
=
vec_mergeh
(
tempE
,
tempM
);
temp9
=
vec_mergel
(
tempE
,
tempM
);
temp10
=
vec_mergeh
(
tempF
,
tempN
);
temp11
=
vec_mergel
(
tempF
,
tempN
);
temp12
=
vec_mergeh
(
tempG
,
tempO
);
...
...
@@ -1106,16 +1106,16 @@ static inline void transpose_16x8_char_toPackedAlign_altivec(unsigned char* dst,
temp14
=
vec_mergeh
(
tempH
,
tempP
);
temp15
=
vec_mergel
(
tempH
,
tempP
);
vec_st
(
temp0
,
0
,
dst
);
vec_st
(
temp1
,
16
,
dst
);
vec_st
(
temp2
,
32
,
dst
);
vec_st
(
temp3
,
48
,
dst
);
vec_st
(
temp4
,
64
,
dst
);
vec_st
(
temp5
,
80
,
dst
);
vec_st
(
temp6
,
96
,
dst
);
vec_st
(
temp7
,
112
,
dst
);
vec_st
(
temp8
,
128
,
dst
);
vec_st
(
temp9
,
144
,
dst
);
vec_st
(
temp0
,
0
,
dst
);
vec_st
(
temp1
,
16
,
dst
);
vec_st
(
temp2
,
32
,
dst
);
vec_st
(
temp3
,
48
,
dst
);
vec_st
(
temp4
,
64
,
dst
);
vec_st
(
temp5
,
80
,
dst
);
vec_st
(
temp6
,
96
,
dst
);
vec_st
(
temp7
,
112
,
dst
);
vec_st
(
temp8
,
128
,
dst
);
vec_st
(
temp9
,
144
,
dst
);
vec_st
(
temp10
,
160
,
dst
);
vec_st
(
temp11
,
176
,
dst
);
vec_st
(
temp12
,
192
,
dst
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录