
41
CHAPTER 1 OVERVIEW
1.3 OUTLINE OF SYSTEM
1.3.1 Major Functions
(1) Sampling ratio
The following four sampling ratios are supported.
4:1:1 [H:V = 2:2] (The screen size is a multiple of 16 both vertically and horizontally.)
4:1:1 [H:V = 4:1] (The screen size is a multiple of 32 horizontally, and of 8 vertically.)
2:1:1 [H:V = 2:1] (The screen size is a multiple of 16 horizontally, and of 8 vertically.)
1:1:1 [H:V = 1:1] (The screen size is a multiple of 8 both vertically and horizontally.)
(2) VRAM and coordinates (x, y)
The libraries do not include a VRAM access function. This function is hardware-dependent such that the
user must, therefore, describe the VRAM access function according to the system (C can be used).
For VRAM that can be accessed by an LD.B or ST.B instruction, however, default routines are provided
as libraries.
Assuming VRAM specification for both YCbCr and RGB, an image can be expanded at any point in VRAM
and can be compressed at any point in VRAM.
(3) Quantization table
Specify two sides of the quantization table that can be set.
A default quantization table is provided for compression, but a user-defined quantization table can also
be used. A quantization parameter (Quality) is also provided. Setting this parameter to a value of between
0 and 100 causes all values in the quantization tables to be multiplied by a constant, such that the values
of the elements will be within the range of 1 to 255. (To use the quantization tables as is, specify 50 for
the quantization parameter.)
The value written to the DQT header is used for expansion.
(4) Huffman table
Specify four sides of the Huffman table that can be set.
A default Huffman table is provided for compression, but a user-defined Huffman table can also be used.
The value written to the DHT header is used for expansion.
(5) Restart marker
Whether restart markers are to be used can be specified for compression. If they are used, the restart
interval can be changed.
The value of the DRI header is used for expansion.
(6) APPn segment
The insertion of an APPn segment can be specified for compression.
Although APPn segments are ignored during expansion, their locations can be detected.