Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
5f51afd6
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,发现更多精彩内容 >>
提交
5f51afd6
编写于
12月 17, 2008
作者:
G
Guillaume Poirier
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add AltiVec implementation of int32_to_float_fmul_scalar
Originally committed as revision 16186 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
18cb36fd
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
25 addition
and
0 deletion
+25
-0
libavcodec/ppc/float_altivec.c
libavcodec/ppc/float_altivec.c
+25
-0
未找到文件。
libavcodec/ppc/float_altivec.c
浏览文件 @
5f51afd6
...
...
@@ -150,6 +150,30 @@ static void vector_fmul_add_add_altivec(float *dst, const float *src0,
}
static
void
int32_to_float_fmul_scalar_altivec
(
float
*
dst
,
const
int
*
src
,
float
mul
,
int
len
)
{
union
{
vector
float
v
;
float
s
[
4
];
}
mul_u
;
int
i
;
vector
float
src1
,
src2
,
dst1
,
dst2
,
mul_v
,
zero
;
zero
=
(
vector
float
)
vec_splat_u32
(
0
);
mul_u
.
s
[
0
]
=
mul
;
mul_v
=
vec_splat
(
mul_u
.
v
,
0
);
for
(
i
=
0
;
i
<
len
;
i
+=
8
)
{
src1
=
vec_ctf
(
vec_ld
(
0
,
src
+
i
),
0
);
src2
=
vec_ctf
(
vec_ld
(
16
,
src
+
i
),
0
);
dst1
=
vec_madd
(
src1
,
mul_v
,
zero
);
dst2
=
vec_madd
(
src2
,
mul_v
,
zero
);
vec_st
(
dst1
,
0
,
dst
+
i
);
vec_st
(
dst2
,
16
,
dst
+
i
);
}
}
static
vector
signed
short
float_to_int16_one_altivec
(
const
float
*
src
)
{
...
...
@@ -240,6 +264,7 @@ void float_init_altivec(DSPContext* c, AVCodecContext *avctx)
c
->
vector_fmul
=
vector_fmul_altivec
;
c
->
vector_fmul_reverse
=
vector_fmul_reverse_altivec
;
c
->
vector_fmul_add_add
=
vector_fmul_add_add_altivec
;
c
->
int32_to_float_fmul_scalar
=
int32_to_float_fmul_scalar_altivec
;
if
(
!
(
avctx
->
flags
&
CODEC_FLAG_BITEXACT
))
{
c
->
float_to_int16
=
float_to_int16_altivec
;
c
->
float_to_int16_interleave
=
float_to_int16_interleave_altivec
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录