[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/server/parser bitmap_character_def.h
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/server/parser bitmap_character_def.h |
Date: |
Mon, 25 Sep 2006 16:33:01 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 06/09/25 16:33:01
Modified files:
server/parser : bitmap_character_def.h
Log message:
some doxygen dox
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/bitmap_character_def.h?cvsroot=gnash&r1=1.6&r2=1.7
Patches:
Index: bitmap_character_def.h
===================================================================
RCS file: /sources/gnash/gnash/server/parser/bitmap_character_def.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- bitmap_character_def.h 25 Sep 2006 15:17:42 -0000 1.6
+++ bitmap_character_def.h 25 Sep 2006 16:33:01 -0000 1.7
@@ -56,6 +56,7 @@
namespace gnash {
+/// Dirty wrapper around image::{rgb,rgba}
struct image_rgb_or_rgba : public ref_counted
{
int type; // 0: rgb, 1: rgba
@@ -65,7 +66,20 @@
};
};
-/// What's this ? An interface ?
+/// Definition of a bitmap character
+//
+/// This includes:
+///
+/// - SWF::DEFINEBITS
+/// - SWF::DEFINEBITSJPEG2
+/// - SWF::DEFINEBITSJPEG3
+/// - SWF::DEFINELOSSLESS
+/// - SWF::DEFINELOSSLESS2
+///
+/// The definition currently only takes an image::rgb
+/// or image::rgba pointer. We should probably move
+/// the methods for actually reading such tags instead.
+///
class bitmap_character_def : public character_def
{
@@ -92,10 +106,13 @@
// information. DO NOT CALL THIS FUNCTION FROM THE PARSER LIB !
gnash::bitmap_info* get_bitmap_info();
+#if 0 // this would be the preferred interface to set a cache from the
+ // outside. currently unused
void set_bitmap_info(smart_ptr<gnash::bitmap_info> bi)
{
_bitmap_info = bi;
}
+#endif
private: