Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
a6e4ac40
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,发现更多精彩内容 >>
提交
a6e4ac40
编写于
5月 19, 2012
作者:
K
Kostya Shishkov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
indeo: track tile macroblock size
上级
fe7a37c3
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
0 deletion
+7
-0
libavcodec/ivi_common.c
libavcodec/ivi_common.c
+6
-0
libavcodec/ivi_common.h
libavcodec/ivi_common.h
+1
-0
未找到文件。
libavcodec/ivi_common.c
浏览文件 @
a6e4ac40
...
@@ -287,6 +287,7 @@ av_cold int ff_ivi_init_tiles(IVIPlaneDesc *planes, int tile_width, int tile_hei
...
@@ -287,6 +287,7 @@ av_cold int ff_ivi_init_tiles(IVIPlaneDesc *planes, int tile_width, int tile_hei
for
(
x
=
0
;
x
<
band
->
width
;
x
+=
t_width
)
{
for
(
x
=
0
;
x
<
band
->
width
;
x
+=
t_width
)
{
tile
->
xpos
=
x
;
tile
->
xpos
=
x
;
tile
->
ypos
=
y
;
tile
->
ypos
=
y
;
tile
->
mb_size
=
band
->
mb_size
;
tile
->
width
=
FFMIN
(
band
->
width
-
x
,
t_width
);
tile
->
width
=
FFMIN
(
band
->
width
-
x
,
t_width
);
tile
->
height
=
FFMIN
(
band
->
height
-
y
,
t_height
);
tile
->
height
=
FFMIN
(
band
->
height
-
y
,
t_height
);
tile
->
is_empty
=
tile
->
data_size
=
0
;
tile
->
is_empty
=
tile
->
data_size
=
0
;
...
@@ -670,6 +671,11 @@ static int decode_band(IVI45DecContext *ctx, int plane_num,
...
@@ -670,6 +671,11 @@ static int decode_band(IVI45DecContext *ctx, int plane_num,
for
(
t
=
0
;
t
<
band
->
num_tiles
;
t
++
)
{
for
(
t
=
0
;
t
<
band
->
num_tiles
;
t
++
)
{
tile
=
&
band
->
tiles
[
t
];
tile
=
&
band
->
tiles
[
t
];
if
(
tile
->
mb_size
!=
band
->
mb_size
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"MB sizes mismatch: %d vs. %d
\n
"
,
band
->
mb_size
,
tile
->
mb_size
);
return
AVERROR_INVALIDDATA
;
}
tile
->
is_empty
=
get_bits1
(
&
ctx
->
gb
);
tile
->
is_empty
=
get_bits1
(
&
ctx
->
gb
);
if
(
tile
->
is_empty
)
{
if
(
tile
->
is_empty
)
{
ff_ivi_process_empty_tile
(
avctx
,
band
,
tile
,
ff_ivi_process_empty_tile
(
avctx
,
band
,
tile
,
...
...
libavcodec/ivi_common.h
浏览文件 @
a6e4ac40
...
@@ -118,6 +118,7 @@ typedef struct {
...
@@ -118,6 +118,7 @@ typedef struct {
int
ypos
;
int
ypos
;
int
width
;
int
width
;
int
height
;
int
height
;
int
mb_size
;
int
is_empty
;
///< = 1 if this tile doesn't contain any data
int
is_empty
;
///< = 1 if this tile doesn't contain any data
int
data_size
;
///< size of the data in bytes
int
data_size
;
///< size of the data in bytes
int
num_MBs
;
///< number of macroblocks in this tile
int
num_MBs
;
///< number of macroblocks in this tile
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录