svnno****@sourc*****
svnno****@sourc*****
2011年 3月 29日 (火) 22:32:31 JST
Revision: 487 http://sourceforge.jp/projects/swfed/svn/view?view=rev&revision=487 Author: yoya Date: 2011-03-29 22:32:31 +0900 (Tue, 29 Mar 2011) Log Message: ----------- swfInfo の Shape 表示に bitmap_ref 追加 (動作未確認) Modified Paths: -------------- trunk/src/php_swfed.c -------------- next part -------------- Modified: trunk/src/php_swfed.c =================================================================== --- trunk/src/php_swfed.c 2011-03-29 07:12:51 UTC (rev 486) +++ trunk/src/php_swfed.c 2011-03-29 13:32:31 UTC (rev 487) @@ -459,6 +459,7 @@ swf_tag_sprite_detail_t *tag_sprite; swf_tag_shape_detail_t *tag_shape; swf_tag_place_detail_t *tag_place; + zval *data = NULL; case 6: // DefineBitsJPEG case 21: // DefineBitsJPEG2 case 35: // DefineBitsJPEG3 @@ -536,6 +537,18 @@ add_assoc_long(return_value, "fill_styles.count", tag_shape->shape_with_style.styles.fill_styles.count); add_assoc_long(return_value, "line_styles.count", tag_shape->shape_with_style.styles.line_styles.count); // tag_shape->shape_with_style.shape_records + int *bitmap_id_list, bitmap_id_list_num; + bitmap_id_list = swf_tag_shape_bitmap_get_refcid_list(tag, &bitmap_id_list_num); + if (bitmap_id_list) { + int i; + ALLOC_INIT_ZVAL(data); + array_init(data); + for (i = 0 ; i < bitmap_id_list_num ; i++) { + add_index_long(data, i , bitmap_id_list[i]); + } + add_assoc_zval(return_value, "bitmap_ref", data); + free(bitmap_id_list); + } break; case 4: // PlaceObject case 26: // PlaceObject2