git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b2db3d1
)
slight output changes.
author
kramm
<kramm>
Wed, 19 May 2004 07:48:00 +0000
(07:48 +0000)
committer
kramm
<kramm>
Wed, 19 May 2004 07:48:00 +0000
(07:48 +0000)
lib/h.263/video.c
patch
|
blob
|
history
diff --git
a/lib/h.263/video.c
b/lib/h.263/video.c
index
cc86371
..
982b0c0
100644
(file)
--- a/
lib/h.263/video.c
+++ b/
lib/h.263/video.c
@@
-297,7
+297,7
@@
void get_DC_TCOEF(TAG*tag, int t, int has_dc, int has_tcoef)
run = swf_GetBits(tag, 6);
level = swf_GetBits(tag, 8);
if(run)
run = swf_GetBits(tag, 6);
level = swf_GetBits(tag, 8);
if(run)
- DEBUG printf("(%d) E%d", run, level);
+ DEBUG printf(" (%d) E%d", run, level);
else
DEBUG printf("E");
if(level == 0 || level == 128) {
else
DEBUG printf("E");
if(level == 0 || level == 128) {
@@
-307,12
+307,14
@@
void get_DC_TCOEF(TAG*tag, int t, int has_dc, int has_tcoef)
level = (int)((signed char)level);
} else {
int sign = swf_GetBits(tag, 1);
level = (int)((signed char)level);
} else {
int sign = swf_GetBits(tag, 1);
- if(sign)
+ if(sign) {
level = -level;
level = -level;
- if(run)
- DEBUG printf("(%d) %s%d", run, level>0?"+":"",level);
- else
- DEBUG printf("%s%d", level>0?"+":"",level);
+ }
+ if(run) {
+ DEBUG printf(" (%d) %s%d", run, level>0?"+":"",level);
+ } else {
+ DEBUG printf(" %s%d", level>0?"+":"",level);
+ }
}
pos += run+1;
//DEBUG printf("run:%d level:%d\n", run, level);
}
pos += run+1;
//DEBUG printf("run:%d level:%d\n", run, level);
@@
-423,8
+425,9
@@
void decode_block(TAG*tag, int pictype)
int x,y;
x = readMVD(tag); //horizontal
y = readMVD(tag); //vertical
int x,y;
x = readMVD(tag); //horizontal
y = readMVD(tag); //vertical
- if(x==32 && y==32)
- printf("
\b
0");
+ /*if(x==32 && y==32)
+ printf("
\b
0"); // prediction was 100% match
+ */
}
if(has_mvd[mb_type]&2) {
/* only in advanced prediction mode */
}
if(has_mvd[mb_type]&2) {
/* only in advanced prediction mode */