9 Data Streams (データストリーム)
9.4 Image Streams (画像ストリーム)
9.4.7 Arbitrary Image Stream (任意形状画像ストリーム)
9.4.7.1 Transmission Rules (伝送規則)
Each line in the image can have a different horizontal offset with respect to the to the left hand pixel of the full Device image.
Each pixel in the image is the same type (e.g. color, mono etc).
The image can be progressive scan or interlaced.
The image can be Area Scan or Line Scan.
Comment: Successive images in the stream can have different numbers of lines per frame, because they have their own image header.
任意形状画像は以下のようなものとして定義される:
画像を送る前からデバイスがフレーム毎のライン数を把握しており,ヘッダを生成できる。
画像を送る前からデバイスがライン毎の画素数を把握しており,ラインマーカを生成できる。
画像の各ラインが異なる幅となる可能性がある。
画像の各ラインが全デバイス画像の左端を基点として異なる水平オフセットをもつ可能性がある。
画像の各ピクセルが同じタイプ(例:カラー,白黒,ほか)である。
画像がプログレッシブまたはインターレースのいずれかになり得る。
画像がエリアスキャンまたはラインスキャンのいずれかになり得る。
コメント: 各画像はヘッダをもつため,ストリーム内で連続する画像をフレーム毎にそれぞれ異なるライン数とすることもできる
<CAN>。
The following rules shall be used to form an arbitrary image stream from an area scan Device:
An arbitrary image header shall be sent before the first line of each area scan image.
Comment: The header therefore acts as a frame marker. The header contains critical information needed by the Host to decode succeeding image line data. The contents of the header are therefore redundantly encoded to guarantee proper decoding in case of a single bit error during transmission.
An arbitrary line marker shall be sent before each line.
Image data shall not be packed across line boundaries. Therefore the first pixel of a new line shall be stored into P0. See section 9.4.2.
以下の規則はエリアスキャンのデバイスから任意形状画像ストリームを形成する場合に使用すること<SHALL>:
任意形状画像のヘッダはエリアスキャンのデバイスから得る最初のラインより先行して送る<SHALL>。
コメント: このヘッダは結果的にフレームマーカとしての役目を担う。ヘッダはホストが連続した画像ラインデータをデコード するのに必要になる重要な情報を含んでいる。伝送中にシングルビットエラーが発生した場合に正しいデコードを 保証するため,ヘッダの内容は冗長エンコードされる。
任意形状画像のラインマーカは各ラインより先行して送る<SHALL>。
画像データはライン境界をまたがって格納してはならない<SHALL NOT>。したがって新しいラインの最初の 画素は必ずP0 にストアすること<SHALL>。セクション9.4.2 を参照。
The following rules shall be used to form an arbitrary image stream from a line scan Device:
An arbitrary image header shall be sent before the first line from a line scan Device. Subsequent lines can be preceded by an arbitrary line marker or an arbitrary image header.
Comment: The line marker reduces overhead, particularly with short lines.
Additionally, a line scan Device shall send a header at least every 200ms, or once per line if the time between lines is more than 200ms.
Comment: This allows recovery in the event that serious multiple bit errors corrupt the initial header.
Image data shall not be packed across line boundaries. Therefore the first pixel of a new line shall be stored into P0. See section 9.4.2.
以下の規則はラインスキャンのデバイスから任意形状画像ストリームを形成する場合に使用すること<SHALL>:
任意形状画像のヘッダはラインスキャンのデバイスから得る最初のラインより先行して送る<SHALL>。次のライ ンからは任意形状画像ラインマーカまたは任意形状画像ヘッダをラインより先行して送ることもできる<CAN>。 コメント: ラインマーカは特に短いラインにてオーバーヘッドを減少させる。
さらに,ラインスキャンのデバイスは少なくとも 200ms 毎(1 ラインが 200ms 以上である場合はライン毎に 1 回)
ヘッダを送信する<SHALL>。
コメント: これは深刻なマルチビットエラーが発生して最初のヘッダを壊してしまった場合に修復を可能にするためのもので ある。
画像データはライン境界をまたがって格納してはならない<SHALL NOT>。したがって新しいラインの最初の 画素は必ずP0 にストアすること<SHALL>。セクション9.4.2を参照。