Image information encoding/decoding system
First Claim
1. A method of encoding an integral body of information which is formed of a plurality of pixel data, each defined by a predetermined number of bits, wherein a data block, containing same continuous pixel data, is compressed as one unit of compression, the integral body of information being arranged on a data line of a finite bit length, the method comprising:
- specifying the data block of the one compression unit of the integral body of information;
generating a compressed unit data block in accordance with a coding header corresponding to a continuing number of the same pixel data in the data block of the one compression unit, with a number of pixels followed indicating the continuing number of the same pixel data, and with data representing the same pixel data in the data block of the one compression unit, the generating of the compressed unit data block including;
assigning no bits to the coding header when a data length of the continuing number of the same pixel data is not greater than four, andassigning at least two but less than a predetermined number of bits to the coding header when the data length of the continuing number of the same pixel data is equal to or greater than four but less than a prescribed number;
constituting the coding header by a specific number of bits which indicates that the same pixel data continues up to an end of the data line, when the same pixel data in the data block of one unit of compression continues up to the end of the data line; and
adding dummy bit data to the data block of the one compression unit so that a total bit length of at least one data block of the one compression unit becomes a multiple of eight bits, if the total bit length is not a multiple of eight when generation of the data block of the one compression unit on the data line is completed, whereinsaid integral body of information includes a specific header comprising information of a size of said integral body of information.
1 Assignment
0 Petitions
Accused Products
Abstract
A bit train of a plurality of continuous pixels is compressed according to a new run-length compression scheme. In this run-length compression scheme, the run information of one unit of compression includes run-length information indicating the continuous number of the same pixel data blocks, or the number of pixels followed, and pixel data having a two-bit configuration for discriminating three or more colors of the pixels.
-
Citations
3 Claims
-
1. A method of encoding an integral body of information which is formed of a plurality of pixel data, each defined by a predetermined number of bits, wherein a data block, containing same continuous pixel data, is compressed as one unit of compression, the integral body of information being arranged on a data line of a finite bit length, the method comprising:
-
specifying the data block of the one compression unit of the integral body of information; generating a compressed unit data block in accordance with a coding header corresponding to a continuing number of the same pixel data in the data block of the one compression unit, with a number of pixels followed indicating the continuing number of the same pixel data, and with data representing the same pixel data in the data block of the one compression unit, the generating of the compressed unit data block including; assigning no bits to the coding header when a data length of the continuing number of the same pixel data is not greater than four, and assigning at least two but less than a predetermined number of bits to the coding header when the data length of the continuing number of the same pixel data is equal to or greater than four but less than a prescribed number; constituting the coding header by a specific number of bits which indicates that the same pixel data continues up to an end of the data line, when the same pixel data in the data block of one unit of compression continues up to the end of the data line; and adding dummy bit data to the data block of the one compression unit so that a total bit length of at least one data block of the one compression unit becomes a multiple of eight bits, if the total bit length is not a multiple of eight when generation of the data block of the one compression unit on the data line is completed, wherein said integral body of information includes a specific header comprising information of a size of said integral body of information. - View Dependent Claims (2)
-
-
3. A method of decoding a bit train of a unit of a compressed data block, which is obtained by compressing same continuous pixel data as one unit of compression, wherein the compressed data block corresponds to at least part of an integral body of information formed by a plurality of pixel data each defined by a predetermined number of bits, wherein the integral body of information is arranged on a finite length data line corresponding to at least part of a horizontal scanning line of a TV display, and wherein the compressed data block includes either a coding header indicating data of a number of pixels followed, which number data corresponds to the number of the same continuous pixel data, or a coding header indicating the number data of pixels followed as well as the same continuous pixel data, the decoding method comprising:
-
obtaining a specific header having size information of the integral body of information; determining a size of the integral body of information in accordance with the size information of said specific header; detecting the coding header from the data block of the one compression unit contained in the integral body of information; detecting the number data of the pixels followed, from the data block of the one compression unit, in accordance with a content of the coding header detected by the coding header detecting step; determining a content of the pixel data in an uncompressed data block of the one compression unit, in accordance with a remainder of the data block of the one compression unit, from which removed are the coding header detected by the coding header detecting step and the number of the pixels followed detected by the continuous pixel number detecting step; arranging bit data of the content determined by the pixel data determining step, by a number indicated by the number data of the pixels followed detected by the continuous pixel number detecting step, so as to restore a pattern of uncompressed pixel data of the one compression unit; and removing a dummy bit data when a total bit length of all of the data blocks of the one compression unit have been adjusted to a multiple of eight bits by adding the dummy bit data.
-
Specification