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
5d2170c5
Commit
5d2170c5
authored
Sep 29, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ivi_common: make ff_ivi_process_empty_tile() static.
It's not used outside of ivi_common.c
parent
2d09cdba
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
15 deletions
+12
-15
ivi_common.c
libavcodec/ivi_common.c
+12
-3
ivi_common.h
libavcodec/ivi_common.h
+0
-12
No files found.
libavcodec/ivi_common.c
View file @
5d2170c5
...
...
@@ -489,7 +489,16 @@ int ff_ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile)
return
0
;
}
void
ff_ivi_process_empty_tile
(
AVCodecContext
*
avctx
,
IVIBandDesc
*
band
,
/**
* Handle empty tiles by performing data copying and motion
* compensation respectively.
*
* @param[in] avctx ptr to the AVCodecContext
* @param[in] band pointer to the band descriptor
* @param[in] tile pointer to the tile descriptor
* @param[in] mv_scale scaling factor for motion vectors
*/
static
void
ivi_process_empty_tile
(
AVCodecContext
*
avctx
,
IVIBandDesc
*
band
,
IVITile
*
tile
,
int32_t
mv_scale
)
{
int
x
,
y
,
need_mc
,
mbn
,
blk
,
num_blocks
,
mv_x
,
mv_y
,
mc_type
;
...
...
@@ -673,7 +682,7 @@ static int decode_band(IVI45DecContext *ctx, int plane_num,
}
tile
->
is_empty
=
get_bits1
(
&
ctx
->
gb
);
if
(
tile
->
is_empty
)
{
ff_
ivi_process_empty_tile
(
avctx
,
band
,
tile
,
ivi_process_empty_tile
(
avctx
,
band
,
tile
,
(
ctx
->
planes
[
0
].
bands
[
0
].
mb_size
>>
3
)
-
(
band
->
mb_size
>>
3
));
av_dlog
(
avctx
,
"Empty tile encountered!
\n
"
);
}
else
{
...
...
libavcodec/ivi_common.h
View file @
5d2170c5
...
...
@@ -375,18 +375,6 @@ int ff_ivi_dec_tile_data_size(GetBitContext *gb);
*/
int
ff_ivi_decode_blocks
(
GetBitContext
*
gb
,
IVIBandDesc
*
band
,
IVITile
*
tile
);
/**
* Handle empty tiles by performing data copying and motion
* compensation respectively.
*
* @param[in] avctx ptr to the AVCodecContext
* @param[in] band pointer to the band descriptor
* @param[in] tile pointer to the tile descriptor
* @param[in] mv_scale scaling factor for motion vectors
*/
void
ff_ivi_process_empty_tile
(
AVCodecContext
*
avctx
,
IVIBandDesc
*
band
,
IVITile
*
tile
,
int32_t
mv_scale
);
/**
* Convert and output the current plane.
* This conversion is done by adding back the bias value of 128
...
...
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