svnno****@sourc*****
svnno****@sourc*****
2009年 6月 3日 (水) 21:52:07 JST
Revision: 138 http://svn.sourceforge.jp/view?root=swfed&view=rev&rev=138 Author: yoya Date: 2009-06-03 21:52:07 +0900 (Wed, 03 Jun 2009) Log Message: ----------- DefineShape の詳細構造を処理する関数を用意(中身は殆どなしで) Modified Paths: -------------- trunk/src/config.m4 trunk/src/swf_morph_shape_with_style.h Added Paths: ----------- trunk/src/swf_fill_style_bitmap.c trunk/src/swf_fill_style_gradient.c trunk/src/swf_fill_style_solid.c trunk/src/swf_line_style.c trunk/src/swf_line_style_array.c trunk/src/swf_morph_shape_with_style.c trunk/src/swf_shape_record.c trunk/src/swf_styles_count.c -------------- next part -------------- Modified: trunk/src/config.m4 =================================================================== --- trunk/src/config.m4 2009-06-03 12:25:47 UTC (rev 137) +++ trunk/src/config.m4 2009-06-03 12:52:07 UTC (rev 138) @@ -61,6 +61,6 @@ 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_shape_with_style.c swf_styles.c swf_fill_style_array.c swf_fill_style.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_styles.c swf_fill_style_array.c swf_fill_style.c swf_morph_shape_with_style.c swf_fill_style_solid.c swf_fill_style_gradient.c swf_fill_style_bitmap.c swf_line_style_array.c swf_line_style.c swf_styles_count.c swf_shape_record.c swf_debug.c, $ext_shared) fi Added: trunk/src/swf_fill_style_bitmap.c =================================================================== --- trunk/src/swf_fill_style_bitmap.c (rev 0) +++ trunk/src/swf_fill_style_bitmap.c 2009-06-03 12:52:07 UTC (rev 138) @@ -0,0 +1,23 @@ +#include <stdio.h> +#include "bitstream.h" +#include "swf_fill_style_bitmap.h" + +swf_fill_style_bitmap_parse(bitstream_t *bs, + swf_fill_style_bitmap_t *fill_style_bitmap) { + ; + return 0; +} + +int +swf_fill_style_bitmap_build(bitstream_t *bs, + swf_fill_style_bitmap_t *fill_style_bitmap) { + ; + return 0; +} + +int +swf_fill_style_bitmap_print(swf_fill_style_bitmap_t *fill_style_bitmap, + int indent_depth) { + ; + return 0; +} Added: trunk/src/swf_fill_style_gradient.c =================================================================== --- trunk/src/swf_fill_style_gradient.c (rev 0) +++ trunk/src/swf_fill_style_gradient.c 2009-06-03 12:52:07 UTC (rev 138) @@ -0,0 +1,23 @@ +#include <stdio.h> +#include "bitstream.h" +#include "swf_fill_style_gradient.h" + +swf_fill_style_gradient_parse(bitstream_t *bs, + swf_fill_style_gradient_t *fill_style_gradient) { + ; + return 0; +} + +int +swf_fill_style_gradient_build(bitstream_t *bs, + swf_fill_style_gradient_t *fill_style_gradient) { + ; + return 0; +} + +int +swf_fill_style_gradient_print(swf_fill_style_gradient_t *fill_style_gradient, + int indent_depth) { + ; + return 0; +} Added: trunk/src/swf_fill_style_solid.c =================================================================== --- trunk/src/swf_fill_style_solid.c (rev 0) +++ trunk/src/swf_fill_style_solid.c 2009-06-03 12:52:07 UTC (rev 138) @@ -0,0 +1,23 @@ +#include <stdio.h> +#include "bitstream.h" +#include "swf_fill_style_solid.h" + +swf_fill_style_solid_parse(bitstream_t *bs, + swf_fill_style_solid_t *fill_style_solid) { + ; + return 0; +} + +int +swf_fill_style_solid_build(bitstream_t *bs, + swf_fill_style_solid_t *fill_style_solid) { + ; + return 0; +} + +int +swf_fill_style_solid_print(swf_fill_style_solid_t *fill_style_solid, + int indent_depth) { + ; + return 0; +} Added: trunk/src/swf_line_style.c =================================================================== --- trunk/src/swf_line_style.c (rev 0) +++ trunk/src/swf_line_style.c 2009-06-03 12:52:07 UTC (rev 138) @@ -0,0 +1,20 @@ +#include <stdio.h> +#include "bitstream.h" +#include "swf_line_style.h" + +swf_line_style_parse(bitstream_t *bs, swf_line_style_t *line_style) { + ; + return 0; +} + +int +swf_line_style_build(bitstream_t *bs, swf_line_style_t *line_style) { + ; + return 0; +} + +int +swf_line_style_print(swf_line_style_t *line_style, int indent_depth) { + ; + return 0; +} Added: trunk/src/swf_line_style_array.c =================================================================== --- trunk/src/swf_line_style_array.c (rev 0) +++ trunk/src/swf_line_style_array.c 2009-06-03 12:52:07 UTC (rev 138) @@ -0,0 +1,23 @@ +#include <stdio.h> +#include "bitstream.h" +#include "swf_line_style_array.h" + +swf_line_style_array_parse(bitstream_t *bs, + swf_line_style_array_t *line_style_array) { + ; + return 0; +} + +int +swf_line_style_array_build(bitstream_t *bs, + swf_line_style_array_t *line_style_array) { + ; + return 0; +} + +int +swf_line_style_array_print(swf_line_style_array_t *line_style_array, + int indent_depth) { + ; + return 0; +} Added: trunk/src/swf_morph_shape_with_style.c =================================================================== --- trunk/src/swf_morph_shape_with_style.c (rev 0) +++ trunk/src/swf_morph_shape_with_style.c 2009-06-03 12:52:07 UTC (rev 138) @@ -0,0 +1,31 @@ +#include <stdio.h> +#include "bitstream.h" +#include "swf_morph_shape_with_style.h" + +swf_morph_shape_with_style_parse(bitstream_t *bs, + swf_morph_shape_with_style_t *morph_shape_with_style, + swf_tag_t *tag) { + swf_styles_parse(bs, &(morph_shape_with_style->styles), tag); +// swf_shape_record_parse(bs, &(morph_shape_with_style->shape_records)); + // + // + return 0; +} + +int +swf_morph_shape_with_style_build(bitstream_t *bs, swf_morph_shape_with_style_t *morph_shape_with_style) { +// swf_styles_build(bs, &(morph_shape_with_style->styles)); +// swf_shape_record_build(bs, &(morph_shape_with_style->shape_records)); + // + // + return 0; +} + +int +swf_morph_shape_with_style_print(swf_morph_shape_with_style_t *morph_shape_with_style, int indent_depth) { + swf_styles_print(&(morph_shape_with_style->styles), indent_depth); +// swf_shape_record_print(&(morph_shape_with_style->shape_records), indent_depth); + // + // + return 0; +} Modified: trunk/src/swf_morph_shape_with_style.h =================================================================== --- trunk/src/swf_morph_shape_with_style.h 2009-06-03 12:25:47 UTC (rev 137) +++ trunk/src/swf_morph_shape_with_style.h 2009-06-03 12:52:07 UTC (rev 138) @@ -17,11 +17,14 @@ // char align; swf_styles_count_t styles_count; swf_shape_record_t *shape_records_morph; - } swf_morph_shape_with_style_t; -extern int swf_morph_shape_with_style_parse(bitstream_t *bs, swf_morph_shape_with_style_t *color); -extern int swf_morph_shape_with_style_build(bitstream_t *bs, swf_morph_shape_with_style_t *color); -extern int swf_morph_shape_with_style_print(swf_morph_shape_with_style_t *color, int indent_depth); +extern int swf_morph_shape_with_style_parse(bitstream_t *bs, + swf_morph_shape_with_style_t *morph_shape_with_style, + swf_tag_t *tag); +extern int swf_morph_shape_with_style_build(bitstream_t *bs, + swf_morph_shape_with_style_t *morph_shape_with_style); +extern int swf_morph_shape_with_style_print(swf_morph_shape_with_style_t *morph_shape_with_style, + int indent_depth); #endif /* __SWF_MORPH_SHAPE_WITH_STYLE_H__ */ Added: trunk/src/swf_shape_record.c =================================================================== --- trunk/src/swf_shape_record.c (rev 0) +++ trunk/src/swf_shape_record.c 2009-06-03 12:52:07 UTC (rev 138) @@ -0,0 +1,20 @@ +#include <stdio.h> +#include "bitstream.h" +#include "swf_shape_record.h" + +swf_shape_record_parse(bitstream_t *bs, swf_shape_record_t *shape_record) { + ; + return 0; +} + +int +swf_shape_record_build(bitstream_t *bs, swf_shape_record_t *shape_record) { + ; + return 0; +} + +int +swf_shape_record_print(swf_shape_record_t *shape_record, int indent_depth) { + ; + return 0; +} Added: trunk/src/swf_styles_count.c =================================================================== --- trunk/src/swf_styles_count.c (rev 0) +++ trunk/src/swf_styles_count.c 2009-06-03 12:52:07 UTC (rev 138) @@ -0,0 +1,20 @@ +#include <stdio.h> +#include "bitstream.h" +#include "swf_styles_count.h" + +swf_styles_count_parse(bitstream_t *bs, swf_styles_count_t *styles_count) { + ; + return 0; +} + +int +swf_styles_count_build(bitstream_t *bs, swf_styles_count_t *styles_count) { + ; + return 0; +} + +int +swf_styles_count_print(swf_styles_count_t *styles_count, int indent_depth) { + ; + return 0; +}