CVSROOT: /sources/gnash Module name: gnash Changes by: Chad Musick <cmusick> 07/08/24 05:45:52
Modified files: . : ChangeLog server : stream.h stream.cpp Log message: Add read_short_fixed() function to the stream for 16 bit fixed reads. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4087&r2=1.4088 http://cvs.savannah.gnu.org/viewcvs/gnash/server/stream.h?cvsroot=gnash&r1=1.23&r2=1.24 http://cvs.savannah.gnu.org/viewcvs/gnash/server/stream.cpp?cvsroot=gnash&r1=1.23&r2=1.24 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.4087 retrieving revision 1.4088 diff -u -b -r1.4087 -r1.4088 --- ChangeLog 24 Aug 2007 05:44:17 -0000 1.4087 +++ ChangeLog 24 Aug 2007 05:45:51 -0000 1.4088 @@ -1,5 +1,11 @@ 2007-08-24 Chad Musick <[EMAIL PROTECTED]> + * server/stream.cpp,h: Add read_short_fixed() function for + what short fixed values (16 bits) are needed rather than + long fixed values (32 bits) from the SWF stream. + +2007-08-24 Chad Musick <[EMAIL PROTECTED]> + * server/filters.cpp,h: Effect filters for PlaceObject3 and for buttons. No current effect, but it parses correctly from SWF. * Makefile.am: Add the filters files. Index: server/stream.h =================================================================== RCS file: /sources/gnash/gnash/server/stream.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -b -r1.23 -r1.24 --- server/stream.h 9 Aug 2007 04:18:37 -0000 1.23 +++ server/stream.h 24 Aug 2007 05:45:51 -0000 1.24 @@ -52,6 +52,7 @@ int read_sint(unsigned short bitcount); float read_fixed(); + float read_short_fixed(); void align(); unsigned read(char *buf, unsigned count); Index: server/stream.cpp =================================================================== RCS file: /sources/gnash/gnash/server/stream.cpp,v retrieving revision 1.23 retrieving revision 1.24 diff -u -b -r1.23 -r1.24 --- server/stream.cpp 12 Jul 2007 14:28:01 -0000 1.23 +++ server/stream.cpp 24 Aug 2007 05:45:51 -0000 1.24 @@ -120,6 +120,11 @@ int32_t val = m_input->read_le32(); return (float) val / 65536.0f; } + float stream::read_short_fixed() + { + m_unused_bits = 0; + return (float) m_input->read_le16(); + } void stream::align() { m_unused_bits = 0; m_current_byte = 0; } _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit