Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
01d6f84f
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,发现更多精彩内容 >>
提交
01d6f84f
编写于
8月 06, 2016
作者:
M
Mark Thompson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
vaapi_vc1: Constify pointers
上级
ee906129
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
14 addition
and
14 deletion
+14
-14
libavcodec/vaapi_vc1.c
libavcodec/vaapi_vc1.c
+14
-14
未找到文件。
libavcodec/vaapi_vc1.c
浏览文件 @
01d6f84f
...
...
@@ -39,7 +39,7 @@ static int get_VAMvModeVC1(enum MVModes mv_mode)
}
/** Check whether the MVTYPEMB bitplane is present */
static
inline
int
vc1_has_MVTYPEMB_bitplane
(
VC1Context
*
v
)
static
inline
int
vc1_has_MVTYPEMB_bitplane
(
const
VC1Context
*
v
)
{
if
(
v
->
mv_type_is_raw
)
return
0
;
...
...
@@ -50,7 +50,7 @@ static inline int vc1_has_MVTYPEMB_bitplane(VC1Context *v)
}
/** Check whether the SKIPMB bitplane is present */
static
inline
int
vc1_has_SKIPMB_bitplane
(
VC1Context
*
v
)
static
inline
int
vc1_has_SKIPMB_bitplane
(
const
VC1Context
*
v
)
{
if
(
v
->
skip_is_raw
)
return
0
;
...
...
@@ -59,7 +59,7 @@ static inline int vc1_has_SKIPMB_bitplane(VC1Context *v)
}
/** Check whether the DIRECTMB bitplane is present */
static
inline
int
vc1_has_DIRECTMB_bitplane
(
VC1Context
*
v
)
static
inline
int
vc1_has_DIRECTMB_bitplane
(
const
VC1Context
*
v
)
{
if
(
v
->
dmb_is_raw
)
return
0
;
...
...
@@ -67,7 +67,7 @@ static inline int vc1_has_DIRECTMB_bitplane(VC1Context *v)
}
/** Check whether the ACPRED bitplane is present */
static
inline
int
vc1_has_ACPRED_bitplane
(
VC1Context
*
v
)
static
inline
int
vc1_has_ACPRED_bitplane
(
const
VC1Context
*
v
)
{
if
(
v
->
acpred_is_raw
)
return
0
;
...
...
@@ -77,7 +77,7 @@ static inline int vc1_has_ACPRED_bitplane(VC1Context *v)
}
/** Check whether the OVERFLAGS bitplane is present */
static
inline
int
vc1_has_OVERFLAGS_bitplane
(
VC1Context
*
v
)
static
inline
int
vc1_has_OVERFLAGS_bitplane
(
const
VC1Context
*
v
)
{
if
(
v
->
overflg_is_raw
)
return
0
;
...
...
@@ -89,9 +89,9 @@ static inline int vc1_has_OVERFLAGS_bitplane(VC1Context *v)
}
/** Reconstruct bitstream PTYPE (7.1.1.4, index into Table-35) */
static
int
vc1_get_PTYPE
(
VC1Context
*
v
)
static
int
vc1_get_PTYPE
(
const
VC1Context
*
v
)
{
MpegEncContext
*
const
s
=
&
v
->
s
;
const
MpegEncContext
*
s
=
&
v
->
s
;
switch
(
s
->
pict_type
)
{
case
AV_PICTURE_TYPE_I
:
return
0
;
case
AV_PICTURE_TYPE_P
:
return
v
->
p_frame_skipped
?
4
:
1
;
...
...
@@ -101,7 +101,7 @@ static int vc1_get_PTYPE(VC1Context *v)
}
/** Reconstruct bitstream MVMODE (7.1.1.32) */
static
inline
VAMvModeVC1
vc1_get_MVMODE
(
VC1Context
*
v
)
static
inline
VAMvModeVC1
vc1_get_MVMODE
(
const
VC1Context
*
v
)
{
if
(
v
->
s
.
pict_type
==
AV_PICTURE_TYPE_P
||
(
v
->
s
.
pict_type
==
AV_PICTURE_TYPE_B
&&
!
v
->
bi_type
))
...
...
@@ -110,7 +110,7 @@ static inline VAMvModeVC1 vc1_get_MVMODE(VC1Context *v)
}
/** Reconstruct bitstream MVMODE2 (7.1.1.33) */
static
inline
VAMvModeVC1
vc1_get_MVMODE2
(
VC1Context
*
v
)
static
inline
VAMvModeVC1
vc1_get_MVMODE2
(
const
VC1Context
*
v
)
{
if
(
v
->
s
.
pict_type
==
AV_PICTURE_TYPE_P
&&
v
->
mv_mode
==
MV_PMODE_INTENSITY_COMP
)
return
get_VAMvModeVC1
(
v
->
mv_mode2
);
...
...
@@ -118,7 +118,7 @@ static inline VAMvModeVC1 vc1_get_MVMODE2(VC1Context *v)
}
/** Reconstruct bitstream TTFRM (7.1.1.41, Table-53) */
static
inline
int
vc1_get_TTFRM
(
VC1Context
*
v
)
static
inline
int
vc1_get_TTFRM
(
const
VC1Context
*
v
)
{
switch
(
v
->
ttfrm
)
{
case
TT_8X8
:
return
0
;
...
...
@@ -146,8 +146,8 @@ static inline void vc1_pack_bitplanes(uint8_t *bitplane, int n, const uint8_t *f
static
int
vaapi_vc1_start_frame
(
AVCodecContext
*
avctx
,
av_unused
const
uint8_t
*
buffer
,
av_unused
uint32_t
size
)
{
VC1Context
*
const
v
=
avctx
->
priv_data
;
MpegEncContext
*
const
s
=
&
v
->
s
;
const
VC1Context
*
v
=
avctx
->
priv_data
;
const
MpegEncContext
*
s
=
&
v
->
s
;
struct
vaapi_context
*
const
vactx
=
avctx
->
hwaccel_context
;
VAPictureParameterBufferVC1
*
pic_param
;
...
...
@@ -311,8 +311,8 @@ static int vaapi_vc1_start_frame(AVCodecContext *avctx, av_unused const uint8_t
static
int
vaapi_vc1_decode_slice
(
AVCodecContext
*
avctx
,
const
uint8_t
*
buffer
,
uint32_t
size
)
{
VC1Context
*
const
v
=
avctx
->
priv_data
;
MpegEncContext
*
const
s
=
&
v
->
s
;
const
VC1Context
*
v
=
avctx
->
priv_data
;
const
MpegEncContext
*
s
=
&
v
->
s
;
VASliceParameterBufferVC1
*
slice_param
;
/* Current bit buffer is beyond any marker for VC-1, so skip it */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录