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 (from parent 1:
3323971
)
some small logging changes
author
kramm
<kramm>
Tue, 22 Feb 2005 18:51:15 +0000
(18:51 +0000)
committer
kramm
<kramm>
Tue, 22 Feb 2005 18:51:15 +0000
(18:51 +0000)
avi2swf/v2swf.c
patch
|
blob
|
history
diff --git
a/avi2swf/v2swf.c
b/avi2swf/v2swf.c
index
a536c08
..
616fa21
100644
(file)
--- a/
avi2swf/v2swf.c
+++ b/
avi2swf/v2swf.c
@@
-571,6
+571,11
@@
static void scaleimage(v2swf_internal_t*i)
int xv,yv;
int xm = (i->video->width*65536)/i->width;
int ym = (i->video->height*65536)/i->height;
int xv,yv;
int xm = (i->video->width*65536)/i->width;
int ym = (i->video->height*65536)/i->height;
+ msg("scaling from %dx%d to %dx%d\n",
+ i->video->width, i->video->height,
+ i->width, i->height
+ );
+
memset(i->buffer, 255, i->width*i->height*4);
for(y=0,yv=0;y<i->height;y++,yv+=ym) {
int*src = &((int*)i->vrbuffer)[(yv>>16)*i->video->width];
memset(i->buffer, 255, i->width*i->height*4);
for(y=0,yv=0;y<i->height;y++,yv+=ym) {
int*src = &((int*)i->vrbuffer)[(yv>>16)*i->video->width];
@@
-635,8
+640,6
@@
static int encodeoneframe(v2swf_internal_t*i)
writeShowFrame(i);
}
writeShowFrame(i);
}
- msg("scaling\n");
-
scaleimage(i);
msg("version is %d\n", i->version);
scaleimage(i);
msg("version is %d\n", i->version);