Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
d887151d
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,发现更多精彩内容 >>
提交
d887151d
编写于
12月 12, 2008
作者:
A
Aurelien Jacobs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename Vp56Model to VP56Model for consistency
Originally committed as revision 16073 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
193ce3ab
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
15 deletion
+15
-15
libavcodec/vp5.c
libavcodec/vp5.c
+5
-5
libavcodec/vp56.c
libavcodec/vp56.c
+1
-1
libavcodec/vp56.h
libavcodec/vp56.h
+3
-3
libavcodec/vp6.c
libavcodec/vp6.c
+6
-6
未找到文件。
libavcodec/vp5.c
浏览文件 @
d887151d
...
...
@@ -87,7 +87,7 @@ static int vp5_adjust(int v, int t)
static
void
vp5_parse_vector_adjustment
(
VP56Context
*
s
,
VP56mv
*
vect
)
{
VP56RangeCoder
*
c
=
&
s
->
c
;
V
p
56Model
*
model
=
s
->
modelp
;
V
P
56Model
*
model
=
s
->
modelp
;
int
comp
,
di
;
for
(
comp
=
0
;
comp
<
2
;
comp
++
)
{
...
...
@@ -111,7 +111,7 @@ static void vp5_parse_vector_adjustment(VP56Context *s, VP56mv *vect)
static
void
vp5_parse_vector_models
(
VP56Context
*
s
)
{
VP56RangeCoder
*
c
=
&
s
->
c
;
V
p
56Model
*
model
=
s
->
modelp
;
V
P
56Model
*
model
=
s
->
modelp
;
int
comp
,
node
;
for
(
comp
=
0
;
comp
<
2
;
comp
++
)
{
...
...
@@ -134,7 +134,7 @@ static void vp5_parse_vector_models(VP56Context *s)
static
void
vp5_parse_coeff_models
(
VP56Context
*
s
)
{
VP56RangeCoder
*
c
=
&
s
->
c
;
V
p
56Model
*
model
=
s
->
modelp
;
V
P
56Model
*
model
=
s
->
modelp
;
uint8_t
def_prob
[
11
];
int
node
,
cg
,
ctx
;
int
ct
;
/* code type */
...
...
@@ -180,7 +180,7 @@ static void vp5_parse_coeff_models(VP56Context *s)
static
void
vp5_parse_coeff
(
VP56Context
*
s
)
{
VP56RangeCoder
*
c
=
&
s
->
c
;
V
p
56Model
*
model
=
s
->
modelp
;
V
P
56Model
*
model
=
s
->
modelp
;
uint8_t
*
permute
=
s
->
scantable
.
permutated
;
uint8_t
*
model1
,
*
model2
;
int
coeff
,
sign
,
coeff_idx
;
...
...
@@ -252,7 +252,7 @@ static void vp5_parse_coeff(VP56Context *s)
static
void
vp5_default_models_init
(
VP56Context
*
s
)
{
V
p
56Model
*
model
=
s
->
modelp
;
V
P
56Model
*
model
=
s
->
modelp
;
int
i
;
for
(
i
=
0
;
i
<
2
;
i
++
)
{
...
...
libavcodec/vp56.c
浏览文件 @
d887151d
...
...
@@ -76,7 +76,7 @@ static int vp56_get_vectors_predictors(VP56Context *s, int row, int col,
static
void
vp56_parse_mb_type_models
(
VP56Context
*
s
)
{
VP56RangeCoder
*
c
=
&
s
->
c
;
V
p
56Model
*
model
=
s
->
modelp
;
V
P
56Model
*
model
=
s
->
modelp
;
int
i
,
ctx
,
type
;
for
(
ctx
=
0
;
ctx
<
3
;
ctx
++
)
{
...
...
libavcodec/vp56.h
浏览文件 @
d887151d
...
...
@@ -84,7 +84,7 @@ typedef struct {
uint8_t
coeff_runv
[
2
][
14
];
/* run value (vp6 only) */
uint8_t
mb_type
[
3
][
10
][
10
];
/* model for decoding MB type */
uint8_t
mb_types_stats
[
3
][
10
][
2
];
/* contextual, next MB type stats */
}
V
p
56Model
;
}
V
P
56Model
;
struct
vp56_context
{
AVCodecContext
*
avctx
;
...
...
@@ -155,8 +155,8 @@ struct vp56_context {
VP56ParseCoeffModels
parse_coeff_models
;
VP56ParseHeader
parse_header
;
V
p
56Model
*
modelp
;
V
p
56Model
models
[
2
];
V
P
56Model
*
modelp
;
V
P
56Model
models
[
2
];
/* huffman decoding */
int
use_huffman
;
...
...
libavcodec/vp6.c
浏览文件 @
d887151d
...
...
@@ -164,7 +164,7 @@ static void vp6_coeff_order_table_init(VP56Context *s)
static
void
vp6_default_models_init
(
VP56Context
*
s
)
{
V
p
56Model
*
model
=
s
->
modelp
;
V
P
56Model
*
model
=
s
->
modelp
;
model
->
vector_dct
[
0
]
=
0xA2
;
model
->
vector_dct
[
1
]
=
0xA4
;
...
...
@@ -183,7 +183,7 @@ static void vp6_default_models_init(VP56Context *s)
static
void
vp6_parse_vector_models
(
VP56Context
*
s
)
{
VP56RangeCoder
*
c
=
&
s
->
c
;
V
p
56Model
*
model
=
s
->
modelp
;
V
P
56Model
*
model
=
s
->
modelp
;
int
comp
,
node
;
for
(
comp
=
0
;
comp
<
2
;
comp
++
)
{
...
...
@@ -234,7 +234,7 @@ static void vp6_build_huff_tree(VP56Context *s, uint8_t coeff_model[],
static
void
vp6_parse_coeff_models
(
VP56Context
*
s
)
{
VP56RangeCoder
*
c
=
&
s
->
c
;
V
p
56Model
*
model
=
s
->
modelp
;
V
P
56Model
*
model
=
s
->
modelp
;
int
def_prob
[
11
];
int
node
,
cg
,
ctx
,
pos
;
int
ct
;
/* code type */
...
...
@@ -299,7 +299,7 @@ static void vp6_parse_coeff_models(VP56Context *s)
static
void
vp6_parse_vector_adjustment
(
VP56Context
*
s
,
VP56mv
*
vect
)
{
VP56RangeCoder
*
c
=
&
s
->
c
;
V
p
56Model
*
model
=
s
->
modelp
;
V
P
56Model
*
model
=
s
->
modelp
;
int
comp
;
*
vect
=
(
VP56mv
)
{
0
,
0
};
...
...
@@ -352,7 +352,7 @@ static unsigned vp6_get_nb_null(VP56Context *s)
static
void
vp6_parse_coeff_huffman
(
VP56Context
*
s
)
{
V
p
56Model
*
model
=
s
->
modelp
;
V
P
56Model
*
model
=
s
->
modelp
;
uint8_t
*
permute
=
s
->
scantable
.
permutated
;
VLC
*
vlc_coeff
;
int
coeff
,
sign
,
coeff_idx
;
...
...
@@ -408,7 +408,7 @@ static void vp6_parse_coeff_huffman(VP56Context *s)
static
void
vp6_parse_coeff
(
VP56Context
*
s
)
{
VP56RangeCoder
*
c
=
s
->
ccp
;
V
p
56Model
*
model
=
s
->
modelp
;
V
P
56Model
*
model
=
s
->
modelp
;
uint8_t
*
permute
=
s
->
scantable
.
permutated
;
uint8_t
*
model1
,
*
model2
,
*
model3
;
int
coeff
,
sign
,
coeff_idx
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录