CA2218865A1 - Hybrid hierarchical/full-search mpeg encoder motion estimation - Google Patents

Hybrid hierarchical/full-search mpeg encoder motion estimation Download PDF

Info

Publication number
CA2218865A1
CA2218865A1 CA002218865A CA2218865A CA2218865A1 CA 2218865 A1 CA2218865 A1 CA 2218865A1 CA 002218865 A CA002218865 A CA 002218865A CA 2218865 A CA2218865 A CA 2218865A CA 2218865 A1 CA2218865 A1 CA 2218865A1
Authority
CA
Canada
Prior art keywords
frame
block
search area
search
pels
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.)
Abandoned
Application number
CA002218865A
Other languages
French (fr)
Inventor
Gregory V. Maturi
Sho Long Chen
Vivek Bhargava
Ren-Yuh Wang
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.)
FutureTel Inc
Original Assignee
Individual
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 Individual filed Critical Individual
Publication of CA2218865A1 publication Critical patent/CA2218865A1/en
Abandoned legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • H04N5/144Movement detection
    • H04N5/145Movement estimation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/223Analysis of motion using block-matching
    • G06T7/238Analysis of motion using block-matching using non-full search, e.g. three-step search
    • 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/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • 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/103Selection of coding mode or of prediction mode
    • H04N19/112Selection of coding mode or of prediction mode according to a given display mode, e.g. for interlaced or progressive display mode
    • 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
    • H04N19/137Motion inside a coding unit, e.g. average field, frame or block difference
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/43Hardware specially adapted for motion estimation or compensation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/53Multi-resolution motion estimation; Hierarchical motion estimation
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence

Abstract

A computationally efficient hierarchical block-matching motion estimation technique, in conjunction with full-search block-matching, determines inter-frame motion for digital video data compression. In hierarchical block-matching, a filtered and decimated macroblock (16) is compared with macroblock sized subareas in a filtered and decimated search area (114). Comparing the original macroblock (16) with an augmented block (126) in the original search area (112), that corresponds to the best matching macroblock sized area in the search area (114), determines a motion vector. Operating parameters specify a search range in the search area (112) based on the type of frame being processed, i.e. P-frame (252) or B-frame (256), and, for B-frames (256), the distance of the B-frame (256) from the reference frame (254). A hierarchical block-matching search is performed if operating parameters specify a search range above an established threshold. A search range equal to or below the established threshold results in full-search block-matching.

Description

CA 022l886~ l997-l0-2l W(~96/41482 Pcr/Uss6/osls7 HYBRID ~T~RPUC~TCAL/FUI,L--8EARCH
MPEG ENCODER I~OTION E~ IoN

Technical Field The present invention pertains to video image compression.
Specifically, the present invention pertains to an apparatus and method for determining the inter-~rame movement of macroblocks.
=

10 Back~round Art MPEG is a video signal compression st~n~d, established by the Moving Picture Experts Group ("MPEG") of the International St~nc~rdization Organization. MPEG is a multistage algorithm that integrates a number of well known data compression tech-15 niques into a single system. These include motion-compensated predictive coding, discrete cosine transform ("DCT"), adaptive quantization, and variable length coding ("VLC"). The main objective of MPEG is to remove ro~ n-l~ncy which normally exists in the spatial domain (within a frame of video) as well as in the 20 temporal domain (frame-to-frame), while allowing inter-frame compression and interleaved audio. An MPEG-1 decoder is specified in ISO Recommendation ITU-T H.262 (1995E), dated January 1995. A prototype MPEG-2 encoder is specified in the ISO
document "Test Model 5", Document AVC-491, Version 1, dated 25 April, 1993, and a prototype software MPEG-2 encoder is published by the MPEG Software Simulation Group. The prece~l;ng ISO
publications and the prototype software MPEG-2 encoder are hereby incorporated by reference.
There are two basic forms of video signals: an interlaced 30 scan signal and a non--interlaced scan signal. An interlaced scan signal is a technique employed in television systems in which every television frame consists of two fields referred to as an odd-field and an even-field. Each field scans the entire picture from side to side and top to bottom. However, the horizontal 35 scan lines of one (e.g., odd) field are positioned half way between the horizontal scan lines of the other (e.g., even) field. Interlaced scan signals are typically used in broadcast television ("TV") and high definition television ("HDTV"). Non-interlaced scan signals are typically used in computer systems CA 022l886~ l997-l0-2l 2 PCTrUS96/09187 ~ -- 2 and when compressed have data rates up to 1.8 Mb/sec for combined video and audio. The Moving Picture Experts Group has estab-lished an MPEG-1 protocol intended for use in compress-ing/decompressing non-interlaced video signals, and an MPEG-2 protocol intended for use in compressing/decompressing interlaced TV and HDTV signals.
Be~ore a conventional video signal may be compressed in accordance with either MPEG protocol it must first be digitized.
The digitization process produces digital video data which specifies the intensity and color of the video image at specific locations in the video image that are referred to as pels. Each pel is associated with a coordinate positioned among an array of coordinates arranged in vertical columns and horizontal rows.
Each pel's coordinate is defined by an intersection of a vertical column with a horizontal row. In converting each frame of video into a frame of digital video data, scan lines of the two interlaced fields making up a frame of un-digitized video are interdigitated in a single matrix of digital data.
Interdigitization o~ the digital video data causes pels of a scan line from an odd-field to have odd row coordinates in the frame of digital video data. Similarly, interdigitization of the digital video data causes pels of a scan line from an even-field to have even row coordinates in the frame of digital video data.
Referring to Fig. 1, MPEG-l and MPEG-2 each divides a video input signal, generally a successive occurrence of frames, into sequences or groups of frames ("GOF") lo, also referred to as a group of pictures ("GOP"). The frames in respective GOFs 10 are encoded into a specific format. Respective frames of encoded data are divided into slices 12 representing, for example, sixteen image lines 14. Each slice 12 is divided into = macroblocks 16 each of which represents, for example, a 16x16 matrix of pels. Each macroblock 16 is divided into 6 blocks including four blocks 18 relating to lll~;n~nce data and two blocks 20 relating to chrominance data. The MPEG-2 protocol encodes luminance and chro~;n~nce data separately and then combines the encoded video data into a compressed video stream.
The lllr;n~nce blocks relate to respective 8x8 matrices of pels 21. Each chrominance block includes an 8x8 matrix of data , CA 0221886~ 1997-10-21 W(~! 96/41482 PCT/US96/09187 relating to the entire 16x16 matrix of pels, represented by the macroblock 16. After the video data is encoded it is then compressed, buffered, modulated and finally transmitted to a decoder in accordance with the MPEG protocol. The MPEG protocol typically includes a plurality of layers each with respective header information. Nominally each header includes a start code, data related to the respective layer and provisions for adding header information.
There are generally three different encoding formats Which may be applied to video data. Intra-frame coding produces an "I"
block, designating a block of data where the encoding relies solely on information within a video frame where the macroblock 16 of data is located. Inter-frame coding may produce either a "P" block or a l'B" block. A "P" block designates a block of data where the encoding relies on a prediction based upon blocks of information found in a prior video frame. A "B" block is a block of data where the encoding relies on a prediction based upon blocks of data from surrounding video frames, i.e., a prior I or P frame and/or a subsequent P frame of video data.
One means used to eliminate frame-to-frame redundancy is to estimate the displacement of moving objects in the video images, and encode motion vectors representing such motion from frame to frame. The accuracy of such motion estimation affects the coding performance and the quality of the output video. Motion estimation performed on a pel-by-pel basis has the potential for providing the highest quality video output, but comes at a high cost in terms of computational resources. Motion estimation can be performed on a block-by-block basis to provide satisfactory video quality with a significantly reduced requirement for computational performance.
U.S. Pat. No. 5,200,820, entitled "Block-Matching Motion Estimator for Video Coder" that issued Apr. 6, 1993 on an application filed Apr. 26, 1991 in the name of Hamid Gharavi ("the Gharavi patent"), discloses a method and apparatus for performing block-matching motion estimation in a video coder which estimates the motion vector associated with each block of pels in a current coding frame. In the method disclosed in the Gharavi patent, referred to herein as a "full-search" method, the CA 0221886~ 1997-10-21 ~'o 96/41482 PCr/US96/09t87 motion vector for each block in the current frame is estimated by searching through a larger search window in the previous frame for a best match. At each possible shift position within the search window, a pel-by-pel absolute comparison is made between the intensity of the pels in the block in the current frame and the corresponding pels in the previous frame. Each pel is classified as either a matching pel or a mismatching pel depending on the pel difference and a threshold. The number of matching pels at each possible shift position is counted and the motion vector is determined from the shift position that yields the ~; number of matching pels.
FIGs. 3a through 3c show representative steps in a full-search block-matching motion estimation method. In FIG. 3a, a 16x16 pel block 102 in the current frame (not illustrated in any of the FIGs.) is shown being compared with the upper-most and left-most corresponding position in a search window 104 of the reference frame (also not illustrated in any of the FIGs. ) and moving to the upper-most and right-most position in the search window 104 of the reference frame. In FIG. 3b, the block 102 in the current frame is shown moved down one row in the search window 104 of the reference frame from the initial position shown in FIG. 3a. The progression continues down the search window 104 row by row until, as shown in FIG. 3c, the block 102 in the current frame ultimately is compared with the lowest and right-2S most corresponding position in the search window 104 from thereference frame.
The block-matching method disclosed in the Gharavi patent is = effective for reducing the cl uLational load of motion estima-tion, without sacrificing video quality, as compared to a thorough pel-by-pel search across the entire frame. However, as can be deduced from FIGs. 3a through 3c, the block-matching procedure still relies on a "brute-force" horizontal, pel-by-pel, and vertical, line~-by-line, search/comparison of the block in the current frame with corresponding block areas in the search window of the reference frame. The disclosed block-matching procedure therefore requires that the block in the current frame be compared, pel-by-pel, with every possible block position within the reference frame's search window. While representing an _ CA 0221886~ 1997-10-21 wo 96/4148t PCr/US96/09187 improvement in computational performance over a pure pel-by-pel c~ p~ison, the method disclosed in the Gharavi patent leaves room for possible further reduction in computation requirements, without noticeably sacrificing video quality. The disclosure of 5 the Gharavi patent is incorporated herein by reference.

Disclosure of Invention An object of the present invention is to provide an efficient motion estimation procedure for use in MPEG--2 video encoding lO systems.
Another object of the present invention is to provide an efficient motion estimation procedure that can take advantage of the high resolution capability of a full-search block-matching motion estimation method.
Yet another object of the present invention is to provide an efficient motion estimation procedure that can take advantage of the high performance capability of a hierarchical block--matching motion estimation method.
Yet another object of the present invention is to provide an 20 efficient motion estimation procedure that can take advantage of both the high resolution capability of a full--search block-matching motion estimation method and the high performance capability of a hierarchical block-matching motion estimation method.
Yet another object of the present invention is to provide an efficient motion estimation procedure both for interlaced and for non-interlaced video.
Yet another object of the present invention is to provide an efficient motion estimation procedure that can provide an optimum 30 blend of video quality and processor performance by taking advantage of both the high resolution capability of a full-search block-matching motion estimation method and the high performance capability of a hierarchical block-matching motion estimation method.
MPEG video requires billions of subtraction and addition operations per second for calculations of the m; n; - ~ absolute difference (~AD) between a macroblock 16 and a corresponding block in a search region. These calculations can be reduced by CA 0221886~ 1997-10-21 WO96/41482 PCTrUS96/09187 using a hierarchical method of search applied to filtered decimated macroblocks and filtered decimated search regions.
After performing this prel; in~y search, a search is performed on undecimated pels making up the best decimated match. This method of hierarchical search can be combined with a full-search over a smaller region to efficiently and accurately determine motion vectors.
A new method of motion estimation in accordance with the principles of the present invention includes the hierarchical block-matching search. The hierarchical search reduces the c ~u~ations required for motion estimation, i.e., works faster than does the full-search block-matching method, but does not cause a noticeable reduction in video quality. The hierarchical search uses block-matching techn;ques by first performing a block search on a large area at a coarse resolution, and then by performing a second block search on a smaller area within the large area, and at a finer resolution.
The full-search block-mat~-h;n~ and hierarchical block-matching methods represent two approaches to MPEG-2 motion estimation that are at somewhat opposite ends of a performance versus quality spectrum. The full-search method, on the one hand, provides more precise motion estimation but at a perfor-mance cost. The hierarchical method, on the other hand, provides faster searching while perhaps occasionally finding a less than optimum motion vector. The present invention provides a means to incorporate both methods in an MPEG-2 encoding system, to optimize the encoding process with respect to both performance and video quality, and in doing so, to reduce the amount of computing hardware required.
The decision of whether to perform a hierarchical search or a full-search preferably depends on the type of frame currently being processed, i.e. P-frame or B-frame, and, in the case of a B-frame, the distance of the B-frame being processed from the frame being used as a reference. The decision to employ a full-search block-matching or a hierarchical block-matching search is based on the resources, i.e. time and computing hardware, required to perform the search. For search frames "closer" to the reference frame(s), a block-matching full-search can be CA 0221886~ 1997-10-21 WO 96/41482 PCr/US96/09187 performed with the hardware available and in the required time.
For search frames further from the reference frame(s), a hierarchical search will be performed to conserve computing hardware and perform the search within the req~lired time.
s In addition to accurately and efficiently estimating motion over larger areas, the preferred embodiment of the present invention similarly accurately and efficiently conforms motion estimation both to interlaced and to non-interlaced video. Field motion estimation is best suited to interlaced video. Converse-lO ly, frame motion estimation is best suited to non-interlaced video. However, moment by moment the type of video, i.e.
interlaced or non-interlaced video, received by an encoder chip may change back and forth. To accommodate both types of video, the preferred embodiment of the present invention concurrently 15 dete- ine~ five (5) different independent motion vectors, i.e.
a frame motion vector, an odd field - odd field motion vector, an even field - even field motion vector, an odd field - even field motion vector, and an even field - odd field motion vector.
A significant difference between a macroblock's field motion 20 vectors and its frame motion vector indicates that the digital video data being processed by the encoder chip is interlaced rather than non-interlaced.
These and other features, objects and advantages will be understood or apparent to those of ordinary skill in the art from 25 the following detailed description of the preferred Pmbodiment of the invention as illustrated in the various drawing figures.

Brief Description of Drawinqs FIG. l is a block diagram showing the coding format of a 30 video image according to an MPEG-2 protocol.
FIG. 2 is a block diagram showing an encoding system for generating video signals using the MPEG--2protocol shown in FIG.
1.
FIGs. 3a through 3c show a series of representative 35 steps in a full-search block-matching motion estimation proce-dure.
FIGs. ~a through 4c show a pictorial overview of a hierarchi-cal block-matching motion estimation procedure.

CA 0221886~ 1997-10-21 W~ 96/41482 PCT/US96/os1s7 FIG. 5 shows a flow chart depicting a process for deteL ;n;ng whether a hierarchical or a full-search will be used in determin-ing motion vectors for a frame's macroblocks.
FIG. 6 illustrates a portion o~ a search area including odd 5 numbered and even numbered rows of pels that are overlaid with an outline of a macroblock which encompasses a (16x16) pel block within the search area.
FIGs. 7a and 7b graphically depict the temporal relatio~h;ps existing among I or P-frames and a B-frame that are to be lO processed for motion estimation.

Best Mode for CarrYing out the Invention Referring to FIG. 2, an MPEG-2 encoding system, referred to by the general reference character 50, is shown which employs the 15 hybrid hierarchial/~ull-search block--matching motion estimation procedure of the present invention.
The Encoder Chip 52 accepts raw, digitized video data 82 in most st~n~l~rd formats and produces an MPEG-2 compressed video dlgitai data stream (not illus~rated in any o~ ~he FIGs~. ~he 20 Encoder Chip 52 also accepts digital audio data 86 compressed in accordance with the MPEG-2 st~ rd and combines the MPEG-2 compressed digital audio data 86 and compressed video data to produce an ~PEG-2 System Stream 84.
The system components performing the functions necessary to 25 produce the MPEG-2 System Stream 84 include: a Video Interface 54, Motion Estimator 56, Encode Pipe 58, Video System Stream Multiplexor 62, Output Stream Interface 64, Encoding Decision Block 66, Audio Interface 68, Main DRAM Controller 92 and Host Interface 94, all contained on the Encoder Chip 52; a Host 30 Computer 78; a Host DRAM 76; and a Main DRAM 88 which includes a Bank A DRAM 72 and a Bank B DRAM 74.
The Video Interface 54 accepts digitized video data 82 directly into the MPEG-2 Encoder Chip 52 and may filter the digitized video data to reduce noise and to smooth the image by 35 an amount appropriate for the resolution being used. In particular, the noise reduction and smoothing provided by the Video Interface 54 permits better matching between a macroblock 16 and a block in a search area. The MPEG-2 Encoder Chip 52 CA 022l886~ l997-l0-2l Wo s6/4l482 PCr/US96/09187 g accepts component coded video data consisting of luminance (Y), and two color difference Cb and cr. The Video Interface 54 may decimate the component video data thereby reducing the amount of data by combining data values for adjacent pels, i.e., the Video Interface 54 may perform a 4:2:2 to 4:2:0 decimation. The Video Interface 54 may be proy- cd to reduce noise in the digitized video data 8Z by applying medial, spatial and temporal filters (not illustrated in any of the FIGs.) to that data. The Video Interface 54 also accepts, detects and eliminates 3/2 pulldown.
lO Finally, the Video Interface 54 may also independently generate genlock.
Referring to both FIGs. 1 and 2, MPEG-2 encoded video data consists of GOFs 10. Each GOF 10 consists of one or more I-frames together with all of the P-frames and B--frames for t7hich 15 the I--frames serve as a reference. An MPEG-2 I--frame includes sufficient data to reproduce an entire uncompressed frame of video data without reference to any other data. An MPEG-2 P-frame may be decoded to obtain an entire uncompressed frame of video data only by reference to a prior decoded I--frame or by 20 reference to a prior decoded P-frame. An MPEG-2 B-frame may be decoded to obtain an entire uncompressed frame of video data by reference to only a prior reference frame, to only a subsequent reference frame, or both to a prior and to a subsequent reference frame, i.e. By reference to a decoded I-frame or P-frame(s).
One of the processing steps required for encoding video data into P-frames and B-frames includes subdividing the digitized video data into macroblocks 16. Each macroblock 16 consists of a 16x16 pel array of digitized video data. The Motion Estimator 56 included in the MPEG-2 Encoder Chip 52 determines the 30 direction and amount of motion between macroblocks 16 belonging to different frames of the video data being encoded.
The Encoding Decision Block 66 performs macroblock 16 intra/inter/Q decisions, makes field and frame decisions, and performs rate control, half-pel motion estimation and video buffer verifier (VBV) calculations.
The Encode Pipe 58 encodes macroblocks 16. Based either on results from the Encoding Decision Block 66, or based upon parameters specified via the Host Interface 94, the Encode Pipe CA 0221886~ 1997-10-21 58 accepts digitized video data 82 together with data produced by the Encoding Decision Block 66.
While the Motion Estimator 56 determines motion vectors and the Encoding Decision Block 66 selects an encoding mode by processing 16x16 macroblocks 16, the Encode Pipe 58 transforms the digitized video data and quantizes the transformed video data by processing 8x8 blocks 18 and 20. Each 8x8 block 18 or 20 is transformed by computing DCT coefficients, and then the coeffi-cients thus computed are quantized to further reduce the amount lO of data. If an inter macroblock cannot be ade~uately encoded simply by motion vectors alone, a DCT is computed of the difference between its reference ~rame(s) or field(s) and the macroblock's video data, and the DCT coefficients obtained for this difference macroblock are quantized. If P-frame(s) -provide 15 the difference for an inter macroblock, then the DCT is computed of the difference between the macroblock's video data and the decoded P-frame data to obtain the maximum accuracy in the macroblock's encoding. The transformed, quantized data thus obtained are then coded efficiently into an MPEG-2 video stream 20 using variable length coding (VLC). Huffman coding. The Encode Pipe 58 also performs the inverse of these operations simultaneously on P-frame encoded data.
An MPEG-2 system stream 84 consists primarily of interleaved packets of data extracted from an MPEG-2 compressed video 25 bitstream and from an MPEG-2 compressed digital audio data 86 bitstream together with header data that is essential for correctly decoding the compressed bitstreams. The MPEG-2 system stream 84 may also include interleaved packets of auxiliary data together with the packets extracted from the MPEG-2 compressed 30 digitized video data 82 and digital audio data 86 bitstreams.
The Video System Stream Multiplexer 62 packs header data around packets of data extracted from the MPEG-2 compressed digitized video data 82 and digital audio data 86. The Video System Stream Multiplexor 62 gathers header data for each packet of MPEG-2 35 compressed video from other components of the encoder chip 52, and generates data required for the MPEG-2 system stream's 84 system header and pack header.

CA 0221886~ 1997-10-21 W~96/414X2 PCT~US96/09187 The Audio Stream Interface 68 receives and buffers digital audio data 86 compressed in accordance with the MPEG-2 standard, before such compressed digital audio data 86 is combined with the MPEG-2 compressed video data in the Video System Stream Multiplexor 62.
In applications for the MPEG-2 Encoder Chip 52 which require tr~n! ;~sion of a serial bitstream, the Output Stream Interface 64 generates and supplies such a serial bitstrea~. The Output Stream Interface 64 may supply a serial bitstream consisting of an ~PEG-2 compressed digital audio data 86, an MPEG-2 compressed video stream, or a serial MPEG-2 system stream 84. The Output Stream Interface 64 supplies the selected bitstream at a rate specified by a clock which may either be internal or external to the MPEG-2 Encoder Chip 52. In generating and suppl~ing the serial bitstream, the Output Stream Interface 64 automatically retrieves buffered MPEG-2 system stream, MPEG-2 Video stream, or MPEG-2 audio stream data from the host DRAM 76.
The Host Interface 94 controls timing and access of the MPEG-2 Encoder Chip 52 to the Host DRAM 76, and also provides a path by which the Host Computer 78 may supervise and control the Encoder Chip's 52 operation. The Host Interface's 94 ability to access the Host Dram 76 provides the Encoder Chip 52 with a path to the ~ost Dram 76 for storing MPEG-2 system stream 84 output data, and for receiving MPEG-2 auxiliary stream input data and/or MPEG-2 audio stream data.
The Main Dram Controller 92 provides timing both for overall control of the Encoder Chip 52, and controls the operation of a dedicated Main DRAM 88 that is accessed by the Encoder Chip 52 via a 64 bit wide bus. The Main DRAM Controller 92 includes a smart sequencer that automatically accesses the dedicated Main DRAM 88 to supply data as needed to the other components included on the MPEG-2 Encoder Chip 52. To provide the most efficient storage of pictures together with sufficient bandwidth for motion estimation, the dedicated Main DRAM 88 has two independent banks of DRAM, Bank A 72 and Bank B 74. Each Bank address accesses 8 pels of stored digitized video data, i.e. each address in the combined Bank A 72 and Bank B 74 accesses one macroblock 16 row of digitized video data. Both Bank A 72 and Bank B 74 of the CA 0221886~ 1997-10-21 ~096/41482 PCT~S96/09187 Main DRAM 88 respectively include four (4) sets of DRAMs interleaved so sequential Bank addresses successively access a differen~ set of DRAM. The MPEG-2 Encoder chip 52 uses the Host DRAM 76 as a ninth DRAM primarily for intermediate storage ~buffering) of encoded streams between their encoding and their output from the MPEG-2 Encoder Chip 52.
In the present invention, operating parameters are passed to the MPEG-2 Encoder Chip 52 from a Host Computer 78. The operating parameters specify how the Encoder Chip 52 should search for the motion vectors. If the operating parameters specify a hierarchical search, for each macroblock 16 the MPEG-2 Encoder chip scans up to a "64 pel search area in the reference video data at a coarse resolution, and then scans a smaller area at full resolution. If the operating parameters specify a full-search motion vector search, the MPEG-2 Encoder Chip 52 scans up to a +32 pel search area in the reference video data. If the search range specified by the operating parameters falls into the +32 pel search area range of the motion estimation hardware, the full-search occurs. Otherwise, the MPEG-2 Encoder Chip 52 performs the 2 step hierarchical search. The operating parame-ters may specify different search ranges for any combination of - field, frame, different B-frames which indicates a distance from P-frames or I-frames, since every possible operating condition may not require processing the entire search area.
FIGs. 4a, 4b and 4c provide a pictorial overview of the hierarchical search method. In FIG. 4a, an nxn search area 112, e.g. 128x128 in a reference frame, is filtered and decimated down to an (n/2)x(n/2) hierarchical search area 114. An mxm macroblock 16, e.g. 16x16 is likewise filtered and decimated down 30 to an (m/2)x(m/2) hierarchical search block 118. FIG. 4b illustrates performing a block search within the filtered and decimated (n/2)x(n/2) hierarchical search area 114 using the (m/2)x(m/2) hierarchical search block 118. The search of the (n/2)x(n/2) hierarchical search area 114 identifies the area that provides the best match for the (m/2)x(m/2) hierarchical search block 118. Because the original search area 112 has been filtered and decimated from an nxn area to the (n/2)x(n/2) hierarchical search area 114, and the mxm macroblock 16 has CA 022l886~ l997-l0-2l wo 9614148~ Pcr/uS96/09187 likewise been reduced to an (m/2)x(m/2) hierarchical search block ~18, this first search yields a result having only one-half the resolution of the original nxn search area 112 and mxm macroblock 16.
Referring to FIG. ~c, an mxm region 122 within the nxn search area 112 corresponding to the (m/2)x(m/2) region in the (n/2)x(n/2) hierarchical search area 114 that provides the best match for the hierarchical search block 118 is then searched for the best match to the mxm macroblock 16. The region in the lO search window 104 that is searched is an (m+2)x(m+2) augmented block 126 surrounding the mxm region 122. The area to be searched is .o~ ed from mxm to (m~2)x(m+2) because each pel in the filtered and decimated (n/2)x(n/2) hierarchical search area 114 represents a 2x2 pel area in the original nxn search area 15 112. Thus, when expanded, the pels in the rows and columns immediately adjacent to the mxm block 122 must be included in the second, full resolution search.
The resultant motion vector for the mxm macroblock 16 is equal to the difference in the position of the mxm macroblock 16 20 in the current frame and the mxm block in the reference frame which best matches the mxm macroblock 16 in the current frame.
Table 7--8of the ISO MPEG-2 decoder specification, reproduced below, lists a set of ~ri ~- sizes for motion vectors that may be coded in an MPEG-2 video stream. Table 7-8 defines a set of 25 f_codes, i.e. 1 through 9, which respectively specify the size of an area in the reference frame that is to be searched in determining a motion vector.
///
///
///
///
///
///
///
///
///
///
///

CA 0221886~ 1997-10-21 W,096/41482 PCT~S96/09187 ~ 14 -f_code[s] tt] Vertic~l c -nt.2 (t=1) o~ All other ca!3es ~ield vector~ in ~r~m~ pictures 0 (forbidden) 1 t-4: ~3.5] [-8: +7,5]

2 [-8: ~7.5] [-16: +15.5]

t-16: +15.5] [-32: +31.5]

4 [-32: +31.5] [-64: +63.5]

[-64: +63.5] [-128: +127.5]
6 [-128: +127.5] [-256: +255.5]

7 [-256: +255.5] [-512: +511.5]

8 t-512: +511.5] [-1024: +1023.5]

9 [-1024: +1023.5] [-2048: +2047.S]

10-14 (reserved) (Used when a particular f code[s] [t] will not be u~ed) 15 In the presently preferred embodiment of the present invention the maximum search range for motion estimation is "64 pels, i.e. f_code = 4. Searches covering ranges greater than +32 pels use the hierarchical block-matching method, and searches covering ranges less than or equal to +32 pels use a full-search block-matching method such as that disclosed in the Gharavi patent. ~hese preceding limits result from the performance of the Encoder Chip 52 and amount of Main DRAM 88 available to support motion estimation. Greater search ranges may be used in accordance with the principles of the present invention as the performance of encoder chips improves and the size and cost of memory decreases.

CA 0221886~ 1997-10-21 W ~961414~2 PCT~US96/09187 The Motion Estimator 56 includes a group of five (5) f_code specification registers (not illustrated in any of the FIGs.) which store a set of f_code speci~ications. The ~_code specifi-cations are downloaded to the Encoder Chip 52 from the Host C- uLer 78 during system initialization. The following table lists the correlation between each f_code specification register and the control over motion estimation exercised by an f_code stored into such f_code specification register.

10RegisterApplicableDistance from Name Frame Reference Fr~me f_code_0 P-frame (n/a) f code 1 -B-frame +1 and -1 f_code_2 B-frame ~2 and -2 lSf_code 3 s-frame +3 and -3 f_code_4 B-frame +4 and -4 As indicated in the preceding table, the f_code_0 register stores the f_code that is used to determine the motion estimation search range for all P-frames. The f_code_l register stores the f_codes used to determine the motion estimation search range for B-L -?S which are located either 1 frame before or 1 frame after the reference frame. Likewise, the f_code_2, f_code_3 and f_code_4 registers store the f_codes used to determine the motion estimation search ranges for B-frames which are located 2, 3 or 4 frames, respectively, from (prec~;ng or following) the reference frame. In the embodiment of the present invention, B-r ?S Will always be within 4 frames of a reference frame.
Also, in the embodiment of the present invention, two f_code values are stored in each of the f_code specification registers CA 0221886~ 1997-10-21 WO96~41482 PCT~S96/09187 - - 16 -f_code_l, f_code_2, f_code_3, and f_code_4. Three bits of eachf_code specification register identify the f_code to be used if the B-frame precedes the reference frame, and three bits identify the f_code to be used if the B-frame follows the reference frame.
Because during initialization of the Encoder Chip 52 any valid f_code value may be loaded into the f_code specification register both for forward and for backward searching, a different f_code value may be specified for a forward search that is "n" frames ahead of the reference frame than the f-code value specified for a backward search that is "n" frames behind the reference frame.
FIG. 7a graphically depicts the temporal relationship existing between a P-frame 252 to be processed in the forward direction for motion estimation with respect to a reference I-frame or P-frame 254. FIG. 7b graphically depicts the temporal relationships existing between a B-frame 256 to be processed for motion estimation in the forward direction with respect to the reference I-frame or P-frame 254, and also in the backward direction with respect to the second reference P-frame 252.
Thus as depicted in the flow chart of FIG. 5, the Motion Estimator 56 commences processing a current frame 252 or 256 of digital video data with respect to a particular reference frame 254 or frames 252 and 254 at a start block 202. In processing an entire frame of digital video data in the forward direction with respect to the reference frame 254, the Motion Estimator 56 first identifies the frame currently being processed either as the P-frame 252, or as the B-frame 256 in a decision block 204.
If the current frame 252 or 256 is the B-frame 256, the Motion Estimator 56 then determines the distance of the current frame 256 from the forward reference frame 254 in a processing block CA 0221886~ 1997-10-21 ~ W~ 96/41482 PCT/US96/09187 206. Regardless of whether the current frame is the P-frame 252 or the B-frame 256, in a processing block 208 the Motion Estimator 56 fetches a forward direction f_code from the appropriate f_code specification register as described above.
5 Then in a processing block 212 the Motion Estimator S6 uses the retrieved forward direction f_code to establish a forward direction search range for macroblocks 16 of the current frame 252 or 256 in accordance with the ranges specified in Table 7-8 of the IS0 MPEG-2 specification set forth above. If in a decision block 214 of the flow chart of FIG. 5 the Motion Estimator 56 determines that the search range thus established for the current frame 252 or 256 exceeds a pre-established threshold, then forward motion v.ectors for all the macroblocks 16 of the current frame 252 or 256 are determined using a hierarchical search in processing block 218. If, however, the search range established for the current frame 252 or 256 is less than or equal to the pre-established threshold, then the ~otion Estimator 56 determines forward motion vectors for all the macroblocks 16 of the present frame using full-search as depicted in a processing block 216.
After all the macroblocks 16 in the current frame 252 or 256 have been processed either in block 216 or in block 218, the Motion Estimator 56 then determines in decision block 224 whether the present frame is the B-frame 256 that has been processed only in the forward direction. If the present frame is the B-frame 256 that has been processed only in the forward direction, then the Motion Estimator 56 in processing block 226 determines the distance of the current frame 256 from the backward reference frame 252. Then in processing block 228 the Motion Estimator 56 CA 0221886~ 1997-10-21 2 WO 96/41482 PCTrUS96/09187 fetches a backward direction f_code from the appropriate f_code specification register as described above. In a processing block 232 the Motion Estimator 56 uses the retrieved backward direction f_code to establish a backward direction search range for 5 macroblocks 16 of the current frame 256 in accordance with the ranges specified in Table 7-8 of the ISO MPEG-2 specification set forth above. If in the decision block 214 of the flow chart of FIG. 5 the Motion Estimator 56 determines that the search range thus established for the current frame 256 exceeds the pre-lo established threshold, then backward motion vectors for all the macroblocks 16 of the current frame 256 are determined using a hierarchical search in processing block 218. If, however, the search range established ~or the current frame 256 is less than or equal to the pre-established threshold, then the Motion 15 Estimator 56 determines backward motion vectors for all the macroblocks 16 of the present frame using full-search as depicted in a processing block 216.
After the P-frame 25Z has been processed only in the forward direction, or the B-frame 256 has been processed both in the 20 forward and in the backward directions, the Motion Estimator 56 exits the motion estimation process for the current frame 252 or 256 via an exit block 222. In the presently preferred embodiment of the invention, the pre-established threshold is set at a search range of +32 pels.
Those skilled in the art are familiar with various techniques for co ~ing pels during motion estimation searching in order to identify the block in the reference frame that most closely matches the block in the current frame. This includes techniques such as: simply comparing pel-by-pel and counting the number of CA 022l886~ l997-l0-2l ~o 96/4l48Z PCT/US96/09187 absolute matches or mismatches; comparing the intensity of pels to determine the difference in their intensities, and then comparing the difference in intensity of the pels with a threshold to determine if the pels match or mismatch; taking a 5 sum of absolute differences between pels to find a ~;n; sum of absolute difference between a macroblock 16 and a block within a search window; or taking a sum of s~uared differences between pels to find a minimum sum of squared difference between a macroblock 16 and a block within a search window. The use of the lO hybrid hierarchial/full-search block-matching motion estimation method of the present invention is compatible with these and other pel comparison methods used in motion estimation.
However, the preferred embodiment of the Motion Estimator 56 of the present invention c:~ ~u~es sums of absolute differences 15 ("SADs") both between pels of the hierarchical search block 118 and pels of the hièrarchical search area 114, and between pels of the macroblock 16 and pels of the search area 112. Referring now to FIG. 6, depicted there are pels of a portion of the search area 112 overlaid with an outline of the macroblock 16 which 20 encompasses a (16x16) pel block within the search area 112. In the illustration of FIG. 6, pels in rows 304 belonging to an odd field are depicted by open circles, while pels in rows 306 belonging to an even field are depicted by filled circles. In computing various SADs for the macroblock 16 not only does the 25 Motion Estimator S6 determine a motion vector ("MV") for the ; n; SAD for the entire macroblock 16, in searching for the best match for pels of the macroblOck 16 the Motion Estimator S6 also concurrently determines independent minimum SADs and MVs for:

CA 022l886~ l997-l0-2l wo 96/41482 Pcr/Uss6/o9l87 1. the odd-odd field, i.e. the odd rows 304 of the search area 112 and odd numbered rows of the macroblock 16;
2. the even--even field, i.e. the even rows 306 of the search area 112 and the even numbered rows of the macroblock 16;
3. the odd--even field, i.e. the odd rows 304 of the search area 112 and the even numbered rows of the macroblock 16; and 4. the even--odd field, i.e. the even rows 306 of the lO search area 112 and the odd numbered rows of the macroblock 16.
In c~- , ul_ing SADs during full--search at each successive position of the macroblock 16 within the search area 1~2 or within the augmented block 126, the Motion Estimator 56 indepen-15 dently cumulates the SAD for the odd-odd field and the SAD for the even-even field and then merely adds these two SADs together rather than independently computing a SAD for the entire macroblock 16 at each such position. For the odd-even field and the even-odd field, the Motion Estimator 56 shifts the macroblock 20 16 down one row, as illustrated by a dashed line outline position 16' for the macroblock, and independently determines SADs for the odd-even field and the even-odd field. Again the Motion Estimator 56 adds the SAD for the odd-even field to the SAD for the even-odd field to obtain a SAD for the entire macroblock at 25 the position 16'. While determining SADs at successive positions of the macroblock 16 throughout the search area 112 or throughout the augmented block 126, the Motion Estimator 56 maintains two independent i n; SADs and motion vectors for the macrobloc}c 16 both at those positions where the SAD is computed by adding CA 0221886~ 1997-10-21 WO 96/41482 PCI'/US96/09187 -- Zl --together odd-odd field and even-even field SADs, and at those positions where the SAD is computed by adding together odd-even and even-odd SADs. Only after exhausting the search for m;n;
SADS throughout the search area 112 or throughout the augmented block 126 does the Motion Estimator 56 select the ;n; of these two SADs and motion vectors as being the minimum SAD and motion vector for the entire macroblock 16.
Consequently, after processing each macroblock 16 of the P-frame 252 throughout the search area 112 of the reference frame 254, the Motion Estimator 56 stores into the Host DRAM 76 for subsequent use by the Encoding Decision Block 66 only the forward MVs and SADs listed in the table below. Correspondingly, after processing each macroblock 16 of the B-frame 256 throughout the search areas 112 of the reference frames 252 and 256 the Motion Estimator 56 stores into the Host DRAM 76 for subsequent use by the Encoding Decision Block 66 both the forward and the backward MVs and SADs listed in the table below.

Forward Backward P-frame or B-frame B-frame Min. Hor. Vert. Min. Hor. Vert.
SAD SAD

Entire Macroblock SADm MVHM MVVM SADm MVHM M WM
Odd-Odd Field SADoo MVHoo MVVoo SADoo MVHoo MVVoo Even-Even Field SADE-E MvHE-E MVVE-E SADE-E MVHE-E MVVE-E
Odd-Even Field SADoE MVHoE MVVOE SADoE MVH~E MVVO-E
Even-Odd Field SADEo MVHEo MVVE_O SADEo MVHEo MVVE_O

CA 0221886~ 1997-10-21 WO96/41482 PCTrUS96/09187 Industrial APplicabilitv A significant difference between the motion vectors for macroblocks 16 and those for the odd-odd field and the even-even field of the macroblocks 16 indicates that a frame is probably digitized from an interlaced video signal. Conversely, little difference between the motion vectors for macroblocks 16 and those for the odd-odd field and the even-even field of the macroblocks 16 indicates that this is probably a frame digitized from a non-interlaced video signal.
Note that if hierarchical search has been used in processing block 218 of the ~low chart presented in FIG. 5 to determine motion vectors for all the macroblocks 16 of the frame 252 or 256, the motion vectors tabulated above for each macroblock 16 must all lie within the augmented block 126 depicted in FIG. ~c.
That is, in the presently preferred embodiment of the present invention the ~Y;~Ilm difference respectively among the horizon-tal and among vertical components of all motion vectors deter-mined for macroblocks 16 using hierarchical search cannot exceed two (2). Alternatively, in the presently preferred embodiment of the present invention the maximum difference respectively among the horizontal and among the vertical components of all motion vectors determined for macroblocks 16 using full search in the flow chart processing block 216 of FIG. 5 can be as large as sixty-three (63).
Although the present invention has been described in terms of the presently preferred embodiments, it is to be understood that such disclosure is purely illustrative and is not to be interpreted as limiting. Consequently, without departing from the spirit and scope of the invention, various alterations, -WO96/4148t PcTnuS96/~91~7 modifications, and/or alternative applications of the invention will, no doubt, be suggested to those skilled in the art after having read the preceding disclosure. Accordingly, it is intended that the following claims be interpreted as enc-- -Rsing all alterations, modifications, or alternative applicatlons as fall within the true spirit and scope of the invention.

,

Claims (17)

The Claims What is claimed is:
1. In a digital video data compression scheme, a method of estimating the frame-to-frame motion of a block of pels in a video frame comprising the steps of:
(a) filtering and decimating a block located at a position in a current frame thereby establishing a hierarchical search block;
(b) forming a search area in a reference frame, with said search area in said reference frame surrounding the position of said block in said current frame;
(c) filtering and decimating said search area in said reference frame thereby establishing a hierarchical search area;
(d) comparing said hierarchical search block with a block within said hierarchical search area;
(e) repeating step (d) for a plurality of blocks located at various positions within said hierarchical search area;
(f) identifying that region within said hierarchical search area which best matches said hierarchical search;
(g) forming an augmented block within said search area in said reference frame that surrounds a region in said search area in said reference frame that corresponds to said region within said hierarchical search area that was identified in step (f) as best matching said hierarchical search block;
(h) comparing the pels in said block in said current frame with pels in a block in said augmented block in said reference frame;
(i) repeating step (h) for a plurality of blocks located at various positions within said augmented block in said reference frame; and (j) establishing a motion vector for said block in said current frame equal to a difference between a position of that block in said current frame and a position in said augmented block in said reference frame which best matches said block in said current frame.
2. The method of estimating frame-to-frame motion of a block of pels in a video frame of claim 1 wherein said plurality of blocks located at various positions within said hierarchical search area includes all blocks within said hierarchical search area.
3. The method of estimating frame-to-frame motion of a block of pels in a video frame of claim 1 wherein said plurality of blocks located at various positions within said augmented block includes all blocks within said augmented block.
4. The method of estimating frame-to-frame motion of a block of pels in a video frame of claim 1 wherein a plurality of motion vectors are concurrently established including an odd-odd field motion vector, an even-even field motion vector, an odd-even field motion vector, and an odd-even field motion vector.
5. In a digital video data compression scheme, a method of estimating the frame-to-frame motion of a block of pels in a video frame comprising the steps of:
(a) identifying a reference frame;
(b) identifying a block located at a position in a current frame;
(c) determining a size for a search area in said reference frame;
(d) if the size of said search area in said reference frame is larger than an established threshold, then:
(i) filtering and decimating said block in said current frame thereby establishing a hierarchical search block;
(ii) forming a search area in said reference frame, with said search area in said reference frame surrounding the position of said block in said current frame;
(iii) filtering and decimating said search area in said reference frame thereby establishing a hierarchical search area;
(iv) comparing said hierarchical search block with a block within said hierarchical search area;

(v) repeating step (d)(iv) for a plurality of blocks located at various positions within said hierarchical search area;
(vi) identifying that region within said hierarchical search area which best matches said hierarchical search block;
(vii) forming an augmented block within said search area in said reference frame that surrounds a region in said search area in said reference frame that corresponds to said region within said hierarchical search area that was identified in step (d)(vi) as best matching said hierarchical search block;
(viii) comparing the pels in said block in said current frame with pels in a block in said augmented block in said reference frame;
(ix) repeating step (d)(viii) for a plurality of blocks located at various positions within said augmented block in said reference frame;
and (x) establishing a motion vector for said block in said current frame equal to a difference between a position of that block in said current frame and a position in said augmented block in said reference frame which best matches said block in said current frame;

(e) otherwise, if the size of said search area in said reference frame is equal to or less than said established threshold, then:
(i) forming a search window in said reference frame, with said search window in said reference frame surrounding the position of said block in said current frame;
(ii) comparing the pels in said block in said current frame with pels in a block within said search window in said reference frame;
(iii) repeating step (e)(ii) for a plurality of blocks located at various positions within said search window in said reference frame;
(iv) establishing a motion vector for said block in said current frame equal to a difference between a position of that block in said current frame and a position in said search window in said reference frame which best matches said block in said current frame.
6. The method of estimating frame-to-frame motion of a block of pels in a video frame of claim 5 wherein said plurality of blocks located at various positions within said hierarchical search area includes all blocks within said hierarchical search area.
7. The method of estimating frame-to-frame motion of a block of pels in a video frame of claim 5 wherein said plurality of blocks located at various positions within said augmented block includes all blocks within said augmented block.
8. The method of estimating frame-to-frame motion of a block of pels in a video frame of claim 5 wherein said predetermined number of blocks within said search window in said reference frame comprises all blocks within said search window in said reference frame.
9. The method of estimating frame-to-frame motion of a block of pels in a video frame of claim 5 wherein said method of determining the size for a search area in said reference frame comprises the steps of:
(a) assigning a code to said current frame; and (b) determining the size of said search window based on the search range specified for said code.
10. The method of estimating frame-to-frame motion of a block of pels in a video frame of claim 9 wherein said step of assigning a code to said current frame comprises the steps of:
(a) obtaining a code from a table of codes; and (b) associating said code with said current frame.
11. The method of estimating frame-to-frame motion of a block of pels in a video frame of claim 10 wherein said step of obtaining a code from a table of codes comprises the steps of:

(a) determining whether said current frame is a P-frame or a B-frame;
(b) if said current frame is a P-frame, obtaining a code from a table of codes based on said current frame being a P-frame; and (c) if said current frame is a B-frame, obtaining a code from a table of codes based on said current frame being a B-frame.
12. The method of estimating frame-to-frame motion of a block of pels in a video frame of claim 11 wherein said step of obtaining a code from a table of codes based on said current frame being a B-frame comprises the step of obtaining a code from a table of codes based on whether said current frame precedes or follows said reference frame.
13. The method of estimating frame-to-frame motion of a block of pels in a video frame of claim 12 wherein said step of obtaining a code from a table of codes based on said current frame being a B-frame further comprises the step of obtaining a code from a table of codes based on the distance from said current frame to said reference frame.
14. The method of estimating frame-to-frame motion of a block of pels in a video frame of claim 11 wherein said step of obtaining a code from a table of codes based on said current frame being a B-frame comprises the step of obtaining a code from a table of codes based on the distance from said current frame to said reference frame.
15. The method of estimating frame-to-frame motion of a block of pels in a video frame of claim 5 wherein a plurality of motion vectors are concurrently established including an odd-odd field motion vector, an even-even field motion vector, an odd-even field motion vector, and an odd-even field motion vector.
16. In a digital video data compression apparatus, a motion estimation apparatus for estimating the frame-to-frame motion of a block of pels in a video frame comprising:
(a) means for filtering and decimating a block located at a position in a current frame for which motion is to be estimated thereby establishing a hierarchical search block;
(b) means for forming a search area in a reference frame, the search area surrounding the position of the block in the current frame;
(c) means for filtering and decimating the search area in the reference frame thereby establishing a hierarchical search area;
(d) means for successively comparing the hierarchical search block with various blocks in the hierarchical search area;

(e) means for identifying a specific block within the hierarchical search area which best matches the hierarchical search block;
(f) means for forming an augmented block within the search area in the reference frame which surrounds a region in the search area that corresponds to the region within the hierarchical search area which best matches the hierarchical search block;
(g) means for comparing pels in the block in the current frame with pels in various successive blocks in the augmented block;
(h) means for establishing a motion vector for the block in the current frame equal to a difference between a position of that block in the current frame and a position in the augmented block in the reference frame which best matches the block in said current frame.
17. In a digital video data compression apparatus, a motion estimation apparatus for estimating the frame-to-frame motion of a block of pels in a video frame comprising:
(a) means for identifying a reference frame;
(b) means for identifying a block located at a position in a current frame for which motion is to be estimated;
(c) means for determining a size for a search area in the reference frame;

(d) means for determining if the size of the search area exceeds an established threshold for regulating estimation of frame-to-frame motion;
(e) means for filtering and decimating a block in the current frame thereby establishing a hierarchical search block;
(f) means for forming a search area in the reference frame, the search area surrounding the position of the block in the current frame;
(g) means for filtering and decimating the search area in the reference frame thereby establishing a hierarchical search area;
(h) means for successively comparing the hierarchical search block with various blocks in the hierarchical search area;
(i) means for identifying a specific block within the hierarchical search area which best matches the hierarchical search block;
(j) means for forming an augmented block within the search area in the reference frame which surrounds a region in the search area that corresponds to the region within the hierarchical search area which best matches the hierarchical search block;
(k) means for comparing pels in the block in the current frame with pels in various successive blocks in the augmented block;
(1) means for establishing a motion vector for the block in the current frame equal to a difference between a position of that block in the current frame and a position in the augmented block in the reference frame which best matches the block in said current frame;
(m) means for forming a search window in the reference frame, with said search window in the reference frame surrounding the position of the block in the current frame;
(n) means for comparing pels in the block in the current frame with pels in various successive blocks in the search window in the reference frame; and (o) means for establishing a motion vector for the block in the current frame equal to a difference between a position of that block in the current frame and a position in the search window in the reference frame which best matches the block in the current frame.
CA002218865A 1995-06-07 1996-06-06 Hybrid hierarchical/full-search mpeg encoder motion estimation Abandoned CA2218865A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US08/485,030 1995-06-07
US08/485,030 US5731850A (en) 1995-06-07 1995-06-07 Hybrid hierarchial/full-search MPEG encoder motion estimation

Publications (1)

Publication Number Publication Date
CA2218865A1 true CA2218865A1 (en) 1996-12-19

Family

ID=23926658

Family Applications (1)

Application Number Title Priority Date Filing Date
CA002218865A Abandoned CA2218865A1 (en) 1995-06-07 1996-06-06 Hybrid hierarchical/full-search mpeg encoder motion estimation

Country Status (4)

Country Link
US (1) US5731850A (en)
AU (1) AU6379096A (en)
CA (1) CA2218865A1 (en)
WO (1) WO1996041482A1 (en)

Families Citing this family (77)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6101276A (en) * 1996-06-21 2000-08-08 Compaq Computer Corporation Method and apparatus for performing two pass quality video compression through pipelining and buffer management
FR2757296B1 (en) * 1996-12-13 2001-10-12 Sgs Thomson Microelectronics METHOD AND DEVICE FOR ESTIMATING MOTION OF PORTIONS OF IMAGES FOR MOBILE IMAGE COMPRESSION CIRCUIT
JPH10210473A (en) * 1997-01-16 1998-08-07 Toshiba Corp Motion vector detector
JPH10285603A (en) * 1997-02-10 1998-10-23 Kokusai Electric Co Ltd Image encoding method
AU719060B2 (en) * 1997-02-28 2000-05-04 Matsushita Electric Industrial Co., Ltd. Motion picture converting apparatus
US6016163A (en) * 1997-03-12 2000-01-18 Scientific-Atlanta, Inc. Methods and apparatus for comparing blocks of pixels
US6034731A (en) * 1997-08-13 2000-03-07 Sarnoff Corporation MPEG frame processing method and apparatus
EP0899687B1 (en) * 1997-08-26 2004-01-28 Matsushita Electric Industrial Co., Ltd. Method and apparatus for detecting motion vector and image coding apparatus
US6282240B1 (en) * 1997-09-03 2001-08-28 Oki Electric Industry Co., Ltd. Picture coder, picture decoder, and transmission system
US6594311B1 (en) * 1997-10-20 2003-07-15 Hitachi America, Ltd. Methods for reduced cost insertion of video subwindows into compressed video
US6332002B1 (en) * 1997-11-01 2001-12-18 Lg Electronics Inc. Motion prediction apparatus and method
JP3483751B2 (en) * 1997-12-18 2004-01-06 三菱電機株式会社 Motion vector detecting device and motion vector detecting method
GB9823689D0 (en) * 1998-10-30 1998-12-23 Greenagate Limited Improved methods and apparatus for 3-D imaging
US6625216B1 (en) * 1999-01-27 2003-09-23 Matsushita Electic Industrial Co., Ltd. Motion estimation using orthogonal transform-domain block matching
US6499060B1 (en) 1999-03-12 2002-12-24 Microsoft Corporation Media coding for loss recovery with remotely predicted data units
IL160386A (en) * 1999-04-06 2005-11-20 Broadcom Corp Video encoding and video/audio/data multiplexing device
KR20010071706A (en) * 1999-04-30 2001-07-31 요트.게.아. 롤페즈 Video encoding method with selection of B-frame encoding mode
US6442203B1 (en) 1999-11-05 2002-08-27 Demografx System and method for motion compensation and frame rate conversion
US6968009B1 (en) * 1999-11-12 2005-11-22 Stmicroelectronics, Inc. System and method of finding motion vectors in MPEG-2 video using motion estimation algorithm which employs scaled frames
EP1126729A1 (en) * 2000-02-18 2001-08-22 STMicroelectronics S.r.l. A process for estimating the noise level in sequences of images and a device therefor
US6876703B2 (en) * 2000-05-11 2005-04-05 Ub Video Inc. Method and apparatus for video coding
US6842483B1 (en) 2000-09-11 2005-01-11 The Hong Kong University Of Science And Technology Device, method and digital video encoder for block-matching motion estimation
US7327787B1 (en) * 2000-11-20 2008-02-05 Intel Corporation Method and apparatus for motion estimation
US20020076048A1 (en) * 2000-12-20 2002-06-20 Philips Electronics North America Corporation System and method for inserting disruptions into merged digital recordings
US7072395B2 (en) * 2001-07-20 2006-07-04 Ess Technology, Inc. Memory control apparatus and efficient search pattern for block-matching motion estimation
US7801215B2 (en) * 2001-07-24 2010-09-21 Sasken Communication Technologies Limited Motion estimation technique for digital video encoding applications
US8275047B2 (en) * 2001-09-20 2012-09-25 Xilinx, Inc. Method and device for block-based conditional motion compensation
US7750979B2 (en) * 2001-10-26 2010-07-06 Trident Mircosystems (Far East) Ltd. Pixel-data line buffer approach having variable sampling patterns
US7003035B2 (en) * 2002-01-25 2006-02-21 Microsoft Corporation Video coding methods and apparatuses
US20040001546A1 (en) 2002-06-03 2004-01-01 Alexandros Tourapis Spatiotemporal prediction for bidirectionally predictive (B) pictures and motion vector prediction for multi-picture reference motion compensation
US7742525B1 (en) * 2002-07-14 2010-06-22 Apple Inc. Adaptive motion estimation
US7239721B1 (en) 2002-07-14 2007-07-03 Apple Inc. Adaptive motion estimation
US7154952B2 (en) 2002-07-19 2006-12-26 Microsoft Corporation Timestamp-independent motion vector prediction for predictive (P) and bidirectionally predictive (B) pictures
KR100699821B1 (en) * 2002-07-22 2007-03-27 삼성전자주식회사 Method for high speed motion estimation using variable search window
US9219930B1 (en) * 2002-10-25 2015-12-22 Arris Enterprises, Inc. Method and system for timing media stream modifications
JP4841101B2 (en) * 2002-12-02 2011-12-21 ソニー株式会社 Motion prediction compensation method and motion prediction compensation device
JP4003128B2 (en) * 2002-12-24 2007-11-07 ソニー株式会社 Image data processing apparatus and method, recording medium, and program
US7039247B2 (en) * 2003-01-31 2006-05-02 Sony Corporation Graphic codec for network transmission
US7907665B2 (en) * 2003-03-14 2011-03-15 Lsi Corporation Multi-channel video compression system
US7519115B2 (en) * 2003-03-31 2009-04-14 Duma Video, Inc. Video compression method and apparatus
KR100517504B1 (en) * 2003-07-01 2005-09-28 삼성전자주식회사 Method and apparatus for determining motion compensation mode of B-picture
US7609763B2 (en) * 2003-07-18 2009-10-27 Microsoft Corporation Advanced bi-directional predictive coding of video frames
US7499495B2 (en) * 2003-07-18 2009-03-03 Microsoft Corporation Extended range motion vectors
US20050013498A1 (en) 2003-07-18 2005-01-20 Microsoft Corporation Coding of motion vector information
US8064520B2 (en) * 2003-09-07 2011-11-22 Microsoft Corporation Advanced bi-directional predictive coding of interlaced video
US7577198B2 (en) * 2003-09-07 2009-08-18 Microsoft Corporation Number of reference fields for an interlaced forward-predicted field
US7599438B2 (en) * 2003-09-07 2009-10-06 Microsoft Corporation Motion vector block pattern coding and decoding
US7724827B2 (en) * 2003-09-07 2010-05-25 Microsoft Corporation Multi-layer run level encoding and decoding
US7616692B2 (en) * 2003-09-07 2009-11-10 Microsoft Corporation Hybrid motion vector prediction for interlaced forward-predicted fields
US7620106B2 (en) * 2003-09-07 2009-11-17 Microsoft Corporation Joint coding and decoding of a reference field selection and differential motion vector information
US8085844B2 (en) * 2003-09-07 2011-12-27 Microsoft Corporation Signaling reference frame distances
US7623574B2 (en) * 2003-09-07 2009-11-24 Microsoft Corporation Selecting between dominant and non-dominant motion vector predictor polarities
US7567617B2 (en) * 2003-09-07 2009-07-28 Microsoft Corporation Predicting motion vectors for fields of forward-predicted interlaced video frames
JP4470431B2 (en) * 2003-10-01 2010-06-02 ソニー株式会社 Data processing apparatus and method
US7792188B2 (en) 2004-06-27 2010-09-07 Apple Inc. Selecting encoding types and predictive modes for encoding video data
US20050286777A1 (en) * 2004-06-27 2005-12-29 Roger Kumar Encoding and decoding images
US8111752B2 (en) 2004-06-27 2012-02-07 Apple Inc. Encoding mode pruning during video encoding
US8634413B2 (en) 2004-12-30 2014-01-21 Microsoft Corporation Use of frame caching to improve packet loss recovery
US20060215755A1 (en) * 2005-03-24 2006-09-28 Mediatek Incorporation Video encoding methods and systems for battery-powered apparatus
US20060256864A1 (en) * 2005-05-13 2006-11-16 Mediatek Incorporation Motion estimation methods and systems in video encoding for battery-powered appliances
TWI277010B (en) * 2005-09-08 2007-03-21 Quanta Comp Inc Motion vector estimation system and method
TWI304303B (en) * 2006-01-04 2008-12-11 Sunplus Technology Co Ltd Apparatus for image encoding and the method thereof
US8472527B2 (en) * 2006-09-13 2013-06-25 Texas Instruments Incorporated Hierarchical motion estimation using original frame for sub-sampled reference
US8254455B2 (en) * 2007-06-30 2012-08-28 Microsoft Corporation Computing collocated macroblock information for direct mode macroblocks
KR101454167B1 (en) * 2007-09-07 2014-10-27 삼성전자주식회사 Device and method for compressing and decompressing data
KR101503829B1 (en) * 2007-09-07 2015-03-18 삼성전자주식회사 Device and method for compressing data
US8724705B2 (en) * 2008-06-26 2014-05-13 Telefonaktiebolaget Lm Ericsson (Publ) Detecting repetition in digital video
US8189666B2 (en) 2009-02-02 2012-05-29 Microsoft Corporation Local picture identifier and computation of co-located information
JP5141633B2 (en) * 2009-04-24 2013-02-13 ソニー株式会社 Image processing method and image information encoding apparatus using the same
US8761239B2 (en) * 2009-06-01 2014-06-24 Panasonic Corporation Image coding apparatus, method, integrated circuit, and program
US8780991B2 (en) * 2010-09-14 2014-07-15 Texas Instruments Incorporated Motion estimation in enhancement layers in video encoding
US9635385B2 (en) * 2011-04-14 2017-04-25 Texas Instruments Incorporated Methods and systems for estimating motion in multimedia pictures
CN102630014B (en) * 2012-04-05 2014-06-18 重庆大学 Bidirectional motion estimation device for production of interpolated frame based on front reference frame and rear reference frame
US9584805B2 (en) * 2012-06-08 2017-02-28 Qualcomm Incorporated Prediction mode information downsampling in enhanced layer coding
EP3065404A1 (en) * 2015-03-05 2016-09-07 Thomson Licensing Method and device for computing motion vectors associated with pixels of an image
US11234017B1 (en) * 2019-12-13 2022-01-25 Meta Platforms, Inc. Hierarchical motion search processing
CN111292357B (en) * 2020-03-02 2023-04-14 西安交通大学 Video inter-frame rapid motion estimation method based on correlation filtering

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2633137B1 (en) * 1988-06-21 1990-11-09 Labo Electronique Physique HIGH DEFINITION TELEVISION TRANSMISSION AND RECEPTION SYSTEM WITH IMPROVED SPEED ESTIMATOR AND REDUCED DATA RATE
US5193004A (en) * 1990-12-03 1993-03-09 The Trustees Of Columbia University In The City Of New York Systems and methods for coding even fields of interlaced video sequences
US5134478A (en) * 1991-02-19 1992-07-28 Intel Corporation Method and apparatus for compressing and decompressing a digital video signal using predicted and error images
US5200820A (en) * 1991-04-26 1993-04-06 Bell Communications Research, Inc. Block-matching motion estimator for video coder
US5144424A (en) * 1991-10-15 1992-09-01 Thomson Consumer Electronics, Inc. Apparatus for video data quantization control
US5247363A (en) * 1992-03-02 1993-09-21 Rca Thomson Licensing Corporation Error concealment apparatus for hdtv receivers
US5301019A (en) * 1992-09-17 1994-04-05 Zenith Electronics Corp. Data compression system having perceptually weighted motion vectors
US5448310A (en) * 1993-04-27 1995-09-05 Array Microsystems, Inc. Motion estimation coprocessor
US5889108A (en) * 1997-06-02 1999-03-30 Dow Corning Corporation Thickening solvents with elastomeric silicone polyethers

Also Published As

Publication number Publication date
AU6379096A (en) 1996-12-30
US5731850A (en) 1998-03-24
WO1996041482A1 (en) 1996-12-19

Similar Documents

Publication Publication Date Title
US5731850A (en) Hybrid hierarchial/full-search MPEG encoder motion estimation
JP3737586B2 (en) Pre-processing device for digital video data stream
KR100231186B1 (en) Method and device for decoding image data
US7483625B2 (en) Picture recording apparatus and method thereof
US5453799A (en) Unified motion estimation architecture
US6859494B2 (en) Methods and apparatus for sub-pixel motion estimation
US6108039A (en) Low bandwidth, two-candidate motion estimation for interlaced video
US20050276331A1 (en) Method and apparatus for estimating motion
US6452971B1 (en) Moving picture transforming system
US6480542B1 (en) Method for decoding compressed video data with a reduced memory requirement
JP3331351B2 (en) Image data encoding method and apparatus
US6549668B1 (en) Detection of a 3:2 pulldown in a motion estimation phase and optimized video compression encoder
JP2755851B2 (en) Moving picture coding apparatus and moving picture coding method
JP2898413B2 (en) Method for decoding and encoding compressed video data streams with reduced memory requirements
JP2004521547A (en) Video encoder and recording device
JP2868445B2 (en) Moving image compression method and apparatus
JP2883592B2 (en) Moving picture decoding apparatus and moving picture decoding method
JPH09261530A (en) Video recorder
US6904093B1 (en) Horizontal/vertical scanning frequency converting apparatus in MPEG decoding block
JP2758378B2 (en) Moving picture decoding apparatus and moving picture decoding method
JP3415390B2 (en) Moving picture coding apparatus and moving picture coding method
JPH06105299A (en) Dynamic image compressor
JP2922155B2 (en) Image encoding method, image encoding device, and image processing system
JP3590976B2 (en) Video compression device
JPH09139948A (en) Moving image coder

Legal Events

Date Code Title Description
FZDE Discontinued