root/as3/PNG/lib/as/jp/ferv/fileformats/png/PNGFilterType.as

リビジョン 3382, 3.3 kB (コミッタ: dsk, コミット時期: 2 年 前)

PNG ファーストコミット

Line 
1 /**
2  * The MIT License
3  *
4  * Copyright (c) 2010 ferv.jp
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to deal
8  * in the Software without restriction, including without limitation the rights
9  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  * copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in
14  * all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22  * THE SOFTWARE.
23  */
24 package jp.ferv.fileformats.png
25 {
26        
27         /**
28          * PNG フォーマットに定義されているフィルタアルゴリズムを選択するためのフラグです.
29          * フィルタリングは可逆な処理で、 deflate 圧縮の効果を高めることができます。
30          * フィルタリングはバイト配列を冗長化する仕組みで、バイト列の長さを変える仕組みではありません。
31          * OR 論理演算子(|)を使用して、複数のフィルタタイプ値を選択肢として指定することができます。
32          *
33          * @langversion ActionScript 3.0
34          * @playerversion Flash 10.0
35          *
36          * @author dsk
37          * @since 2010/01/07
38          */
39         public class PNGFilterType
40         {
41                
42                 //--------------------------------------
43                 // CLASS CONSTANTS
44                 //--------------------------------------
45                
46                 /**
47                  * フィルタリングを行わず、バイト配列をそのまま転送します.
48                  */
49                 public static const NONE:int  = 0x08;
50                
51                 /**
52                  * 左のピクセルの対応バイトとの差分を転送します.
53                  */
54                 public static const SUB:int   = 0x10;
55                
56                 /**
57                  * 上のピクセルの対応バイトとの差分を転送します.
58                  */
59                 public static const UP:int    = 0x20;
60                
61                 /**
62                  * 左と上のピクセルの対応バイトの平均値との差分を転送します.
63                  */
64                 public static const AVG:int   = 0x40;
65                
66                 /**
67                  * 左・上・左上のピクセルの対応バイトから予測値を計算し、差分を転送します.
68                  */
69                 public static const PAETH:int = 0x80;
70                
71                 /**
72                  * PNG フォーマットのフィルタアルゴリズムに定義されているすべてのフィルタを選択肢とします.
73                  */
74                 public static const ALL:int   = NONE | SUB | UP | AVG | PAETH;
75                
76                
77                 //--------------------------------------
78                 // PRIVATE VARIABLES
79                 //--------------------------------------
80                
81                
82                 //--------------------------------------
83                 // GETTER/SETTERS
84                 //--------------------------------------
85                
86                
87                 //--------------------------------------
88                 // PUBLIC METHODS
89                 //--------------------------------------
90                
91                
92                 //--------------------------------------
93                 // PRIVATE METHODS
94                 //--------------------------------------
95                
96                
97         }
98        
99        
100 }
101
102
103
104
105
106
107
108
109
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。