CN108632612A - The method and apparatus for encoding compression - Google Patents
The method and apparatus for encoding compression Download PDFInfo
- Publication number
- CN108632612A CN108632612A CN201810502817.7A CN201810502817A CN108632612A CN 108632612 A CN108632612 A CN 108632612A CN 201810502817 A CN201810502817 A CN 201810502817A CN 108632612 A CN108632612 A CN 108632612A
- Authority
- CN
- China
- Prior art keywords
- code stream
- quantization
- section
- residual values
- basic value
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/124—Quantisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/182—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/186—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/30—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
The invention discloses a kind of method and apparatus of coding compression.Wherein, this method includes:Coding compression is carried out to the Primary layer and enhancement layer of image according to preset quantization step respectively, obtains compressed code stream;Code stream is sent to receiving terminal.The present invention was solved due to the technical issues of lacking the effective technology compressed to character block in the prior art.
Description
Technical field
The present invention relates to image coding technique application fields, in particular to a kind of method and apparatus of coding compression.
Background technology
The video sequence of the equipment acquisition such as video sequence and video camera of the acquisition of computer screen picture has larger difference.
In computer screen picture, more scene has text screen, such as:Webpage is browsed, playing lantern slides etc. will appear a large amount of texts
Word.
Interception is carried out for character image and divides blocking, obtained image block message abbreviation character block by fixed size.
Since character block remains to keep the relatively reasonable distortion factor based on its distinctive property under larger compression ratio.
Character block has distortion after compression, and the compressed content of character block is known as Primary layer, the actual value and pressure of image
It is known as enhancement layer after difference compression between value after contracting recovery.When Primary layer and enhancement layer simultaneous transmission to decoding end, decoding
After the completion can be lossless recover original image.Under more scene, only transmits the picture quality after Primary layer restores and be possible to " no
It is up to standard ", and the lossless image " up to standard " that Primary layer and enhancement layer restore is transmitted, but more requirements are " human eye are lossless ".And " people
Eye is lossless " it is state between " not up to standard " between " up to standard ".This state is compared to lossless the case where not influencing observation
Lower code stream smaller.
At present in the compression algorithm of mainstream such as:H.264, H.265, JPEG is more the compression for nature picture.And
It is unsatisfactory for character block compression effectiveness.
For above-mentioned due to the problem of lacking the effective technology compressed to character block in the prior art, not yet carry at present
Go out effective solution scheme.
Invention content
An embodiment of the present invention provides a kind of method and apparatus of coding compression, at least to solve due to lacking in the prior art
The technical issues of weary effective technology that character block is compressed.
One side according to the ... of the embodiment of the present invention provides a kind of method of coding compression, including:Respectively according to default
Quantization step carries out coding compression to the Primary layer and enhancement layer of image, obtains compressed code stream;Code stream is sent to receiving terminal.
Optionally, coding compression is carried out to the enhancement layer of image according to preset quantization step, obtains compressed stream packet
It includes:The residual values range of the enhancement layer of acquisition;Interal separation is carried out to residual values range according to preset quantization step, obtains equivalent
Change the section of step-length;The number that the frequency of occurrences is most in section is counted, the quantization basic value in each section is obtained;According to quantization base
This value carries out coding compression to the residual values in each section, obtains compressed code stream.
Further, optionally, interal separation is carried out to residual values range according to preset quantization step, the quantizations step such as obtains
Long section includes:All kinds of components, obtain frequency histogram in statistics enhancement layer;According to preset quantization step and frequency histogram
Interal separation is carried out to residual values range, obtains the section for waiting quantization steps.
Optionally, coding compression is carried out to the residual values in each section according to quantization basic value, obtains compressed code
Stream includes:Minimizing, the residual values after being reduced are carried out to the residual values in section according to quantization basic value, wherein decrement
Residual values afterwards correspond to the section of each equal quantization steps respectively;The residual values after decrement are pressed according to quantization basic value
Contracting, obtains compressed code stream.
Further, optionally, sending code stream to receiving terminal includes:According to Preset Transfer rule code is sent to receiving terminal
Stream, wherein sending code stream to receiving terminal according to Preset Transfer rule includes:Pass according to quantization basic value and each interval limit
System, obtains the respective value in each section to be transmitted;Coding compression is carried out to corresponding to, obtains code stream;Code is sent to receiving terminal
Stream.
Other side according to the ... of the embodiment of the present invention provides a kind of device of coding compression, including:Coding module,
For carrying out coding compression to the Primary layer and enhancement layer of image according to preset quantization step respectively, compressed code stream is obtained;
Sending module, for sending code stream to receiving terminal.
Optionally, coding module includes:Acquiring unit, the residual values range of the enhancement layer for acquisition;Cutting unit is used
In carrying out interal separation to residual values range according to preset quantization step, the section for waiting quantization steps is obtained;Statistic unit is used for
The number that the frequency of occurrences is most in section is counted, the quantization basic value in each section is obtained;Coding unit, for according to quantization base
This value carries out coding compression to the residual values in each section, obtains compressed code stream.
Further, optionally, cutting unit includes:Subelement is counted, for all kinds of components in statistics enhancement layer, is obtained
Frequency histogram;Divide subelement, for carrying out section point to residual values range according to preset quantization step and frequency histogram
It cuts, obtains the section of equal quantization steps.
Optionally, coding unit includes:It is reduced subelement, for being carried out to the residual values in section according to quantization basic value
Minimizing, the residual values after being reduced, wherein the residual values after decrement correspond to the section of each equal quantization steps respectively;It compiles
Numeral unit obtains compressed code stream for being compressed to the residual values after decrement according to quantization basic value.
Further, optionally, sending module includes:Transmission unit, for being sent out to receiving terminal according to Preset Transfer rule
Send code stream, wherein transmission unit includes:Subelement is obtained, for the relationship according to quantization basic value and each interval limit, is obtained
To the respective value in each section to be transmitted;Compression subelement obtains code stream for carrying out coding compression to corresponding to;It sends
Subelement, for sending code stream to receiving terminal.
One side according to the ... of the embodiment of the present invention provides a kind of storage medium, and storage medium includes the program of storage,
Wherein, program executes the above-mentioned preset quantization step of foundation respectively and carries out coding compression to the Primary layer and enhancement layer of image, obtains
Compressed code stream;Code stream is sent to receiving terminal.
One side according to the ... of the embodiment of the present invention additionally provides a kind of processor, and processor is for running program, wherein
Program executes the above-mentioned preset quantization step of foundation respectively and carries out coding compression to the Primary layer and enhancement layer of image when running, obtain
Compressed code stream;Code stream is sent to receiving terminal.
In embodiments of the present invention, the Primary layer and enhancement layer of image are compiled using foundation preset quantization step respectively
The mode of code compression is obtained by carrying out coding compression to the Primary layer and enhancement layer of image according to preset quantization step respectively
Compressed code stream;The code stream is sent to receiving terminal, has achieved the purpose that reduce code stream, to realize image/video
Close to lossless technique effect after recovery, and then solve due to lacking the effective skill compressed to character block in the prior art
The technical issues of art.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair
Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the flow diagram of the method for coding compression according to the ... of the embodiment of the present invention;
Fig. 2 is quantization step/Primary layer size comparison in a kind of method of coding compression according to the ... of the embodiment of the present invention
Figure;
Fig. 3 is quantization step/psnr comparison diagrams in a kind of method of coding compression according to the ... of the embodiment of the present invention;
Fig. 4 is a kind of flow diagram of the method for coding compression according to the ... of the embodiment of the present invention;
Fig. 5 is the structural schematic diagram of the device of coding compression according to the ... of the embodiment of the present invention.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects
It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, "
Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way
Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
It includes to be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment to cover non-exclusive
Those of clearly list step or unit, but may include not listing clearly or for these processes, method, product
Or the other steps or unit that equipment is intrinsic.
Embodiment one
According to embodiments of the present invention, a kind of embodiment of the method for coding compression is provided, it should be noted that in attached drawing
The step of flow illustrates can execute in the computer system of such as a group of computer-executable instructions, although also,
Logical order is shown in flow chart, but in some cases, it can be to execute shown different from sequence herein or retouch
The step of stating.
Fig. 1 is the flow diagram of the method for coding compression according to the ... of the embodiment of the present invention, as shown in Figure 1, this method packet
Include following steps:
Step S102 carries out coding compression to the Primary layer and enhancement layer of image according to preset quantization step respectively, obtains
Compressed code stream;
Step S104 sends code stream to receiving terminal.
In embodiments of the present invention, the Primary layer and enhancement layer of image are compiled using foundation preset quantization step respectively
The mode of code compression is obtained by carrying out coding compression to the Primary layer and enhancement layer of image according to preset quantization step respectively
Compressed code stream;Code stream is sent to receiving terminal, has achieved the purpose that reduce code stream, is restored to realize image/video
Afterwards close to lossless technique effect, and then solve due to lacking the effective technology compressed to character block in the prior art
Technical problem.
Optionally, coding compression is carried out to the enhancement layer of image according to preset quantization step in step S102, is compressed
Code stream afterwards includes:
Step S1021, the residual values range of the enhancement layer of acquisition;
Step S1022 carries out interal separation to residual values range according to preset quantization step, obtains the area for waiting quantization steps
Between;
Step S1023 counts the number that the frequency of occurrences is most in section, obtains the quantization basic value in each section;
Step S1024 carries out coding compression to the residual values in each section according to quantization basic value, obtains compressed
Code stream.
Further, optionally, interal separation is carried out to residual values range according to preset quantization step in step S1022,
The section for obtaining equal quantization steps includes:
Step S10221, all kinds of components in statistics enhancement layer, obtains frequency histogram;
Step S10222 carries out interal separation to residual values range according to preset quantization step and frequency histogram, obtains
The section of equal quantization steps.
Optionally, coding compression is carried out to the residual values in each section according to quantization basic value in step S1024, obtained
Compressed code stream includes:
Step S10241 carries out minimizing, the residual error after being reduced according to quantization basic value to the residual values in section
Value, wherein the residual values after decrement correspond to each section for waiting quantization steps respectively;
Step S10242 compresses the residual values after decrement according to quantization basic value, obtains compressed code stream.
Further, optionally, sending code stream to receiving terminal in step S104 includes:
Step S1041 sends code stream, wherein according to Preset Transfer rule to connecing according to Preset Transfer rule to receiving terminal
Receiving end sends code stream:According to the relationship of quantization basic value and each interval limit, pair in each section to be transmitted is obtained
It should be worth;Coding compression is carried out to corresponding to, obtains code stream;Code stream is sent to receiving terminal.
To sum up, it under more scene, only transmits the picture quality after Primary layer restores and is possible to " not up to standard ", and transmit base
This layer of lossless image " up to standard " restored with enhancement layer, but more requirements are " human eye are lossless ".And " human eye is lossless " be between
State between " not up to standard " and " up to standard ".This state is compared to the lossless code stream smaller in the case where not influencing observation.
In the method for coding compression provided by the present application, it is less that the most important feature of character block is that main energy concentrates on
Several pixels in, such as article that screen display is a white gravoply, with black engraved characters, main energetic concentrates on white pixel and black picture
In element.Thus the pixel domain for defining energy concentration is Essential colour, and others are defined as escape color.
Essential colour is determined according to the frequency histogram of character block, determines that Essential colour obtains Essential colour code table later.According to
Essential colour and escape color, pixel in character block is encoded according to corresponding serial number (such as determine four Essential colour, serial number
0,1,2,3, all escape color serial numbers 4), prediction is introduced in an encoding process.
That is, whether tri- components of YUV of each pixel are equal with tri- components of pixel YUV in left side, if equal
It is indicated with symbol L;It is whether equal with tri- components of pixel YUV above, if equal indicated with symbol U;If unequal
It is indicated with symbol O.Thus prediction index code table is obtained.For the pixel that symbol is O, since itself can not be obtained according to neighborhood
Value, therefore need to write O data and correspond to code table.It is 4 for escape color Unified number in preceding step, therefore needs to write escape
Color corresponds to code table.It finally will be after above-mentioned Essential colour code table, prediction index code table, O data code table, escape colour coding table coding
It is transmitted.
Fig. 2 is quantization step/Primary layer size comparison in a kind of method of coding compression according to the ... of the embodiment of the present invention
Figure;Fig. 3 is quantization step/psnr comparison diagrams in a kind of method of coding compression according to the ... of the embodiment of the present invention;By Fig. 2 and figure
Shown in 3, to achieve the effect that close to lossless, by adjusting quantization step when reducing Primary layer coding, basic layer bit stream is at several
What increases.But it not is the result intentionally got that this, which is,.So that image is close to lossless by reducing the quantization step of Primary layer
And current major programme.Pay special attention to be not transmit enhancement layer in this scheme.
It is carried out after selecting a relatively reasonable quantization step to obtain Primary layer in the method for coding compression provided by the present application
Transmission, enhancement layer also carry out quantization transmission.Receiving terminal is shown after merging Primary layer and enhancement layer.It not only effectively controls in this way
Whole code stream also can get higher Y-PSNR (Peak Signal to Noise Ratio, abbreviation psnr).
Below for ease of statement, it is further analyzed for above-mentioned several groups of data.
Situation 1:When basic chromatograph quantization step take 1 escape color quantization step take 4 when, error [- 2 ,+2] it
Between;
Situation 2:When basic chromatograph quantization step take 4 escape color quantization steps take 16 when, error [- 8 ,+8] it
Between.
By both above situation it is not difficult to find that for reach close to lossless image, pixel error be reduced to by [- 8 ,+8] [-
2 ,+2] when, basic layer bit stream increases one times.It is important to note that the transmission for computer picture, is answered more
With under scene, the clarity that Primary layer transmission requires after restoring is very high.For the above situation 2, psnr 43.54.Not
In the case of being compared with original image, it is difficult to find out distortion.Wherein, the method skill to be solved of coding compression provided by the present application
Art problem is:How situation 1 preferably reached by situation 2.
Specifically, Fig. 4 is a kind of flow diagram of the method for coding compression according to the ... of the embodiment of the present invention, such as Fig. 4 institutes
Show, the method for coding compression provided by the present application is specific as follows:
For situation 2, the residual values range [- 8 ,+8] of enhancement layer Y, U, V.Its intermediate value be 0 represent the point value with original
Image value is equal, need not be adjusted.That is, it needs to which the residual values range of processing includes:The value of [- 8, -1] and [1,8].
It is described below for Y-component, U is consistent with V component method.
1. counting Y-component frequency histogram in a frame;
2. being step-length with 3, being divided into 6 sections to above-mentioned residual values range includes:(- 8, -7), (- 6, -5, -4), (-
3, -2, -1), (1,2,3), (4,5,6), (7,8);
3. the definition is quantified basic value by the most number of the frequency of occurrences in 6 sections of statistics respectively;Such as (1,
2,3) what the inside 1 occurred is most, and 1 is the quantization basic value in the region;
4. respective value is quantized into quantization basic value;(in step 3,1,2,3 to be all quantized into the frequency of occurrences highest 1);
5. by above-mentioned processing, residual values become 7 values from 17 values.Reference numeral is -3, -2, -1,0,1,2,3;
6. by correspondence coding transmission;According to (0 need not transmit) from small to large, 6 values are transmitted;
Transmission rule is:Quantify basic value-interval limit;Such as the corresponding quantization basic value in (- 8, -7) section is -7, by
In knowing corresponding position, 1 is transmitted.The quantization basic value in wherein (- 8, -7) and (7,8) section can be with table with 1 binary system
Show, remaining 4 section can be indicated with 2 binary systems, and transmission needs 2 altogether;
7. reference numeral [- 3,3] is carried out coding transmission with the encoder that counts.
By handling above, the image after recovery and error range in each pixel of original image are [- 2 ,+2].Peak value noise
It is more essentially identical with situation 1 than (Peak Signal to Noise Ratio, psnr), but Primary layer adds enhancement layer bitstream to be less than feelings
1 lower base layer code stream of condition.
It is directed to character block in the method for coding compression provided by the present application, close to lossless after requiring image/video to restore,
Other than adjusting the indexs such as Primary layer quantization parameter, a kind of scheme of effective compression adjustment enhancement layer is provided;Also, in people
Eye almost gives in the case of None- identified a set of close to lossless compression method, and larger compared to lossless compression reduces
Code stream.
Embodiment two
Other side according to the ... of the embodiment of the present invention provides a kind of device of coding compression, and Fig. 5 is according to the present invention
The structural schematic diagram of the device of the coding compression of embodiment, as shown in figure 5, including:
Coding module 52, for carrying out coding pressure to the Primary layer and enhancement layer of image according to preset quantization step respectively
Contracting, obtains compressed code stream;Sending module 54, for sending the code stream to receiving terminal.
In embodiments of the present invention, the Primary layer and enhancement layer of image are compiled using foundation preset quantization step respectively
The mode of code compression is obtained by carrying out coding compression to the Primary layer and enhancement layer of image according to preset quantization step respectively
Compressed code stream;The code stream is sent to receiving terminal, has achieved the purpose that reduce code stream, to realize image/video
Close to lossless technique effect after recovery, and then solve due to lacking the effective skill compressed to character block in the prior art
The technical issues of art.
Optionally, the coding module 52 includes:Acquiring unit, the residual values range of the enhancement layer for acquisition;
Cutting unit obtains waiting quantization steps for carrying out interal separation to the residual values range according to the preset quantization step
Section;Statistic unit obtains the quantization base in each section for counting the number that the frequency of occurrences is most in the section
This value;Coding unit is obtained for carrying out coding compression to the residual values in each section according to the quantization basic value
The compressed code stream.
Further, optionally, the cutting unit includes:Subelement is counted, it is all kinds of in the enhancement layer for counting
Component obtains frequency histogram;Divide subelement, is used for according to the preset quantization step and the frequency histogram to described
Residual values range carries out interal separation, obtains the section for waiting quantization steps.
Optionally, the coding unit includes:It is reduced subelement, is used for according to the quantization basic value in the section
Residual values carry out minimizing, the residual values after be reduced, wherein the residual values after the decrement correspond to respectively it is each described in
The section of equal quantization steps;Coded sub-units, for being pressed the residual values after the decrement according to the quantization basic value
Contracting, obtains the compressed code stream.
Further, optionally, the sending module 54 includes:Transmission unit is used for foundation Preset Transfer rule to institute
It states receiving terminal and sends the code stream, wherein the transmission unit includes:Subelement is obtained, for according to the quantization basic value
With the relationship of each interval limit, the respective value in each section to be transmitted is obtained;Subelement is compressed, for institute
It states to correspond to and carries out coding compression, obtain the code stream;Transmission sub-unit, for sending the code stream to the receiving terminal.
Embodiment three
One side according to the ... of the embodiment of the present invention provides a kind of storage medium, and storage medium includes the program of storage,
Wherein, program executes the above-mentioned preset quantization step of foundation respectively and carries out coding compression to the Primary layer and enhancement layer of image, obtains
Compressed code stream;The code stream is sent to receiving terminal.
Example IV
One side according to the ... of the embodiment of the present invention additionally provides a kind of processor, and processor is for running program, wherein
Program executes the above-mentioned preset quantization step of foundation respectively and carries out coding compression to the Primary layer and enhancement layer of image when running, obtain
Compressed code stream;The code stream is sent to receiving terminal.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
In the above embodiment of the present invention, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment
The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, for example, the unit division, Ke Yiwei
A kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module
It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
On unit.Some or all of unit therein can be selected according to the actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can to store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of method of coding compression, which is characterized in that including:
Coding compression is carried out to the Primary layer and enhancement layer of image according to preset quantization step respectively, obtains compressed code stream;
The code stream is sent to receiving terminal.
2. according to the method described in claim 1, it is characterized in that, being compiled to the enhancement layer of image according to preset quantization step
Code compression, obtaining compressed code stream includes:
The residual values range of the enhancement layer obtained;
Interal separation is carried out to the residual values range according to the preset quantization step, obtains the section for waiting quantization steps;
The number that the frequency of occurrences is most in the section is counted, the quantization basic value in each section is obtained;
Coding compression is carried out to the residual values in each section according to the quantization basic value, obtains the compressed code
Stream.
3. according to the method described in claim 2, it is characterized in that, according to the preset quantization step to the residual values range
Interal separation is carried out, the section for obtaining grade quantization steps includes:
All kinds of components in the enhancement layer are counted, frequency histogram is obtained;
Interal separation is carried out to the residual values range according to the preset quantization step and the frequency histogram, is obtained described
The section of equal quantization steps.
4. according to the method described in claim 2, it is characterized in that, it is described according to the quantization basic value to each section
In residual values carry out coding compression, obtaining the compressed code stream includes:
Minimizing, the residual values after being reduced are carried out to the residual values in the section according to the quantization basic value, wherein
Residual values after the decrement correspond to the section of each equal quantization steps respectively;
The residual values after the decrement are compressed according to the quantization basic value, obtain the compressed code stream.
5. according to the method described in claim 4, it is characterized in that, described include to the receiving terminal transmission code stream:
Send the code stream to the receiving terminal according to Preset Transfer rule, wherein it is described according to Preset Transfer rule to described
Receiving terminal sends the code stream:
According to the relationship of the quantization basic value and each interval limit, the correspondence in each section to be transmitted is obtained
Value;
Coding compression is carried out to described correspond to, obtains the code stream;
The code stream is sent to the receiving terminal.
6. a kind of device of coding compression, which is characterized in that including:
Coding module is obtained for carrying out coding compression to the Primary layer and enhancement layer of image according to preset quantization step respectively
Compressed code stream;
Sending module, for sending the code stream to receiving terminal.
7. device according to claim 6, which is characterized in that the coding module includes:
Acquiring unit, the residual values range of the enhancement layer for acquisition;
Cutting unit the quantizations such as obtains for carrying out interal separation to the residual values range according to the preset quantization step
The section of step-length;
Statistic unit, for counting the number that the frequency of occurrences is most in the section, the quantization for obtaining each section is basic
Value;
Coding unit is obtained for carrying out coding compression to the residual values in each section according to the quantization basic value
The compressed code stream.
8. device according to claim 7, which is characterized in that the cutting unit includes:
Statistics subelement obtains frequency histogram for counting all kinds of components in the enhancement layer;
Divide subelement, for carrying out area to the residual values range according to the preset quantization step and the frequency histogram
Between divide, obtain the section of the equal quantization steps.
9. device according to claim 7, which is characterized in that the coding unit includes:
It is reduced subelement, for carrying out minimizing to the residual values in the section according to the quantization basic value, is reduced
Residual values afterwards, wherein the residual values after the decrement correspond to the section of each equal quantization steps respectively;
Coded sub-units obtain the pressure for being compressed to the residual values after the decrement according to the quantization basic value
Code stream after contracting.
10. device according to claim 9, which is characterized in that the sending module includes:
Transmission unit, for sending the code stream to the receiving terminal according to Preset Transfer rule, wherein the transmission unit packet
It includes:
Subelement is obtained, for the relationship according to the quantization basic value and each interval limit, is obtained to be transmitted each
The respective value in a section;
Compression subelement obtains the code stream for carrying out coding compression to described correspond to;
Transmission sub-unit, for sending the code stream to the receiving terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810502817.7A CN108632612B (en) | 2018-05-23 | 2018-05-23 | Method and apparatus for code compression |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810502817.7A CN108632612B (en) | 2018-05-23 | 2018-05-23 | Method and apparatus for code compression |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108632612A true CN108632612A (en) | 2018-10-09 |
CN108632612B CN108632612B (en) | 2021-10-08 |
Family
ID=63690186
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810502817.7A Active CN108632612B (en) | 2018-05-23 | 2018-05-23 | Method and apparatus for code compression |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108632612B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007024106A1 (en) * | 2005-08-24 | 2007-03-01 | Samsung Electronics Co., Ltd. | Method for enhancing performance of residual prediction and video encoder and decoder using the same |
CN101087415A (en) * | 2007-06-08 | 2007-12-12 | 北京中星微电子有限公司 | An image compression method and device |
CN102833542A (en) * | 2012-08-09 | 2012-12-19 | 芯原微电子(北京)有限公司 | Device and method for increasing coding speed of quality enhancement layer in scalable video coding |
WO2014002446A1 (en) * | 2012-06-27 | 2014-01-03 | Canon Kabushiki Kaisha | Coding method and decoding mehtod of a quantization matrix |
CN104602010A (en) * | 2009-10-30 | 2015-05-06 | 三星电子株式会社 | Method and apparatus for encoding and decoding coding unit of picture boundary |
CN107147913A (en) * | 2017-05-16 | 2017-09-08 | 西安万像电子科技有限公司 | The transmission method and device of character block |
-
2018
- 2018-05-23 CN CN201810502817.7A patent/CN108632612B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007024106A1 (en) * | 2005-08-24 | 2007-03-01 | Samsung Electronics Co., Ltd. | Method for enhancing performance of residual prediction and video encoder and decoder using the same |
CN101087415A (en) * | 2007-06-08 | 2007-12-12 | 北京中星微电子有限公司 | An image compression method and device |
CN104602010A (en) * | 2009-10-30 | 2015-05-06 | 三星电子株式会社 | Method and apparatus for encoding and decoding coding unit of picture boundary |
WO2014002446A1 (en) * | 2012-06-27 | 2014-01-03 | Canon Kabushiki Kaisha | Coding method and decoding mehtod of a quantization matrix |
CN102833542A (en) * | 2012-08-09 | 2012-12-19 | 芯原微电子(北京)有限公司 | Device and method for increasing coding speed of quality enhancement layer in scalable video coding |
CN107147913A (en) * | 2017-05-16 | 2017-09-08 | 西安万像电子科技有限公司 | The transmission method and device of character block |
Non-Patent Citations (1)
Title |
---|
王建富: "H.265/HEVC编码加速算法研究", 《中国优秀博士论文数据库》 * |
Also Published As
Publication number | Publication date |
---|---|
CN108632612B (en) | 2021-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107483934B (en) | Coding and decoding method, device and system | |
US11282172B2 (en) | Guided restoration of video data using neural networks | |
CN107566842B (en) | The methods, devices and systems of image coding and decoding compression | |
US11259053B2 (en) | Entropy coding in image and video compression using machine learning | |
CN106385592B (en) | Method for compressing image and device | |
JPS63287186A (en) | Video picture transmission system | |
CN108881913B (en) | Method and apparatus for image encoding | |
CN106331716B (en) | Video-frequency compression method and device | |
CN106851280B (en) | The method and apparatus of compression of images | |
CN106686384A (en) | Character block compression method, device, image compression method and device | |
CN107147913B (en) | The transmission method and device of character block | |
EP4336829A1 (en) | Feature data encoding method and apparatus and feature data decoding method and apparatus | |
CN1875635A (en) | Transform domain sub-sampling for video transcoding | |
CN106604032B (en) | Method and device for compressing Chinese character blocks in image and method and device for compressing image | |
EP3711302B1 (en) | Spatially adaptive quantization-aware deblocking filter | |
WO2019067026A1 (en) | Image processing for compression | |
CN107172430B (en) | The coding method of character block and device | |
CN111770334A (en) | Data encoding method and device, and data decoding method and device | |
CN108632612A (en) | The method and apparatus for encoding compression | |
CN106791841B (en) | Method for compressing image and device | |
CN106713924B (en) | For text layered compression method and device | |
CN106851294B (en) | The compression method and device of image and its compression method and device of character block | |
Ramos et al. | Edge-adaptive JPEG image compression | |
CN107197295A (en) | A kind of coded system and method | |
Abd-Elhafiez | New approach for color image compression |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210913 Address after: Room 2563, building 11, 6055 Jinhai Road, Fengxian District, Shanghai, 201499 Applicant after: Shanghai Jingxiang Microelectronics Co.,Ltd. Address before: Room 302, 3 / F, workshop 4, 3G intelligent terminal Industrial Park, 8 Tangyan South Road, hi tech Zone, Xi'an City, Shaanxi Province 710075 Applicant before: XI'AN VANXVM ELECTRONICS TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |