チェンジセット 51

差分発生行の前後
無視リスト:
コミット日時:
2007/08/26 19:38:35 (6 年前)
コミッタ:
munegon
ログメッセージ:

--

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • munegon/as3/src/com/voidelement/images/BMPDecoder.as

    r50 r51  
    8686                 
    8787                /** 
    88                  * コンストラクタ 
     88                 * �R���X�g���N�^ 
    8989                 */ 
    9090                public function BMPDecoder() { 
     
    9696                 
    9797                /** 
    98                  * デコード 
     98                 * �f�R�[�h 
    9999                 *  
    100                  * @param デコードしたいBMPファイルのバイナリデータ 
     100                 * @param �f�R�[�h������BMP�t�@�C���̃o�C�i���f�[�^ 
    101101                 */ 
    102102                public function decode( data:ByteArray ):BitmapData { 
     
    166166                 
    167167                /** 
    168                  * BITMAP FILE HEADER 読み込み 
     168                 * BITMAP FILE HEADER �ǂݍ��� 
    169169                 */ 
    170170                private function readFileHeader():void { 
     
    190190                 
    191191                /** 
    192                  * BITMAP CORE HEADER 読み込み  
     192                 * BITMAP CORE HEADER �ǂݍ��� 
    193193                 */ 
    194194                private function readCoreHeader():void { 
     
    210210                 
    211211                /** 
    212                  * BITMAP INFO HEADER 読み込み 
     212                 * BITMAP INFO HEADER �ǂݍ��� 
    213213                 */ 
    214214                private function readInfoHeader():void { 
     
    236236                 
    237237                /** 
    238                  * 拡張 BITMAP INFO HEADER 読み込み 
     238                 * �g�� BITMAP INFO HEADER �ǂݍ��� 
    239239                 */ 
    240240                private function readExtendedInfoHeader():void { 
     
    267267                 
    268268                /** 
    269                  * ビットフィールド読み込み 
     269                 * �r�b�g�t�B�[���h�ǂݍ��� 
    270270                 */ 
    271271                private function readBitFields():void { 
     
    295295                 
    296296                /** 
    297                  * カラーパレット読み込み 
     297                 * �J���[�p���b�g�ǂݍ��� 
    298298                 */ 
    299299                private function readColorPalette():void { 
     
    309309                 
    310310                /** 
    311                  * 1bitのBMPデコード 
     311                 * 1bit��MP�f�R�[�h 
    312312                 */ 
    313313                private function decode1BitBMP():void { 
     
    343343                 
    344344                /** 
    345                  * 4bitのRLE圧縮BMPデコード 
     345                 * 4bit��LE���kBMP�f�R�[�h 
    346346                 */ 
    347347                private function decode4bitRLE():void { 
     
    362362                                                 
    363363                                                if ( n > 0 ){ 
    364                                                         // エンコードデータ 
     364                                                        // �G���R�[�h�f�[�^ 
    365365                                                        data = bytes.readUnsignedByte(); 
    366366                                                        for ( i = 0; i < n/2; ++i ){ 
     
    371371                                                         
    372372                                                        if ( n > 0 ){ 
    373                                                                 // 絶対モードデータ 
     373                                                                // �����[�h�f�[�^ 
    374374                                                                bytes.readBytes( buf, buf.length, n/2 ); 
    375375                                                                buf.position += n/2; 
     
    401401                 
    402402                /** 
    403                  * 4bitの非圧縮BMPデコード 
     403                 * 4bit�̔񈳏kBMP�f�R�[�h 
    404404                 */ 
    405405                private function decode4BitBMP():void { 
     
    434434                 
    435435                /** 
    436                  * 8bitのRLE圧縮BMPデコード 
     436                 * 8bit��LE���kBMP�f�R�[�h 
    437437                 */ 
    438438                private function decode8BitRLE():void { 
     
    453453                                                 
    454454                                                if ( n > 0 ){ 
    455                                                         // エンコードデータ 
     455                                                        // �G���R�[�h�f�[�^ 
    456456                                                        data = bytes.readUnsignedByte(); 
    457457                                                        for ( i = 0; i < n; ++i ){ 
     
    462462                                                         
    463463                                                        if ( n > 0 ){ 
    464                                                                 // 絶対モードデータ 
     464                                                                // �����[�h�f�[�^ 
    465465                                                                bytes.readBytes( buf, buf.length, n ); 
    466466                                                                buf.position += n; 
     
    487487                 
    488488                /** 
    489                  * 8bitの非圧縮BMPデコード 
     489                 * 8bit�̔񈳏kBMP�f�R�[�h 
    490490                 */ 
    491491                private function decode8BitBMP():void { 
     
    516516                 
    517517                /** 
    518                  * 16bitのBMPデコード 
     518                 * 16bit��MP�f�R�[�h 
    519519                 */ 
    520520                private function decode16BitBMP():void { 
     
    536536                 
    537537                /** 
    538                  * 24bitのBMPデコード 
     538                 * 24bit��MP�f�R�[�h 
    539539                 */ 
    540540                private function decode24BitBMP():void { 
     
    564564                 
    565565                /** 
    566                  * 32bitのBMPデコード 
     566                 * 32bit��MP�f�R�[�h 
    567567                 */ 
    568568                private function decode32BitBMP():void { 
     
    585585                 
    586586                /** 
    587                  * カラーマスクチェック 
     587                 * �J���[�}�X�N�`�F�b�N 
    588588                 */ 
    589589                private function checkColorMask():void { 
     
    609609                 
    610610                /** 
    611                  * 情報出力 
     611                 * ���o�� 
    612612                 */ 
    613613                public function traceInfo():void {