Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
a6e4ac40
Commit
a6e4ac40
authored
May 19, 2012
by
Kostya Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indeo: track tile macroblock size
parent
fe7a37c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
ivi_common.c
libavcodec/ivi_common.c
+6
-0
ivi_common.h
libavcodec/ivi_common.h
+1
-0
No files found.
libavcodec/ivi_common.c
View file @
a6e4ac40
...
...
@@ -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
)
{
tile
->
xpos
=
x
;
tile
->
ypos
=
y
;
tile
->
mb_size
=
band
->
mb_size
;
tile
->
width
=
FFMIN
(
band
->
width
-
x
,
t_width
);
tile
->
height
=
FFMIN
(
band
->
height
-
y
,
t_height
);
tile
->
is_empty
=
tile
->
data_size
=
0
;
...
...
@@ -670,6 +671,11 @@ static int decode_band(IVI45DecContext *ctx, int plane_num,
for
(
t
=
0
;
t
<
band
->
num_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
);
if
(
tile
->
is_empty
)
{
ff_ivi_process_empty_tile
(
avctx
,
band
,
tile
,
...
...
libavcodec/ivi_common.h
View file @
a6e4ac40
...
...
@@ -118,6 +118,7 @@ typedef struct {
int
ypos
;
int
width
;
int
height
;
int
mb_size
;
int
is_empty
;
///< = 1 if this tile doesn't contain any data
int
data_size
;
///< size of the data in bytes
int
num_MBs
;
///< number of macroblocks in this tile
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment