CN104488266A - AVS video compressing and coding method, and coder - Google Patents

AVS video compressing and coding method, and coder Download PDF

Info

Publication number
CN104488266A
CN104488266A CN201380000789.4A CN201380000789A CN104488266A CN 104488266 A CN104488266 A CN 104488266A CN 201380000789 A CN201380000789 A CN 201380000789A CN 104488266 A CN104488266 A CN 104488266A
Authority
CN
China
Prior art keywords
coefficient
image
average
brightness value
frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201380000789.4A
Other languages
Chinese (zh)
Other versions
CN104488266B (en
Inventor
王振宇
王荣刚
高文
王文敏
董胜富
李英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University Shenzhen Graduate School
Original Assignee
Peking University Shenzhen Graduate School
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Shenzhen Graduate School filed Critical Peking University Shenzhen Graduate School
Publication of CN104488266A publication Critical patent/CN104488266A/en
Application granted granted Critical
Publication of CN104488266B publication Critical patent/CN104488266B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/124Quantisation
    • H04N19/126Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods 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/17Methods 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 an image region, e.g. an object
    • H04N19/176Methods 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 an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods 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/18Methods 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 set of transform coefficients
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods 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/186Methods 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods 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/1883Methods 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 relating to sub-band structure, e.g. hierarchical level, directional tree, e.g. low-high [LH], high-low [HL], high-high [HH]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/625Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding using discrete cosine transform [DCT]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards

Abstract

Disclosed are an AVS video compressing and coding method, and a coder. An initial weight and quantization coefficient of each frequency band in a quantization matrix is adjusted by mainly using a calculated average brightness value of an image to be coded and an average transform coefficient of each frequency band, so as to obtain a quantized final weight and quantization coefficient; and transform coefficients of different frequency points obtained by means of transforms are quantized in different steps by using the quantization matrix formed by the quantized final weight and quantization coefficients. In this way, attributes of an image to be coded are fully considered in a quantization process, and the weight and quantization coefficients in the quantization matrix is adaptively adjusted, thereby effectively reducing the coding rate while the video coding quality is ensured.

Description

AVS video compressing and coding method, and coder
AVS video compressing and encoding methods and encoder techniques field
The application is related to data processing field, more particularly to a kind of AVS video compressing and encoding methods and encoder.
Background technology
With the popularization of Video service, New Generation Audio-visual Coding Standard(Audio Video coding Standard, AVS) have been obtained for being widely applied.AVS video compression codings relate generally to a series of processes such as interframe and infra-frame prediction, conversion, quantization, entropy code, last output code flow.And, it is necessary to carry out the quantization of different step-lengths to the conversion coefficient of different frequent points obtained by conversion using quantization matrix in quantizing process.A fixed quantization matrix is provided in AVS standards, the frequency band of the quantization matrix is divided as shown in figure 1, it, which includes label 0 to 5 in 6 frequency bands, one weight quantization coefficient of each frequency band correspondence, Fig. 1, identifies corresponding frequency band.Carried out using the quantization matrix of the fixation after quantification treatment, visual redundancy can not be removed well, so that encoder bit rate can not be effectively reduced.
The content of the invention
The application provides a kind of AVS video compressing and encoding methods and encoder, while video encoding quality is ensured, effectively to reduce encoder bit rate.
According to the application's in a first aspect, the application provides a kind of AVS video compressing and encoding methods, including:
Obtain image to be encoded;
The pixel brightness value of each pixel in image to be encoded, calculates the average brightness value of image to be encoded;
Image to be encoded is divided into some pieces, the conversion coefficient that line translation obtains each frequency in block is entered to block, and by the conversion coefficient of frequency, calculates first average coefficient of each frequency in all affiliated blocks;Divided based on the initial band in quantization matrix, the first average coefficient of all frequencies in frequency band, calculate the second average coefficient of frequency band;
Using the average brightness value and the second average coefficient of each frequency band of image to be encoded, the initial weight quantization coefficient of each frequency band in adjust quantization matrix is corresponded to, final weight quantization coefficient is obtained.
According to the second aspect of the application, the application provides a kind of AVS video encoders, including:Acquisition module, for obtaining image to be encoded;
Brightness value computing module, for the first brightness value of each pixel in image to be encoded, meter Calculate the average brightness value of image to be encoded;
Division module, for image to be encoded to be divided into some pieces;
Conversion module, for entering the conversion coefficient that line translation obtains each frequency in block to block;Average coefficients calculation block, for the conversion coefficient by frequency, calculates first average coefficient of each frequency in all affiliated blocks;Divided based on the initial band in quantization matrix, the first average coefficient of all frequencies in frequency band, calculate the second average coefficient of frequency band;
Adjusting module, the initial weight quantization coefficient for using each frequency band in the average brightness value of image to be encoded and the second average coefficient of each frequency band, correspondence adjust quantization matrix, obtains final weight quantization coefficient.
The beneficial effect of the application is:
By providing a kind of AVS video compressing and encoding methods and encoder, the main average coefficient using the average brightness value and each frequency band that calculate gained image to be encoded, the initial weight quantization coefficient of each frequency band in quantization matrix is adjusted, obtain the final weight quantization coefficient for quantization, so as to the quantization matrix constituted using final weight quantization coefficient, the quantization of different step-lengths is carried out to the conversion coefficient of conversion gained different frequent points.So, quantizing process can fully take into account the attribute of image to be encoded in itself, adaptively carry out the adjustment of weight quantization coefficient in quantization matrix, while video encoding quality is ensured, effectively reduce encoder bit rate.
Brief description of the drawings
The schematic diagram that Fig. 1 divides for the quantization matrix midband of prior art;
Fig. 2 is the flow chart of the AVS video compressing and encoding methods of the embodiment of the present application one;Fig. 3 is the particular flow sheet of step 202 in the embodiment of the present application one;
Fig. 4 for initial weight quantization coefficient in the quantization matrix of the embodiment of the present application one schematic diagram;Fig. 5 is the structure chart of the AVS video encoders of the embodiment of the present application one;
Fig. 6 is the structure chart of luminance value computing unit 502 in the embodiment of the present application one;
Fig. 7 is the structure chart of adjusting module 506 in the embodiment of the present application one;
Fig. 8 is the particular flow sheet of step 202 in the embodiment of the present application two;
Fig. 9 is the structure chart of luminance value computing unit 502 in the embodiment of the present application two;
Figure 10 is the particular flow sheet of step 204 in the embodiment of the present application three;
Figure 11 is the structure chart of adjusting module 506 in the embodiment of the present application three.
Embodiment
The application is described in further detail below by embodiment combination accompanying drawing.
Embodiment one: The AVS video compressing and encoding methods of the present embodiment mainly include:First, treat coded image and carry out frame in or inter prediction, obtain residual block.Secondly, residual block is entered after line translation, quantizing process, then is entropy encoded and can obtain code stream.Wherein, the main final weight quantization coefficient used in the present embodiment in quantizing process, and final weight quantization coefficient obtains step 201 by flow as shown in Figure 2, obtains image to be encoded.
Step 202, in image to be encoded each pixel pixel brightness value, calculate the average brightness value of image to be encoded.Specifically, step 202 may include step as shown in Figure 3:
Step 301, in image to be encoded each pixel pixel brightness value Z (m), calculate the image brightness values L of image to be encoded.Wherein, image to be encoded includes M pixel, m e { l, 2 ..., M }, then, the image brightness values of image to be encoded can pass through following formula(1) calculate:
··· ··· ( 1 )
L=∑ l (m) step 302, by the image brightness values L and pixel quantity M of image to be encoded, calculates the average brightness value of image to be encoded.The average brightness value of image to be encoded can pass through following formula(2) come Step 203, treat coded image and extract attribute component, and attribute component is divided into some attribute blocks, enter the conversion coefficient that line translation obtains each frequency in attribute block to attribute block, and by the conversion coefficient of frequency, calculate first average coefficient of each frequency in all affiliated attribute blocks;Divided based on the initial band in quantization matrix, the first average coefficient of all frequencies in frequency band, calculate the second average coefficient of frequency band.Specifically, coded image extract light intensity level can be treated, and luminance component is divided into some luminance blocks, enter the luminance transformation coefficient that line translation obtains each frequency in luminance block to luminance block, and by the luminance transformation coefficient of frequency, brightness average coefficient of each frequency in all affiliated luminance blocks is calculated as the first average coefficient, conversion can use discrete cosine transform (Discrete Cosine Transform, DCT), approximate DCT or orthogonal transformation etc., the luminance transformation coefficient of each frequency can be expressed as wherein, the luminance component of image to be encoded is divided into a luminance block, fc e { l, 2, ..., in, take positive integer, the general value of brightness block size is the specification of the pixels of 8 pixel x 8, represent position of the frequency in luminance block, brightness average coefficient of so each frequency in all affiliated luminance blocks namely the first average coefficient can pass through following formula(3) and(4) calculate: C{i,j) = ^Cy{k,i,j) (3)
k=l
C(i,f)
C(i ) (4)
K
C { q)=∑ C (frequencies included.Step 204, using the average brightness value and the second average coefficient of each frequency band of image to be encoded, the initial weight quantization coefficient of each frequency band, obtains final weight quantization coefficient in correspondence adjust quantization matrix.Specifically, it is that whole frequency domain is divided into 6 frequency bands that the initial band of quantization matrix, which is divided, and the initial weight quantization coefficient of 6 frequency bands is { Η ^ Η ^, ^, Η ^, ^, Η ^, wherein, for the starting force mouthful power quantization parameter of the frequency band, ^ £ { 1,2,3,4,5,6 }, as shown in Figure 4, it is preferred that value is, the initial weight quantization coefficient of 6 frequency bands is { 75,225,135,120,90,150 }.In the present embodiment, the initial weight quantization coefficient quadrature of the average brightness value of coded image, the second average coefficient of each frequency band and each frequency band can be treated, final weight quantization coefficient is obtained.Obtain final weight quantization coefficient Books method such as following formula(6):
WB(q) = w LxC(q)…… ( 6 )
After obtaining final weight quantization coefficient, you can carry out follow-up frame in or inter prediction, conversion, quantified using final weight quantization coefficient, entropy code process, code stream is finally obtained.
Correspondingly, the AVS video encoders of the present embodiment may include structure as shown in Figure 5, certainly, can also accordingly include carrying out frame in or inter prediction, conversion, the module of entropy code processing in AVS video encoders.
Acquisition module 501, for obtaining image to be encoded;
Brightness value computing module 502, for the first brightness value of each pixel in image to be encoded, calculates the average brightness value of image to be encoded;
Division module 503, extracts attribute component, and attribute component is divided into some attribute blocks for treating coded image;
Conversion module 504, for entering the conversion coefficient that line translation obtains each frequency in attribute block to attribute block; Average coefficients calculation block 505, for the conversion coefficient by frequency, calculates first average coefficient of each frequency in all affiliated attribute blocks;Divided based on the initial band in quantization matrix, the first average coefficient of all frequencies in frequency band, calculate the second average coefficient of frequency band;It is that whole frequency domain is divided into 6 frequency bands that initial band, which is divided, and the initial weight quantization coefficients of 6 frequency bands is wherein, is the starting force mouthful power quantization parameter of the frequency band, g e { 1,2,3,4,5,6 },< w5 < w4 < w3 < w6 < w2.Preferably, an ancient type of spoon coefficient of starting force mouthful power amount 4 of 6 frequency bands is { 75,225,135,120,90,150 }.
Above-mentioned attribute component is luminance component, attribute block is luminance block, conversion module 504 can be used for entering luminance block the luminance transformation coefficient that line translation obtains each frequency in luminance block, average coefficients calculation block 505 then can be used for the luminance transformation coefficient by frequency, calculates brightness average coefficient of each frequency in all affiliated brightness sub-blocks and is used as the first average coefficient.
Adjusting module 506, the initial weight quantization coefficient for using each frequency band in the average brightness value of image to be encoded and the second average coefficient of each frequency band, correspondence adjust quantization matrix, obtains final weight quantization coefficient.
Wherein, brightness value computing module 502 specifically includes structure as shown in Figure 6:
Image brightness values computing unit 601, for the pixel brightness value of each pixel in image to be encoded, calculates the image brightness values of image to be encoded;
First average brightness value computing unit 602, for the image brightness values and pixel quantity by image to be encoded, calculates the average brightness value of image to be encoded.
Adjusting module 506 includes structure as shown in Figure 7:
Call unit 701, the initial weight quantization coefficient for obtaining each frequency band in quantization matrix;First product computing unit 702, the initial weight quantization coefficient quadrature for treating the average brightness value of coded image, the second average coefficient of each frequency band and each frequency band, obtains final weight quantization coefficient.
The present embodiment is by providing a kind of AVS video compressing and encoding methods and encoder, the main average coefficient using the average brightness value and each frequency band that calculate gained image to be encoded, the initial weight quantization coefficient of each frequency band in quantization matrix is adjusted, obtain the final weight quantization coefficient for quantization, so as to the quantization matrix constituted using final weight quantization coefficient, the quantization of different step-lengths is carried out to the conversion coefficient of conversion gained different frequent points.So, quantizing process can fully take into account the attribute of image to be encoded in itself, and such as brightness and colourity adaptively carry out the adjustment of weight quantization coefficient in quantization matrix, while video encoding quality is ensured, effectively reduce encoder bit rate.Further, since employing the initial weight quantization coefficient for meeting human visual system, measure The initial weight quantization coefficient of 6 frequency bands is in change matrix }, wherein, it is the starting force mouthful power quantization parameter of the frequency band, ^e { l, 2,3,4,5,6 }, wl <w5 <w4<w3 <w(i <w2, and the initial weight quantization coefficient of 6 frequency bands is preferably { 75,225,135,120,90,150 }, enable video compression coding further to remove the visual redundancy of video sequence, while video encoding quality is ensured, further effectively reduce encoder bit rate.
Embodiment two:
The present embodiment is essentially consisted in the difference of embodiment one:
In AVS video compressing and encoding methods, step 202 can specifically be realized by flow as shown in Figure 8, wherein, the block division methods of step 203 can be continued to use:
Step 801, after image to be encoded is divided into some pieces, the pixel brightness value of all pixels in each piece calculates the Block Brightness value of each block.Specifically, Block Brightness value can pass through such as following formula(7) calculated:
N
B k)=^l m) (7), wherein, Z (m) represents the pixel brightness value of m-th of pixel in the block,:I, 2 ..., N }, N is the pixel quantity in the block.Step 802, by all pieces of Block Brightness value and number of blocks, the average brightness value of image to be encoded is calculated.Specifically, the average brightness value of image to be encoded can pass through following formula(8) calculate:
L-_£ ^ ― ( s)
K
Correspondingly, brightness value computing module 502 can use structure as shown in Figure 9 to be replaced:Block Brightness value computing unit 901, for after image to be encoded is divided into some pieces by division module 503, the pixel brightness value of all pixels in each piece to calculate the Block Brightness value of each block;Second average brightness value computing unit 902, for the Block Brightness value and number of blocks by all pieces, calculates the average brightness value of image to be encoded.
Embodiment three:
The present embodiment is essentially consisted in embodiment one or the difference of embodiment two:
In AVS video compressing and encoding methods, step 204 can be realized by flow as shown in Figure 10:
Step 1001, first transformation relation of the average brightness value to the influence degree of weight quantization coefficient in quantization matrix for characterizing image to be encoded is set, and for characterizing the second of each frequency band Second transformation relation of the average coefficient to the influence degree of weight quantization coefficient in quantization matrix.Specifically, the _ mono- transformation relation can be such as following formula(9 ):
L' = ^ …… (9), wherein, be the secondary average brightness value of follow-up image to be encoded, be the constant that can be set, by adjusting constant a, b, you can influence degree of the average brightness value of regulation image to be encoded to weight quantization coefficient in quantization matrix.
And the second transformation relation can be such as following formula(10 ):
C q) =
f …… (10), wherein, C' for follow-up each frequency band secondary second average coefficient, e ,/it is the constant that can be set, by adjusting constant e, /, you can influence degree of the second average coefficient of each frequency band of regulation to weight quantization coefficient in quantization matrix.
Step 1002, the average brightness value of image to be encoded is entered into line translation using the first transformation relation, obtain the secondary average brightness value of image to be encoded, and the second average coefficient of each frequency band is entered into line translation using the second transformation relation, obtain the secondary second average coefficient of each frequency band.Specifically, you can use above-mentioned formula(9) and(10) the secondary average brightness value T of image to be encoded, is obtained!And the secondary second average coefficient C'(q of each frequency band).
Step 1003, the initial weight quantization coefficient quadrature of the secondary average brightness value of coded image, the secondary second average coefficient of each frequency band and each frequency band is treated, final weight quantization coefficient is obtained.Specifically, the final weight quantization coefficient of the frequency band can pass through following formula(11) calculate:
WB(q) = wq x L' x C'(q) ( 11 )
Correspondingly, adjusting module 506 can use structure as shown in figure 11 to be replaced:Call unit 1101, the initial weight quantization coefficient for obtaining each frequency band in quantization matrix;
Converter unit 1102, for according to the first transformation relation of average brightness value to the influence degree of weight quantization coefficient in quantization matrix set in advance for being used to characterize image to be encoded, and for characterizing second transformation relation of the second average coefficient to the influence degree of weight quantization coefficient in quantization matrix of each frequency band, the average brightness value of image to be encoded is entered into line translation using the first transformation relation, obtain the secondary average brightness value of image to be encoded, and the second average coefficient of each frequency band is entered into line translation using the second transformation relation, obtain the secondary second average coefficient of each frequency band;
Second product computing unit 1103, the secondary average brightness value, every for treating coded image The initial weight quantization coefficient quadrature of the secondary second average coefficient and each frequency band of one frequency band, obtains final weight quantization coefficient.
Example IV:
The present embodiment is essentially consisted in any embodiment difference in embodiment one to three:
In AVS video compressing and encoding methods, in step 203, treat coded image and extract attribute component, and attribute component is divided into some attribute blocks, enter the conversion coefficient that line translation obtains each frequency in attribute block to attribute block, and by the conversion coefficient of frequency, calculating first average coefficient of each frequency in all affiliated attribute blocks can also realize in the following way:Treat coded image difference extract light intensity level and chromatic component, and luminance component is divided into some luminance blocks, chromatic component is divided into some chrominance blocks, enter the luminance transformation coefficient that line translation obtains each frequency in luminance block to luminance block, enter the chromaticity transformation coefficient that line translation obtains each frequency in chrominance block to chrominance block, and by the luminance transformation coefficient and chromaticity transformation coefficient of frequency, calculate merging average coefficient of each frequency in all affiliated luminance blocks and chrominance block and be used as the first average coefficient.Specifically, conversion can be using DCT, approximate DCT or orthogonal transformation etc., and the luminance transformation coefficient of each frequency can be expressed as Cy(k, i, j), because colourity includes two class Cr and Cb, then, chromatic component also accordingly includes Cr chromatic components and Cb chromatic components, and chromaticity transformation coefficient also accordingly includes two sub- chromaticity transformation coefficients<^, and C U, ), wherein, the luminance component of image to be encoded is divided into a luminance block, yte { l, 2, ..., iq, take positive integer, and the chromatic component of image to be encoded is divided into G Cr luminance block and G Cb luminance block, ge (l, 2, ..., G), G takes positive integer and the generally a quarter of value, luminance block, Cr luminance blocks and the specification that the general value of Cb brightness block sizes is the pixels of 8 pixel X 8, represent frequency in luminance block, position in Cr luminance blocks and Cb luminance blocks, so each frequency is in all affiliated luminance blocks, merging average coefficient namely the first average coefficient in Cr luminance blocks and Cb luminance blocks can pass through following formula(12) calculate:
K G G
X cy (k, i, j) + χ cv (g,i, j) +∑cu(g, i, j)
C(i, j) = ^ ^ ^ …… (12 )
K + G + G
Correspondingly, in the AVS video encoders of the present embodiment, above-mentioned attribute component includes luminance component and chromatic component, attribute block includes luminance block and chrominance block, conversion module 504 can be used for entering luminance block the luminance transformation coefficient that line translation obtains each frequency in luminance block, enter the chromaticity transformation coefficient that line translation obtains each frequency in chrominance block to chrominance block, average coefficients calculation block 505 then can be used for the luminance transformation coefficient and chromaticity transformation coefficient by frequency, calculate each frequency in all institutes Merging average coefficient in category luminance block and chrominance block is used as the first average coefficient.
Need the following points further illustrated:
1st, the initial weight quantization coefficient of 6 frequency bands is also an option that other numerical value, for example, the starting force of 6 frequency bands.It is { 70,220,135,115,85,140 } to weigh quantization parameter, or, { 80,220,140,125,90,155 }, etc..
3rd, in the various embodiments described above, block is generally macro block.
Above content is to combine the further description that specific embodiment is made to the application, it is impossible to assert that the specific implementation of the application is confined to these explanations.For the application person of an ordinary skill in the technical field, on the premise of the application design is not departed from, some single deduction or replace can also be made.

Claims (10)

  1. Claim
    1. a kind of AVS video compressing and encoding methods, it is characterised in that including:
    Obtain image to be encoded;
    The pixel brightness value of each pixel in image to be encoded, calculates the average brightness value of image to be encoded;
    Treat coded image and extract attribute component, and attribute component is divided into some attribute blocks, enter the conversion coefficient that line translation obtains each frequency in attribute block to attribute block, and by the conversion coefficient of frequency, calculate first average coefficient of each frequency in all affiliated attribute blocks;Divided based on the initial band in quantization matrix, the first average coefficient of all frequencies in frequency band, calculate the second average coefficient of frequency band;
    Using the average brightness value and the second average coefficient of each frequency band of image to be encoded, the initial weight quantization coefficient of each frequency band in adjust quantization matrix is corresponded to, final weight quantization coefficient is obtained.
    2. AVS video compressing and encoding methods as claimed in claim 1, it is characterised in that the pixel brightness value of each pixel in image to be encoded, the average brightness value for calculating image to be encoded is specially:
    The pixel brightness value of each pixel in image to be encoded, calculates the image brightness values of image to be encoded, and by the image brightness values and pixel quantity of image to be encoded, calculates the average brightness value of image to be encoded, or,
    After image to be encoded is divided into some pieces, the pixel brightness value of all pixels in each piece calculates the Block Brightness value of each block;By all pieces of Block Brightness value and number of blocks, the average brightness value of image to be encoded is calculated;
    3. AVS video compressing and encoding methods as claimed in claim 1 or 2, it is characterised in that it is that whole frequency domain is divided into 6 frequency bands that initial band, which is divided, and the initial weight quantization coefficient of 6 frequency bands is w3, w4, w5, w6, wherein, w¾For the initial weight quantization coefficient of the frequency band, g e { 1,2,3,4,5,6 }, w,< w5 < w4 < w3 < w6 < w2, the starting force mouthful power quantization parameter of 6 frequency bands is { 75,225,135,120,90,150 }.
    4. AVS video compressing and encoding methods as claimed any one in claims 1 to 3, it is characterized in that, treat coded image and extract attribute component, and attribute component is divided into some attribute blocks, enter the conversion coefficient that line translation obtains each frequency in attribute block to attribute block, and by the conversion coefficient of frequency, calculate first average coefficient of each frequency in all affiliated attribute blocks specific For:
    Treat coded image extract light intensity level, and luminance component is divided into some luminance blocks, enter the luminance transformation coefficient that line translation obtains each frequency in luminance block to luminance block, and by the luminance transformation coefficient of frequency, brightness average coefficient of each frequency in all affiliated luminance blocks is calculated as the first average coefficient
    Or,
    Treat coded image difference extract light intensity level and chromatic component, and luminance component is divided into some luminance blocks, chromatic component is divided into some chrominance blocks, enter the luminance transformation coefficient that line translation obtains each frequency in luminance block to luminance block, enter the chromaticity transformation coefficient that line translation obtains each frequency in chrominance block to chrominance block, and by the luminance transformation coefficient and chromaticity transformation coefficient of frequency, calculate merging average coefficient of each frequency in all affiliated luminance blocks and chrominance block and be used as the first average coefficient.
    5. the AVS video compressing and encoding methods as any one of Claims 1-4, it is characterized in that, using the average brightness value and the second average coefficient of each frequency band of image to be encoded, the initial weight quantization coefficient of each frequency band in correspondence adjust quantization matrix, obtaining final weight quantization coefficient is specially:
    The initial weight quantization coefficient quadrature of the average brightness value of coded image, the second average coefficient of each frequency band and each frequency band is treated, final weight quantization coefficient is obtained, or,
    First transformation relation of the average brightness value to the influence degree of weight quantization coefficient in quantization matrix for characterizing image to be encoded is set, and for characterizing second transformation relation of the second average coefficient to the influence degree of weight quantization coefficient in quantization matrix of each frequency band;The average brightness value of image to be encoded is entered into line translation using the first transformation relation, obtain the secondary average brightness value of image to be encoded, and the second average coefficient of each frequency band is entered into line translation using the second transformation relation, obtain the secondary second average coefficient of each frequency band;The initial weight quantization coefficient quadrature of the secondary average brightness value of coded image, the secondary second average coefficient of each frequency band and each frequency band is treated, final weight quantization coefficient is obtained.
    6. a kind of AVS video encoders, it is characterised in that including:
    Acquisition module, for obtaining image to be encoded;
    Brightness value computing module, for the first brightness value of each pixel in image to be encoded, calculates the average brightness value of image to be encoded;
    Division module, extracts attribute component, and attribute component is divided into some attribute blocks for treating coded image; Conversion module, for entering the conversion coefficient that line translation obtains each frequency in attribute block to attribute block;
    Average coefficients calculation block, for the conversion coefficient by frequency, calculates first average coefficient of each frequency in all affiliated attribute blocks;Divided based on the initial band in quantization matrix, the first average coefficient of all frequencies in frequency band, calculate the second average coefficient of frequency band;
    Adjusting module, the initial weight quantization coefficient for using each frequency band in the average brightness value of image to be encoded and the second average coefficient of each frequency band, correspondence adjust quantization matrix, obtains final weight quantization coefficient.
    7. AVS video encoders as claimed in claim 6, it is characterised in that brightness value computing module includes:
    Image brightness values computing unit, for the pixel brightness value of each pixel in image to be encoded, calculates the image brightness values of image to be encoded;
    First average brightness value computing unit, for the image brightness values and pixel quantity by image to be encoded, calculates the average brightness value of image to be encoded, or,
    Brightness value computing module includes:
    Block Brightness value computing unit, for after image to be encoded is divided into some pieces by division module, the pixel brightness value of all pixels in each piece to calculate the Block Brightness value of each block;
    Second average brightness value computing unit, for the Block Brightness value and number of blocks by all pieces, calculates the average brightness value of image to be encoded.
    8. AVS video encoders as claimed in claims 6 or 7, it is characterised in that it is that whole frequency domain is divided into 6 frequency bands that initial band, which is divided, and the initial weight quantization coefficient of 6 frequency bands is { w1, w2, w3, w4, w5, w6, wherein, it is the initial weight quantization coefficient of the frequency band, g e { 1,2,3,4,5,6 }, w,< w5 < w4 < w3 < w6 < w2, the starting force mouthful power quantization parameter of 6 frequency bands is { 75,225,135,120,90,150 }.
    9. the AVS video encoders as any one of claim 6 to 8, it is characterized in that, attribute component is luminance component, attribute block is luminance block, conversion module is used to enter luminance block the luminance transformation coefficient that line translation obtains each frequency in luminance block, average coefficients calculation block is then used for the luminance transformation coefficient by frequency, calculates brightness average coefficient of each frequency in all affiliated brightness sub-blocks and is used as the first average coefficient
    Or, attribute component includes luminance component and chromatic component, and attribute block includes luminance block and chrominance block, and conversion module is used to enter luminance block the luminance transformation that line translation obtains each frequency in luminance block Coefficient, enter the chromaticity transformation coefficient that line translation obtains each frequency in chrominance block to chrominance block, average coefficients calculation block is then used for the luminance transformation coefficient and chromaticity transformation coefficient by frequency, calculates merging average coefficient of each frequency in all affiliated luminance blocks and chrominance block and is used as the first average coefficient.
    10. the AVS video encoders as any one of claim 6 to 9, it is characterised in that adjusting module includes:
    Call unit, the initial weight quantization coefficient for obtaining each frequency band in quantization matrix;First product computing unit, the initial weight quantization coefficient quadrature for treating the average brightness value of coded image, the second average coefficient of each frequency band and each frequency band, obtains final weight quantization coefficient, or,
    Adjusting module includes:
    Call unit, the initial weight quantization coefficient for obtaining each frequency band in quantization matrix;Converter unit, for according to the first transformation relation of average brightness value to the influence degree of weight quantization coefficient in quantization matrix set in advance for being used to characterize image to be encoded, and for characterizing second transformation relation of the second average coefficient to the influence degree of weight quantization coefficient in quantization matrix of each frequency band, the average brightness value of image to be encoded is entered into line translation using the first transformation relation, obtain the secondary average brightness value of image to be encoded, and the second average coefficient of each frequency band is entered into line translation using the second transformation relation, obtain the secondary second average coefficient of each frequency band;
    Second product computing unit, the initial weight quantization coefficient quadrature for treating the secondary average brightness value of coded image, the secondary second average coefficient of each frequency band and each frequency band, obtains final weight quantization coefficient.
CN201380000789.4A 2013-06-27 2013-06-27 AVS video compressing and encoding methods and encoder Active CN104488266B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/078148 WO2014205730A1 (en) 2013-06-27 2013-06-27 Avs video compressing and coding method, and coder

Publications (2)

Publication Number Publication Date
CN104488266A true CN104488266A (en) 2015-04-01
CN104488266B CN104488266B (en) 2018-07-06

Family

ID=52140827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201380000789.4A Active CN104488266B (en) 2013-06-27 2013-06-27 AVS video compressing and encoding methods and encoder

Country Status (3)

Country Link
US (1) US20160198160A1 (en)
CN (1) CN104488266B (en)
WO (1) WO2014205730A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020228670A1 (en) * 2019-05-10 2020-11-19 Beijing Bytedance Network Technology Co., Ltd. Luma based secondary transform matrix selection for video processing
US11575901B2 (en) 2019-08-17 2023-02-07 Beijing Bytedance Network Technology Co., Ltd. Context modeling of side information for reduced secondary transforms in video
US11638008B2 (en) 2019-08-03 2023-04-25 Beijing Bytedance Network Technology Co., Ltd. Selection of matrices for reduced secondary transform in video coding
US11924469B2 (en) 2019-06-07 2024-03-05 Beijing Bytedance Network Technology Co., Ltd. Conditional signaling of reduced secondary transform in video bitstreams

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3200455B1 (en) * 2016-01-28 2018-09-05 intoPIX Method and device for compression and decompression of binary data

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1157079A (en) * 1995-04-25 1997-08-13 菲利浦电子有限公司 Device and method for coding video pictures
US20020044693A1 (en) * 2000-10-17 2002-04-18 Nobuhiro Ogawa Image encoder and method of encoding images according to weight of portions of image
CN101432803A (en) * 2006-04-26 2009-05-13 索尼株式会社 Encoding method and encoding device
CN101438591A (en) * 2006-05-05 2009-05-20 微软公司 Flexible quantization
CN102223527A (en) * 2010-04-13 2011-10-19 华为技术有限公司 Weighting quant coding and decoding methods of frequency band and apparatus thereof
US20110268180A1 (en) * 2010-04-29 2011-11-03 Naveen Srinivasamurthy Method and System for Low Complexity Adaptive Quantization
US20120300841A1 (en) * 2006-12-18 2012-11-29 Emanuele Salvucci Multi-compatible low and high dynamic range and high bit-depth texture and video encoding system
CN103124347A (en) * 2012-10-22 2013-05-29 上海大学 Method for guiding multi-view video coding quantization process by visual perception characteristics

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11196262A (en) * 1997-11-07 1999-07-21 Matsushita Electric Ind Co Ltd Digital information imbedding extracting device/method, and medium recording program to execute the method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1157079A (en) * 1995-04-25 1997-08-13 菲利浦电子有限公司 Device and method for coding video pictures
US20020044693A1 (en) * 2000-10-17 2002-04-18 Nobuhiro Ogawa Image encoder and method of encoding images according to weight of portions of image
CN101432803A (en) * 2006-04-26 2009-05-13 索尼株式会社 Encoding method and encoding device
CN101438591A (en) * 2006-05-05 2009-05-20 微软公司 Flexible quantization
US20120300841A1 (en) * 2006-12-18 2012-11-29 Emanuele Salvucci Multi-compatible low and high dynamic range and high bit-depth texture and video encoding system
CN102223527A (en) * 2010-04-13 2011-10-19 华为技术有限公司 Weighting quant coding and decoding methods of frequency band and apparatus thereof
US20110268180A1 (en) * 2010-04-29 2011-11-03 Naveen Srinivasamurthy Method and System for Low Complexity Adaptive Quantization
CN103124347A (en) * 2012-10-22 2013-05-29 上海大学 Method for guiding multi-view video coding quantization process by visual perception characteristics

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020228670A1 (en) * 2019-05-10 2020-11-19 Beijing Bytedance Network Technology Co., Ltd. Luma based secondary transform matrix selection for video processing
US11575940B2 (en) 2019-05-10 2023-02-07 Beijing Bytedance Network Technology Co., Ltd. Context modeling of reduced secondary transforms in video
US11611779B2 (en) 2019-05-10 2023-03-21 Beijing Bytedance Network Technology Co., Ltd. Multiple secondary transform matrices for video processing
US11622131B2 (en) 2019-05-10 2023-04-04 Beijing Bytedance Network Technology Co., Ltd. Luma based secondary transform matrix selection for video processing
US11924469B2 (en) 2019-06-07 2024-03-05 Beijing Bytedance Network Technology Co., Ltd. Conditional signaling of reduced secondary transform in video bitstreams
US11638008B2 (en) 2019-08-03 2023-04-25 Beijing Bytedance Network Technology Co., Ltd. Selection of matrices for reduced secondary transform in video coding
US11882274B2 (en) 2019-08-03 2024-01-23 Beijing Bytedance Network Technology Co., Ltd Position based mode derivation in reduced secondary transforms for video
US11575901B2 (en) 2019-08-17 2023-02-07 Beijing Bytedance Network Technology Co., Ltd. Context modeling of side information for reduced secondary transforms in video

Also Published As

Publication number Publication date
WO2014205730A1 (en) 2014-12-31
US20160198160A1 (en) 2016-07-07
CN104488266B (en) 2018-07-06

Similar Documents

Publication Publication Date Title
JP6388355B2 (en) Adaptive dequantization method and apparatus in video coding
CN102138326B (en) Method and apparatus for inverse quantizing image, and method and apparatus for decoding image
CN104488266A (en) AVS video compressing and coding method, and coder
CN107645662B (en) Color image compression method
RU2013119934A (en) DEVICE FOR CODING MOVING IMAGES, DEVICE FOR CODING MOVING IMAGES, METHOD FOR CODING MOVING IMAGES AND METHOD FOR DECODING MOVING IMAGES
US11582489B2 (en) Techniques for video compression
JP2001298366A (en) Method for compressing image data, and method and device for quantizing data
CN102970536B (en) A kind of method for video coding with prediction residual adjustment of improvement
CN107211133B (en) Method and device for inverse quantization of transform coefficients and decoding device
JP2015501604A (en) Perceptually lossless and perceptually enhanced image compression system and method
CN103297773B (en) Based on the method for encoding images of JND model
CN102724381B (en) Bill image compression method based on JPEG (joint photographic experts group) compression principle
CN103533351B (en) A kind of method for compressing image quantifying table more
Zhang et al. Visual distortion sensitivity modeling for spatially adaptive quantization in remote sensing image compression
TW200516868A (en) Image compression system using 2D discrete wavelet transformation
CN110234011B (en) Video compression method and system
Zhang et al. Color image compression based on directional all phase biorthogonal transform
Mohammed et al. Efficient hybrid transform scheme for medical image compression
Wang et al. Properties of all phase biorthogonal transform matrix and its application in color image compression
Jiang et al. Shape Adaptive All Phase Biorthogonal Transform and Its Application in Image Coding.
CN110113603A (en) HD video processing terminal
Fu et al. Mathematical Relation between APBT-Based and DCT-Based JPEG Image Compression Schemes.
EP2360928A1 (en) A method for image compression
TW201626796A (en) Advanced video coding and decoding chip and advanced video coding and decoding method
US20220239915A1 (en) Perceptual adaptive quantization and rounding offset with piece-wise mapping function

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant