svnno****@sourc*****
svnno****@sourc*****
2009年 5月 26日 (火) 23:48:34 JST
Revision: 133 http://svn.sourceforge.jp/view?root=swfed&view=rev&rev=133 Author: yoya Date: 2009-05-26 23:48:34 +0900 (Tue, 26 May 2009) Log Message: ----------- wf_shape_with_style_parse の実装 Modified Paths: -------------- trunk/src/config.m4 trunk/src/swf_tag_shape.c Added Paths: ----------- trunk/src/swf_shape_with_style.c -------------- next part -------------- Modified: trunk/src/config.m4 =================================================================== --- trunk/src/config.m4 2009-05-26 14:17:51 UTC (rev 132) +++ trunk/src/config.m4 2009-05-26 14:48:34 UTC (rev 133) @@ -61,5 +61,5 @@ dnl dnl PHP_SUBST(SWFED_SHARED_LIBADD) - PHP_NEW_EXTENSION(swfed, swfed.c swf_object.c swf_header.c swf_rect.c swf_tag.c swf_tag_jpeg.c swf_tag_edit.c swf_tag_action.c swf_tag_lossless.c swf_tag_sound.c swf_tag_sprite.c swf_tag_shape.c swf_rgb.c swf_rgba.c swf_argb.c swf_xrgb.c swf_action.c swf_jpeg.c bitstream.c jpeg_segment.c swf_png.c swf_gif.c swf_debug.c, $ext_shared) + PHP_NEW_EXTENSION(swfed, swfed.c swf_object.c swf_header.c swf_rect.c swf_tag.c swf_tag_jpeg.c swf_tag_edit.c swf_tag_action.c swf_tag_lossless.c swf_tag_sound.c swf_tag_sprite.c swf_tag_shape.c swf_rgb.c swf_rgba.c swf_argb.c swf_xrgb.c swf_action.c swf_jpeg.c bitstream.c jpeg_segment.c swf_png.c swf_gif.c swf_shape_with_style.c swf_debug.c, $ext_shared) fi Added: trunk/src/swf_shape_with_style.c =================================================================== --- trunk/src/swf_shape_with_style.c (rev 0) +++ trunk/src/swf_shape_with_style.c 2009-05-26 14:48:34 UTC (rev 133) @@ -0,0 +1,25 @@ +#include <stdio.h> +#include "bitstream.h" +#include "swf_shape_with_style.h" +#include "swf_styles.h" +#include "swf_shape_record.h" + +swf_shape_with_style_parse(bitstream_t *bs, swf_shape_with_style_t *shape_with_style) { +// swf_styles_parse(bs, &(shape_with_style->styles)); +// swf_shape_record_parse(bs, &(shape_with_style->shape_records)); + return 0; +} + +int +swf_shape_with_style_build(bitstream_t *bs, swf_shape_with_style_t *shape_with_style) { +// swf_styles_build(bs, &(shape_with_style->styles)); +// swf_shape_record_build(bs, &(shape_with_style->shape_records)); + return 0; +} + +int +swf_shape_with_style_print(swf_shape_with_style_t *shape_with_style, int indent_depth) { +// swf_styles_print(&(shape_with_style->styles), indent_depth); +// swf_shape_record_print(&(shape_with_style->shape_records), indent_depth); + return 0; +} Modified: trunk/src/swf_tag_shape.c =================================================================== --- trunk/src/swf_tag_shape.c 2009-05-26 14:17:51 UTC (rev 132) +++ trunk/src/swf_tag_shape.c 2009-05-26 14:48:34 UTC (rev 133) @@ -70,7 +70,7 @@ swf_tag_shape->offset_morph = bitstream_getbytesLE(bs, 4); ; // swf_morph_shape_with_style_parse(bs, &swf_tag_shape->morph_shape_with_style); } else { - ; // swf_morph_shape_with_style_parse(bs, &swf_tag_shape->shape_with_style); + swf_shape_with_style_parse(bs, &swf_tag_shape->shape_with_style); } bitstream_close(bs); @@ -141,7 +141,7 @@ printf("offset_morph=%lu\n", swf_tag_shape->offset_morph); ; // swf_morph_shape_with_style_print(&swf_tag_shape->morph_shape_with_style, indent_depth); } else { - ; // swf_morph_shape_with_style_print(&swf_tag_shape->shape_with_style, indent_depth); + swf_shape_with_style_print(&swf_tag_shape->shape_with_style, indent_depth); } return ; }