CN106559671B - A kind of display method for compressing image and system - Google Patents
A kind of display method for compressing image and system Download PDFInfo
- Publication number
- CN106559671B CN106559671B CN201510642278.3A CN201510642278A CN106559671B CN 106559671 B CN106559671 B CN 106559671B CN 201510642278 A CN201510642278 A CN 201510642278A CN 106559671 B CN106559671 B CN 106559671B
- Authority
- CN
- China
- Prior art keywords
- paging
- pixel
- coding
- display image
- coding units
- 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.)
- Active
Links
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention discloses a kind of display method for compressing image and systems, belong to Image Compression field;Method includes: step S1, provides a plurality of coding units that the quantity of quantity and pixel paging matches, to carry out encoding compression processing to multiple pixel pagings respectively;Encoded information is real-time transmitted to Data Rate Distribution unit respectively in each coding unit by step S2;Step S3, Data Rate Distribution unit are calculated the current goal code rate of each pixel paging in real time using preset strategy, current goal code rate are sent in a plurality of coding units;Step S4, a plurality of coding units apply current goal code rate to carry out encoding compression processing to multiple pixel pagings respectively, and judge whether encoding compression processing terminates: if it is not, then return step S2;If so, exiting.System includes: division unit, coding unit and Data Rate Distribution unit.The beneficial effect of above-mentioned technical proposal is: solving the problems, such as that image compression quality is non-uniform, promotes the overall compression quality of display image.
Description
Technical field
The present invention relates to Image Compression field more particularly to a kind of display method for compressing image and systems.
Background technique
In the prior art, for showing that the coding of image compresses, a frame is usually shown that image is divided into multiple fragments
(Slice), independent coding and decoding and to each fragment is carried out, does so and is capable of significant increase display image compression
Concurrency promotes the efficiency of compression of images.
But the image relatively high for some complexities, the pixel density for including in the different piece of image and coloration etc.
There may be biggish difference.And a frame is shown in the compression process of image, it is necessary to ensure that the compression ratio of each fragment and whole frame figure
The compression ratio of picture is consistent, it is thus possible to will cause the non-uniform problem of image compression quality, reduce the compression quality of image.
Summary of the invention
According to problems of the prior art, a kind of technical solution for showing method for compressing image and system is now provided,
Aim to solve the problem that because in image different location complexity it is inconsistent caused by the non-uniform problem of image compression quality;
Above-mentioned technical proposal specifically includes:
A kind of display method for compressing image, wherein display image to be compressed is divided into multiple pixel pagings, and
A plurality of coding units that the quantity of quantity and the pixel paging matches are provided, a plurality of coding units respectively with institute
Multiple pixel pagings are stated to correspond, further includes:
Step S1, a plurality of coding units carry out encoding compression processing to the multiple pixel paging respectively;
Step S2, each of described a plurality of coding units respectively believe the coding during the encoding compression processing
Breath is real-time transmitted to a Data Rate Distribution unit;
Step S3, the Data Rate Distribution unit are calculated and are obtained in real time using preset strategy according to the encoded information
Current goal code rate in each of corresponding the multiple pixel paging, and be respectively sent to the current goal code rate in real time
In each of described a plurality of coding units;
Step S4, a plurality of coding units current goal code rate that application obtains respectively is to the multiple pixel
Paging carries out the encoding compression processing, and judges whether the encoding compression processing terminates:
If it is not, then returning to the step S2;
If so, exiting.
Preferably, display method for compressing image, wherein each completion in a plurality of coding units is the multiple
After encoding compression processing in each of pixel paging, corresponding multiple processing results are sent to a coding synthesis unit;
The coding synthesis unit is closed according to the corresponding the multiple processing result coding synthesis of the multiple pixel paging
It is coupled to the coding result of the display image and output.
Preferably, display method for compressing image, wherein the encoded information includes:
Each of described a plurality of coding units are each carry out in the multiple pixel paging coding compression
Current encoding error when processing;
Each of described a plurality of coding units are each carry out in the multiple pixel paging coding compression
Current encoded pixel number when processing;And
Each of described a plurality of coding units are each carry out in the multiple pixel paging coding compression
Current consumes bit number when processing.
Preferably, display method for compressing image, wherein in the step S3, the preset strategy includes:
Step S31, the Data Rate Distribution unit according in each of the multiple pixel paging of correspondence described in consumed
Bit number and the encoded pixel number handle to obtain the current total bitrate of the display image;
Step S32, for the Data Rate Distribution unit according to the current total bitrate, processing obtains the reality of the display image
Total bitrate;
Step S33, the Data Rate Distribution unit is according in the practical total bitrate and corresponding the multiple pixel paging
Each of the encoding error, processing obtain corresponding to the current goal code rate in each of the multiple pixel paging;
Step S34, it is single that the current goal code rate is sent to a plurality of codings respectively by the Data Rate Distribution unit
In member.
Preferably, display method for compressing image, wherein in the step S31, be calculated according to following formula described
Show the current total bitrate of image:
I > 0, and i is natural number;
Wherein,
A(i)Indicate current code rate in each of corresponding the multiple pixel paging;
B(i)Indicate the consumes bit number in each of corresponding the multiple pixel paging;
C(i)Indicate the encoded pixel number in each of corresponding the multiple pixel paging;
D_C indicates the current total bitrate of the corresponding display image;
Sum indicates summation operation.
Preferably, the display method for compressing image, wherein in the display image carry out the encoding compression processing it
Before, preset the target total bitrate of the display image;
Then in the step S32, first by it is described display image the current total bitrate and the target total bitrate into
Row compares, if the current total bitrate is not equal to the target total bitrate, the display figure is calculated according to following formula
The practical total bitrate of picture:
D_T=(D_F*N-D_C*M)/(N-M);
Wherein,
D_T indicates the practical total bitrate of the display image;
D_F indicates the target total bitrate of the display image;
D_C indicates the current total bitrate of the corresponding display image;
N indicates the total pixel number of the display image;
M indicates that the pixel number that the display image has currently been encoded, M are current by corresponding the multiple pixel paging
The encoded pixel number be calculated.
Preferably, the display method for compressing image, wherein in the display image carry out the encoding compression processing it
Before, preset the target total bitrate of the corresponding display image;
Then in the step S32, first by it is described display image the current total bitrate and the target total bitrate into
Row compares, if the current total bitrate is equal to the target total bitrate, the practical total bitrate of the display image is set
It is set to and is equal to the target total bitrate.
Preferably, display method for compressing image, wherein in the step S33, correspondence is calculated according to following formula
The current goal code rate of each pixel paging:
D_ (i)=Error(i)*D_T/sum(Error(i));
I > 0, and i is natural number;
Wherein,
D_ (i) indicates the current goal code rate of corresponding i-th of pixel paging;
Error(i)Indicate the current encoding error of corresponding i-th of pixel paging;
D_T indicates the practical total bitrate of the display image;
Sum is indicated and operation.
Preferably, display method for compressing image, wherein the display image is based on DSC compression standard and carries out coding pressure
Contracting processing.
Preferably, display method for compressing image, wherein if the display image is carried out based on JPEG-LS compression standard
Encoding compression processing continues to execute following step then after executing the step S33:
Step S33a, the Data Rate Distribution unit are preset according to the current goal code rate being calculated, adjustment
The multiple pixel paging of correspondence coding worst error, with practical in each of the corresponding the multiple pixel paging of adjustment
The current goal code rate of application, is subsequently diverted to the step S34;
Then in the step S34, the current goal code rate being adjusted is sent to pair by the Data Rate Distribution unit
In the coding unit answered.
A kind of display image compression system, wherein include:
Division unit, for the display image to be divided into multiple pixel pagings;
A plurality of coding units, are separately connected the division unit, each of described a plurality of coding units for pair
Each carry out encoding compression processing in the multiple pixel paging;
Data Rate Distribution unit is separately connected each of described a plurality of coding units;
Each of described a plurality of coding units pass corresponding encoded information during encoding compression processing in real time
Give the Data Rate Distribution unit;
The Data Rate Distribution unit is calculated and described in being corresponded to using preset strategy in real time according to the encoded information
Current goal code rate in each of multiple pixel pagings, and the current goal code rate is sent to the plural number in real time respectively
In each of a coding unit;
A plurality of coding units current goal code rate that the application Data Rate Distribution unit returns respectively, to institute
It states multiple pixel pagings and carries out the encoding compression processing.
Preferably, the display image compression system, wherein further include:
Synthesis unit is encoded, each of described a plurality of coding units are separately connected;
Encoding compression processing in each of the multiple pixel paging of each completion in a plurality of coding units
Afterwards, corresponding multiple processing results are sent to the coding synthesis unit;
The coding synthesis unit is closed according to the corresponding the multiple processing result coding synthesis of the multiple pixel paging
It is coupled to the coding result of the display image.
Preferably, display image compression system, wherein the encoded information includes:
Each of described a plurality of coding units press each carry out coding in a plurality of pixel pagings
Current encoding error when contracting processing;And
Each of described a plurality of coding units are each carry out in the multiple pixel paging coding
Current encoded pixel number when compression processing;And
Each of described a plurality of coding units are each carry out in the multiple pixel paging coding compression
Current consumes bit number when processing.
The beneficial effect of above-mentioned technical proposal is:
1) a kind of display method for compressing image is provided, be able to solve because in image different location complexity it is inconsistent caused by
The non-uniform problem of image compression quality promotes the overall compression quality of display image;
2) a kind of display image compression system is provided, can support to realize above-mentioned display method for compressing image.
Detailed description of the invention
Fig. 1 is a kind of overall procedure schematic diagram for showing method for compressing image in preferred embodiment of the invention;
Fig. 2 is in preferred embodiment of the invention, in DSC compression and coding standard, a kind of display method for compressing image
Flow diagram;
Fig. 3 is in preferred embodiment of the invention, in JPEG-LS compression and coding standard, a kind of display compression of images
The flow diagram of method;
Fig. 4 is a kind of structural schematic diagram for showing image compression system in preferred embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art without creative labor it is obtained it is all its
His embodiment, shall fall within the protection scope of the present invention.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
The present invention will be further explained below with reference to the attached drawings and specific examples, but not as the limitation of the invention.
In preferred embodiment of the invention, it is based on the above-mentioned problems in the prior art, a kind of display figure is now provided
As compression method.In the display method for compressing image, each frame to be compressed is shown that image is divided into multiple pixels point
Page.
Then in preferred embodiment of the invention, above-mentioned a plurality of coding units are a pair of with multiple pixel pagings one respectively
It answers.In other words, each of above-mentioned a plurality of coding units are respectively used to carry out coding pressure to each of multiple pixel pagings
Contracting handles (the one pixel paging of a coding unit alignment processing).
Then in preferred embodiment of the invention, as shown in Figure 1, above-mentioned display method for compressing image specifically includes:
Step S1, a plurality of coding units carry out encoding compression processing to multiple pixel pagings respectively;
Step S2, each of a plurality of coding units respectively pass the encoded information during encoding compression processing in real time
Give a Data Rate Distribution unit;
Step S3, Data Rate Distribution unit are calculated in real time using preset strategy according to encoded information and obtain corresponding to multiple
Current goal code rate in each of pixel paging, and current goal code rate is sent in real time in a plurality of coding units respectively
Each of in;
Step S4, a plurality of coding units respectively encode multiple pixel pagings using the current goal code rate obtained
Compression processing, and judge whether encoding compression processing terminates:
If it is not, then return step S2;
If so, exiting.
In a preferred embodiment of the invention, for display image to be compressed, it is divided into first multiple
Pixel paging.Size in each of multiple pixel pagings can be identical, therefore includes in each of multiple pixel pagings
There will be institute's differences for number of pixels.Then using each of a plurality of coding units independently to every in multiple pixel pagings
A carry out encoding compression processing, then a frame shows that image is divided into how many a pixel pagings, so that it may corresponding number be arranged
Coding unit.
In the embodiment, during carrying out encoding compression processing to pixel paging, lasting monitoring generates coding unit
Encoded information, and send it to corresponding Data Rate Distribution unit.For Data Rate Distribution unit according to the encoded information, use is preset
Strategy (can hereinafter be described in detail) processing obtain corresponding to each of a plurality of coding units needed for current goal code to be applied
Rate, and it is issued to respectively in each of a plurality of coding units.Then each of a plurality of coding units are according to reception
The corresponding current goal code rate arrived continues to carry out encoding compression processing to pixel paging.In other words, in the embodiment, coding
The some encoded informations of itself are constantly sent to Data Rate Distribution unit in carrying out coding compression process by unit in real time, and according to
Data Rate Distribution unit passes through the real-time current goal code rate that calculation processing obtains, and constantly adjusts the code for itself carrying out coding compression
Rate, to complete entire coding compression process.
In preferred embodiment of the invention, a coding synthesis unit is set.Each of a plurality of coding units are complete
After encoding compression processing in each of multiple pixel pagings, it is single that corresponding multiple processing results are sent to coding synthesis
Member;
It then encodes synthesis unit and is associated with display figure according to the corresponding multiple processing result coding synthesis of multiple pixel pagings
The coding result of picture and output.
Specifically, in a preferred embodiment of the invention, as shown in Fig. 2, in above-mentioned steps S3, above-mentioned preset plan
Somewhat body includes:
Step S31, Data Rate Distribution unit consumes bit number and according in each of the multiple pixel pagings of correspondence
Encoded pixels number handles to obtain the current total bitrate of display image;
In preferred embodiment of the invention, in above-mentioned steps S31, working as display image is calculated according to following formula
Preceding total bitrate:
I > 0, and i is natural number;
Wherein,
A(i)It indicates current code rate in each of corresponding multiple pixel pagings, that is, corresponds to each of multiple pixel pagings
Coding unit currently carry out coding compress applied by code rate;
B(i)It indicates in each of corresponding multiple pixel pagings consumes bit number, that is, corresponds in multiple pixel pagings
Each occupied bit number of partial shrinkage file currently completed;
C(i)It indicates encoded pixel number in each of corresponding multiple pixel pagings, that is, corresponds in multiple pixel pagings
The number of each partial pixel for currently having completed coding compression;
D_C indicates the current total bitrate of corresponding display image, that is, shows total code of the current completed coded portion of image
Rate;
Sum indicates summation operation.
In other words, in preferred embodiment of the invention, by having consumed ratio in each of the multiple pixel pagings of correspondence
Current code rate in each of corresponding multiple pixel pagings can be calculated in special number and encoded pixels number, and according to multiple pictures
The current code rate of plain paging is calculated the current total bitrate of corresponding entire display image and exports.
Step S32, Data Rate Distribution unit obtain the practical total bitrate of display image according to current total bitrate, processing;
In preferred embodiment of the invention, before carrying out encoding compression processing to display image, display is preset
The target total bitrate of image.Then in above-mentioned steps S32, first determine whether above-mentioned current total bitrate is equal to target total bitrate:
1) if current total bitrate is not equal to target total bitrate, then it represents that the total bitrate of corresponding display image is adjusted
It is whole, the practical total bitrate of display image is obtained according to following formula at this time:
D_T=(D_F*N-D_C*M)/(N-M) (2)
Wherein,
D_T indicates the practical total bitrate of display image, refers to the current target total bitrate of display image, i.e., remaining uncoded
Partial total bitrate;
D_F indicates the target total bitrate of display image, refers to the target total bitrate of the display whole frame of image, i.e., sets before coding
Full frame image total bitrate;
D_C indicates the current total bitrate (as noted before) of corresponding display image;
N indicates the total pixel number of display image;
M indicates the pixel number that display image has currently been encoded.In preferred embodiment of the invention, M can be by right
(such as carrying out read group total) is calculated in the encoded pixel number for answering multiple pixel pagings current;
2) if current total bitrate is equal to target total bitrate, then it represents that the total bitrate of corresponding display image does not need to be adjusted
It is whole, show that the practical total bitrate of image is equal to target total bitrate at this time.
It, can be before coding compression process starts to the reality of display image in another preferred embodiment of the invention
Border total bitrate is initialized, and is initialized with being equal to target total bitrate.At this time in above-mentioned steps S32, if current total code
Rate is not equal to target total bitrate, then is adjusted to practical total bitrate;If current total bitrate is equal to target total bitrate, do not need
Practical total bitrate is adjusted.
Step S33, Data Rate Distribution unit are encoded according in each of practical total bitrate and corresponding multiple pixel pagings
Error, processing obtain corresponding to current goal code rate in each of multiple pixel pagings;
In preferred embodiment of the invention, in above-mentioned steps S33, corresponding multiple pixels are calculated according to following formula
Current goal code rate in each of paging:
E_ (i)=Error(i)*D_T/sum(Error(i))
(3)
I > 0, and i is natural number;
Wherein,
D_ (i) indicates the current goal code rate of corresponding ith pixel paging, i.e., needs to handle in technical solution of the present invention
The code rate arrived;
Error(i)Indicate the current encoding error of corresponding ith pixel paging;
D_T indicates the practical total bitrate of display image;
Sum is indicated and operation.
In other words, in preferred embodiment of the invention, the correspondence according to each transmitting in a plurality of coding units is more
The encoding error at each current time in a pixel paging, and the practical total bitrate being above calculated, can calculate
Obtaining corresponding to each of multiple pixel pagings currently needs target bit rate to be applied.
Current goal code rate is sent in a plurality of coding units by step S34, Data Rate Distribution unit respectively.
In conclusion under DSC coding standard, the mistake of coding compression is carried out to display image in technical solution of the present invention
Cheng Zhong, Data Rate Distribution unit can be according to the current encoder bit rates of each of multiple pixel pagings, job schedule (encoded picture
Prime number) and consumes bit number, pass through series of computation and obtains real-time mesh in each of corresponding a plurality of coding units
Coding rate, and by target bit rate feedback into each of a plurality of coding units, so that coding unit is applied in real time, thus
Achieve the purpose that the encoder bit rate for monitoring and adjusting different coding units at any time.
In preferred embodiment of the invention, above-mentioned steps are suitable for based on display stream compression (Display Stream
Compression, DSC) standard carry out coding process in.
In another preferred embodiment of the invention, under JPEG-LS compression standard, above-mentioned steps S33 is being executed
Afterwards, following step (as shown in Figure 3) is continued to execute:
It is more to adjust preset correspondence according to the current goal code rate being calculated for step S33a, Data Rate Distribution unit
The coding worst error of a pixel paging, to adjust the current goal code of each practical application in corresponding multiple pixel pagings
Rate is subsequently diverted to step S34;
Then also shown in FIG. 3, in above-mentioned steps S34, Data Rate Distribution unit sends out the current goal code rate being adjusted
It send to corresponding coding unit.In so-called coding worst error, refer to the volume that each of a plurality of coding units are allowed to
The upper limit value of code error.Coding worst error can be preset before coding compression process starts, and encoded
Dynamic adjustment is carried out in journey.
Then specifically, in the embodiment, worst error is encoded if increasing, correspondingly each reality in multiple pixel pagings
The encoder bit rate of border application will reduce.Conversely, if reducing coding worst error, correspondingly each of multiple pixel pagings
The encoder bit rate of practical application just will increase.Using this characteristic, dynamic adjustment can be carried out to coding worst error, to reach
The purpose of target bit rate current in each of multiple pixel pagings is adjusted in real time.In other words, it in the embodiment, is calculating
To after current goal code rate, Data Rate Distribution unit adjusts above-mentioned coding worst error first, and actual encoder bit rate is adjusted
It obtains as close possible to the current goal code rate being calculated, and finally will be by current goal code rate (a plurality of codings of adjusting
The current goal code rate of each practical application in unit) it is sent to corresponding coding unit.
In conclusion the whole compression process for different coding compression standards, in technical solution of the present invention
It can be applicable in, it can " it is independent to each carry out in multiple pixel pagings that display image will be subjected to fragment processing-
Coding compression-monitors in real time in coding compression process and transmits corresponding encoded information to Data Rate Distribution unit-code rate point
It handles to obtain real-time target bit rate information according to real-time encoded information with unit and feeds back to corresponding coding unit-coding
The process of the target bit rate of unit application feedback, to continue to execute encoding compression processing " is applied in compression of images process, thus
It can guarantee uniformity of the higher display image of complexity on image compression quality, promote the quality of compression of images.
In preferred embodiment of the invention, based on the above display method for compressing image, also provide a kind of aobvious
Show image compression system, the system structure is specifically as shown in Figure 4, comprising:
Division unit 1, for that will show that image is divided into multiple corresponding pixel pagings;
A plurality of coding units 2, are separately connected division unit 1, and each of a plurality of coding units 2 are used for multiple pictures
Each carry out encoding compression processing in plain paging;
Data Rate Distribution unit 3 is separately connected each of a plurality of coding units 2;
Then in preferred embodiment of the invention, each of a plurality of coding units 2 are during encoding compression processing
Corresponding encoded information is real-time transmitted to Data Rate Distribution unit 3;
Then, Data Rate Distribution unit 3 is calculated simultaneously according to encoded information using preset strategy (as noted before) in real time
It obtains corresponding to current goal code rate in each of multiple pixel pagings, and current goal code rate is sent to correspondence in real time respectively
Coding unit 2 in;
The then current goal code rate that the application of each of a plurality of coding units 2 code rate allocation unit 3 returns, to pixel point
Page carries out encoding compression processing.
The above process moves in circles, i.e., Data Rate Distribution unit 3 adjusts each of a plurality of coding units 2 in real time and compiled
Current goal code rate applied by code compression processing, until the display image carries out coding compression and finishes.
Therefore, in a preferred embodiment of the invention, as mentioned above it is possible, above-mentioned encoded information specifically includes:
It is current when each carry out encoding compression processing in 2 pairs of each of a plurality of coding units multiple pixel pagings
Encoding error;And
It is current when each carry out encoding compression processing in 2 pairs of each of a plurality of coding units multiple pixel pagings
Encoded pixel number;And
It is current when each carry out encoding compression processing in 2 pairs of each of a plurality of coding units multiple pixel pagings
Consumes bit number.
In preferred embodiment of the invention, still as shown in figure 4, in above-mentioned display image compression system further include:
Synthesis unit 4 is encoded, each of a plurality of coding units 2 are separately connected;
Then in preferred embodiment of the invention, each of a plurality of coding units 2 are completed in multiple pixel pagings
After each encoding compression processing, corresponding processing result is sent to coding synthesis unit 4;
Coding synthesis unit 4 is associated with display image according to the corresponding all processing result coding synthesis of multiple pixel pagings
Coding result and output.In preferred embodiment of the invention, which is to be associated with the final of the display image
Coding compression result.
The foregoing is merely preferred embodiments of the present invention, are not intended to limit embodiments of the present invention and protection model
It encloses, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic content
Equivalent replacement and obviously change obtained scheme, should all be included within the scope of the present invention.
Claims (8)
1. a kind of display method for compressing image, which is characterized in that display image to be compressed is divided into multiple pixels point
Page, and a plurality of coding units that the quantity for providing quantity and the pixel paging matches, a plurality of coding units point
It is not corresponded with the multiple pixel paging, further includes:
Step S1, a plurality of coding units carry out encoding compression processing to the multiple pixel paging respectively;
Step S2, each of described a plurality of coding units are real by the encoded information during the encoding compression processing respectively
When send a Data Rate Distribution unit to;
Step S3, the Data Rate Distribution unit are calculated and are corresponded in real time using preset strategy according to the encoded information
Current goal code rate in each of the multiple pixel paging, and be respectively sent to the current goal code rate in real time described
In each of a plurality of coding units;
Step S4, a plurality of coding units current goal code rate that application obtains respectively is to the multiple pixel paging
The encoding compression processing is carried out, and judges whether the encoding compression processing terminates:
If it is not, then returning to the step S2;
If so, exiting;
The encoded information includes:
Each of described a plurality of coding units are each carry out in the multiple pixel paging encoding compression processing
The encoding error of Shi Dangqian;
Each of described a plurality of coding units are each carry out in the multiple pixel paging encoding compression processing
The encoded pixel number of Shi Dangqian;And
Each of described a plurality of coding units are each carry out in the multiple pixel paging encoding compression processing
The consumes bit number of Shi Dangqian, the consumes bit number have corresponded to each of multiple pixel pagings currently for indicating
The occupied bit number of partial shrinkage file of completion;
In the step S3, the preset strategy includes:
Step S31, the Data Rate Distribution unit according in each of the multiple pixel paging of correspondence described in consumed bit
The several and described encoded pixel number handles to obtain the current total bitrate of the display image;
Step S32, for the Data Rate Distribution unit according to the current total bitrate, processing obtains the total code of reality of the display image
Rate;
Step S33, the Data Rate Distribution unit is according to every in the practical total bitrate and corresponding the multiple pixel paging
A encoding error, processing obtain corresponding to the current goal code rate in each of the multiple pixel paging;
The current goal code rate is sent in a plurality of coding units by step S34, the Data Rate Distribution unit respectively;
Before carrying out the encoding compression processing to the display image, the total code of target of the display image is preset
Rate;
Then in the step S32, the current total bitrate of the display image is compared with the target total bitrate first
Compared with if the display image is calculated not equal to the target total bitrate, according to following formula in the current total bitrate
The practical total bitrate:
D_T=(D_F*N-D_C*M)/(N-M);
Wherein,
D_T indicates the practical total bitrate of the display image;
D_F indicates the target total bitrate of the display image;
D_C indicates the current total bitrate of the corresponding display image;
N indicates the total pixel number of the display image;
M indicates the pixel number that the display image has currently been encoded, the current institute that M passes through corresponding the multiple pixel paging
Encoded pixel number is stated to be calculated;
If the current total bitrate is equal to the target total bitrate, set the practical total bitrate of the display image to
Equal to the target total bitrate;
In the step S33, the current goal code rate of corresponding each pixel paging is calculated according to following formula:
D_ (i)=Error(i)*D_T/sum(Error(i));
I > 0, and i is natural number;
Wherein,
D_ (i) indicates the current goal code rate of corresponding i-th of pixel paging;
Error(i)Indicate the current encoding error of corresponding i-th of pixel paging;
D_T indicates the practical total bitrate of the display image;
Sum is indicated and operation.
2. display method for compressing image as described in claim 1, which is characterized in that each of described a plurality of coding units
After completing encoding compression processing in each of the multiple pixel paging, corresponding multiple processing results are sent to a coding
Synthesis unit;
The coding synthesis unit is associated with according to the corresponding the multiple processing result coding synthesis of the multiple pixel paging
The coding result for showing image and output.
3. display method for compressing image as described in claim 1, which is characterized in that in the step S31, according to following formula
The current total bitrate of the display image is calculated:
I > 0, and i is natural number;
Wherein,
A(i)Indicate current code rate in each of corresponding the multiple pixel paging;
B(i)Indicate the consumes bit number in each of corresponding the multiple pixel paging;
C(i)Indicate the encoded pixel number in each of corresponding the multiple pixel paging;
D_C indicates the current total bitrate of the corresponding display image;
Sum indicates summation operation.
4. display method for compressing image as described in claim 1, which is characterized in that the display image is based on DSC compression mark
Standard carries out encoding compression processing.
5. display method for compressing image as described in claim 1, which is characterized in that if the display image is based on JPEG-LS
Compression standard carries out encoding compression processing, then after executing the step S33, continues to execute following step:
Step S33a, for the Data Rate Distribution unit according to the current goal code rate being calculated, it is preset right to adjust
The coding worst error of the multiple pixel paging is answered, with practical application in each of the corresponding the multiple pixel paging of adjustment
The current goal code rate, be subsequently diverted to the step S34;
Then in the step S34, the current goal code rate being adjusted is sent to corresponding by the Data Rate Distribution unit
In the coding unit.
6. a kind of display image compression system, which is characterized in that display figure of the application as described in any one of claim 1-5
As compression method, comprising:
Division unit, for the display image to be divided into multiple pixel pagings;
A plurality of coding units, are separately connected the division unit, and each of described a plurality of coding units are used for described
Each carry out encoding compression processing in multiple pixel pagings;
Data Rate Distribution unit is separately connected each of described a plurality of coding units;
Corresponding encoded information is real-time transmitted to by each of described a plurality of coding units during encoding compression processing
The Data Rate Distribution unit;
The Data Rate Distribution unit is calculated in real time using preset strategy according to the encoded information and obtains corresponding to the multiple
Current goal code rate in each of pixel paging, and the current goal code rate is sent to a plurality of volumes in real time respectively
In each of code unit;
A plurality of coding units current goal code rate that the application Data Rate Distribution unit returns respectively, to described more
A pixel paging carries out the encoding compression processing.
7. display image compression system as claimed in claim 6, which is characterized in that further include:
Synthesis unit is encoded, each of described a plurality of coding units are separately connected;
It, will after encoding compression processing in each of the multiple pixel paging of each completion in a plurality of coding units
Corresponding multiple processing results are sent to the coding synthesis unit;
The coding synthesis unit is associated with according to the corresponding the multiple processing result coding synthesis of the multiple pixel paging
The coding result of the display image.
8. display image compression system as claimed in claim 6, which is characterized in that the encoded information includes:
Each of described a plurality of coding units to each carry out coding compression in a plurality of pixel pagings at
Current encoding error when reason;And
Each of described a plurality of coding units are each carry out in the multiple pixel paging coding compression
Current encoded pixel number when processing;And
Each of described a plurality of coding units are each carry out in the multiple pixel paging encoding compression processing
The consumes bit number of Shi Dangqian.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510642278.3A CN106559671B (en) | 2015-09-30 | 2015-09-30 | A kind of display method for compressing image and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510642278.3A CN106559671B (en) | 2015-09-30 | 2015-09-30 | A kind of display method for compressing image and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106559671A CN106559671A (en) | 2017-04-05 |
CN106559671B true CN106559671B (en) | 2019-08-23 |
Family
ID=58418257
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510642278.3A Active CN106559671B (en) | 2015-09-30 | 2015-09-30 | A kind of display method for compressing image and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106559671B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107197295B (en) * | 2017-05-18 | 2019-11-29 | 北京数码视讯软件技术发展有限公司 | A kind of coded system and method |
CN109429069B (en) * | 2017-08-23 | 2021-08-24 | 珠海全志科技股份有限公司 | Display stream compression encoder and display engine |
CN108521871B (en) * | 2017-08-31 | 2020-12-18 | 深圳市大疆创新科技有限公司 | Encoding method, decoding method, and encoding device and decoding device |
CN110324615A (en) * | 2018-03-30 | 2019-10-11 | 华为技术有限公司 | A kind of code rate allocation method and device |
CN112565834B (en) * | 2021-02-24 | 2021-05-11 | 北京创世云科技股份有限公司 | Method and device for controlling output data and electronic equipment |
CN112929663B (en) * | 2021-04-08 | 2022-07-15 | 中国科学技术大学 | Knowledge distillation-based image compression quality enhancement method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102067610A (en) * | 2008-06-16 | 2011-05-18 | 杜比实验室特许公司 | Rate control model adaptation based on slice dependencies for video coding |
CN102420980A (en) * | 2010-09-27 | 2012-04-18 | 深圳市融创天下科技股份有限公司 | Frame-layer and macroblock-layer quantization parameter adjusting method and system |
CN102547259A (en) * | 2010-12-21 | 2012-07-04 | 联芯科技有限公司 | Rate-control-based video coding method and device |
CN103200400A (en) * | 2012-01-09 | 2013-07-10 | 中兴通讯股份有限公司 | Coder and decoder method, coder decoder and electronic equipment of picture layer and sharding layer |
CN104038769A (en) * | 2014-06-11 | 2014-09-10 | 同济大学 | Rate control method for intra-frame coding |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5530198B2 (en) * | 2009-11-20 | 2014-06-25 | パナソニック株式会社 | Image encoding method, decoding method, and apparatus |
-
2015
- 2015-09-30 CN CN201510642278.3A patent/CN106559671B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102067610A (en) * | 2008-06-16 | 2011-05-18 | 杜比实验室特许公司 | Rate control model adaptation based on slice dependencies for video coding |
CN102420980A (en) * | 2010-09-27 | 2012-04-18 | 深圳市融创天下科技股份有限公司 | Frame-layer and macroblock-layer quantization parameter adjusting method and system |
CN102547259A (en) * | 2010-12-21 | 2012-07-04 | 联芯科技有限公司 | Rate-control-based video coding method and device |
CN103200400A (en) * | 2012-01-09 | 2013-07-10 | 中兴通讯股份有限公司 | Coder and decoder method, coder decoder and electronic equipment of picture layer and sharding layer |
CN104038769A (en) * | 2014-06-11 | 2014-09-10 | 同济大学 | Rate control method for intra-frame coding |
Also Published As
Publication number | Publication date |
---|---|
CN106559671A (en) | 2017-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106559671B (en) | A kind of display method for compressing image and system | |
US9716891B2 (en) | Quantization method and apparatus in encoding/decoding | |
CN106464887B (en) | Picture decoding method and its device and image encoding method and its device | |
CN1140130C (en) | Quantization matrix for still and moving picture coding | |
CN101466035B (en) | Method for distributing video image set bit based on H.264 | |
CN1073313A (en) | Apparatus for video data quantization control | |
CN101707714B (en) | Image processing method and device of multi-picture video session | |
CN103489203A (en) | Image coding method and system based on dictionary learning | |
CN107277520A (en) | The bit rate control method of infra-frame prediction | |
CN103096056A (en) | Matrix coding method and coding device and matrix decoding method and decoding device | |
CN103533365B (en) | Bit-rate control method and Bit-Rate Control Algorithm system | |
CN102186085A (en) | Video processing method, video processing device and system | |
CN102938840A (en) | Key frame quantization parameter selecting method applied to multi-viewpoint video coding system | |
CN110505454A (en) | The video feed system and method for demand are perceived based on scene mode and user | |
CN104038769B (en) | Rate control method for intra-frame coding | |
CN110225343A (en) | A kind of bit rate control method and device of Video coding | |
CN107181744A (en) | A kind of Video processing and coding method, processor and encoder | |
CN108810530A (en) | A kind of AVC bit rate control methods based on human visual system | |
CN104333761A (en) | HEVC basic unit level code rate allocation method | |
CN105992004B (en) | Image encoder bit rate control method based on video encoding standard | |
CN112165620A (en) | Video encoding method and device, storage medium and electronic equipment | |
CN105430395B (en) | A kind of HEVC CTU level bit-rate control methods based on optimum bit distribution | |
CN1110776C (en) | Method for coding with regional information | |
CN107105240A (en) | A kind of HEVC SCC complexity control methods and its system | |
CN104902285B (en) | A kind of method for encoding images |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |