# US 2013/0257634 A1 · Data Encoding and Decoding Method and Device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0257634 A1
- Document ID: US20130257634A1
- Status: Published application
- Kind: A1
- Application number: 13/855,730
- Filed: 2013-04-03
- Published: 2013-10-03
- Earliest claimed: 2012-04-03
- Assignees: Novatek Microelectronics Corp.
- Applicants: Novatek Microelctronics Corp.
- Inventors: Yu-Hsiang Wang; Po-Hsiang Fang
- Web page: https://patentgrep.com/patent/US20130257634A1

## CPC

- H03M 7/40: Conversion to or from variable length codes, e.g. Shannon-Fano code, Huffman code, Morse code
- H03M 5/145: {Conversion to or from block codes or representations thereof}
- H03M 7/46: Conversion to or from run-length codes, i.e. by representing the number of consecutive digits, or groups of digits, of the same kind by a code word and a digit indicative of that kind
- H03M 7/6011: {Encoder aspects}
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

An encoding method includes receiving a first data with a first length; dividing the first data into a plurality of data segments with a first specific length; obtaining at least one compressible data segment composed of identical data values if it exists and at least one uncompressible data segment composed of non-identical data values if it exists from the plurality of data segments; compressing the at least one compressible data segment to obtain at least one compressed data segment with a second specific length; generating an encoding data segment according to quantity and position of the at least one compressed data segment; and combining the at least one compressed data segment, the at least one uncompressible data segment and the encoding data segment to generate a second data with a second length, wherein the second specific length is shorter than the first specific length.

## Claims

### Claim 1

An encoding method, comprising:
receiving a first data with a first length;
dividing the first data into a plurality of data segments with a first specific length;
obtaining at least one compressible data segment composed of identical data values if it exists and at least one uncompressible data segment composed of non-identical data values if it exists from the plurality of data segments;
compressing the at least one compressible data segment to obtain at least one compressed data segment with a second specific length if it exists;
generating an encoding data segment according to quantity and position of the at least one compressed data segment; and
combining the compressed data segment, the uncompressible data segment and the encoding data segment to generate a second data with a second length;
wherein the second specific length is shorter than the first specific length.

### Claim 2 (depends on 1)

The encoding method of claim 1, wherein the step of compressing the at least one compressible data segment to obtain the at least one compressed data segment with the second specific length if it exists comprises:
compressing the identical data values with the first specific length in the at least one compressible data segment into data values of which a length is the second specific length or a complement of the data values respectively, to obtain the at least one compressed data segment if it exists.

### Claim 3 (depends on 1)

The encoding method of claim 1, wherein the step of compressing the at least one compressible data segment to obtain the at least one compressed data segment with the second specific length if it exists comprises:
compressing the identical data values with the first specific length in the at least one compressible data segment into the data values of which a length is the second specific length minus one respectively, and adding a complement data value of the data values behind the data values, to obtain the at least one compressed data segment if it exists.

### Claim 4 (depends on 1)

The encoding method of claim 1, wherein a data length of the encoding data segment is equal to a sum of at least one additional bit and the first length minus a total data length of the at least one compressible data segment and the at least one uncompressible data segment.

### Claim 5 (depends on 1)

The encoding method of claim 1, wherein the step of combining the at least one compressed data segment if it exists, the at least one uncompressible data segment if it exists and the encoding data segment to generate the second data comprises:
replacing consecutive identical data values with another specific data segment, when the consecutive identical data values appear on an end of data over the first specific length obtained by combining the at least one compressed data segment, the at least one uncompressible data segment and the encoding data segment, to generate the second data.

### Claim 6

An encoding device, comprising:
a processor; and
a storage device, storing a program code, the program code is utilized for indicating the processor to execute the following steps:
receiving a first data with a first length;
dividing the first data into a plurality of data segments with a first specific length;
obtaining at least one compressible data segment composed of identical data values if it exists and at least one uncompressible data segment composed of non-identical data values if it exists from the plurality of data segments;
compressing the at least one compressible data segment to obtain at least one compressed data segment with a second specific length if it exists;
generating an encoding data segment according to quantity and position of the at least one compressed data segment; and
combining the at least one compressed data segment, the at least one uncompressible data segment and the encoding data segment to generate a second data with a second length;
wherein the second specific length is shorter than the first specific length.

### Claim 7 (depends on 6)

The encoding device of claim 6, wherein the processor compresses the identical data values with the first specific length in the at least one compressible data segment into data values of which a length is the second specific length or a complement of the data values respectively, to obtain the at least one compressed data segment if it exists.

### Claim 8 (depends on 6)

The encoding device of claim 6, wherein the processor compresses the identical data values with the first specific length in the at least one compressible data segment into the data values of which a length is the second specific length minus one respectively, and adding a complement data value of the data values behind the data values, to obtain the at least one compressed data segment if it exists.

### Claim 9 (depends on 6)

The encoding device of claim 6, wherein a data length of the encoding data segment is equal to a sum of an additional bit and the first length minus a total data length of the at least one compressible data segment and the at least one uncompressible data segment.

### Claim 10 (depends on 6)

The encoding device of claim 6, wherein the processor replaces consecutive identical data values with another specific data segment, when the consecutive identical data values appear on an end of data over the first specific length obtained after the processor combines the at least one compressed data segment, the at least one uncompressible data segment and the encoding data segment, to generate the second data.

### Claim 11

A decoding method, comprising:
receiving a second data with a second length;
obtaining an encoding data segment of the second data;
obtaining at least one compressed data segment with a second specific length if it exists and at least one uncompressible data segment with a first specific length if it exists from the second data according to the encoding data segment;
restoring the at least one compressed data segment to at least one compressible data segment with the first specific length and identical data values if it exists; and
combining the at least one compressible data segment if it exists and the at least one uncompressible data segment if it exists with the first specific length, to generate a first data with a first length;
wherein the second specific length is shorter than the first specific length.

### Claim 12 (depends on 11)

The decoding method of claim 11, wherein the step of restoring the at least one compressed data segment to the at least one compressible data segment with the first specific length if it exists and the identical data values comprises:
obtaining a data value of each compressed data segment of the at least one compressed data segment respectively, and consecutive data values with the first specific length are used for composing the at least one compressible data segment, wherein each of the consecutive data values is equal to the data value or a complement of the data value.

### Claim 13 (depends on 11)

The decoding method of claim 11, wherein the step of restoring the at least one compressed data segment to the at least one compressible data segment with the first specific length if it exists and the identical data values comprises:
obtaining a data value and a complement data value of each compressed data segment of the at least one compressed data segment respectively, and consecutive data values with the first specific length are used for composing the at least one compressible data segment, wherein each of the consecutive data values is equal to the data value or a complement of the data values.

### Claim 14 (depends on 11)

The decoding method of claim 11, wherein the encoding data segment is utilized for indicating the quantity and position of the at least one compressed data segment in the first data, and a data length of the encoding data segment is equal to a sum of an additional bit and the first length minus a total data length of the at least one compressible data segment and the at least one uncompressible data segment.

### Claim 15 (depends on 11)

The decoding method of claim 11, wherein the step of receiving the second data with the second length comprises:
replacing a specific data segment with a data segment of consecutive identical data values with the first specific length, when an end of the second data is the specific data segment.

### Claim 16

A decoding device, comprising:
a processor; and
a storage device, storing a program code, the program code is utilized for indicating the processor to execute the following steps:
receiving a second data with a second length;
obtaining an encoding data segment of the second data;
obtaining at least one compressed data segment with a second specific length if it exists and at least one uncompressible data segment with a first specific length if it exists from the second data according to the encoding data segment;
restoring the at least one compressed data segment to at least one compressible data segment with the first specific length and identical data values if it exists; and
combining the at least one compressible data segment and the at least one uncompressible data segment with the first specific length, to generate a first data with a first length;
wherein the second specific length is shorter than the first specific length.

### Claim 17 (depends on 16)

The decoding device of claim 16, wherein the processor obtains a data value of each compressed data segment of the at least one compressed data segment if it exists respectively, and consecutive data values with the first specific length are used for composing the at least one compressible data segment, wherein each of the consecutive data values is equal to the data value or a complement of the data values.

### Claim 18 (depends on 16)

The decoding device of claim 16, wherein the processor obtains a data value and a complement data value of each compressed data segment of the at least one compressed data segment if it exists respectively, and consecutive data values with the first specific length are used for composing the at least one compressible data segment, wherein each of the consecutive data values is equal to the data value or a complement of the data values.

### Claim 19 (depends on 16)

The decoding device of claim 16, wherein the encoding data segment is utilized for indicating the quantity and position of the at least one compressed data segment in the first data, and a data length of the encoding data segment is equal to a sum of an additional bit and the first length minus a total data length of the at least one compressible data segment and the at least one uncompressible data segment.

### Claim 20 (depends on 16)

The decoding device of claim 16, wherein the processor replaces a specific data segment with a data segment of consecutive identical data values with the first specific length, when an end of the second data is the specific data segment.
