• The added line is THIS COLOR.
  • The deleted line is THIS COLOR.
TITLE:SWF Editor for PHP
CENTER:''SWF Editor for PHP (作成途中)''
RIGHT:(c) 2008/03/09- yoya@awm.jp

* 目的 [#purpose]

- とりあえず画像の入れ替え

* 設計 [#design]

- PHP extension (php 5.1.6 ← CentOS 5 の yum の対応バージョンがそれなので…)
- bit stream 処理は自作 (もしイイのがあったら誰か教えて…)
- CWF (zlib 圧縮) 対応は後回し (でも、後で対応できるように)

** API [#api]

 class SWFEditor {
      function parse(string swddata) return true/false;
      function build()               return string swfdata;
      function getTagList();
                                     return array(tagid => size, ...)
      function getTagData(integer seqno);
                                     return string tagdata;
      function getJpegData(integer jpegid)
                                     return string jpegdata;
      function getJpegAlpha(integer jpegid)
                                     return string alphadata;
      function replaceJpeg(integer jpegid, string jpegdata[,string alphadata])
                                     return true/false;
      function swfInfo()             return ; // print swfInfo
 }

- parse と build のネーミングが微妙…

* 参考 [#ref]
- http://sswf.sourceforge.net/SWFalexref.html
-- http://www.m2osw.com/swf_alexref.html
- http://www.swftools.org/
- [http://diary.awm.jp/~yoya/?2008021&to=200802132#200802132 FlashSWF alpha データ抽出@Yoya's diary]
- PHP Extension を作ろう @ KLab
-- [http://dsas.blog.klab.org/archives/50777398.html 第1回 - まずは Hello World]
-- [http://dsas.blog.klab.org/archives/50782987.html 第2回 - 引数と返値]
-- [http://dsas.blog.klab.org/archives/50903613.html 第3回 - クラスを作ろう]

- PHP拡張モジュールでクラス定義
--  http://diary.eth.jp/?date=20080131#p01
* 未参考 [#noref]

- SWF::Parser - SWFファイルをパース 
-- http://perldoc.jp/docs/modules/SWF-File-0.20/Parser.pod
- PECL swf
-- http://cvs.php.net/viewvc.cgi/pecl/swf/

* 関連ページ [#rel]

- Flash SWF バイナリ ([[Flash/SWF]])


Reload   Diff   Front page List of pages Search Recent changes Backup Referer   Help   RSS of recent changes