CN1622632A - A video decoding method for implementing zoom - Google Patents

A video decoding method for implementing zoom Download PDF

Info

Publication number
CN1622632A
CN1622632A CN 200410102693 CN200410102693A CN1622632A CN 1622632 A CN1622632 A CN 1622632A CN 200410102693 CN200410102693 CN 200410102693 CN 200410102693 A CN200410102693 A CN 200410102693A CN 1622632 A CN1622632 A CN 1622632A
Authority
CN
China
Prior art keywords
unit data
frame
data piece
divergent
convergent
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
CN 200410102693
Other languages
Chinese (zh)
Other versions
CN1333601C (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.)
GUANGDONG ZHONGXING ELECTRONICS Co Ltd
Original Assignee
Vimicro Corp
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 Vimicro Corp filed Critical Vimicro Corp
Priority to CNB2004101026931A priority Critical patent/CN1333601C/en
Publication of CN1622632A publication Critical patent/CN1622632A/en
Application granted granted Critical
Publication of CN1333601C publication Critical patent/CN1333601C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The video zooming decoding process includes the following steps: performing the length code decoding, reverse discrete cosine conversion, reverse quantizing and reverse prediction to obtain decoded unit data block of the current frame; zooming the decoded unit data block of the current frame to obtain zoomed unit data block; and splicing and post-treating obtained unit data blocks to obtain the zoomed image of the current frame. The present invention has reduced calculation amount of the current frame, can perform the zooming operation of other unit data blocks while decoding one unit data block, and thus has raised decoding speed and raised real-time property.

Description

A kind of video encoding/decoding method of realizing convergent-divergent
Technical field
The present invention relates to video signal processing field, particularly a kind of video encoding/decoding method of realizing convergent-divergent.
Background technology
The Mpeg standard is by Motion Picture Experts Group (Moving Picture Expert Group, MPEG) standard of Kai Fa a series of evolution that are used for video and audio compression.According to the Mpeg standard, comprise three compositions behind the video image compression coding: I frame, P frame and B frame.Wherein the reference frame pattern is adopted in the compression of I frame, and compression in the frame only is provided; The P frame adopts predictive coding, and the I frame that prediction present frame and front are nearest or the difference of P frame are compressed, and have considered kinetic characteristic; The B frame is two-way interframe encode, compresses based on nearest I frame in present frame and front and back or the difference between the P two field picture.(Discrete Cosine Transform DCT), quantizes the result, and variable-length encoding, has promptly formed the Mpeg code stream behind the coding, and the frame preface of typical Mpeg-4 code stream is: IBBPBBPBBPI... just to adopt discrete cosine transform after frame is determined
When the Mpeg-4 code stream is decoded, need take different processing procedures respectively for I frame, P frame and B frame.
As shown in Figure 1, generally the processing procedure for the I frame is: at first the I frame data are carried out decoding length changeable code, inverse quantization, inverse discrete cosine transformation (Inverse Discrete Cosine Transform, IDCT) and instead predict that the back forms the time-space domain view data of this frame, the image of this I frame will be obtained after the processing such as its splicing and elimination blocking effect, then this two field picture is carried out zoom operations, obtain image behind the final convergent-divergent.
As shown in Figure 2, processing procedure for P frame or B frame is: the residual error data and the motion vector that at first P frame or B frame are carried out obtaining after decoding length changeable code, inverse quantization, IDCT, the anti-prediction this frame, then according to the compensation of taking exercises of residual error data, motion vector and reference picture, obtain the view data after the motion compensation of this frame, then this two field picture is carried out zoom operations, obtain image behind the final convergent-divergent.
From such scheme as can be seen, prior art is put in order two field picture after decoder decode goes out to put in order frame data zoom operations, and the convergent-divergent of video decode and image all has quite high amount of calculation, therefore the amount of calculation of prior art is big, be difficult to satisfy real-time requirement, the especially occasion of having relatively high expectations of system in real-times such as embedded systems.
Summary of the invention
In view of this, the present invention proposes a kind of video encoding/decoding method of realizing convergent-divergent, its purpose is to reduce the amount of calculation of system, improves the real-time of system operation.
According to above-mentioned purpose, a kind of video encoding/decoding method of realizing convergent-divergent is provided, this method may further comprise the steps:
A. current frame data is carried out decoding length changeable code, inverse discrete cosine transformation, inverse quantization and anti-prediction, obtain the decoded unit data piece of present frame;
B. described decoded unit data piece is carried out zoom operations, obtain the unit data piece behind the convergent-divergent;
C. the unit data piece that described step B is obtained splices and reprocessing, obtains image behind the convergent-divergent of present frame.
Preferably, described unit data piece is piece (Block).
Preferably, described unit data piece is macro block (Macro Block).
Described zoom operations adopts closes on method most, or bilinear interpolation, or cubic spline interpolation.
Described reprocessing comprises eliminates the blocking effect operation.
Further, the decoded unit data piece of described present frame comprises the residual error data of unit data piece and the motion vector of unit data piece; Described step B comprises: the residual error data to described unit data piece is carried out zoom operations, obtains the residual error data of the unit data piece behind the convergent-divergent; Motion vector to described unit data piece carries out zoom operations, obtains the motion vector of the unit data piece behind the convergent-divergent; Carry out motion compensation according to the residual error data of the unit data piece behind the described convergent-divergent, the motion vector of unit data piece behind the convergent-divergent and the reference units data block after the motion compensation, the unit data that obtains after the motion compensation is fast.
Reference units data block after the described motion compensation is the unit data piece after the motion compensation of I frame nearest before the present frame or P frame.
Reference units data block after the described motion compensation is the unit data piece after the motion compensation of I frame nearest after unit data piece after the motion compensation of I frame nearest before the present frame or P frame and the present frame or P frame.
The coded system that described current frame data adopts is Mpeg-1, Mpeg-2, Mpeg-4, H.261, H.263 or H.264.
From such scheme as can be seen, because the present invention goes out unit residual error data piece and motion vector after decoder goes out the unit data piece to the I frame decoding or to P frame or B frame decoding after, before motion compensation and image splicing, finished zoom operations, be that the object that the present invention carries out zoom operations is not whole two field picture, but the data volume of unit data block size, the present invention is when the some unit data pieces to present frame carry out zoom operations, can carry out the decode operation of other data block, shorten the processing time of whole frame data.From top analysis as can be seen, the present invention has shortened the processing time of whole frame data, has improved the real-time of system operation.
Description of drawings
Fig. 1 is a schematic flow sheet of handling the I two field picture in the prior art;
Fig. 2 is a schematic flow sheet of handling P frame or B two field picture in the prior art;
Fig. 3 is the schematic diagram that unit carries out convergent-divergent with the piece for the present invention;
Fig. 4 handles the schematic flow sheet of I two field picture for the present invention;
Fig. 5 handles the schematic flow sheet of P frame or B two field picture for the present invention;
Fig. 6 is a YUV420 form schematic diagram.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in more detail by the following examples.
In Mpeg-4, the tissue of data adopted macro block (Macro Block, MB) and the technology of piece (Block).Macro block has adopted 16 * 16 size, and piece has adopted 8 * 8 size.For unified operation, be that the present invention will be described for example as the unit data piece only here to adopt 8 * 8 piece.As shown in Figure 3, be 8 * 8 piece originally, through behind the convergent-divergent, the size of new data block is m * n.Certainly, also can use macro block as the unit data piece.
As shown in Figure 4 be the processing procedure of the present invention for the I frame.
Step 401 is carried out decoding length changeable code, IDCT, inverse quantization and anti-predicted operation to the I frame data, because the I frame is that 8 * 8 all data blocks have been adopted intraframe coding, so carried out obtaining behind the above-mentioned decode operation data block of 8 * 8 image pixel value.
Step 402 is carried out zoom operations to each data block of 8 * 8, can realize by closing on most methods such as method, bilinear interpolation, cubic spline interpolation.The size of new data block is m * n behind the convergent-divergent.
Step 403 is spliced above-mentioned m * n data block and reprocessing, obtains the complete I two field picture behind the convergent-divergent.The reprocessing here comprises operations such as eliminating blocking effect.
As shown in Figure 5 be the processing procedure of the present invention for P frame or B frame.Processing procedure with the P frame is an example:
Step 501 is carried out decoding length changeable code, IDCT, inverse quantization and anti-predicted operation to the P frame data, is residual error data and motion vector with data decode, and its size is 8 * 8.With the YUV420 form is example, as shown in Figure 6, corresponding 1 the U piece of per 4 Y pieces and a V piece, wherein Y1, Y2, Y3 and Y4 are luminance signal, U, V are carrier chrominance signal.The YUV420 form utilizes luminance component Y that estimation is carried out in motion when compressed encoding, has formed motion vector.When decoding, need utilize motion vector that three components of YUV are carried out motion compensation.
Step 502 is carried out convergent-divergent to the residual error data of each 8 * 8 size, can select methods such as the method for closing on most, bilinear interpolation and bicubic spline interpolation as required, obtains the residual error data piece of m * n size behind the convergent-divergent.
Step 503 is carried out convergent-divergent to the motion vector of the data block of 8 * 8 sizes, obtains the motion vector of the data block of m * n size.For example the motion vector of certain data block is V → = ( V x , V y ) , Motion vector became after this data block was scaled m * n size V → ′ = ( V x ′ , V y ′ ) , The convergent-divergent of motion vector need satisfy so:
V x=V x′·m/8
V y=V y′·n/8。
Step 504, motion vector behind the residual error data piece behind the convergent-divergent that obtains according to step 502, the convergent-divergent that step 503 obtains and the reference data piece after the motion compensation carry out motion compensation, obtain the data block after the motion compensation of m * n size.Reference data piece after the motion compensation here is meant the I frame that the present frame front is nearest or the data block of the relevant position of P frame after motion compensation.The data block of present frame can be used as the reference data piece of next frame after motion compensation, be used for the motion compensation of next frame data block.
Step 505, the data block of the m * n size after the motion compensation that step 504 is obtained is stitched together, and carries out reprocessing, obtains complete P two field picture behind the convergent-divergent.
Processing procedure and P frame for the B frame are roughly the same, and difference is: the reference data piece of B frame has two in step 504, is the nearest I frame in the data block of nearest I frame in front or P frame and back or the data block of P frame.
Obtain I frame, P frame and B two field picture in the Mpeg-4 code stream according to above-mentioned steps, just formed video sequence.
The present invention can be applied in the encoding scheme of any processing I frame, P frame or B frame, for example: Mpeg-1, Mpeg-2, H.261, H.263 and H.264 wait.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1, a kind of video encoding/decoding method of realizing convergent-divergent is characterized in that, this method may further comprise the steps:
A. current frame data is carried out decoding length changeable code, inverse discrete cosine transformation, inverse quantization and anti-prediction, obtain the decoded unit data piece of present frame;
B. described decoded unit data piece is carried out zoom operations, obtain the unit data piece behind the convergent-divergent;
C. the unit data piece that described step B is obtained splices and reprocessing, obtains image behind the convergent-divergent of present frame.
2, method according to claim 1 is characterized in that, described unit data piece is piece (Block).
3, method according to claim 1 is characterized in that, described unit data piece is macro block (Macro Block).
4, method according to claim 1 is characterized in that, described zoom operations adopts closes on method most, or bilinear interpolation, or cubic spline interpolation.
5, method according to claim 1 is characterized in that, described reprocessing comprises eliminates the blocking effect operation.
6, method according to claim 1 is characterized in that, the decoded unit data piece of described present frame comprises the residual error data of unit data piece and the motion vector of unit data piece;
Described step B comprises: the residual error data to described unit data piece is carried out zoom operations, obtains the residual error data of the unit data piece behind the convergent-divergent; Motion vector to described unit data piece carries out zoom operations, obtains the motion vector of the unit data piece behind the convergent-divergent; Carry out motion compensation according to the residual error data of the unit data piece behind the described convergent-divergent, the motion vector of unit data piece behind the convergent-divergent and the reference units data block after the motion compensation, the unit data that obtains after the motion compensation is fast.
7, method according to claim 6 is characterized in that, the reference units data block after the described motion compensation is the unit data piece after the motion compensation of I frame nearest before the present frame or P frame.
8, method according to claim 6, it is characterized in that the reference units data block after the described motion compensation is the unit data piece after the motion compensation of I frame nearest after unit data piece after the motion compensation of I frame nearest before the present frame or P frame and the present frame or P frame.
9, method according to claim 1 is characterized in that, the coded system that described current frame data adopts is Mpeg-1, Mpeg-2, Mpeg-4, H.261, H.263 or H.264.
CNB2004101026931A 2004-12-27 2004-12-27 A video decoding method for implementing zoom Expired - Fee Related CN1333601C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004101026931A CN1333601C (en) 2004-12-27 2004-12-27 A video decoding method for implementing zoom

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004101026931A CN1333601C (en) 2004-12-27 2004-12-27 A video decoding method for implementing zoom

Publications (2)

Publication Number Publication Date
CN1622632A true CN1622632A (en) 2005-06-01
CN1333601C CN1333601C (en) 2007-08-22

Family

ID=34766828

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004101026931A Expired - Fee Related CN1333601C (en) 2004-12-27 2004-12-27 A video decoding method for implementing zoom

Country Status (1)

Country Link
CN (1) CN1333601C (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100375107C (en) * 2006-01-18 2008-03-12 北京飞天诚信科技有限公司 Fingerprint image fragment splicing method
CN102368822A (en) * 2011-06-28 2012-03-07 上海盈方微电子有限公司 Architecture method of video decoding output model
CN101552897B (en) * 2008-07-11 2012-12-19 深圳市创凯电子有限公司 Method and apparatus for achieving the display of mosaicing high definition base image by using a U disk or/and a flash memory

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000004442A (en) * 1998-06-15 2000-01-07 Hitachi Ltd Decoding and display device for digital-coded image data
US6580759B1 (en) * 2000-11-16 2003-06-17 Koninklijke Philips Electronics N.V. Scalable MPEG-2 video system
CN1213613C (en) * 2003-09-12 2005-08-03 浙江大学 Prediction method and apparatus for motion vector in video encoding/decoding

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100375107C (en) * 2006-01-18 2008-03-12 北京飞天诚信科技有限公司 Fingerprint image fragment splicing method
CN101552897B (en) * 2008-07-11 2012-12-19 深圳市创凯电子有限公司 Method and apparatus for achieving the display of mosaicing high definition base image by using a U disk or/and a flash memory
CN102368822A (en) * 2011-06-28 2012-03-07 上海盈方微电子有限公司 Architecture method of video decoding output model

Also Published As

Publication number Publication date
CN1333601C (en) 2007-08-22

Similar Documents

Publication Publication Date Title
EP2230852A2 (en) Method and apparatus for weighted prediction in predictive frames
EP1359764B1 (en) Video encoding method with fading compensation
CN1611077A (en) Spatial scalable compression
CN1819658A (en) Method and device for coding a video picture in inter or intra mode
CN1751521A (en) Image decoding device, image decoding method, and image decoding program
WO2009073421A2 (en) System and methods for improved video decoding
JP2009531980A (en) Method for reducing the computation of the internal prediction and mode determination process of a digital video encoder
JP2003250157A (en) Optimal scanning method for transform coefficients in coding/decoding of still image and moving image
US10298955B2 (en) Non-transform coding
CN1708134A (en) Method and apparatus for estimating motion
CN1414793A (en) Compression video decoder with contraction image function and its method
US7502415B2 (en) Range reduction
CN1347621A (en) Reducing 'blocking picture' effects
US20060133490A1 (en) Apparatus and method of encoding moving picture
CN1947146A (en) Method of down-sampling data values
KR100697516B1 (en) Moving picture coding method based on 3D wavelet transformation
CN1622632A (en) A video decoding method for implementing zoom
CN1166208C (en) Transcoding method and device
CN111757109A (en) High-real-time parallel video coding and decoding method, system and storage medium
CN1302666C (en) Appts. and method of coding moving picture
CN100372382C (en) Video image coding method
CN1327345A (en) Video frequency source coding by movement prediction and block effect filtering
CN101150721A (en) Coding method and system with adaptable bit element plane coding mode
CN1190970C (en) Video reproducing device with quick postprocessing
CN1823530A (en) Encoding method and device

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
ASS Succession or assignment of patent right

Owner name: GUANGDONG ZHONGXING ELECTRONICS CO., LTD.

Free format text: FORMER OWNER: BEIJING VIMICRO CORPORATION

Effective date: 20150311

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100083 HAIDIAN, BEIJING TO: 519031 ZHUHAI, GUANGDONG PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20150311

Address after: 519031 Guangdong city of Zhuhai province Hengqin Baohua Road No. 6, room 105 -478

Patentee after: GUANGDONG ZHONGXING ELECTRONICS CO., LTD.

Address before: 100083, Haidian District, Xueyuan Road, Beijing No. 35, Nanjing Ning building, 15 Floor

Patentee before: Beijing Vimicro Corporation

DD01 Delivery of document by public notice

Addressee: GUANGDONG ZHONGXING ELECTRONICS CO., LTD.

Document name: Notification of Passing Examination on Formalities

DD01 Delivery of document by public notice
DD01 Delivery of document by public notice

Addressee: Shen Yingming

Document name: payment instructions

DD01 Delivery of document by public notice
DD01 Delivery of document by public notice

Addressee: Shen Yingming

Document name: Notice of termination of patent right

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070822

Termination date: 20201227