Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
d41efc1f
Commit
d41efc1f
authored
12 years ago
by
Michael Niedermayer
Browse files
Options
Downloads
Patches
Plain Diff
h264: put visualization and debug support back
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
a3a97129
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libavcodec/h264.c
+6
-0
6 additions, 0 deletions
libavcodec/h264.c
libavcodec/h264.h
+2
-0
2 additions, 0 deletions
libavcodec/h264.h
with
8 additions
and
0 deletions
libavcodec/h264.c
+
6
−
0
View file @
d41efc1f
...
@@ -1003,6 +1003,9 @@ static void free_tables(H264Context *h, int free_rbsp)
...
@@ -1003,6 +1003,9 @@ static void free_tables(H264Context *h, int free_rbsp)
av_freep
(
&
h
->
mb2b_xy
);
av_freep
(
&
h
->
mb2b_xy
);
av_freep
(
&
h
->
mb2br_xy
);
av_freep
(
&
h
->
mb2br_xy
);
for
(
i
=
0
;
i
<
3
;
i
++
)
av_freep
(
&
h
->
visualization_buffer
[
i
]);
if
(
free_rbsp
)
{
if
(
free_rbsp
)
{
for
(
i
=
0
;
i
<
h
->
picture_count
&&
!
h
->
avctx
->
internal
->
is_copy
;
i
++
)
for
(
i
=
0
;
i
<
h
->
picture_count
&&
!
h
->
avctx
->
internal
->
is_copy
;
i
++
)
free_picture
(
h
,
&
h
->
DPB
[
i
]);
free_picture
(
h
,
&
h
->
DPB
[
i
]);
...
@@ -4781,6 +4784,9 @@ not_extra:
...
@@ -4781,6 +4784,9 @@ not_extra:
assert
(
pict
->
data
[
0
]
||
!*
got_frame
);
assert
(
pict
->
data
[
0
]
||
!*
got_frame
);
ff_print_debug_info2
(
h
->
avctx
,
pict
,
h
->
er
.
mbskip_table
,
h
->
visualization_buffer
,
&
h
->
low_delay
,
h
->
mb_width
,
h
->
mb_height
,
h
->
mb_stride
,
1
);
return
get_consumed_bytes
(
buf_index
,
buf_size
);
return
get_consumed_bytes
(
buf_index
,
buf_size
);
}
}
...
...
This diff is collapsed.
Click to expand it.
libavcodec/h264.h
+
2
−
0
View file @
d41efc1f
...
@@ -644,6 +644,8 @@ typedef struct H264Context {
...
@@ -644,6 +644,8 @@ typedef struct H264Context {
int
parse_last_mb
;
int
parse_last_mb
;
uint8_t
*
edge_emu_buffer
;
uint8_t
*
edge_emu_buffer
;
int16_t
*
dc_val_base
;
int16_t
*
dc_val_base
;
uint8_t
*
visualization_buffer
[
3
];
///< temporary buffer vor MV visualization
}
H264Context
;
}
H264Context
;
extern
const
uint8_t
ff_h264_chroma_qp
[
7
][
QP_MAX_NUM
+
1
];
///< One chroma qp table for each possible bit depth (8-14).
extern
const
uint8_t
ff_h264_chroma_qp
[
7
][
QP_MAX_NUM
+
1
];
///< One chroma qp table for each possible bit depth (8-14).
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment