サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
デスク環境を整える
www.kk.iij4u.or.jp/~kondo
バイトオーダの変換方法 x86 系の CPU では, 最下位バイトが最初のアドレスに,最上位バイトが最後のアドレスに記憶されます。 「逆順」,LSB First (Least Significant Byte First),Little Endian などと言われています。 逆に多くの RISC CPU (SPARC, ,PPC, 68k など)では, 最上位バイトが最初のアドレスに,最下位バイトが最後のアドレスに記憶されます。 「正順」,MSB First (Most Significant Byte First),Big Endian などと言われています。 数値 正順 逆順 char 12 12 12 int 1234 12 34 34 12 long 12345678 12 34 56 78 78 56 34 12 バイトオーダの確認方法 例 #include <stdio.h>
'fmt ' チャンク構造体 #define FormatID 'fmt ' /* chunkID for Format Chunk. NOTE: There is a space at the end of this ID. */ typedef struct { ID chunkID; long chunkSize; short wFormatTag; unsigned short wChannels; unsigned long dwSamplesPerSec; unsigned long dwAvgBytesPerSec; unsigned short wBlockAlign; unsigned short wBitsPerSample; /* Note: there may be additional fields here, depending upon wFormatTa
近藤正芳のウェブページ これまでに 104899 人がいらっしゃいました 自己紹介 FOAF (2006/Jan/23) 最近のこと (ほぼ毎日更新予定) WAV ファイルフォーマット (2006/Feb/11) BMP ファイルフォーマット (2002/Feb/11) リンク (2004/Oct/23) ブラームス交響曲第1番の冒頭 (2000/Nov/05) 幻想交響曲の鐘 (2000/Dec/17) このページに関するご意見、ご感想はこちらへ kondo@kk.iij4u.or.jp
BMP ファイルフォーマット BMP フォーマットは,DIB (Device Independent Bitmap) にヘッダを付けた形式になっていて,ヘッダの種類によって Windows Bitmap OS/2 Bitmap の2種類があります。 Windows, OS/2 のフォーマットは,ヘッダサイズのサイズが異なっています。
WAVE File Format WAVE File Format is a file format for storing digital audio (waveform) data. It supports a variety of bit resolutions, sample rates, and channels of audio. This format is very popular upon IBM PC (clone) platforms, and is widely used in professional programs that process digital audio waveforms. It takes into account some pecularities of the Intel CPU such as little endian byte or
このページを最初にブックマークしてみませんか?
『http://www.kk.iij4u.or.jp/~kondo/』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く