Movatterモバイル変換


[0]ホーム

URL:


CN106162201A - A kind of image data compression method based on sign bit packet and device - Google Patents

A kind of image data compression method based on sign bit packet and device
Download PDF

Info

Publication number
CN106162201A
CN106162201ACN201510135467.1ACN201510135467ACN106162201ACN 106162201 ACN106162201 ACN 106162201ACN 201510135467 ACN201510135467 ACN 201510135467ACN 106162201 ACN106162201 ACN 106162201A
Authority
CN
China
Prior art keywords
data
data blocks
sign bit
represent
blocks
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510135467.1A
Other languages
Chinese (zh)
Other versions
CN106162201B (en
Inventor
卢立志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ingenic Semiconductor Co Ltd
Original Assignee
Beijing Ingenic Semiconductor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ingenic Semiconductor Co LtdfiledCriticalBeijing Ingenic Semiconductor Co Ltd
Priority to CN201510135467.1ApriorityCriticalpatent/CN106162201B/en
Publication of CN106162201ApublicationCriticalpatent/CN106162201A/en
Application grantedgrantedCritical
Publication of CN106162201BpublicationCriticalpatent/CN106162201B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

The embodiment of the invention discloses a kind of image data compression method based on sign bit packet and device, relate to technical field of video coding, the absolute value solving the residual error data that existing compress mode obtains is excessive, and then affects the defect of Image Data Compression rate.The image data compression method based on sign bit packet of the present invention includes: residual error data corresponding for view data is decomposed into multiple 2 × 2 data blocks;The data of described 2 × 2 data blocks are carried out the squeeze operation of different modes, 2 × 2 data blocks after being compressed by the composite type of the sign bit according to described 2 × 2 data blocks;2 × 2 data blocks after the multiple compressions that will obtain synthesize, the residual error data after being compressed.

Description

A kind of image data compression method based on sign bit packet and device
Technical field
The present invention relates to technical field of video coding, particularly relate to a kind of image data compression method based on sign bit packet and device.
Background technology
In prior art, video encoding-decoding process needs read the view data in internal memory continually, this process needs to take substantial amounts of system bandwidth and resource, in order to save system bandwidth and resource, it is typically first view data to be stored to be compressed, and the view data after compression is stored in internal memory, in order to subsequent use.
For example, it is possible to utilize DPCM(DifferentialPulse Code Modulation, ADPCM) view data is compressed by technology, particularly as follows: for the pixel data blocks of view data, first according to the spatial coherence of image, by the pixel value of peripheral position, the pixel value of current location is predicted, wherein the pixel value of peripheral position is referred to as predictive value, difference between actual pixel value and the predictive value of current location is referred to as residual values, then, use variable-length encoding mode that the residual error data obtained is encoded, thus realize the compression to view data.Variable-length encoding mode refers to be grouped data, and selects the bit of length-specific to represent information according to the size of data in packet, and wherein, variable-length encoding mode includes symbol variable-length encoding and without symbol variable-length encoding, i.e. for [-2N,2N-1] data between can represent with N+1 bit, for [0,2N-1] data between can represent with N bit.
During realizing the present invention, inventor finds at least to exist in prior art following technical problem:
The compress mode of above-mentioned view data is to use fixing default template to be predicted (such as to the pixel value of current location, specify the predictive value using the pixel value on the left side as current pixel location value), but owing to data are random, so any default template is all difficult to be well matched with all of situation, so may result in the average deviation of residual error data or produce the residual error data that absolute value is excessive, the residual error data i.e. obtained yet suffers from certain dependency, thus limits the raising of Image Data Compression rate.
Summary of the invention
The present invention provides a kind of image data compression method based on sign bit packet and device, it can reduce the absolute value peak of residual error data of existing compress mode, and realize using less bit to represent view data, thus further increase the compression ratio of view data.
On the one hand, the present invention provides a kind of image data compression method based on sign bit packet, and described method includes:
Residual error data corresponding for view data is decomposed into multiple 2 × 2 data blocks;
The data of described 2 × 2 data blocks are carried out the squeeze operation of different modes, 2 × 2 data blocks after being compressed by the composite type of the sign bit according to described 2 × 2 data blocks;
2 × 2 data blocks after the multiple compressions that will obtain synthesize, the residual error data after being compressed.
On the other hand, the present invention provides a kind of image data compressing apparatus based on sign bit packet, and described device includes decomposing module, compression module and synthesis module, wherein,
Described decomposing module, for being decomposed into multiple 2 × 2 data blocks by residual error data corresponding for view data;
The data of described 2 × 2 data blocks for the composite type according to the sign bit of described 2 × 2 data blocks, are carried out the squeeze operation of different modes, 2 × 2 data blocks after being compressed by described compression module;
Described synthesis module, 2 × 2 data blocks after the multiple compressions that will obtain synthesize, the residual error data after being compressed.
The image data compression method based on sign bit packet of present invention offer and device, be decomposed into multiple 2 × 2 data blocks by residual error data corresponding for view data;The data of described 2 × 2 data blocks are carried out the squeeze operation of different modes, 2 × 2 data blocks after being compressed by the composite type of the sign bit according to described 2 × 2 data blocks;2 × 2 data blocks after the multiple compressions that will obtain synthesize, the residual error data after being compressed.Compared with prior art, it can reduce the absolute value of residual error data of existing compress mode, to realize using less bit to represent view data, thus improves the compression ratio of view data further.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in describing embodiment below, the required accompanying drawing used is briefly described, apparently, accompanying drawing in describing below is only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of image data compression method one embodiment that the present invention is grouped based on sign bit;
Fig. 2 is the idiographic flow schematic diagram of step S12 in above-described embodiment;
Fig. 3 is the structural representation of image data compressing apparatus one embodiment that the present invention is grouped based on sign bit;
Fig. 4 is the structural representation of the described compression module in above-described embodiment.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, all other embodiments that those of ordinary skill in the art are obtained under not making creative work premise, broadly fall into the scope of protection of the invention.
As it is shown in figure 1, the embodiment of the present invention provides a kind of image data compression method based on sign bit packet, described method includes:
S11, residual error data corresponding for view data is decomposed into multiple 2 × 2 data blocks.
The data of described 2 × 2 data blocks are carried out the squeeze operation of different modes, 2 × 2 data blocks after being compressed by S12, composite type according to the sign bit of described 2 × 2 data blocks.
2 × 2 data blocks after S13, the multiple compressions that will obtain synthesize, the residual error data after being compressed.
The image data compression method based on sign bit packet that the embodiment of the present invention provides, is decomposed into multiple 2 × 2 data blocks by residual error data corresponding for view data;The data of described 2x2 data block are carried out the squeeze operation of different modes, 2 × 2 data blocks after being compressed by the composite type of the sign bit according to described 2 × 2 data blocks;2 × 2 data blocks after the multiple compressions that will obtain synthesize, the residual error data after being compressed.Compared with prior art, it can reduce the absolute value of residual error data of existing compress mode, to realize using less bit to represent view data, thus improves the compression ratio of view data further.
Further, as in figure 2 it is shown, embodiments provide the idiographic flow of step S12 in above-described embodiment, wherein, all combined situation of the sign bit of described 2 × 2 data blocks are as shown in table 1, here, it is stipulated that the sign bit of data zero is just.
As shown in Table 1, the sign bit of described 2 × 2 data blocks has 16 kinds of combined situation, and described 16 kinds of combined situation present 3 kinds of composite types, and described 3 kinds of composite types are as follows: three positive one is negative or three negative ones just,
Complete the most just or complete negative and two just two negative.
S21, determine the sign bit composite type of 2 × 2 data blocks the most to be compressed.
If the sign bit composite type of described 2 × 2 data blocks the most to be compressed be three positive one is negative or three negative ones just, then perform step S22 and S23;
If the sign bit composite type of described 2 × 2 data blocks the most to be compressed is for entirely just or entirely to bear, then perform step S24 and S25;
If the sign bit composite type of described 2 × 2 data blocks the most to be compressed is two just two negative, then perform step S26 and S27.
Table 1
S22, using 1 bit to represent the composite type of sign bit of described 2 × 2 data blocks, use 2 bits to represent the most different sign bit location, the most different described sign bit is minus symbol position or plus sign position to use 1 bit to represent.
S23, each data in described 2 × 2 data blocks are taken absolute value, obtain the first data block being made up of four positive numbers, and use 2 bits to represent the position of the minimum positive number in described first data block;The positive number being in other positions in described first data block is made difference with described minimum positive number and obtains corresponding three differences, and then obtain the second data block being made up of described minimum positive number and described three differences;Data in described second data block are carried out without symbol variable-length encoding, 2 × 2 data blocks after being compressed.
S24, using 2 bits to represent the composite type of sign bit of described 2 × 2 data blocks, the concrete combined situation of sign bit of described 2 × 2 data blocks is for entirely just or entirely to bear to use 1 bit to represent.
S25, each data in described 2 × 2 data blocks are taken absolute value, obtain the first data block being made up of four positive numbers, and use 2 bits to represent the position of the minimum positive number in described first data block;The positive number being in other positions in described first data block is made difference with described minimum positive number and obtains corresponding three differences, and then obtain the second data block being made up of described minimum positive number and described three differences;Data in described second data block are carried out without symbol variable-length encoding, 2 × 2 data blocks after being compressed.
S26,2 bits of employing represent the composite type of the sign bit of described 2 × 2 data blocks.
S27, the column data in described 2 × 2 data blocks deducted or obtains a new column data plus another column data, and then obtaining the 3rd data block being made up of a described new column data and another column data described;Using 1 bit to represent to operate the i-th row, the data of described i-th row carry out add operation or subtraction with the data of jth row to use 1 bit to represent, wherein, the value of i is 0 or 1, and correspondingly, the value of j is 1 or 0;Data in described 3rd data block there is symbol variable-length encoding, 2 × 2 data blocks after being compressed.
The compression method of 2 × 2 data blocks that the embodiment of the present invention provides, it is according to the composite type of 3 kinds of sign bits of described 2 × 2 data blocks, and the data of described 2 × 2 data blocks carry out the squeeze operation of different modes, 2 × 2 data blocks after being compressed.Compared with prior art, it can reduce the absolute value of residual error data of existing compress mode, to realize using less bit to represent view data, thus improves the compression ratio of view data further.
As it is shown on figure 3, the embodiment of the present invention provides a kind of image data compressing apparatus based on sign bit packet, described device includes decomposing module 31, compression module 32, synthesis module 33, wherein,
Described decomposing module 31, for being decomposed into multiple 2 × 2 data blocks by residual error data corresponding for view data;
The data of described 2 × 2 data blocks for the composite type according to the sign bit of described 2 × 2 data blocks, are carried out the squeeze operation of different modes, 2 × 2 data blocks after being compressed by described compression module 32;
Described synthesis module 33,2 × 2 data blocks after the multiple compressions that will obtain synthesize, the residual error data after being compressed.
The image data compressing apparatus based on sign bit packet that the embodiment of the present invention provides, is decomposed into multiple 2 × 2 data blocks by residual error data corresponding for view data;The data of described 2 × 2 data blocks are carried out the squeeze operation of different modes, 2 × 2 data blocks after being compressed by the composite type of the sign bit according to described 2 × 2 data blocks;2 × 2 data blocks after the multiple compressions that will obtain synthesize, the residual error data after being compressed.Compared with prior art, it can reduce the absolute value of residual error data of existing compress mode, to realize using less bit to represent view data, thus improves the compression ratio of view data further.
Further, as shown in Figure 4, the described compression module 32 in above-described embodiment includes first compression unit the 321, second compression unit the 322, the 3rd compression unit 323.
Wherein, described first compression unit 321, for being three positive negative or three negative one timings when the composite type of the sign bit of described 2 × 2 data blocks, 1 bit is used to represent the composite type of sign bit of described 2 × 2 data blocks, 2 bits are used to represent the most different sign bit location, the most different described sign bit is minus symbol position or plus sign position to use 1 bit to represent, wherein, the sign bit of data zero is just;
And for each data in described 2 × 2 data blocks are taken absolute value, obtain the first data block being made up of four positive numbers, and use 2 bits to represent the position of the minimum positive number in described first data block;The positive number being in other positions in described first data block is made difference with described minimum positive number and obtains corresponding three differences, and then obtain the second data block being made up of described minimum positive number and described three differences;Data in described second data block are carried out without symbol variable-length encoding, 2 × 2 data blocks after being compressed.
Described second compression unit 322, for when the composite type of the sign bit of described 2 × 2 data blocks is for entirely just or entirely bearing, 2 bits are used to represent the composite type of sign bit of described 2 × 2 data blocks, the concrete combined situation of sign bit of described 2 × 2 data blocks is for entirely just or entirely to bear to use 1 bit to represent, wherein, the sign bit of data zero is just;
And for each data in described 2 × 2 data blocks are taken absolute value, obtain the first data block being made up of four positive numbers, and use 2 bits to represent the position of the minimum positive number in described first data block;The positive number being in other positions in described first data block is made difference with described minimum positive number and obtains corresponding three differences, and then obtain the second data block being made up of described minimum positive number and described three differences;Data in described second data block are carried out without symbol variable-length encoding, 2 × 2 data blocks after being compressed.
Described 3rd compression unit 323, for when the composite type of sign bit of described 2 × 2 data blocks be two just two negative time, use 2 bits to represent the composite type of sign bit of described 2 × 2 data blocks, wherein, the sign bit of data zero is just;
And for being deducted by the column data in described 2 × 2 data blocks or obtaining a new column data plus another column data, and then obtain the 3rd data block being made up of a described new column data and another column data described;Using 1 bit to represent to operate the i-th row, the data of described i-th row carry out add operation or subtraction with the data of jth row to use 1 bit to represent, wherein, the value of i is 0 or 1, and correspondingly, the value of j is 1 or 0;Data in described 3rd data block there is symbol variable-length encoding, 2 × 2 data blocks after being compressed.
The data of described 2 × 2 data blocks according to the composite type of 3 kinds of sign bits of described 2 × 2 data blocks, are carried out the squeeze operation of different modes, 2 × 2 data blocks after being compressed by the compression module that the embodiment of the present invention provides.Compared with prior art, it can reduce the absolute value of residual error data of existing compress mode, to realize using less bit to represent view data, thus improves the compression ratio of view data further.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can be by computer program and complete to instruct relevant hardware, described program can be stored in a computer read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccess Memory, RAM) etc..
The above; being only the detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; the change that can readily occur in or replacement, all should contain within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with scope of the claims.

Claims (8)

CN201510135467.1A2015-03-262015-03-26A kind of image data compression method and device based on sign bit groupingActiveCN106162201B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510135467.1ACN106162201B (en)2015-03-262015-03-26A kind of image data compression method and device based on sign bit grouping

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510135467.1ACN106162201B (en)2015-03-262015-03-26A kind of image data compression method and device based on sign bit grouping

Publications (2)

Publication NumberPublication Date
CN106162201Atrue CN106162201A (en)2016-11-23
CN106162201B CN106162201B (en)2019-02-15

Family

ID=57339329

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510135467.1AActiveCN106162201B (en)2015-03-262015-03-26A kind of image data compression method and device based on sign bit grouping

Country Status (1)

CountryLink
CN (1)CN106162201B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114137348A (en)*2021-11-292022-03-04国网湖南省电力有限公司Intelligent joint debugging acceptance method and acceptance equipment for power distribution terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20040228540A1 (en)*2003-05-162004-11-18Wen-Hsiung ChenVariable length coding method and apparatus for video compression
CN1980395A (en)*2005-11-302007-06-13联合信源数字音视频技术(北京)有限公司Entropy coding method and decoding method based on text
CN101198054A (en)*2006-12-052008-06-11华为技术有限公司 Variable length codec method and its codec
WO2013070486A1 (en)*2011-11-072013-05-16Ibiquity Digital CorporationMrc antenna diversity for fm iboc digital signals
EP2618572A1 (en)*2012-01-202013-07-24Research In Motion LimitedMultiple sign bit hiding within a transform unit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20040228540A1 (en)*2003-05-162004-11-18Wen-Hsiung ChenVariable length coding method and apparatus for video compression
CN1980395A (en)*2005-11-302007-06-13联合信源数字音视频技术(北京)有限公司Entropy coding method and decoding method based on text
CN101198054A (en)*2006-12-052008-06-11华为技术有限公司 Variable length codec method and its codec
WO2013070486A1 (en)*2011-11-072013-05-16Ibiquity Digital CorporationMrc antenna diversity for fm iboc digital signals
EP2618572A1 (en)*2012-01-202013-07-24Research In Motion LimitedMultiple sign bit hiding within a transform unit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114137348A (en)*2021-11-292022-03-04国网湖南省电力有限公司Intelligent joint debugging acceptance method and acceptance equipment for power distribution terminal
CN114137348B (en)*2021-11-292023-11-24国网湖南省电力有限公司Intelligent joint debugging acceptance method and acceptance equipment for power distribution terminal

Also Published As

Publication numberPublication date
CN106162201B (en)2019-02-15

Similar Documents

PublicationPublication DateTitle
US8860719B2 (en)Apparatus and method for encoding three-dimensional (3D) mesh, and apparatus and method for decoding 3D mesh
CN105228000B (en)A kind of method and system of the complete hardware transcoding based on GPU
EP3232663A1 (en)Decoding methods and devices
CN100422986C (en)Apparatus for performing discrete cosine transform/inverse discrete cosine transform and method thereof
US10609389B2 (en)Image encoding method, image decoding method, encoding device, and decoding device
CN104333760A (en)Three-dimensional image coding method, three-dimensional image decoding method and related devices
CN105187845A (en)Video data decoding device and method
CN104125458A (en)Lossless stored data compression method and device
CN104717507A (en)Video transcoding method and device
CN104184980A (en)Data processing method and electronic device
DE102011100936A9 (en) Techniques for storing and retrieving pixel data
CN105791819A (en)Frame compression method for image and decompression method and device for image
CN104754343A (en)Image processing method and system, decoding method, encoder and decoder
CN106162201A (en)A kind of image data compression method based on sign bit packet and device
WO2019199513A1 (en)A method and apparatus for encoding and decoding metadata associated with patched projection of point clouds
CN104093027A (en)Joint scalar embedded graphics coding for color images
CN103517022A (en)Image data compression and decompression method and device
CN104079941A (en)Depth information encoding and decoding methods, devices and video processing and playing equipment
CN102595117B (en)Method and device for coding and decoding
TW201517633A (en)Method for encoding video data in a scalable bitstream, corresponding decoding method, corresponding coding and decoding devices
US20110305401A1 (en)Intra-prediction mode optimization methods and image compression methods and devices using the same
KR100846791B1 (en) Method and device for storing video data
CN101257590B (en) Encoding, decoding method and device, display system
CN102547315B (en)Three-dimensional image data compression method and system
CN114245140B (en)Code stream prediction method and device based on deep learning

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp