CN1200629A - Method for improving the realization of video-frequency coding device - Google Patents

Method for improving the realization of video-frequency coding device Download PDF

Info

Publication number
CN1200629A
CN1200629A CN 97104376 CN97104376A CN1200629A CN 1200629 A CN1200629 A CN 1200629A CN 97104376 CN97104376 CN 97104376 CN 97104376 A CN97104376 A CN 97104376A CN 1200629 A CN1200629 A CN 1200629A
Authority
CN
China
Prior art keywords
dct
image
predicated error
search
coding
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 97104376
Other languages
Chinese (zh)
Other versions
CN1067832C (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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CN97104376A priority Critical patent/CN1067832C/en
Publication of CN1200629A publication Critical patent/CN1200629A/en
Application granted granted Critical
Publication of CN1067832C publication Critical patent/CN1067832C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The invention includes four portions of motion estimation, frame prediction and predictive error production, transformation and quantitfication, image reconstitution, and entropy coding. It is characterized by that in the portion of motion estimation, the search result of each step in the stepped search process is fed into decision device G, and in the portion of coding, the predictive error PE, before DCT, also is fed into decision device L, so that it can save a lot of transformation and search operation so as to greatly raise coding speed.

Description

What video encoder was realized improves one's methods
The invention belongs to the motion image coding technical field.
In the current information age, the storage and the transmission of image become more and more important.Because visual primary data information (pdi) amount is very huge, be at the storage medium stores image of limited capacity and the information channel transmission image of limited capacity, the compression of pictorial data, just motion video being encoded is absolutely necessary.Motion image coding be by the comprehensive utilization picture intelligence in the redundancy aspect time, space, the statistics three, and the knowledge of scene, human vision property realize.Comparatively ripe at present coding method is the hybrid coding method that combines predictive coding, transition coding, several coding methods of entropy coding and motion compensation technique.
Wherein a kind of coding implementation method may further comprise the steps as shown in Figure 1:
(1) the current image and a last image reconstruction of input are made estimation ME, estimation obtains motion vector MV;
(2) according to motion vector a last reconstruction frames is made prediction P, obtain predictive image current image;
(3) predictive image that current image is deducted current image obtains predicated error PE;
(4) predicated error is made discrete cosine transform DCT and quantized Q;
(5) result of (4) is made variable-length encoding VLC and obtain the present encoding image; With
(6) result to (4) makes the predicated error that re-quantization IQ, inverse discrete cosine transform IDCT obtain rebuilding, and obtains current image reconstruction with current predictive image addition again, becomes a last image reconstruction through frame memory FM.
The function of each step is as follows among Fig. 1:
The calculating of estimation, prediction and predicated error (subtracter) constitutes predictive coding, is in order to eliminate picture intelligence correlation in time.Certain part that in time correlation of image shows as the present frame image is obtained through motion by certain part of previous frame image.And motion is described by motion vector, and estimation will be tried to achieve motion vector exactly, and prediction then is the variation that compensates, offsets the signal that produces because of motion between present frame image and the previous frame image area according to motion vector.
Discrete cosine transform DCT constitutes transition coding, and purpose is in order to eliminate picture intelligence correlation spatially.Quantizing Q is the needs of back entropy coding, is again to have utilized human vision property to improve encoding quality.
Variable-length encoding VLC constitutes entropy coding, has further eliminated the correlation of the statistics of picture intelligence.
Re-quantization IQ, inverse discrete cosine transform IDCT, adder realize image reconstruction, for prediction provides object of reference.
The encoder of the above-mentioned hybrid coding method of existing realization as shown in Figure 2.Piece DCT, piece Q, piece IQ, piece IDCT, piece VLC are meant that one (is 8 * 8 pixels by international standard) advanced discrete cosine transform DCT, quantized Q, re-quantization IQ, inverse discrete cosine transform IDCT, variable-length encoding VLC for unit in a frame (width of cloth) image among the figure.Macro block P is meant that with a macro block (is 6 pieces by international standard) in the frame image be that unit predicts P.Macro block MV refers to the motion vector of macro block.0 is meant that 8 * 8 elements all are 0 in the piece.
The course of work that this encoder is realized is: at first, a frame (width of cloth) image is that unit encodes with one (8 * 8 pixel) or a macro block (6 pieces).Secondly, whole cataloged procedure is divided into two parts: the empty frame of estimation and coding core such as Fig. 2.The present frame macro block at first enters estimation and partly makes estimation, and estimation obtains motion vector MV, is input to the coding core present frame macro block is encoded, and specifically is divided into following steps:
At first, a present frame macro block and a last reconstruction frames macro block are made estimation.Estimation is divided into whole pel search and two steps of half pel search.Whole pel search adopts the graded movement searching method, is about to the region of search classification: rest point, little region of search, large search territory.This is typical 3 grades, and specific implementation can change, and as 2 grades: rest point, little region of search are about to little region of search and large search territory and merge; Or 4 grades: rest point, little region of search, large search territory, large search territory more are about to the large search territory and segment two-stage again, but want two-stage at least.Will enter decision device A, B and judge after the search of preceding two-stage region of search finishes, judge whether to satisfy criterion and can stop the coding core that whole pel search enters into half pel search and back, concrete decision rule may be diversified.
Secondly, enter after the coding core, the motion vector that obtains macro block according to estimation is predicted a last reconstruction frames macro block and is obtained current predictive frame macro block, with subtracter the present frame macro block is deducted current predictive frame macro block then and calculates predicated error, then is DCT, Q.
At last, DCT and Q will enter decision device after finishing, judge whether current data block is 0, because 0 like water off a duck's back to follow-up entropy coding and image reconstruction, so when ruling out current data block is 0, then the cataloged procedure of current block finishes, and turns back to prediction and subtracter and goes to carry out the processing of next piece; If non-0, then carry out entropy coding and image reconstruction.
The deficiency of the implementation method of this encoder is that coding rate is not high enough.To QCIF form simple motion image sequence (as the Claire sequence), utilize Pentium-133 PC still can't accomplish software real-time coding (25 frame/second).
The objective of the invention is to overcome the weak point of prior art, on the basis of original coding method, set up to image in the judgement of a large amount of remainder certificates, substantially not or a little reduce under the prerequisite of other performances, improve encoder speed.
A kind of coding method of improved motion video comprises that the estimation when forward part, the frame prediction to current image generates conversion and quantification, image reconstruction, entropy coding four parts with predicated error; Estimation obtains motion vector MV; According to motion vector MV the previous frame image is made the predictive image that prediction P obtains current image; Calculate predicated error PE; Predicated error PE is made discrete cosine transform DCT and quantizes Q; The result is taken a decision as to whether complete zero,, then carry out entropy coding VLC and image reconstruction if not if then change the next part of current image over to; It is characterized in that, in the estimation part, every grade of Search Results in the hierarchical search process is all entered decision device G, judge whether predicated error PE is complete zero through DCT, Q, if then end-of-encode forwards the next part of current image to, then continue the next stage search if not; In coded portion, before being carried out DCT, predicated error PE enters decision device L, judge that whether predicated error PE is complete zero through DCT, Q, if then end-of-encode forwards the next part of current image to, then carry out DCT, the Q of next step if not.
The present invention compared with prior art has following characteristics:
First, in the coding core, increased a conversion leading decision device L before carrying out DCT, Q, this decision device L can most ofly become those 0 blocks of prediction through DCT, Q and judges in advance and needn't be DCT, Q, can save the computing of being DCT, Q in a large number like this.
Second, after in estimation each grade search finishes global decision device G is set, in case criterion is to satisfy among the global decision device G, then the whole cataloged procedure to this macro block just is through with, just not only finish whole pel search process, and half pel search, whole coding core all needn't have been done, thereby improve speed of coding greatly.
Brief description of drawings
Fig. 1 is a hybrid coding method block diagram
Fig. 2 is existing video encoder structured flowchart
Fig. 3 is a video encoder structured flowchart of the present invention
The realization flow figure of the decision device L of this enforcement of Fig. 4
The realization flow figure of the decision device G of this enforcement of Fig. 5
Adopt coding method of the present invention to realize a kind of embodiment of video encoder such as Fig. 3~shown in Figure 5.In conjunction with each figure, be described in detail as follows:
Novel Video Coder Implementation block diagram of the present invention as shown in Figure 3, its course of work is:
(1) a present frame macro block and a last reconstruction frames macro block are made estimation.Estimation comprises whole pel search and half pel search.Whole pel search adopts the graded movement searching method, with the region of search classification: rest point, little region of search, large search territory.(this is typical 3 grades, and specific implementation can change, and is the same).After the search of each grade region of search finishes, all enter decision device G, judgement is calculated predicated error at the motion vector that current this one-level search obtains after predicting, whether so current predicated error macro block becomes 0 macro block (6 pieces all are 0 in the macro block) through DCT, Q, if then the cataloged procedure of current macro finishes, forward next macro block to; Then continue the search of next stage if not.Half pel search obtains motion vector after finishing, and enters the coding core.
(2) enter after the coding core, the motion vector that obtains macro block according to estimation is predicted a last reconstruction frames macro block and is obtained current predictive frame macro block, deducts current predictive frame macro block calculating predicated error with the present frame macro block then.
(3) predicated error is not earlier made DCT, Q and enter decision device L in advance and judge judge whether the error current piece becomes 0 through DCT, Q,, forward next piece of current macro to if then finish the cataloged procedure of current block; If non-0, then carry out DCT, Q.
(4) because decision device L can not guarantee that all are become 0 predicated error through DCT, Q all judges in advance, so after DCT, Q, still keep a decision device, whether judgement current data block after DCT, Q is 0, if then needn't carry out subsequent processes, forwards next piece to; Then do entropy coding and image reconstruction if not to these non-0.
The specific implementation block diagram of decision device L of the present utility model, G is described below respectively shown in Fig. 4,5:
Decision device L depends on a piece decision rule (can be described as the preface criterion), and this criterion is: right-8 * 8 blocks of data, the usefulness collection f (x, y) | x, y=0,1 ..., 7} represents, is blocks of prediction specific to Fig. 3, the usefulness collection f (x, y) | x, y=0,1 ..., 7} represents.When satisfying ( ( x i 0 + y i 0 &prime; ) &CenterDot; cos 2 &pi; 16 + ( x i 1 + y i 1 &prime; ) &CenterDot; cos 2 3 &pi; 16 + ( x i 2 + y i 3 &prime; ) &CenterDot; cos 2 5 &pi; 16 ) + ( x i 3 + y i 3 &prime; ) &CenterDot; cos 2 7 &pi; 16 ) < 20 QP , then current block becomes 0 through DCT, Q.Wherein, x i 0 &GreaterEqual; x i 1 &GreaterEqual; x &CenterDot; i 2 &GreaterEqual; x i 3 , i 0, i 1, i 2, i 3∈ 0,1,2,3} and different, x j = &Sigma; i = 0 7 | f ( i , j ) | + &Sigma; i = 0 7 | f ( i , 7 - j ) | , j=0,1,2,3, y i 0 &prime; &GreaterEqual; y i 1 &prime; &GreaterEqual; y i 2 &prime; &GreaterEqual; y i 3 &prime; , i 0', i 1', i 2', i 3' ∈ 0,1,2,3} and different, y i = &Sigma; j = 0 7 | f ( i , j ) | + &Sigma; j = 0 7 | f ( 7 - i , j ) | , i=0,1,2,3。QP is that two of this piece place macro block is changed parameter, is a quantization step half (for macroblock coding, QP determines).Like this, the realization flow figure of decision device L as shown in Figure 4.Fig. 4:
To blocks of prediction f (x, y) | x, y=0,1 ..., 7} does the processing respectively of row and column: to row, at first calculate each row absolute value sum &Sigma; y = 0 7 | f ( x , y ) | = u x , x=0,1 ..., 7 then, u x=u x+ u 7-x, x=0,1,2,3, to u 0, u 1, u 2, u 3By sequence arrangement from big to small x i 0 , x i 1 , x i 2 , x i 3 ; To row, calculate each row absolute value sum &Sigma; x = 0 7 f ( x , y ) = v y , y=0,1 ..., 7 calculate v y=v y+ v 7-y, y=0,1,2,3, to pressing sequence arrangement from big to small y i 0 &prime; , y i 1 &prime; , y i 2 &prime; , y i 3 &prime; , Calculate sum = ( x i 0 + y i 0 &prime; ) &CenterDot; cos 2 &pi; 16 + ( x i 1 + y i 1 &prime; ) &CenterDot; cos 2 3 &pi; 16 = ( x i 2 + y i 2 &prime; ) &CenterDot; cos 2 5 &pi; 16 + ( x i 3 + y i 3 &prime; ) &CenterDot; cos 2 7 &pi; 16 Make comparisons at last: sum<20QP? as sum<20QP, then satisfy criterion, current DFD piece becomes 0 through DCT, Q; Sum 〉=20QP does not then satisfy criterion.
Decision device G implementation method:
What decision device G realized is the judgement of macro block, and a macro block is 6 pieces, so the judgement of macro block can be divided into the judgement of 6 pieces, and the judgement of piece can be used the method for front decision device L.Fig. 5 is the realization flow figure of decision device G.
Among Fig. 5:
At first calculate current predicated error PE macro block, PE macro block=present frame macro block-current predictive frame macro block, next utilizes the preface criterion that 6 each pieces of piece in the PE macro block are adjudicated: current block becomes 0 through DCT, Q, and when 6 pieces all satisfy the preface criterion, then whole macro block satisfies criterion.
Be given on the Pentium-133 PC coding parameter and coding rate below to the simple sequence Claire sequence and the complex sequence Foreman sequence of QCIF form.The Claire sequence: I frame quantization parameter is 5, and P frame quantization parameter is 7 (to be the front formula
QP=7), the whole pel search in the estimation adopts the two-stage search: quiet
Stop, little region of search, zone length are 5, and each grade searching algorithm is
Sampling method, the sampling interval is 3, the sub-sampling method is adopted in the piece matching operation.
The result: coding frame per second (speed) reaches average 25 frame/seconds.The Foreman sequence: I frame quantization parameter is 15, and P frame quantization parameter is 15 (to be the front formula
QP=15), the whole pel search in the estimation adopts three grades of search:
Rest point, little moving region (zone length is 4), (zone, large search territory
Length is 10), each grade searching algorithm is a sampling method, the sampling interval is
3, the sub-sampling method is adopted in the piece matching operation.
The result: coding frame per second (speed) reaches average 10 frame/seconds.

Claims (1)

1. the coding method of an improved motion video comprises that the estimation when forward part, the frame prediction to current image generates conversion and quantification, image reconstruction, entropy coding four parts with predicated error; Estimation obtains motion vector MV; According to motion vector MV the previous frame image is made the predictive image that prediction P obtains current image; Calculate predicated error PE; Predicated error PE is made discrete cosine transform DCT and quantizes Q; The result is taken a decision as to whether complete zero,, then carry out entropy coding VLC and image reconstruction if not if then change the next part of current image over to; It is characterized in that, in the estimation part, every grade of Search Results in the hierarchical search process is all entered decision device G, judge whether predicated error PE is complete zero through DCT, Q, if then end-of-encode forwards the next part of current image to, then continue the next stage search if not; In coded portion, before being carried out DCT, predicated error PE enters decision device L, judge that whether predicated error PE is complete zero through DCT, Q, if then end-of-encode forwards the next part of current image to, then carry out DCT, the Q of next step if not.
CN97104376A 1997-05-23 1997-05-23 Method for improving the realization of video-frequency coding device Expired - Fee Related CN1067832C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN97104376A CN1067832C (en) 1997-05-23 1997-05-23 Method for improving the realization of video-frequency coding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN97104376A CN1067832C (en) 1997-05-23 1997-05-23 Method for improving the realization of video-frequency coding device

Publications (2)

Publication Number Publication Date
CN1200629A true CN1200629A (en) 1998-12-02
CN1067832C CN1067832C (en) 2001-06-27

Family

ID=5167313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN97104376A Expired - Fee Related CN1067832C (en) 1997-05-23 1997-05-23 Method for improving the realization of video-frequency coding device

Country Status (1)

Country Link
CN (1) CN1067832C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7116713B2 (en) 2002-03-29 2006-10-03 Seiko Epson Corporation Moving picture coding method, moving picture coding apparatus, and moving picture coding program
CN100366091C (en) * 2004-06-24 2008-01-30 华为技术有限公司 Video frequency compression
CN1980393B (en) * 2005-12-09 2010-08-11 松下电器产业株式会社 Image coding device, method and integrated circuit
CN1949877B (en) * 2005-10-12 2010-12-15 三星电子株式会社 Adaptive quantization controller and method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2728091B1 (en) * 1994-12-13 1997-01-31 Thomson Consumer Electronics MOTION VECTOR SELECTION METHOD AND IMAGE PROCESSING DEVICE USING THE SAME

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7116713B2 (en) 2002-03-29 2006-10-03 Seiko Epson Corporation Moving picture coding method, moving picture coding apparatus, and moving picture coding program
CN100366091C (en) * 2004-06-24 2008-01-30 华为技术有限公司 Video frequency compression
CN1949877B (en) * 2005-10-12 2010-12-15 三星电子株式会社 Adaptive quantization controller and method thereof
CN1980393B (en) * 2005-12-09 2010-08-11 松下电器产业株式会社 Image coding device, method and integrated circuit

Also Published As

Publication number Publication date
CN1067832C (en) 2001-06-27

Similar Documents

Publication Publication Date Title
CN1083215C (en) Image coded data re-encoding apparatus
US5757668A (en) Device, method and digital video encoder of complexity scalable block-matching motion estimation utilizing adaptive threshold termination
CN101394560B (en) Mixed production line apparatus used for video encoding
CN1184820C (en) Coding and noise filtering image sequence
US20020110194A1 (en) Video coding method using a block matching process
EP1359764B1 (en) Video encoding method with fading compensation
US6983021B2 (en) Method of encoding a sequence of frames
CN1293872A (en) Motion vector extrapolation for transcoding video sequences
CN1232125C (en) Method for motion estimation (me) through discrete cosine transform (dct) and an apparatus therefor
CN1319382C (en) Method for designing architecture of scalable video coder decoder
CN1694536A (en) Video encoder using average histogram difference and method for controlling the same
CN1212014C (en) Video coding method based on time-space domain correlation quick movement estimate
CN1067204C (en) Global decision method for video frequency coding
CN1194544C (en) Video encoding method based on prediction time and space domain conerent movement vectors
CN1444406A (en) Vidio motion estimation method
Kuo et al. Kalman filtering based rate-constrained motion estimation for very low bit rate video coding
CN1067832C (en) Method for improving the realization of video-frequency coding device
CN1809167A (en) Quick inter-frame forecast mode selection method
AU2001293994B2 (en) Compression of motion vectors
CN100586185C (en) Mode selection method for transcoding 264 video to reduce resolving capability
AU2001293994A1 (en) Compression of motion vectors
CN1650633A (en) Motion compensated temporal filtering based on multiple reference frames for wavelet based coding
CN1848960A (en) Residual coding in compliance with a video standard using non-standardized vector quantization coder
CN113822801A (en) Compressed video super-resolution reconstruction method based on multi-branch convolutional neural network
Oehler Region-based wavelet compression for very low bit rate video coding

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee