projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed a few typos.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
modules
/
mod_yuv420p
/
trgt_yuv.cpp
diff --git
a/synfig-core/trunk/src/modules/mod_yuv420p/trgt_yuv.cpp
b/synfig-core/trunk/src/modules/mod_yuv420p/trgt_yuv.cpp
index
e2da345
..
b2d7217
100644
(file)
--- a/
synfig-core/trunk/src/modules/mod_yuv420p/trgt_yuv.cpp
+++ b/
synfig-core/trunk/src/modules/mod_yuv420p/trgt_yuv.cpp
@@
-88,7
+88,7
@@
yuv::set_rend_desc(RendDesc *given_desc)
// Set up our surface
surface.set_wh(desc.get_w(),desc.get_h());
// Set up our surface
surface.set_wh(desc.get_w(),desc.get_h());
-
+
return true;
}
return true;
}
@@
-146,11
+146,11
@@
yuv::end_frame()
if(surface.get_w()>x+1)
surface[y][x+1]+=error * ((float)7/(float)16);
}
if(surface.get_w()>x+1)
surface[y][x+1]+=error * ((float)7/(float)16);
}
-
+
fputc(i,file.get());
}
fputc(i,file.get());
}
-
-
+
+
// Create new super-sampled surface
Surface sm_surface(w/2,h/2);
for(y=0;y<h;y+=2)
// Create new super-sampled surface
Surface sm_surface(w/2,h/2);
for(y=0;y<h;y+=2)
@@
-190,7
+190,7
@@
yuv::end_frame()
}
fputc(i,file.get());
}
}
fputc(i,file.get());
}
-
+
// Output V channel
for(y=0;y<sm_surface.get_h();y++)
for(x=0;x<sm_surface.get_w();x++)
// Output V channel
for(y=0;y<sm_surface.get_h();y++)
for(x=0;x<sm_surface.get_w();x++)
@@
-216,7
+216,7
@@
yuv::end_frame()
}
fputc(i,file.get());
}
}
fputc(i,file.get());
}
-
+
// Flush out the frame
fflush(file.get());
}
// Flush out the frame
fflush(file.get());
}