These pages are written by only Japanese.
|
Namazu for hns による簡易全文検索です。 詳細は 詳細指定/ヘルプをご参照下さい。 |
|||||||||||||||||||||||||||||||||||||||||||||||||
# apt-get install xvfb # apt-gete install freeglut3-dev
% export DISPLAY="localhost:1.0" % /usr/X11R6/bin/Xvfb :1 -screen 0 1024x768x24 &
// glutDisplayFunc('display'); display(); exit(0);実行イメージ。
% php saveimage.php結果の画像
yoya@awm.jp:~/flash$ swfrender negimiku2_mcnest.swf rfxswf: extracting from definebitsjpeg not yet supported
if (tag->id == ST_DEFINEBITSJPEG) { fprintf(stderr, "rfxswf: extracting from definebitsjpeg not yet supported\n"); return 0; }SWF 中の JPEG 画像は変換できません。
pear channel-discover openpear.org pear install openpear/IO_Bit pear install openpear/IO_SWF
% php sample/swfdump.php -f ~/flash/bloxorz.swf -h Signature: CWS Version: 8 FileLength: 3166474 FrameSize: Xmin: 0 Xmax: 550 Ymin: 0 Ymax: 300 FrameRate: 36 FrameCount: 99 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000000 43 57 53 08 0a 51 30 00 78 00 05 5f 00 00 0b b8 CWS Q0 x _ 0x00000010 00 00 24 63 00 $c Tags: Code: 69(FileAttributes) Length: 4 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000010 44 11 00 00 00 00 D Code: 9(SetBackgroundColor) Length: 3 <略>
% php /usr/share/php/sample/swfdump.php -h -f morph.swf <略> Code: 46(DefineMorphShape) Length: 346 ShapeId: 4 StartBounds: Xmin: -44.95 Xmax: 12.55 Ymin: -20.95 Ymax: 21 EndBounds: Xmin: -44.95 Xmax: 12.55 Ymin: -20.95 Ymax: 21 FillStyles: Bigmap(64): BitmapId: 3 StartBitmapMatrix: | 1.000 0.000 | -36.50 | 0.000 1.000 | -38.75 EndBitmapMatrix: | 1.000 0.000 | -36.50 | 0.000 1.000 | -38.75 LineStyles: Witdh: 0 => 0 Color: #000000(00) => #000000(00) StartEdge: ChangeStyle: MoveTo: (-1.95, -18.2) FillStyle: 1|0 LineStyle: 1 StraightEdge: MoveTo: (-9.35, -19.45) <略>SWF Editor for PHP の MC 入れ替えでモーフィング画像の対応をしたのですが、swfmill や swftools でもダンプ出来ないので verify 用に pure PHP で一から実装した次第です。
HEADER: Format:1 TrackCount:9 DivisionFlag:0 Division:480 TRACK[0]: CHUNK[0]: DeltaTime:0 EventType:15 MIDIChannel:15 MetaEventType:3 MetaEventData:akatomb.mid CHUNK[1]: DeltaTime:0 EventType:15 MIDIChannel:15 MetaEventType:84 <略>けど Controller Event の後ろでデータに余りがあるのか、その後ろの chunk オフセットがズレる。どうしてだろう。