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
a2fd5478
Commit
a2fd5478
authored
Apr 11, 2016
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264_refs: reorder functions to avoid forward declarations
parent
0ba471d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
36 deletions
+33
-36
h264_refs.c
libavcodec/h264_refs.c
+33
-36
No files found.
libavcodec/h264_refs.c
View file @
a2fd5478
...
...
@@ -169,8 +169,39 @@ static void h264_initialise_ref_list(H264Context *h, H264SliceContext *sl)
}
}
static
void
print_short_term
(
H264Context
*
h
);
static
void
print_long_term
(
H264Context
*
h
);
/**
* print short term list
*/
static
void
print_short_term
(
H264Context
*
h
)
{
uint32_t
i
;
if
(
h
->
avctx
->
debug
&
FF_DEBUG_MMCO
)
{
av_log
(
h
->
avctx
,
AV_LOG_DEBUG
,
"short term list:
\n
"
);
for
(
i
=
0
;
i
<
h
->
short_ref_count
;
i
++
)
{
H264Picture
*
pic
=
h
->
short_ref
[
i
];
av_log
(
h
->
avctx
,
AV_LOG_DEBUG
,
"%"
PRIu32
" fn:%d poc:%d %p
\n
"
,
i
,
pic
->
frame_num
,
pic
->
poc
,
pic
->
f
->
data
[
0
]);
}
}
}
/**
* print long term list
*/
static
void
print_long_term
(
H264Context
*
h
)
{
uint32_t
i
;
if
(
h
->
avctx
->
debug
&
FF_DEBUG_MMCO
)
{
av_log
(
h
->
avctx
,
AV_LOG_DEBUG
,
"long term list:
\n
"
);
for
(
i
=
0
;
i
<
16
;
i
++
)
{
H264Picture
*
pic
=
h
->
long_ref
[
i
];
if
(
pic
)
{
av_log
(
h
->
avctx
,
AV_LOG_DEBUG
,
"%"
PRIu32
" fn:%d poc:%d %p
\n
"
,
i
,
pic
->
frame_num
,
pic
->
poc
,
pic
->
f
->
data
[
0
]);
}
}
}
}
/**
* Extract structure information about the picture described by pic_num in
...
...
@@ -475,40 +506,6 @@ void ff_h264_remove_all_refs(H264Context *h)
h
->
short_ref_count
=
0
;
}
/**
* print short term list
*/
static
void
print_short_term
(
H264Context
*
h
)
{
uint32_t
i
;
if
(
h
->
avctx
->
debug
&
FF_DEBUG_MMCO
)
{
av_log
(
h
->
avctx
,
AV_LOG_DEBUG
,
"short term list:
\n
"
);
for
(
i
=
0
;
i
<
h
->
short_ref_count
;
i
++
)
{
H264Picture
*
pic
=
h
->
short_ref
[
i
];
av_log
(
h
->
avctx
,
AV_LOG_DEBUG
,
"%"
PRIu32
" fn:%d poc:%d %p
\n
"
,
i
,
pic
->
frame_num
,
pic
->
poc
,
pic
->
f
->
data
[
0
]);
}
}
}
/**
* print long term list
*/
static
void
print_long_term
(
H264Context
*
h
)
{
uint32_t
i
;
if
(
h
->
avctx
->
debug
&
FF_DEBUG_MMCO
)
{
av_log
(
h
->
avctx
,
AV_LOG_DEBUG
,
"long term list:
\n
"
);
for
(
i
=
0
;
i
<
16
;
i
++
)
{
H264Picture
*
pic
=
h
->
long_ref
[
i
];
if
(
pic
)
{
av_log
(
h
->
avctx
,
AV_LOG_DEBUG
,
"%"
PRIu32
" fn:%d poc:%d %p
\n
"
,
i
,
pic
->
frame_num
,
pic
->
poc
,
pic
->
f
->
data
[
0
]);
}
}
}
}
static
int
check_opcodes
(
MMCO
*
mmco1
,
MMCO
*
mmco2
,
int
n_mmcos
)
{
int
i
;
...
...
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