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
c8c437bc
Commit
c8c437bc
authored
Dec 04, 2002
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
specific debug output support
Originally committed as revision 1305 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ce3bcaed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
10 deletions
+26
-10
avcodec.h
libavcodec/avcodec.h
+16
-2
h263.c
libavcodec/h263.c
+10
-8
No files found.
libavcodec/avcodec.h
View file @
c8c437bc
...
...
@@ -5,8 +5,8 @@
#define LIBAVCODEC_VERSION_INT 0x000406
#define LIBAVCODEC_VERSION "0.4.6"
#define LIBAVCODEC_BUILD 464
1
#define LIBAVCODEC_BUILD_STR "464
1
"
#define LIBAVCODEC_BUILD 464
2
#define LIBAVCODEC_BUILD_STR "464
2
"
enum
CodecID
{
CODEC_ID_NONE
,
...
...
@@ -812,6 +812,20 @@ typedef struct AVCodecContext {
* decoding: set by lavc
*/
AVVideoFrame
*
coded_picture
;
/**
* debug
* encoding: set by user.
* decoding: set by user.
*/
int
debug
;
#define FF_DEBUG_PICT_INFO 1
#define FF_DEBUG_RC 2
#define FF_DEBUG_BITSTREAM 4
#define FF_DEBUG_MB_TYPE 8
#define FF_DEBUG_QP 16
#define FF_DEBUG_MV 32
#define FF_DEBUG_VIS_MV 64
}
AVCodecContext
;
typedef
struct
AVCodec
{
...
...
libavcodec/h263.c
View file @
c8c437bc
...
...
@@ -4546,14 +4546,16 @@ static int decode_vop_header(MpegEncContext *s, GetBitContext *gb){
s
->
b_code
=
get_bits
(
gb
,
3
);
}
else
s
->
b_code
=
1
;
#if 0
printf("qp:%d fc:%d bc:%d type:%s size:%d pro:%d alt:%d top:%d qpel:%d part:%d resync:%d w:%d a:%d\n",
s->qscale, s->f_code, s->b_code,
s->pict_type == I_TYPE ? "I" : (s->pict_type == P_TYPE ? "P" : (s->pict_type == B_TYPE ? "B" : "S")),
gb->size,s->progressive_sequence, s->alternate_scan, s->top_field_first,
s->quarter_sample, s->data_partitioning, s->resync_marker, s->num_sprite_warping_points,
s->sprite_warping_accuracy);
#endif
if
(
s
->
avctx
->
debug
&
FF_DEBUG_PICT_INFO
){
printf
(
"qp:%d fc:%d bc:%d type:%s size:%d pro:%d alt:%d top:%d qpel:%d part:%d resync:%d w:%d a:%d
\n
"
,
s
->
qscale
,
s
->
f_code
,
s
->
b_code
,
s
->
pict_type
==
I_TYPE
?
"I"
:
(
s
->
pict_type
==
P_TYPE
?
"P"
:
(
s
->
pict_type
==
B_TYPE
?
"B"
:
"S"
)),
gb
->
size
,
s
->
progressive_sequence
,
s
->
alternate_scan
,
s
->
top_field_first
,
s
->
quarter_sample
,
s
->
data_partitioning
,
s
->
resync_marker
,
s
->
num_sprite_warping_points
,
s
->
sprite_warping_accuracy
);
}
if
(
!
s
->
scalability
){
if
(
s
->
shape
!=
RECT_SHAPE
&&
s
->
pict_type
!=
I_TYPE
)
{
skip_bits1
(
gb
);
// vop shape coding type
...
...
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