METHOD AND APPARATUS FOR COMPRESSING A REFERENCE FRAME IN ENCODING/DECODING MOVING IMAGES
First Claim
1. A method for compressing a reference frame in encoding or decoding moving images, the method comprising:
- dividing a reference frame to be compressed into basic processing blocks;
dividing the basic processing blocks into sub-blocks;
calculating and storing a maximum value and a minimum value of pixels within each sub-block;
obtaining a necessary bit length needed for compression of each sub-block based on a difference between the maximum value and the minimum value;
calculating an average bit length of the sub-blocks within the basic processing block based on the calculated necessary bit lengths of the sub-blocks;
variably allocating bits to each sub-block by adjusting the necessary bit length of each sub-block so that the average bit length of the sub-blocks within a corresponding basic processing block is less than or equal to a preset required bit length to be allocated to a pixel within the corresponding basic processing block; and
compressing each sub-block to the allocated bits.
1 Assignment
0 Petitions
Accused Products
Abstract
Provided is a method of compressing a reference frame in encoding or decoding moving images. A reference frame to be compressed is divided into basic processing blocks. The basic processing blocks are divided into sub-blocks. A maximum value and a minimum value of pixels within each sub-block are calculated. A necessary bit length needed for compression of each sub-block is obtained based on a difference between the maximum value and the minimum value. An average bit length of the sub-blocks within the basic processing block is calculated based on the calculated necessary bit lengths of the sub-blocks. Bits are variably allocated to each sub-block by adjusting the necessary bit length of each sub-block so that the average bit length of the sub-blocks within a corresponding basic processing block is less than or equal to a preset required bit length. Each sub-block is compressed to the allocated bits.
10 Citations
12 Claims
-
1. A method for compressing a reference frame in encoding or decoding moving images, the method comprising:
-
dividing a reference frame to be compressed into basic processing blocks; dividing the basic processing blocks into sub-blocks; calculating and storing a maximum value and a minimum value of pixels within each sub-block; obtaining a necessary bit length needed for compression of each sub-block based on a difference between the maximum value and the minimum value; calculating an average bit length of the sub-blocks within the basic processing block based on the calculated necessary bit lengths of the sub-blocks; variably allocating bits to each sub-block by adjusting the necessary bit length of each sub-block so that the average bit length of the sub-blocks within a corresponding basic processing block is less than or equal to a preset required bit length to be allocated to a pixel within the corresponding basic processing block; and compressing each sub-block to the allocated bits. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. An apparatus for compressing a reference frame in encoding or decoding moving images, the apparatus comprising:
-
a maximum/minimum value calculating unit which divides a reference frame to be compressed into basic processing blocks, divides the basic processing blocks into sub-blocks, and calculates a maximum value and a minimum value of pixels within each sub-block; a maximum/minimum value storing unit which stores the calculated maximum and minimum values of each sub-block; a sub-block bit calculating unit which determines a necessary bit length needed for compression of each sub-block based on a difference between the calculated maximum value and the minimum value, and calculates an average necessary bit length of the sub-blocks within a corresponding basic processing block, based on the calculated necessary bit lengths of the sub-blocks; a bit allocating unit which variably allocates bits to each sub-block by adjusting the necessary bit length of the sub-blocks so that the average bit length of the sub-blocks within the corresponding basic processing block is less than or equal to a required bit length predefined for compression to be allocated to a pixel in the basic processing block, and compresses images to the allocated bits; and a reference frame storing unit which stores the compressed reference frame. - View Dependent Claims (8, 9, 10, 11, 12)
-
Specification