Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
a617c6aa
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,发现更多精彩内容 >>
提交
a617c6aa
编写于
7月 21, 2011
作者:
M
Mans Rullgard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
dsputil: update per-arch init funcs for non-h264 high bit depth
Signed-off-by:
N
Mans Rullgard
<
mans@mansr.com
>
上级
874f1a90
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
15 addition
and
15 deletion
+15
-15
libavcodec/alpha/dsputil_alpha.c
libavcodec/alpha/dsputil_alpha.c
+1
-1
libavcodec/arm/dsputil_init_arm.c
libavcodec/arm/dsputil_init_arm.c
+1
-1
libavcodec/arm/dsputil_init_armv6.c
libavcodec/arm/dsputil_init_armv6.c
+1
-1
libavcodec/arm/dsputil_init_neon.c
libavcodec/arm/dsputil_init_neon.c
+1
-1
libavcodec/arm/dsputil_iwmmxt.c
libavcodec/arm/dsputil_iwmmxt.c
+1
-1
libavcodec/bfin/dsputil_bfin.c
libavcodec/bfin/dsputil_bfin.c
+1
-1
libavcodec/mlib/dsputil_mlib.c
libavcodec/mlib/dsputil_mlib.c
+1
-1
libavcodec/ppc/dsputil_altivec.c
libavcodec/ppc/dsputil_altivec.c
+1
-1
libavcodec/ppc/dsputil_ppc.c
libavcodec/ppc/dsputil_ppc.c
+1
-1
libavcodec/ppc/h264_altivec.c
libavcodec/ppc/h264_altivec.c
+1
-1
libavcodec/ps2/dsputil_mmi.c
libavcodec/ps2/dsputil_mmi.c
+1
-1
libavcodec/sh4/dsputil_align.c
libavcodec/sh4/dsputil_align.c
+1
-1
libavcodec/sh4/dsputil_sh4.c
libavcodec/sh4/dsputil_sh4.c
+1
-1
libavcodec/sparc/dsputil_vis.c
libavcodec/sparc/dsputil_vis.c
+1
-1
libavcodec/x86/dsputil_mmx.c
libavcodec/x86/dsputil_mmx.c
+1
-1
未找到文件。
libavcodec/alpha/dsputil_alpha.c
浏览文件 @
a617c6aa
...
...
@@ -270,7 +270,7 @@ static void put_pixels16_axp_asm(uint8_t *block, const uint8_t *pixels,
void
dsputil_init_alpha
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
const
int
high_bit_depth
=
avctx
->
codec_id
==
CODEC_ID_H264
&&
avctx
->
bits_per_raw_sample
>
8
;
const
int
high_bit_depth
=
avctx
->
bits_per_raw_sample
>
8
;
if
(
!
high_bit_depth
)
{
c
->
put_pixels_tab
[
0
][
0
]
=
put_pixels16_axp_asm
;
...
...
libavcodec/arm/dsputil_init_arm.c
浏览文件 @
a617c6aa
...
...
@@ -75,7 +75,7 @@ static void simple_idct_arm_add(uint8_t *dest, int line_size, DCTELEM *block)
void
dsputil_init_arm
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
const
int
high_bit_depth
=
avctx
->
codec_id
==
CODEC_ID_H264
&&
avctx
->
bits_per_raw_sample
>
8
;
const
int
high_bit_depth
=
avctx
->
bits_per_raw_sample
>
8
;
ff_put_pixels_clamped
=
c
->
put_pixels_clamped
;
ff_add_pixels_clamped
=
c
->
add_pixels_clamped
;
...
...
libavcodec/arm/dsputil_init_armv6.c
浏览文件 @
a617c6aa
...
...
@@ -72,7 +72,7 @@ int ff_pix_sum_armv6(uint8_t *pix, int line_size);
void
av_cold
ff_dsputil_init_armv6
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
const
int
high_bit_depth
=
avctx
->
codec_id
==
CODEC_ID_H264
&&
avctx
->
bits_per_raw_sample
>
8
;
const
int
high_bit_depth
=
avctx
->
bits_per_raw_sample
>
8
;
if
(
!
avctx
->
lowres
&&
avctx
->
bits_per_raw_sample
<=
8
&&
(
avctx
->
idct_algo
==
FF_IDCT_AUTO
||
...
...
libavcodec/arm/dsputil_init_neon.c
浏览文件 @
a617c6aa
...
...
@@ -175,7 +175,7 @@ void ff_apply_window_int16_neon(int16_t *dst, const int16_t *src,
void
ff_dsputil_init_neon
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
const
int
high_bit_depth
=
avctx
->
codec_id
==
CODEC_ID_H264
&&
avctx
->
bits_per_raw_sample
>
8
;
const
int
high_bit_depth
=
avctx
->
bits_per_raw_sample
>
8
;
if
(
!
avctx
->
lowres
&&
avctx
->
bits_per_raw_sample
<=
8
)
{
if
(
avctx
->
idct_algo
==
FF_IDCT_AUTO
||
...
...
libavcodec/arm/dsputil_iwmmxt.c
浏览文件 @
a617c6aa
...
...
@@ -155,7 +155,7 @@ static void nop(uint8_t *block, const uint8_t *pixels, int line_size, int h)
void
ff_dsputil_init_iwmmxt
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
int
mm_flags
=
AV_CPU_FLAG_IWMMXT
;
/* multimedia extension flags */
const
int
high_bit_depth
=
avctx
->
codec_id
==
CODEC_ID_H264
&&
avctx
->
bits_per_raw_sample
>
8
;
const
int
high_bit_depth
=
avctx
->
bits_per_raw_sample
>
8
;
if
(
avctx
->
dsp_mask
)
{
if
(
avctx
->
dsp_mask
&
AV_CPU_FLAG_FORCE
)
...
...
libavcodec/bfin/dsputil_bfin.c
浏览文件 @
a617c6aa
...
...
@@ -197,7 +197,7 @@ static int bfin_pix_abs8_xy2 (void *c, uint8_t *blk1, uint8_t *blk2, int line_si
void
dsputil_init_bfin
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
const
int
high_bit_depth
=
avctx
->
codec_id
==
CODEC_ID_H264
&&
avctx
->
bits_per_raw_sample
>
8
;
const
int
high_bit_depth
=
avctx
->
bits_per_raw_sample
>
8
;
c
->
diff_pixels
=
ff_bfin_diff_pixels
;
c
->
put_pixels_clamped
=
ff_bfin_put_pixels_clamped
;
...
...
libavcodec/mlib/dsputil_mlib.c
浏览文件 @
a617c6aa
...
...
@@ -421,7 +421,7 @@ static void ff_fdct_mlib(DCTELEM *data)
void
dsputil_init_mlib
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
const
int
high_bit_depth
=
avctx
->
codec_id
==
CODEC_ID_H264
&&
avctx
->
bits_per_raw_sample
>
8
;
const
int
high_bit_depth
=
avctx
->
bits_per_raw_sample
>
8
;
c
->
diff_pixels
=
diff_pixels_mlib
;
c
->
add_pixels_clamped
=
add_pixels_clamped_mlib
;
...
...
libavcodec/ppc/dsputil_altivec.c
浏览文件 @
a617c6aa
...
...
@@ -1373,7 +1373,7 @@ static void avg_pixels8_xy2_altivec(uint8_t *block, const uint8_t *pixels, int l
void
dsputil_init_altivec
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
const
int
high_bit_depth
=
avctx
->
codec_id
==
CODEC_ID_H264
&&
avctx
->
bits_per_raw_sample
>
8
;
const
int
high_bit_depth
=
avctx
->
bits_per_raw_sample
>
8
;
c
->
pix_abs
[
0
][
1
]
=
sad16_x2_altivec
;
c
->
pix_abs
[
0
][
2
]
=
sad16_y2_altivec
;
...
...
libavcodec/ppc/dsputil_ppc.c
浏览文件 @
a617c6aa
...
...
@@ -145,7 +145,7 @@ static void prefetch_ppc(void *mem, int stride, int h)
void
dsputil_init_ppc
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
const
int
high_bit_depth
=
avctx
->
codec_id
==
CODEC_ID_H264
&&
avctx
->
bits_per_raw_sample
>
8
;
const
int
high_bit_depth
=
avctx
->
bits_per_raw_sample
>
8
;
// Common optimizations whether AltiVec is available or not
c
->
prefetch
=
prefetch_ppc
;
...
...
libavcodec/ppc/h264_altivec.c
浏览文件 @
a617c6aa
...
...
@@ -967,7 +967,7 @@ H264_WEIGHT( 8, 8)
H264_WEIGHT
(
8
,
4
)
void
dsputil_h264_init_ppc
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
const
int
high_bit_depth
=
avctx
->
codec_id
==
CODEC_ID_H264
&&
avctx
->
bits_per_raw_sample
>
8
;
const
int
high_bit_depth
=
avctx
->
bits_per_raw_sample
>
8
;
if
(
av_get_cpu_flags
()
&
AV_CPU_FLAG_ALTIVEC
)
{
if
(
!
high_bit_depth
)
{
...
...
libavcodec/ps2/dsputil_mmi.c
浏览文件 @
a617c6aa
...
...
@@ -142,7 +142,7 @@ static void put_pixels16_mmi(uint8_t *block, const uint8_t *pixels, int line_siz
void
dsputil_init_mmi
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
const
int
idct_algo
=
avctx
->
idct_algo
;
const
int
high_bit_depth
=
avctx
->
codec_id
==
CODEC_ID_H264
&&
avctx
->
bits_per_raw_sample
>
8
;
const
int
high_bit_depth
=
avctx
->
bits_per_raw_sample
>
8
;
if
(
!
high_bit_depth
)
{
c
->
clear_blocks
=
clear_blocks_mmi
;
...
...
libavcodec/sh4/dsputil_align.c
浏览文件 @
a617c6aa
...
...
@@ -333,7 +333,7 @@ DEFFUNC(avg,no_rnd,xy,16,OP_XY,PACK)
void
dsputil_init_align
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
const
int
high_bit_depth
=
avctx
->
codec_id
==
CODEC_ID_H264
&&
avctx
->
bits_per_raw_sample
>
8
;
const
int
high_bit_depth
=
avctx
->
bits_per_raw_sample
>
8
;
if
(
!
high_bit_depth
)
{
c
->
put_pixels_tab
[
0
][
0
]
=
put_rnd_pixels16_o
;
...
...
libavcodec/sh4/dsputil_sh4.c
浏览文件 @
a617c6aa
...
...
@@ -92,7 +92,7 @@ static void idct_add(uint8_t *dest, int line_size, DCTELEM *block)
void
dsputil_init_sh4
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
const
int
idct_algo
=
avctx
->
idct_algo
;
const
int
high_bit_depth
=
avctx
->
codec_id
==
CODEC_ID_H264
&&
avctx
->
bits_per_raw_sample
>
8
;
const
int
high_bit_depth
=
avctx
->
bits_per_raw_sample
>
8
;
dsputil_init_align
(
c
,
avctx
);
if
(
!
high_bit_depth
)
...
...
libavcodec/sparc/dsputil_vis.c
浏览文件 @
a617c6aa
...
...
@@ -3953,7 +3953,7 @@ void dsputil_init_vis(DSPContext* c, AVCodecContext *avctx)
{
/* VIS-specific optimizations */
int
accel
=
vis_level
();
const
int
high_bit_depth
=
avctx
->
codec_id
==
CODEC_ID_H264
&&
avctx
->
bits_per_raw_sample
>
8
;
const
int
high_bit_depth
=
avctx
->
bits_per_raw_sample
>
8
;
if
(
accel
&
ACCEL_SPARC_VIS
)
{
if
(
avctx
->
bits_per_raw_sample
<=
8
&&
...
...
libavcodec/x86/dsputil_mmx.c
浏览文件 @
a617c6aa
...
...
@@ -2437,7 +2437,7 @@ void ff_vector_clip_int32_sse41 (int32_t *dst, const int32_t *src, int32_t min
void
dsputil_init_mmx
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
int
mm_flags
=
av_get_cpu_flags
();
const
int
high_bit_depth
=
avctx
->
codec_id
==
CODEC_ID_H264
&&
avctx
->
bits_per_raw_sample
>
8
;
const
int
high_bit_depth
=
avctx
->
bits_per_raw_sample
>
8
;
const
int
bit_depth
=
avctx
->
bits_per_raw_sample
;
if
(
avctx
->
dsp_mask
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录