Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
21aed0ed
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,发现更多精彩内容 >>
提交
21aed0ed
编写于
7月 16, 2011
作者:
D
Diego Biurrun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ppc: remove disabled code
上级
0523dc57
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
0 addition
and
61 deletion
+0
-61
libavcodec/ppc/dsputil_altivec.c
libavcodec/ppc/dsputil_altivec.c
+0
-11
libavcodec/ppc/dsputil_ppc.c
libavcodec/ppc/dsputil_ppc.c
+0
-8
libavcodec/ppc/fdct_altivec.c
libavcodec/ppc/fdct_altivec.c
+0
-24
libavcodec/ppc/mpegvideo_altivec.c
libavcodec/ppc/mpegvideo_altivec.c
+0
-18
未找到文件。
libavcodec/ppc/dsputil_altivec.c
浏览文件 @
21aed0ed
...
...
@@ -627,16 +627,6 @@ void put_pixels16_altivec(uint8_t *block, const uint8_t *pixels, int line_size,
// it's faster than -funroll-loops, but using
// -funroll-loops w/ this is bad - 74 cycles again.
// all this is on a 7450, tuning for the 7450
#if 0
for (i = 0; i < h; i++) {
pixelsv1 = vec_ld(0, pixels);
pixelsv2 = vec_ld(16, pixels);
vec_st(vec_perm(pixelsv1, pixelsv2, perm),
0, block);
pixels+=line_size;
block +=line_size;
}
#else
for
(
i
=
0
;
i
<
h
;
i
+=
4
)
{
pixelsv1
=
vec_ld
(
0
,
pixels
);
pixelsv2
=
vec_ld
(
15
,
pixels
);
...
...
@@ -657,7 +647,6 @@ void put_pixels16_altivec(uint8_t *block, const uint8_t *pixels, int line_size,
pixels
+=
line_size_4
;
block
+=
line_size_4
;
}
#endif
}
/* next one assumes that ((line_size % 16) == 0) */
...
...
libavcodec/ppc/dsputil_ppc.c
浏览文件 @
21aed0ed
...
...
@@ -48,7 +48,6 @@ static void clear_blocks_dcbz32_ppc(DCTELEM *blocks)
{
register
int
misal
=
((
unsigned
long
)
blocks
&
0x00000010
);
register
int
i
=
0
;
#if 1
if
(
misal
)
{
((
unsigned
long
*
)
blocks
)[
0
]
=
0L
;
((
unsigned
long
*
)
blocks
)[
1
]
=
0L
;
...
...
@@ -66,9 +65,6 @@ static void clear_blocks_dcbz32_ppc(DCTELEM *blocks)
((
unsigned
long
*
)
blocks
)[
191
]
=
0L
;
i
+=
16
;
}
#else
memset
(
blocks
,
0
,
sizeof
(
DCTELEM
)
*
6
*
64
);
#endif
}
/* same as above, when dcbzl clear a whole 128B cache line
...
...
@@ -78,7 +74,6 @@ static void clear_blocks_dcbz128_ppc(DCTELEM *blocks)
{
register
int
misal
=
((
unsigned
long
)
blocks
&
0x0000007f
);
register
int
i
=
0
;
#if 1
if
(
misal
)
{
// we could probably also optimize this case,
// but there's not much point as the machines
...
...
@@ -89,9 +84,6 @@ static void clear_blocks_dcbz128_ppc(DCTELEM *blocks)
for
(
;
i
<
sizeof
(
DCTELEM
)
*
6
*
64
;
i
+=
128
)
{
__asm__
volatile
(
"dcbzl %0,%1"
:
:
"b"
(
blocks
),
"r"
(
i
)
:
"memory"
);
}
#else
memset
(
blocks
,
0
,
sizeof
(
DCTELEM
)
*
6
*
64
);
#endif
}
#else
static
void
clear_blocks_dcbz128_ppc
(
DCTELEM
*
blocks
)
...
...
libavcodec/ppc/fdct_altivec.c
浏览文件 @
21aed0ed
...
...
@@ -265,7 +265,6 @@ void fdct_altivec(int16_t *block)
* conversion to vector float. The following code section takes advantage
* of this.
*/
#if 1
/* fdct rows {{{ */
x0
=
((
vector
float
)
vec_add
(
vs16
(
b00
),
vs16
(
b70
)));
x7
=
((
vector
float
)
vec_sub
(
vs16
(
b00
),
vs16
(
b70
)));
...
...
@@ -389,29 +388,6 @@ void fdct_altivec(int16_t *block)
b31
=
vec_add
(
b31
,
x2
);
b11
=
vec_add
(
b11
,
x3
);
/* }}} */
#else
/* convert to float {{{ */
#define CTF(n) \
vs32(b##n##1) = vec_unpackl(vs16(b##n##0)); \
vs32(b##n##0) = vec_unpackh(vs16(b##n##0)); \
b##n##1 = vec_ctf(vs32(b##n##1), 0); \
b##n##0 = vec_ctf(vs32(b##n##0), 0); \
CTF
(
0
);
CTF
(
1
);
CTF
(
2
);
CTF
(
3
);
CTF
(
4
);
CTF
(
5
);
CTF
(
6
);
CTF
(
7
);
#undef CTF
/* }}} */
FDCTROW
(
b00
,
b10
,
b20
,
b30
,
b40
,
b50
,
b60
,
b70
);
FDCTROW
(
b01
,
b11
,
b21
,
b31
,
b41
,
b51
,
b61
,
b71
);
#endif
/* 8x8 matrix transpose (vector float[8][2]) {{{ */
...
...
libavcodec/ppc/mpegvideo_altivec.c
浏览文件 @
21aed0ed
...
...
@@ -515,21 +515,6 @@ static void dct_unquantize_h263_altivec(MpegEncContext *s,
qaddv
=
vec_splat
((
vec_s16
)
vec_lde
(
0
,
&
qadd8
),
0
);
nqaddv
=
vec_sub
(
vczero
,
qaddv
);
#if 0 // block *is* 16 bytes-aligned, it seems.
// first make sure block[j] is 16 bytes-aligned
for(j = 0; (j <= nCoeffs) && ((((unsigned long)block) + (j << 1)) & 0x0000000F) ; j++) {
level = block[j];
if (level) {
if (level < 0) {
level = level * qmul - qadd;
} else {
level = level * qmul + qadd;
}
block[j] = level;
}
}
#endif
// vectorize all the 16 bytes-aligned blocks
// of 8 elements
for
(;
(
j
+
7
)
<=
nCoeffs
;
j
+=
8
)
{
...
...
@@ -599,9 +584,6 @@ void MPV_common_init_altivec(MpegEncContext *s)
if
((
s
->
avctx
->
dct_algo
==
FF_DCT_AUTO
)
||
(
s
->
avctx
->
dct_algo
==
FF_DCT_ALTIVEC
))
{
#if 0 /* seems to cause trouble under some circumstances */
s->dct_quantize = dct_quantize_altivec;
#endif
s
->
dct_unquantize_h263_intra
=
dct_unquantize_h263_altivec
;
s
->
dct_unquantize_h263_inter
=
dct_unquantize_h263_altivec
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录