CN101729886B - Method, system and device for decoding videos - Google Patents

Method, system and device for decoding videos Download PDF

Info

Publication number
CN101729886B
CN101729886B CN 200810216934 CN200810216934A CN101729886B CN 101729886 B CN101729886 B CN 101729886B CN 200810216934 CN200810216934 CN 200810216934 CN 200810216934 A CN200810216934 A CN 200810216934A CN 101729886 B CN101729886 B CN 101729886B
Authority
CN
China
Prior art keywords
inverse quantization
coefficient
video
computing
intra
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN 200810216934
Other languages
Chinese (zh)
Other versions
CN101729886A (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.)
Guangzhou Ankai Microelectronics Co.,Ltd.
Original Assignee
Anyka Guangzhou Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anyka Guangzhou Microelectronics Technology Co Ltd filed Critical Anyka Guangzhou Microelectronics Technology Co Ltd
Priority to CN 200810216934 priority Critical patent/CN101729886B/en
Publication of CN101729886A publication Critical patent/CN101729886A/en
Application granted granted Critical
Publication of CN101729886B publication Critical patent/CN101729886B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention is suitable for the technical field of decoding videos and provides a method, a system and a device for decoding the videos. The method comprises the following steps of: performing decoding and reverse scanning on a data bit stream after video coding to acquire residual error coefficients; converting a first inverse quantization operation of a first video decoding standard into a second inverse quantization operation, and adopting the second inverse quantization operation to perform inverse quantization processing on the residual error coefficients, wherein devices adopted by the second inverse quantization operation and an inverse quantization operation of a second video decoding standard are same; performing saturation control on the coefficients after the inverse quantization processing; and performing inverse transformation operation on the coefficients obtained after the saturation control. Under the premise of ensuring the performance of a multimedia processor, the method, the system and the device effectively save the chip area, simplify the control logic, and have strong transportability, and the method can be adopted to perform hardware multiplexing as long as the algorithms of inverse quantization parts of the two types of the video decoding standards are similar to each other.

Description

A kind of video encoding/decoding method, system and equipment
Technical field
The invention belongs to the video decode technical field, relate in particular to a kind of video encoding/decoding method, system and equipment.
Background technology
At present, mobile multimedia processor is widely used in the various portable type electronic products, the video standard that the market demands multimedia processor is supported aspect the video decode standard, mainly comprises inverse quantization (Inverse Quantization more comprehensively, IQ) and inverse transformation (Inverse DCT, IDCT), different video decode standards has different inverse quantization processes, because for different video decode standards, the algorithm of IDCT part is identical, and the algorithm of inverse quantization part is generally inequality.
Prior art adopts the IDCT fractional reuse when carrying out video decode, the inverse quantization part is independent, though can accomplish hardware multiplexing to a certain extent, but when the video standard of supporting increases, and the similarity of different video standard inverse quantization part can not more effectively be utilized hardware resource when higher.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of video frequency decoding method, is intended to solve prior art in the video decode standard not simultaneously, can not realize the problem of inverse quantization process hardware multiplexing.
The embodiment of the invention is achieved in that a kind of video frequency decoding method, and described method comprises the steps:
Flow through decoding, counter-scanning obtains residual error coefficient to the data bit behind the video coding;
Convert the first inverse quantization computing of the first video decode standard to second inverse quantization computing, and adopt the second inverse quantization computing that described residual error coefficient is carried out inverse quantization and handle, the described second inverse quantization computing is identical with the device that the inverse quantization computing of the second video decode standard is adopted;
Coefficient after the inverse quantization processing is carried out saturated control;
The coefficient that saturated control is obtained carries out the inverse transformation computing;
The step that the described first inverse quantization computing with the first video decode standard converts the second inverse quantization computing to is specially:
Adopt formula F " [0] [0]=(QF[0] [0] * 8 * dc_scalar)>>3 calculate the DC coefficient of intra-frame prediction block; and wherein " [0] [0] is the DC coefficient for intra-frame prediction block to F, dc_scalar is the quantization step of DC coefficient, QF[0] [0] be the DC coefficient in the two-dimensional array of the residual error coefficient that obtains of counter-scanning;
The employing formula F " [v] [u]=(and QF[v] [u] * W[w] [v] [u] * quantiser_scale)>>3 or F " [v] [u]=(QF[v] [u] * 16 * quantiser_scale)>>3 calculating other coefficients except that the intra-frame prediction block DC coefficient, F wherein " [v] [u] is other coefficients except that the intra-frame prediction block DC coefficient that calculate gained; QF[v] [u] be the two-dimensional array of the residual error coefficient that obtains of counter-scanning; W[w] [v] [u] represent weight matrix; the w value is 0 or 1; W[0] [v] [u] be the weight matrix of intra-frame macro block use; and W[1] [v] [u] be the weight matrix of non-intra-frame macro block use, quantiser_scale is the quantization step of macro block, and each macro block value is fixed.
Another purpose of the embodiment of the invention is to provide a kind of system of video decode, and described system comprises:
The residual error coefficient acquiring unit, be used for to the data bit flow behind the video coding decode, counter-scanning obtains residual error coefficient;
Inverse quantization computing converting unit, be used for converting the first inverse quantization computing of the first video decode standard to second inverse quantization computing, and the residual error coefficient that adopts the second inverse quantization computing that described residual error coefficient acquiring unit is obtained carries out inverse quantization and handles, and the described second inverse quantization computing is identical with the device of the inverse quantization computing employing of the second video decode standard;
Saturated control unit is used for the coefficient after the described inverse quantization computing converting unit inverse quantization processing is carried out saturated control;
The inverse transformation unit, the coefficient that is used for saturated control is obtained carries out the inverse transformation computing;
Described inverse quantization algorithm converting unit adopts formula F " [0] [0]=(QF[0] [0] * 8 * dc_scalar)>>3 calculate the DC coefficient of the intra-frame prediction block of the first video decode standard; and wherein " [0] [0] is a DC coefficient of calculating the intra-frame prediction block of gained to F, dc_scalar is the quantization step of DC coefficient, QF[0] [0] be the DC coefficient in the two-dimensional array of the residual error coefficient that obtains of counter-scanning;
Adopt all formula F " [v] [u]=(QF[v] [u] * W[w] [v] [u] * quantiser_scale)>>3 or F " [v] [u]=(QF[v] [u] * 16 * quantiser_scale)>>3 calculate other coefficients except that the intra-frame prediction block DC coefficient, F wherein " [v] [u] is other coefficients except that the intra-frame prediction block DC coefficient that calculate gained; QF[v] [u] be the two-dimensional array of the residual error coefficient that obtains of counter-scanning; W[w] [v] [u] represent weight matrix; the w value is 0 or 1; W[0] [v] [u] be the weight matrix of intra-frame macro block use; and W[1] [v] [u] be the weight matrix of non-intra-frame macro block use, quantiser_scale is the quantization step of macro block, and each macro block value is fixed.
Another purpose of the embodiment of the invention is to provide a kind of equipment that comprises above-mentioned video decoding system.
In an embodiment of the present invention, when the inverse quantization algorithm similarity of two kinds of video decode standards is higher, by the inverse quantization process of the first video decode standard being carried out simplification to a certain degree, conversion, obtain the similar process of inverse quantization process with the second video decode standard, realize the hardware multiplexing of the inverse quantization process of two kinds of different video decoding standards, under the prerequisite that guarantees the multimedia processor performance, effectively saved chip area, simplified control logic, and it is portable strong, as long as the inverse quantization part algorithm of two kinds of video decode standards is similar, just can adopt the method to realize the hardware multiplexing of inverse quantization part.
The present invention is applied in the mobile multimedia processor of An Kai company, from actual effect, can well support the video decode requirement of 720x576 (D1) picture format, and video image is clear, stable, smooth, has satisfied the requirement of design performance.
Description of drawings
Fig. 1 is the realization principle schematic of the inverse quantization process of the first video decode standard that provides of prior art;
Fig. 2 is the realization principle schematic of the inverse quantization process of the second video decode standard that provides of prior art;
Fig. 3 is the realization flow figure of the video encoding/decoding method that provides of the embodiment of the invention;
Fig. 4 is the structural representation of the video decoding system that provides of the embodiment of the invention;
Fig. 5 is the structural representation of the hardware system handled of inverse quantization that the first video decode standard that provides of the embodiment of the invention and the second video decode standard are carried out video decode.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention, by the inverse quantization process of the first video decode standard being carried out simplification, conversion to a certain degree, be unified into and the similar inverse quantization process of the inverse quantization process of the second video decode standard, realize the hardware multiplexing of the inverse quantization process of two kinds of video decode standards.
Fig. 1 shows the realization principle of the inverse quantization process of the first video decode standard that prior art provides.Inverse quantization is actually the two-dimensional array QF[v of the residual error coefficient that counter-scanning is obtained] [u], producing the process of rebuilding conversion coefficient by inverse quantization, details are as follows for concrete implementation procedure:
Step 1: the two-dimensional array QF[v of the residual error coefficient that counter-scanning is obtained by the inverse quantization algorithm] [u] carry out inverse quantization and handle, and obtains coefficient F " [v] [u] behind the inverse quantization.
Two-dimensional array QF[v to residual error] [u] calculate by certain inverse quantization algorithm, just can obtain coefficient F " [v] [u] behind the inverse quantization.Wherein, the inverse quantization algorithm of this video decode has two kinds of situations:
First kind of inverse quantization algorithm:
The first step: calculate the DC coefficient of intra-frame prediction block, this DC coefficient is calculated by following formula:
F″[0][0]=dc_scalar*QF[0][0]
F wherein " [0] [0] is a DC coefficient of calculating the intra-frame prediction block of gained; dc_scalar is the quantization step of DC coefficient; luminance macroblock has different dc_scalar values, QF[0 with chrominance macroblock] [0] be the DC coefficient in the two-dimensional array of the residual error coefficient that obtains of counter-scanning.
Second step: calculate other coefficient except that the intra-frame prediction block DC coefficient, this coefficient is calculated by following formula:
F ′ ′ [ v ] [ u ] ] = 0 , ifQF [ v ] [ u ] = 0 ( ( 2 × QF [ v ] [ u ] + k ) × W [ w ] [ v ] [ u ] × quantiser _ scale ) / 16 , ifQF [ v ] [ u ] ≠ 0
wher?e:
k = 0 intra blocks Sign ( QF [ v ] [ u ] ) non - intra blocks
W[w wherein] [v] [u] represent weight matrix, it is quantization table, the w value is 0 or 1, which kind of weight matrix indicates this matrix is, W[0] [v] [u] be the weight matrix that intra-frame macro block uses, W[1] [v] [u] be the grand weight matrix of determining and using in the non-frame, quantiser_scale is the quantization step of macro block, and each macro block value is fixed.
Second kind of inverse quantization algorithm:
The first step: the DC coefficient of calculating intra-frame prediction block.
Identical with first kind of inverse quantization algorithm.
Second step: calculate other coefficient except that the intra-frame prediction block DC coefficient, this coefficient is calculated by following formula:
| F ′ ′ [ v ] [ u ] | = 0 , if QF [ v ] [ u ] = 0 , ( 2 × | QF [ v ] [ u ] | + 1 ) × quantiser _ scale , if QF [ v ] [ u ] ≠ 0 , quantiser _ scale is odd , ( 2 × | QF [ v ] [ u ] | + 1 ) × quantiser _ scale - 1 , if QF [ v ] [ u ] ≠ 0 , quantiser _ scale is even .
F wherein " symbol of [v] [u] is by QF[v] [u] decision, promptly
F″[v][u]=Sign(QF[v][u])×|F″[v][u]|
Step 2: by saturated control, the coefficient that inverse quantization is obtained carries out saturation, with its value restriction within limits.
The coefficient F that inverse quantization obtains " [v] [u] will be saturated between [2048,2047], controlled by following formula:
F ′ [ v ] [ u ] = 2 11 - 1 , F ′ ′ [ v ] [ u ] > 2 11 - 1 F ′ ′ [ v ] [ u ] - 2 11 ≤ F ′ ′ [ v ] [ u ] ≤ 2 11 - 1 - 2 11 , F ′ ′ [ v ] [ u ] ≤ - 2 11
Step 3: carry out ERROR CONTROL, the coefficient behind the inverse quantization of supersaturation control is revised.
Wherein ERROR CONTROL only is suitable for first kind of quantification method, ERROR CONTROL can be used with the arbitrary process of following equivalence and realize, at first to suing for peace through the reconstructed coefficients F ' of saturated control [v] [u] in the macro block, investigating this value then is odd number or even number, if this value is an even number, then coefficient F ' [7] [7] will be corrected, and concrete implementation procedure is controlled by following formula:
sum = &Sigma; v = 0 v < 8 &Sigma; u = 0 u < 8 F &prime; [ v ] [ u ]
F [ 7 ] [ 7 ] = F &prime; [ 7 ] [ 7 ] , if sum is odd F &prime; [ 7 ] [ 7 ] - 1 , if F &prime; [ 7 ] [ 7 ] is odd F &prime; [ 7 ] [ 7 ] + 1 , if F &prime; [ 7 ] [ 7 ] is even if sum is even
Fig. 2 shows the realization principle of the inverse quantization process of the second video decode standard that prior art provides.This inverse quantization process does not have the ERROR CONTROL part, the coefficient QF[v before the inverse quantization] after [u] obtain coefficient F ' [v] [u] by the inverse quantization algorithm, can obtain rebuilding DCT coefficient F[v through saturation arithmetic] [u], details are as follows for concrete implementation procedure:
Step 1: the two-dimensional array QF[v of the residual error that counter-scanning is obtained by the inverse quantization algorithm] [u] carry out inverse quantization and handle, and obtains the coefficient F ' [v] [u] behind the inverse quantization, and this coefficient is calculated by following formula:
F′[v][u]=QF[v][u]×W[w][v][u]
W[w wherein] [v] [u] represent quantization table, the w value is 0 or 1, which kind of matrix indicates this matrix is, wherein W[0] [v] [u] be the matrix that chrominance block is used, W[1] [v] [u] be the matrix that luminance block is used.
Step 2: by saturated control the result that inverse quantization obtains is carried out saturation, within limits with its value restriction.
Similar with saturated control in the first video decode standard, just the coefficient that obtains of inverse quantization will be saturated between [1024,1023], promptly
F [ v ] [ u ] = 2 10 - 1 , F &prime; [ v ] [ u ] > 2 10 - 1 F &prime; [ v ] [ u ] - 2 10 &le; F &prime; &prime; [ v ] [ u ] &le; 2 10 - 1 - 2 10 , F &prime; [ v ] [ u ] &le; - 2 10
Embodiments of the invention are for the hardware multiplexing of the inverse quantization of realizing two kinds of video decode standards, the inverse quantization process of the first video decode standard has been carried out simplification to a certain degree, conversion, finally obtained and the similar inverse quantization process of the second video decode standard.
Fig. 3 shows the realization flow of the video encoding/decoding method that the embodiment of the invention provides, and details are as follows:
In step S301, flow through decoding, counter-scanning obtains residual error coefficient to the data bit behind the video coding.
In step S302, convert the first inverse quantization computing of the first video decode standard to second inverse quantization computing, and adopt the second inverse quantization computing that described residual error coefficient is carried out inverse quantization and handle, the described second inverse quantization computing is identical with the device that the inverse quantization computing of the second video decode standard is adopted.
Concrete step is:
The first step: the formula that the DC coefficient of the first video decode standard is calculated is changed, be unified into and second kind of second inverse quantization computing that the video decode standard is similar, can calculate by following formula after the conversion:
F″[0][0]=(QF[0][0]×8×dc_scalar)>>3
Second step: the formula to other coefficients of calculating except that the intra-frame prediction block DC coefficient of the first video decode standard is changed, and is unified into the second inverse quantization computing similar with the second video decode standard.
The calculating of other coefficients of first kind of inverse quantization algorithm except that the intra-frame prediction block DC coefficient of the first video decode standard, because F ' [v] [u]=QF[v is satisfied in the inverse quantization computing of second video decode] [u] * W[w] [v] [u], wherein use multiplier, and adder and divider have been used in first kind of inverse quantization algorithm computation other coefficients except that the intra-frame prediction block DC coefficient of the first video decode standard, the added k value of adder is ± 1, other coefficients of comparing in the inverse quantization algorithmic formula are very little, can ignore, do not influence the effect of decoding, and used in the formula of other coefficients of first kind of inverse quantization algorithm computation except that the intra-frame prediction block DC coefficient of the first video decode standard and taken advantage of 2 to remove 16 computings, wherein relating to divider divider hardware, to implement difficulty big, can change, realize that with multiplier and shift unit the second inverse quantization computing after the conversion can be calculated by following formula:
F″[v][u]=(QF[v][u]×W[w][v][u]×quantiser_scale)>>3
The calculating of other coefficients of second kind of inverse quantization algorithm except that the intra-frame prediction block DC coefficient of the first video decode standard, because F ' [v] [u]=QF[v is satisfied in the inverse quantization computing of second video decode] [u] * W[w] [v] [u], wherein only use multiplier, relate in the formula of other coefficients of second kind of inverse quantization algorithm computation except that the intra-frame prediction block DC coefficient of the first video decode standard and add 1, subtract 1 computing, but other coefficients of comparing in the inverse quantization algorithmic formula are very little, can ignore, do not influence the effect of decoding, therefore second kind of inverse quantization algorithm of the first video decode standard changed, the second inverse quantization computing after the conversion can be calculated by following formula:
F″[v][u]=(QF[v][u]×16×quantiser_scale)>>3
The core that the inverse quantization algorithm changes be make first video decode the inverse quantization algorithm can with formula F ' [v] [u]=QF[v of the second video decode inverse quantization algorithm] [u] * W[w] [v] [u] be approaching, and for hardware realizes that simply different situations are rewritten into identical expression formula.
The direct application of formula F ' of inverse quantization algorithm [v] [u]=QF[v to the second video decode standard] [u] * W[w] [v] [u] get final product.
In step S303, the coefficient after the inverse quantization processing is carried out saturated control.
Carry out saturated control, the coefficient that obtains after inverse quantization is handled carries out saturation, with its value restriction within limits.In saturated being controlled at [2048, the 2047] scope, the second video decode standard then is controlled in [1024,1023] scope behind the first video decode standard inverse quantization.
In step S304, the coefficient that saturated control is obtained carries out the inverse transformation computing.
The algorithm of the IDCT process of two kinds of video decode standards is identical, and matrix size is that the two-dimentional idct transform of NxN is calculated by following formula:
f [ x ] [ y ] = 2 N &Sigma; u = 0 N - 1 &Sigma; v = 0 N - 1 C ( u ) C ( v ) F [ v ] [ u ] cos ( 2 x + 1 ) u&pi; 2 N cos ( 2 x + 1 ) v&pi; 2 N
Because the ERROR CONTROL of the first video decode inverse quantization process only is suitable for first kind of inverse quantization algorithm, and the second video decode inverse quantization process does not have ERROR CONTROL, so when carrying out hardware multiplexing, can ignore error control procedure, directly carry out inverse transformation after saturated control, the inverse transformation device of two kinds of video decode standard employings is identical.
As one embodiment of the present of invention, because the inverse transformation algorithm is identical, after the coefficient that obtains after inverse quantization handled carries out saturated control, directly carry out inverse transformation, can realize the hardware multiplexing of inverse quantization and IDCT.
As another preferred embodiment of the present invention, because after the saturated control, inverse quantization result's coefficient is inequality, width for unified IDCT input coefficient, when receiving the data bit flow of the second video decode standard, the coefficient that obtains after the inverse quantization processing be multiply by 2 after saturated control, after carrying out inverse transformation, the video image reconstructed coefficients that this inverse transformation is obtained is divided by 2, also can realize the hardware multiplexing of inverse quantization and IDCT, and can improve the operational precision of IDCT part by the adjustment of this coefficient.
Fig. 4 shows the structure of the video decoding system that the embodiment of the invention provides, and for convenience of explanation, only shows the relevant part of the embodiment of the invention.Wherein, video decoding system 41 can be the software unit that is built in the video decoding apparatus, the unit of hardware cell or soft or hard combination.
Residual error coefficient acquiring unit 42, be used for to the data bit flow behind the video coding decode, counter-scanning obtains residual error coefficient.
Inverse quantization computing converting unit 43 converts the first inverse quantization computing of the first video decode standard to second inverse quantization computing, and the residual error coefficient that adopts the second inverse quantization computing that described residual error coefficient acquiring unit is obtained carries out inverse quantization and handles, and the described second inverse quantization computing is identical with the device of the inverse quantization computing employing of the second video decode standard.Its detailed process does not repeat them here as mentioned above.
Coefficient after 44 pairs of described inverse quantization computing converting unit inverse quantizations of saturated control unit are handled carries out saturated control.Its detailed process does not repeat them here as mentioned above.
The coefficient that the 45 pairs of saturated controls in inverse transformation unit obtain carries out the inverse transformation computing.
Coefficient adjustment unit 46 is handled after the coefficient of saturated control and adjust through the video image reconstructed coefficients that inverse transformation obtains inverse quantization when receiving the video image of the second video decode standard.Its detailed process does not repeat them here as mentioned above.
Fig. 5 shows the structure of the hardware system that inverse quantization that the first video decode standard that the embodiment of the invention provides and the second video decode standard carry out video decode handles, and for convenience of explanation, only shows the relevant part of the embodiment of the invention.
The structure of the hardware system that inverse quantization is handled comprises first multiplier, and second multiplier, shift unit and video decode standard judging unit judge that the video that will decode meets the first video decode standard or meets the second video decode standard.Wherein multiplier 1 is the coefficient value that counter-scanning obtains, and bit wide is 11 bits; Multiplier 2 is from quantization table W[w] read the value that obtains [v] [u], bit wide is 12 bits, and the DC coefficient of all 8x8 pieces and calculate the value of not using quantization table in the inverse quantization algorithm of non-DC coefficient with second kind of quantification method in the first video decode standard picture, therefore the value of all DC coefficient corresponding quantitative tables is preset as 8, is preset as 16 with the value of the non-DC coefficient corresponding quantitative table of second kind of quantification method; Multiplier 3 is quantiser_scale in the first video decode standard or the value of dc_scalar.This inverse quantization treatment system is at first calculated the product of multiplier 1 and multiplier 2 by first multiplier, carry out the video that inverse quantization handles by video decode standard judgment unit judges then and whether meet the second video decode standard, directly give saturated control unit and handle if then first multiplier is calculated the coefficient of gained; Otherwise the result who multiplier 3 is given second multiplier and the first multiplier gained carries out product calculation, moves to right by shift unit and gives saturated control unit with the gained result after 3 and handle.
In embodiments of the present invention, when the inverse quantization algorithm similarity of two kinds of video decode standards is higher, by the inverse quantization process of the first video decode standard being carried out simplification to a certain degree, be converted to the similar process of inverse quantization process with the second video decode standard, can realize the inverse quantization hardware multiplexing of two kinds of different video decoding standards, under the prerequisite that guarantees the multimedia processor performance, effectively saved chip area, simplified control logic, and it is portable strong, as long as the inverse quantization part algorithm of several video decode standards is similar, just can adopt the method multiplexing.
One of ordinary skill in the art will appreciate that, realize that all or part of step in the foregoing description method is to instruct relevant hardware to finish by program, described program can be in being stored in a computer read/write memory medium, described storage medium is as ROM/RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. a video encoding/decoding method is characterized in that, described method comprises the steps:
Flow through decoding, counter-scanning obtains residual error coefficient to the data bit behind the video coding;
Convert the first inverse quantization computing of the first video decode standard to second inverse quantization computing, and adopt the second inverse quantization computing that described residual error coefficient is carried out inverse quantization and handle, the described second inverse quantization computing is identical with the device that the inverse quantization computing of the second video decode standard is adopted;
Coefficient after the inverse quantization processing is carried out saturated control;
The coefficient that saturated control is obtained carries out the inverse transformation computing;
The step that the described first inverse quantization computing with the first video decode standard converts the second inverse quantization computing to is specially:
Adopt formula F " [0] [0]=(QF[0] [0] * 8 * dc_scalar)>>3 calculate the DC coefficient of intra-frame prediction block; and wherein " [0] [0] is the DC coefficient for intra-frame prediction block to F, dc_scalar is the quantization step of DC coefficient, QF[0] [0] be the DC coefficient in the two-dimensional array of the residual error coefficient that obtains of counter-scanning;
The employing formula F " [v] [u]=(and QF[v] [u] * W[w] [v] [u] * quantiser_scale)>>3 or F " [v] [u]=(QF[v] [u] * 16 * quantiser_scale)>>3 calculating other coefficients except that the intra-frame prediction block DC coefficient, F wherein " [v] [u] is other coefficients except that the intra-frame prediction block DC coefficient that calculate gained; QF[v] [u] be the two-dimensional array of the residual error coefficient that obtains of counter-scanning; W[w] [v] [u] represent weight matrix; the w value is 0 or 1; W[0] [v] [u] be the weight matrix of intra-frame macro block use; and W[1] [v] [u] be the weight matrix of non-intra-frame macro block use, quantiser_scale is the quantization step of macro block, and each macro block value is fixed.
2. the method for claim 1 is characterized in that, the step that described coefficient after inverse quantization is handled carries out saturated control and output is specially:
When receiving the video image of the first video decode standard, " [v] [u] is saturated to [2048,2047] to the coefficient F that obtains after inverse quantization handled.
3. the method for claim 1 is characterized in that, the step that described coefficient after inverse quantization is handled carries out saturated control is specially:
When receiving the video image of the second video decode standard, the coefficient that obtains after the inverse quantization processing is saturated to [1024,1023].
4. the method for claim 1 is characterized in that, described method also comprises:
When receiving the video image of the second video decode standard, the coefficient that obtains after inverse quantization handled multiply by 2 after saturated control, carry out inverse transformation after, the video image reconstructed coefficients that this inverse transformation is obtained is divided by 2.
5. a video decoding system is characterized in that, described system comprises:
The residual error coefficient acquiring unit, be used for to the data bit flow behind the video coding decode, counter-scanning obtains residual error coefficient;
Inverse quantization computing converting unit, be used for converting the first inverse quantization computing of the first video decode standard to second inverse quantization computing, and the residual error coefficient that adopts the second inverse quantization computing that described residual error coefficient acquiring unit is obtained carries out inverse quantization and handles, and the described second inverse quantization computing is identical with the device of the inverse quantization computing employing of the second video decode standard;
Saturated control unit is used for the coefficient after the described inverse quantization computing converting unit inverse quantization processing is carried out saturated control;
The inverse transformation unit, the coefficient that is used for saturated control is obtained carries out the inverse transformation computing;
Described inverse quantization algorithm converting unit adopts formula F " [0] [0]=(QF[0] [0] * 8 * dc_scalar)>>3 calculate the DC coefficient of the intra-frame prediction block of the first video decode standard; and wherein " [0] [0] is a DC coefficient of calculating the intra-frame prediction block of gained to F, dc_scalar is the quantization step of DC coefficient, QF[0] [0] be the DC coefficient in the two-dimensional array of the residual error coefficient that obtains of counter-scanning;
The employing formula F " [v] [u]=(and QF[v] [u] * W[w] [v] [u] * quantiser_scale)>>3 or F " [v] [u]=(QF[v] [u] * 16 * quantiser_scale)>>3 calculating other coefficients except that the intra-frame prediction block DC coefficient, F wherein " [v] [u] is other coefficients except that the intra-frame prediction block DC coefficient that calculate gained; QF[v] [u] be the two-dimensional array of the residual error coefficient that obtains of counter-scanning; W[w] [v] [u] represent weight matrix; the w value is 0 or 1; W[0] [v] [u] be the weight matrix of intra-frame macro block use; and W[1] [v] [u] be the weight matrix of non-intra-frame macro block use, quantiser_scale is the quantization step of macro block, and each macro block value is fixed.
6. system as claimed in claim 5 is characterized in that, described system also comprises:
The coefficient adjustment unit is used for when receiving the video image of the second video decode standard, and inverse quantization is handled after the coefficient of saturated control and adjust through the video image reconstructed coefficients that inverse transformation obtains.
7. system as claimed in claim 5 is characterized in that, described saturated control unit is saturated to [2048,2047] with the coefficient that obtains after the inverse quantization processing when receiving the video image of the first video decode standard.
8. system as claimed in claim 5 is characterized in that, described saturated control unit is saturated to [1024,1023] with the coefficient that obtains after the inverse quantization processing when receiving the video image of the second video decode standard.
9. equipment that comprises the described video decoding system of the arbitrary claim of claim 5 to 8.
CN 200810216934 2008-10-24 2008-10-24 Method, system and device for decoding videos Active CN101729886B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810216934 CN101729886B (en) 2008-10-24 2008-10-24 Method, system and device for decoding videos

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810216934 CN101729886B (en) 2008-10-24 2008-10-24 Method, system and device for decoding videos

Publications (2)

Publication Number Publication Date
CN101729886A CN101729886A (en) 2010-06-09
CN101729886B true CN101729886B (en) 2011-09-28

Family

ID=42449959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810216934 Active CN101729886B (en) 2008-10-24 2008-10-24 Method, system and device for decoding videos

Country Status (1)

Country Link
CN (1) CN101729886B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130049523A (en) * 2011-11-04 2013-05-14 오수미 Apparatus for generating intra prediction block
CN106105047B (en) * 2014-03-14 2018-10-26 夏普株式会社 Video compress with color space scalability

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1170310A (en) * 1996-05-31 1998-01-14 索尼公司 Image decoding apparatus and process thereof and image reproduction apparatus
US20060050784A1 (en) * 2002-11-01 2006-03-09 Ville Lappalainen Method and device for transcoding images
CN1905675A (en) * 2006-08-07 2007-01-31 清华大学 Method for programmable entropy decoding based on shared storage and countra-quantization

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1170310A (en) * 1996-05-31 1998-01-14 索尼公司 Image decoding apparatus and process thereof and image reproduction apparatus
US20060050784A1 (en) * 2002-11-01 2006-03-09 Ville Lappalainen Method and device for transcoding images
CN1905675A (en) * 2006-08-07 2007-01-31 清华大学 Method for programmable entropy decoding based on shared storage and countra-quantization

Also Published As

Publication number Publication date
CN101729886A (en) 2010-06-09

Similar Documents

Publication Publication Date Title
CN1697328B (en) Fast video codec transform implementations
JP4425561B2 (en) 2-D conversion for image and video coding
JP3964765B2 (en) Improved block transform and quantization for image and video coding
KR101028676B1 (en) Transforms with common factors
JP5015285B2 (en) Low Complexity Unification Transform for Video Coding
KR101507183B1 (en) Computational complexity and precision control in transform-based digital media codec
KR101013344B1 (en) Reduction of errors during computation of discrete cosine transform
US20140010284A1 (en) Image transform and inverse transform method, and image encoding and decoding device using same
US7627187B2 (en) Low complexity and unified transforms for video coding
US8059716B2 (en) Apparatus for and method of transcoding data
CN101729886B (en) Method, system and device for decoding videos
KR101722215B1 (en) Apparatus and method for discrete cosine transform
He et al. Improved conversion from DCT blocks to integer cosine transform blocks in H. 264/AVC
CN100349466C (en) Method and device for qrasi-energy convervation change in vide frequency image cornpression
Balam et al. Associative processors for video coding applications
JP2005354307A (en) Inverse quantizer and image decoder employing same
CN101309403A (en) Frequency domain video transcoding method and transcoding device implementing the same
KR101252043B1 (en) Device having integrated module and decoding method thereof
US6993550B2 (en) Fixed point multiplying apparatus and method using encoded multiplicand
Chan et al. A new quantized DCT and its implementation on multimedia processor
BRPI0712996A2 (en) Efficient fixed-point approximations of discrete, direct, and inverse cosine transforms

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 510600, Guangzhou Science City, Guangdong science Road, 182 innovation building, C1 District, 3 floor

Patentee after: Guangzhou Ankai Microelectronics Co.,Ltd.

Address before: 510600, Guangzhou Science City, Guangdong science Road, 182 innovation building, C1 District, 3 floor

Patentee before: ANYKA (GUANGZHOU) MICROELECTRONICS TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 510555 No. 107 Bowen Road, Huangpu District, Guangzhou, Guangdong

Patentee after: Guangzhou Ankai Microelectronics Co.,Ltd.

Address before: 510600, Guangzhou Science City, Guangdong science Road, 182 innovation building, C1 District, 3 floor

Patentee before: Guangzhou Ankai Microelectronics Co.,Ltd.