Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
86decad6
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,发现更多精彩内容 >>
提交
86decad6
编写于
3月 10, 2010
作者:
M
Måns Rullgård
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sparc: fix a few pages of cast warnings
Originally committed as revision 22441 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
ad403802
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
34 addition
and
76 deletion
+34
-76
libavcodec/sparc/dsputil_vis.c
libavcodec/sparc/dsputil_vis.c
+32
-74
libavcodec/sparc/vis.h
libavcodec/sparc/vis.h
+2
-2
未找到文件。
libavcodec/sparc/dsputil_vis.c
浏览文件 @
86decad6
...
...
@@ -120,11 +120,9 @@ static const int16_t constants256_1024[] ATTR_ALIGN(8) =
#define TMP30 56
#define TMP32 58
static
void
MC_put_o_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_put_o_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
ref
=
vis_alignaddr
(
ref
);
do
{
/* 5 cycles */
vis_ld64
(
ref
[
0
],
TMP0
);
...
...
@@ -143,11 +141,9 @@ static void MC_put_o_16_vis (uint8_t * dest, const uint8_t * _ref,
}
while
(
--
height
);
}
static
void
MC_put_o_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_put_o_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
ref
=
vis_alignaddr
(
ref
);
do
{
/* 4 cycles */
vis_ld64
(
ref
[
0
],
TMP0
);
...
...
@@ -164,10 +160,9 @@ static void MC_put_o_8_vis (uint8_t * dest, const uint8_t * _ref,
}
static
void
MC_avg_o_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_avg_o_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
int
stride_8
=
stride
+
8
;
ref
=
vis_alignaddr
(
ref
);
...
...
@@ -325,11 +320,9 @@ static void MC_avg_o_16_vis (uint8_t * dest, const uint8_t * _ref,
vis_st64_2
(
TMP22
,
dest
,
8
);
}
static
void
MC_avg_o_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_avg_o_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
ref
=
vis_alignaddr
(
ref
);
vis_ld64
(
ref
[
0
],
TMP0
);
...
...
@@ -419,10 +412,9 @@ static void MC_avg_o_8_vis (uint8_t * dest, const uint8_t * _ref,
vis_st64
(
TMP4
,
dest
[
0
]);
}
static
void
MC_put_x_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_put_x_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
unsigned
long
off
=
(
unsigned
long
)
ref
&
0x7
;
unsigned
long
off_plus_1
=
off
+
1
;
...
...
@@ -612,10 +604,9 @@ static void MC_put_x_16_vis (uint8_t * dest, const uint8_t * _ref,
vis_st64_2
(
TMP8
,
dest
,
8
);
}
static
void
MC_put_x_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_put_x_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
unsigned
long
off
=
(
unsigned
long
)
ref
&
0x7
;
unsigned
long
off_plus_1
=
off
+
1
;
...
...
@@ -736,10 +727,9 @@ static void MC_put_x_8_vis (uint8_t * dest, const uint8_t * _ref,
dest
+=
stride
;
}
static
void
MC_avg_x_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_avg_x_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
unsigned
long
off
=
(
unsigned
long
)
ref
&
0x7
;
unsigned
long
off_plus_1
=
off
+
1
;
...
...
@@ -827,10 +817,9 @@ static void MC_avg_x_16_vis (uint8_t * dest, const uint8_t * _ref,
}
while
(
--
height
);
}
static
void
MC_avg_x_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_avg_x_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
unsigned
long
off
=
(
unsigned
long
)
ref
&
0x7
;
unsigned
long
off_plus_1
=
off
+
1
;
int
stride_times_2
=
stride
<<
1
;
...
...
@@ -993,11 +982,9 @@ static void MC_avg_x_8_vis (uint8_t * dest, const uint8_t * _ref,
}
while
(
--
height
);
}
static
void
MC_put_y_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_put_y_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
ref
=
vis_alignaddr
(
ref
);
vis_ld64
(
ref
[
0
],
TMP0
);
...
...
@@ -1149,11 +1136,9 @@ static void MC_put_y_16_vis (uint8_t * dest, const uint8_t * _ref,
vis_st64_2
(
TMP2
,
dest
,
8
);
}
static
void
MC_put_y_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_put_y_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
ref
=
vis_alignaddr
(
ref
);
vis_ld64
(
ref
[
0
],
TMP0
);
...
...
@@ -1241,10 +1226,9 @@ static void MC_put_y_8_vis (uint8_t * dest, const uint8_t * _ref,
vis_st64
(
DST_0
,
dest
[
0
]);
}
static
void
MC_avg_y_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_avg_y_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
int
stride_8
=
stride
+
8
;
int
stride_16
=
stride
+
16
;
...
...
@@ -1370,10 +1354,9 @@ static void MC_avg_y_16_vis (uint8_t * dest, const uint8_t * _ref,
}
while
(
--
height
);
}
static
void
MC_avg_y_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_avg_y_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
int
stride_8
=
stride
+
8
;
vis_set_gsr
(
5
<<
VIS_GSR_SCALEFACT_SHIFT
);
...
...
@@ -1450,10 +1433,9 @@ static void MC_avg_y_8_vis (uint8_t * dest, const uint8_t * _ref,
}
while
(
--
height
);
}
static
void
MC_put_xy_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_put_xy_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
unsigned
long
off
=
(
unsigned
long
)
ref
&
0x7
;
unsigned
long
off_plus_1
=
off
+
1
;
int
stride_8
=
stride
+
8
;
...
...
@@ -1615,10 +1597,9 @@ static void MC_put_xy_16_vis (uint8_t * dest, const uint8_t * _ref,
}
while
(
--
height
);
}
static
void
MC_put_xy_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_put_xy_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
unsigned
long
off
=
(
unsigned
long
)
ref
&
0x7
;
unsigned
long
off_plus_1
=
off
+
1
;
int
stride_8
=
stride
+
8
;
...
...
@@ -1720,10 +1701,9 @@ static void MC_put_xy_8_vis (uint8_t * dest, const uint8_t * _ref,
}
while
(
--
height
);
}
static
void
MC_avg_xy_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_avg_xy_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
unsigned
long
off
=
(
unsigned
long
)
ref
&
0x7
;
unsigned
long
off_plus_1
=
off
+
1
;
int
stride_8
=
stride
+
8
;
...
...
@@ -1917,10 +1897,9 @@ static void MC_avg_xy_16_vis (uint8_t * dest, const uint8_t * _ref,
}
while
(
--
height
);
}
static
void
MC_avg_xy_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_avg_xy_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
unsigned
long
off
=
(
unsigned
long
)
ref
&
0x7
;
unsigned
long
off_plus_1
=
off
+
1
;
int
stride_8
=
stride
+
8
;
...
...
@@ -2061,11 +2040,9 @@ static void MC_avg_xy_8_vis (uint8_t * dest, const uint8_t * _ref,
* fpadd16 f12, f10, f10
*/
static
void
MC_put_no_round_o_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_put_no_round_o_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
ref
=
vis_alignaddr
(
ref
);
do
{
/* 5 cycles */
vis_ld64
(
ref
[
0
],
TMP0
);
...
...
@@ -2084,11 +2061,9 @@ static void MC_put_no_round_o_16_vis (uint8_t * dest, const uint8_t * _ref,
}
while
(
--
height
);
}
static
void
MC_put_no_round_o_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_put_no_round_o_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
ref
=
vis_alignaddr
(
ref
);
do
{
/* 4 cycles */
vis_ld64
(
ref
[
0
],
TMP0
);
...
...
@@ -2105,10 +2080,9 @@ static void MC_put_no_round_o_8_vis (uint8_t * dest, const uint8_t * _ref,
}
static
void
MC_avg_no_round_o_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_avg_no_round_o_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
int
stride_8
=
stride
+
8
;
ref
=
vis_alignaddr
(
ref
);
...
...
@@ -2266,11 +2240,9 @@ static void MC_avg_no_round_o_16_vis (uint8_t * dest, const uint8_t * _ref,
vis_st64_2
(
TMP22
,
dest
,
8
);
}
static
void
MC_avg_no_round_o_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_avg_no_round_o_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
ref
=
vis_alignaddr
(
ref
);
vis_ld64
(
ref
[
0
],
TMP0
);
...
...
@@ -2360,10 +2332,9 @@ static void MC_avg_no_round_o_8_vis (uint8_t * dest, const uint8_t * _ref,
vis_st64
(
TMP4
,
dest
[
0
]);
}
static
void
MC_put_no_round_x_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_put_no_round_x_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
unsigned
long
off
=
(
unsigned
long
)
ref
&
0x7
;
unsigned
long
off_plus_1
=
off
+
1
;
...
...
@@ -2553,10 +2524,9 @@ static void MC_put_no_round_x_16_vis (uint8_t * dest, const uint8_t * _ref,
vis_st64_2
(
TMP8
,
dest
,
8
);
}
static
void
MC_put_no_round_x_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_put_no_round_x_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
unsigned
long
off
=
(
unsigned
long
)
ref
&
0x7
;
unsigned
long
off_plus_1
=
off
+
1
;
...
...
@@ -2677,10 +2647,9 @@ static void MC_put_no_round_x_8_vis (uint8_t * dest, const uint8_t * _ref,
dest
+=
stride
;
}
static
void
MC_avg_no_round_x_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_avg_no_round_x_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
unsigned
long
off
=
(
unsigned
long
)
ref
&
0x7
;
unsigned
long
off_plus_1
=
off
+
1
;
...
...
@@ -2768,10 +2737,9 @@ static void MC_avg_no_round_x_16_vis (uint8_t * dest, const uint8_t * _ref,
}
while
(
--
height
);
}
static
void
MC_avg_no_round_x_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_avg_no_round_x_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
unsigned
long
off
=
(
unsigned
long
)
ref
&
0x7
;
unsigned
long
off_plus_1
=
off
+
1
;
int
stride_times_2
=
stride
<<
1
;
...
...
@@ -2934,11 +2902,9 @@ static void MC_avg_no_round_x_8_vis (uint8_t * dest, const uint8_t * _ref,
}
while
(
--
height
);
}
static
void
MC_put_no_round_y_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_put_no_round_y_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
ref
=
vis_alignaddr
(
ref
);
vis_ld64
(
ref
[
0
],
TMP0
);
...
...
@@ -3090,11 +3056,9 @@ static void MC_put_no_round_y_16_vis (uint8_t * dest, const uint8_t * _ref,
vis_st64_2
(
TMP2
,
dest
,
8
);
}
static
void
MC_put_no_round_y_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_put_no_round_y_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
ref
=
vis_alignaddr
(
ref
);
vis_ld64
(
ref
[
0
],
TMP0
);
...
...
@@ -3182,10 +3146,9 @@ static void MC_put_no_round_y_8_vis (uint8_t * dest, const uint8_t * _ref,
vis_st64
(
DST_0
,
dest
[
0
]);
}
static
void
MC_avg_no_round_y_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_avg_no_round_y_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
int
stride_8
=
stride
+
8
;
int
stride_16
=
stride
+
16
;
...
...
@@ -3311,10 +3274,9 @@ static void MC_avg_no_round_y_16_vis (uint8_t * dest, const uint8_t * _ref,
}
while
(
--
height
);
}
static
void
MC_avg_no_round_y_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_avg_no_round_y_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
int
stride_8
=
stride
+
8
;
vis_set_gsr
(
5
<<
VIS_GSR_SCALEFACT_SHIFT
);
...
...
@@ -3391,10 +3353,9 @@ static void MC_avg_no_round_y_8_vis (uint8_t * dest, const uint8_t * _ref,
}
while
(
--
height
);
}
static
void
MC_put_no_round_xy_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_put_no_round_xy_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
unsigned
long
off
=
(
unsigned
long
)
ref
&
0x7
;
unsigned
long
off_plus_1
=
off
+
1
;
int
stride_8
=
stride
+
8
;
...
...
@@ -3556,10 +3517,9 @@ static void MC_put_no_round_xy_16_vis (uint8_t * dest, const uint8_t * _ref,
}
while
(
--
height
);
}
static
void
MC_put_no_round_xy_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_put_no_round_xy_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
unsigned
long
off
=
(
unsigned
long
)
ref
&
0x7
;
unsigned
long
off_plus_1
=
off
+
1
;
int
stride_8
=
stride
+
8
;
...
...
@@ -3661,10 +3621,9 @@ static void MC_put_no_round_xy_8_vis (uint8_t * dest, const uint8_t * _ref,
}
while
(
--
height
);
}
static
void
MC_avg_no_round_xy_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_avg_no_round_xy_16_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
unsigned
long
off
=
(
unsigned
long
)
ref
&
0x7
;
unsigned
long
off_plus_1
=
off
+
1
;
int
stride_8
=
stride
+
8
;
...
...
@@ -3858,10 +3817,9 @@ static void MC_avg_no_round_xy_16_vis (uint8_t * dest, const uint8_t * _ref,
}
while
(
--
height
);
}
static
void
MC_avg_no_round_xy_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
_
ref
,
static
void
MC_avg_no_round_xy_8_vis
(
uint8_t
*
dest
,
const
uint8_t
*
ref
,
const
int
stride
,
int
height
)
{
uint8_t
*
ref
=
(
uint8_t
*
)
_ref
;
unsigned
long
off
=
(
unsigned
long
)
ref
&
0x7
;
unsigned
long
off_plus_1
=
off
+
1
;
int
stride_8
=
stride
+
8
;
...
...
libavcodec/sparc/vis.h
浏览文件 @
86decad6
...
...
@@ -223,9 +223,9 @@ do { register void *__mem __asm__("g1"); \
/* Alignment instructions. */
static
inline
void
*
vis_alignaddr
(
void
*
_ptr
)
static
inline
const
void
*
vis_alignaddr
(
const
void
*
_ptr
)
{
register
void
*
ptr
__asm__
(
"g1"
);
register
const
void
*
ptr
__asm__
(
"g1"
);
ptr
=
_ptr
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录