These pages are written by only Japanese.

Welcom to My Diary.com
最新の日記タイトル一覧カテゴリ別タイトル一覧トップへ戻る〜

こんばんわ♪ 現在は5月1日(水)0時52分。 日付が変わりました。


hns - 日記自動生成システム - Version 2.19.5 (色々 Fixed)

先月 2009年01月 来月
01 02 03
04 05 06 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Namazu for hns による簡易全文検索です。
詳細は 詳細指定/ヘルプをご参照下さい。
検索式:

2009年01月29日(木)

swf_file_format_spec_v10.pdf を読んでみた

何気なく SWF の公式サイトを覗いてみたら、
SWF File Format Specification (Version 10)
何時の間にか *1 Version 10 が出てました。
 The SWF 10 specification expands text capabilities with support for
bidirectional text and complex scripts with the new DefineFont4 tag.
 The DefineBitsJPEG4 tag allows embedding JPEG images that have an alpha
channel for opacity and also a smoothing filter.
 SWF 10 also adds support for the free and open-source Speex voice codec and
for higher frequencies in the existing Nellymoser codec.
という事なので、拡張されたものを箇条書きにすると の3点になります。

DefineBitsJPEG4:

個人的に気になるのは、DefineBitsJPEG4 なので熟読しました。
DefineBitsJPEG3 の AlphaDataOffset(透明度データフィールドの場所) と ImageData(透明度を含まないRGBの画像データ)の間に DeblockParam (2byte) が入るのが DefineBitsJPEG4 です。
- DeblockParam 
- UI16
    Parameter to be fed into the deblocking filter.
  The parameter describes a relative strength of the deblocking filter
  from 0-100% expressed in a normalized 8.8 fixed point format.
を元に説明すると、DefineBitsJPEG3 は、
+---------------------------------------------------------------
| tag | length |    length    |  image_id | offset_to_alpha | ..
|  35 |  0x3f  |              |           |                 |
+---------------------------------------------------------------
<-- 2 bytes --> <-  4 bytes -> <-2 bytes-> <--  4 bytes -->
                               <--- length (最後まで)  ---
 ---+------------------------------+-------------------+
 .. | encoding_tables | image_data |   alpha(zlib圧縮) |
 ---+------------------------------+-------------------+
     <--    offse_to_alpha      --> <-contents 残り全部->
で、DefineBitsJPEG4 は、
+---------------------------------------------------------------
| tag | length |    length    |  image_id | offset_to_alpha | ..
|  35 |  0x3f  |              |           |                 |
+---------------------------------------------------------------
<-- 2 bytes --> <-  4 bytes -> <-2 bytes-> <--  4 bytes -->
                               <--- length (最後まで)  ---
 ---+-------------+-----------------+------------+-------------------+
 .. |deblock_param| encoding_tables | image_data |   alpha(zlib圧縮) |
 ---+-------------+-----------------+------------+-------------------+
     <- 2 bytes ->                               <-contents 残り全部->
     <------------ offset_to_alpha ------------->
となります。 Wiki に早速追記 ↓ deblock_param は deblocking filter の値で、デブロッキングフィルタは、 ブロックノイズの発生を抑えるのに H.264 で使われている技術だそうです。
さらに、「デブロッキング・フィルタ」は、圧縮によって歪んでしまった画像の
見栄えを向上させます。デジタル圧縮の際に画像をブロックごとに区切って扱うと、
ブロックごとに色や輝度が違ってしまうために、人間の目には、機械が区切った
ブロックが判別できてしまいます。これは俗にブロックノイズと呼ばれるのですが、
デブロッキング・フィルタでは、隣り合った2つのブロックが自然につながるように
画像を調整します。この仕組みによって、高い圧縮率で縮めたデータでも鑑賞できる
画像を作り出せるのです。
なるほど。概要は理解。
自分はフラッシュプレイヤーを作るわけではないので、 とりあえず今回増えた値の意味が分かればいいって事にしておきます。

もっと細かい差分:

結構色々と、機能や仕様が fix されてます。

*1: 実は去年の11月に出てたので浦島すぎるのですが、自分が気づいたのは今日なので… アンテナ低w
*2: 具体的には、ヘブライ語、アラビア語みたいに文字を左方向に読むのとか、 タイ語みたいに色んな方向に続く文字まで表現できます。
*3: フリーのボイス向け音声コーデック

これで、1 日分だよ〜。

タイトル一覧
カテゴリ分類
Database
JXTA
Java
XML
awm
bookmark
keyword
memo
news
research
Powered by hns-2.19.5, HyperNikkiSystem Project