Table of Contents
VLSI Design
Volume 2008, Article ID 890410, 8 pages
Research Article

Fully Pipelined Parallel Architecture for Candidate Block and Pixel-Subsampling-Based Motion Estimation

School of Electronics and Communication Engineering (ECE), Anna University, Chennai-600 025, Tamil Nadu, India

Received 7 May 2007; Revised 26 September 2007; Accepted 2 January 2008

Academic Editor: Mohab Anis

Copyright © 2008 Reeba Korah and J.Raja Paul Perinbam. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.


This paper presents a low power and high speed architecture for motion estimation with Candidate Block and Pixel Subsampling (CBPS) Algorithm. Coarse-to-fine search approach is employed to find the motion vector so that the local minima problem is totally eliminated. Pixel subsampling is performed in the selected candidate blocks which significantly reduces computational cost with low quality degradation. The architecture developed is a fully pipelined parallel design with 9 processing elements. Two different methods are deployed to reduce the power consumption, parallel and pipelined implementation and parallel accessing to memory. For processing 30 CIF frames per second our architecture requires a clock frequency of 4.5 MHz.

1. Introduction

The coding of video sequences has been the focus of a great deal of researches in recent years. Video phone, video conferencing, CD-ROM archiving, and HDTV are some of the present-day applications. Data compression techniques must be used before transmission due to a large amount of image data to be transmitted, whatever be the application.Video compression can be achieved by reducing spatial and temporal redundancies within video streams. Motion estimation and compensation (MEC) is the key technique for the exploitation of temporal redundancy. Since MEC operations take up to 80% of the computational burden of a complete video compression system, it is the most important component in real-time video applications. Many VLSI implementable algorithms aim at either high-performance or low-power design. Most of the architectures targeting the above-mentioned applications do not seem to be suitable for mobile and low-power applications. Due to the rapid advances in VLSI technology, the attributes of parallelism, pipeline ability, concurrency, modularity, and regularity have become a new set of criteria in designing the hardware for digital video processing.

Systolic arrays are good candidates for such design. High-speed systolic array architectures able to process a large number of calculations needed for FSBMA have been widely proposed. Artieri and Jutand [1] presented a systolic array architecture where a processor is associated with each possible match. A 2D SIMD systolic architecture was proposed by Wu and Yeh [2] for an FSBMA-based motion estimator with a major advantage of reduced pin count of 68 pins. Yang et al. [3] proposed a 1D semisystolic architecture to perform FSBMA with the help of parallel processing. They further optimized the processing elements using pipeline architecture in order to reduce the cycle time. Roma and Sousa [4] implemented a configurable block matching processor based on an improved 2D multiple array architecture with both pipelining and parallel processing which resulted in minimum latency, maximum throughput, and full utilization of hardware.

A motion estimation chip for block-based MPEG-4 video applications, using predictive diamond search, was presented by Abbas et al. [5] with reconfigurable search window and pixel block size. A parallel pipelined architecture for FSBMA was proposed by Sayed and Badawy [6]. Vos and Schobinger [7] implemented a programmable block matching processor using a quadratic systolic array architecture with meanderlike data flow. A data interlacing VLSI architecture with 2D data reuse to implement FSBMA was proposed by Lai and Chen [8], which efficiently reuses data to decrease external memory accesses and saves pin counts. Xu et al. [9] proposed a 1D tree-based architecture which featured high-data utilization by using parallel pipelining and the low-clock rate by introducing the dual register/buffer technique which reduces idle clock cycles. Instead of a systolic array, Wang et al. [10] used a 2D mapping unit and a binary adder tree to compute the block matching metric in one cycle.

The CBPS algorithm is a proper blend of FSBMA and FBMME approaches. With this, the subjective quality is at par with that of FSBMA whereas computational complexity and hence area consumption and power consumption are least compared to any fast BMME reported so far. In our earlier work [11], we implemented a single processing element architecture which requires a clock frequency of 65 MHz to process resolution CIF frames at the rate of 30 f/s. Here, we present an efficient fully pipelined parallel architecture for CBPS algorithm.

The rest of the paper is organized as follows. Section 2 presents the mathematical modeling of CBPS-based motion estimation. CBPS algorithm is dealt with in Section 3 in detail. Section 4 deals with the proposed architecture design. Section 5 presents the architecture prototyping and evaluation of results.The performance of the architecture is analyzed in terms of power dissipation, gate count, and clock frequency required. Finally, the conclusions are drawn in Section 6.

2. Mathematical Modeling of CBPS-Based Motion Estimation

Even though many fast motion vector estimation techniques have been proposed as reviewed before, the spatial and temporal correlations of motion vectors have not yet been fully exploited in reducing the search time while maintaining a reasonable rate-distortion tradeoff. The use of an AR model to characterize spatiotemporal correlations of the motion field could provide an elegant theoretical result. However, its derivation requires a certain amount of computational complexity and its practical value decreases. The goal of this research is to develop a fast motion vector estimation algorithm, which exploits the spatiotemporal correlations of motion vectors in a computationally simple way and yet works effectively in the sense of producing small residual errors.

The following framework is adopted in our discussion. Each image frame is divided into nonoverlapping square macro blocks of pixels as specified by H.264/AVC. Let represent a block of the frame, where and are block indices along the row and column directions, respectively. For example, an image of size pixels has block indices and . and represent the blocks in the first row and first column, respectively. Motion vector for each block between frame and one or more consecutive frames with a certain fast motion vector estimation algorithm needs to be determined.

A simple way to incorporate the temporal information with the spatial information is to include the motion vector of the block at the same location from the previous frame . Furthermore, information about the motion vector block can be obtained by searching the blocks surrounding . Thus, for a block its temporally correlated blocks in the previous frame as shown in Figure 1 will be , , , , , , , , and , where are pixel indices: and .

Figure 1: Overlapped Candidate blocks in different orientations.

Typical patterns with and/or are shown in Figure 1.

For to 15, to 15 and for a search range to to 8; overlapped blocks can be identified with a one pixel distance horizontally or/and vertically between adjacent overlapped blocks in the frame. Out of these -overlapped blocks, blocks are chosen for coarse search. The selection is done in such a way that the mean horizontal or vertical pixel distance between the selected overlapped blocks is 1 as shown in Figure 2.

Figure 2: Distribution lattice of overlapped search points.

Pixel distance of 1 refers to the first-order neighborhood sites as per the Markov model. Markovianity emphasizes the spatial interactions of adjacent sites, and hence this is employed as a basis of fine search in this work. Fine search is performed with those unselected overlapped blocks which are first-order neighbor sites for the block with minimum block difference (MBD) among all the overlapped blocks. Thus, fine search is performed always on 8 blocks, in spite of changes in the search range or macroblock size. MBD is calculated with the most popular sum of absolute difference (SAD) criteria. Pixel decimation is used to reduce the computation for measuring the distortion for each block during the search. High activity in the luminance signals such as edges and texture mainly contributes to the matching criterion. The most representative sampling lattice is selected based on how much the texture and edge information are retained with minimal number of pixels. The sampling lattice is analyzed with spatial homogeneity and directional coverage. The spatial homogeneity is based on the presence of significant intraframe correlations within an image. The intraframe autocorrelation function for a less detailed image is higher when the horizontal and vertical spacing (in pixels) are close to 1. The same holds good for highly detailed images. Correlation coefficient between neighboring pixels increases as their spacing decreases. The spatial homogeneity is measured by the average and variance of spatial distances from each skipped pixel to the nearest selected pixel: where is the dimension of the block and indicates the coordinates of the selected pixel nearest to the pixel at the position. is the number of the selected pixels. Smaller and indicate a more spatially homogeneous sampling lattice.

An edge is defined as a line passing through the sampling grids in any of 0°, 45°, 90° , and 135° directions. The directional coverage is measured as the percentage of edges that at least one of the selected pixels exists on an edge.

To fully represent the spatial information of an block, it is required that at least one pixel should be selected for each row, column, and diagonal. To satisfy such a condition, the solution is identical to the problem of placing -queens on a chess board. This is referred to as -queen pattern. For an block, every pixel of the -queen pattern occupies a dominant position, which is located at the center. All the other pixels located on the four lines in the vertical, horizontal, and diagonal directions are removed from the list of the selected pixels. With such elimination process, there is exactly one pixel selected for each row, column, and diagonal (not necessarily the main) of the block.

To reduce the computational burden, SAD is performed on 4-queen lattices within blocks. This is a pixel subsampling technique as shown in Figure 3.

Figure 3: 4-Queen pixel lattice.

The above pattern is chosen based on the spatial homogeneity as shown in Figure 4 and directional coverage of pixels as depicted in Figure 5. Accordingly, for a block of size , only the values at 64 pixels are used to compute the SAD. Similar technique presented by Liu and Zaccarin [12] shows that a reasonably good motion vector estimate can be obtained by using a pixel subsampling technique. The 4-queen method gives a computational reduction by a factor of 4 in comparison with a straightforward implementation of the SAD computation. In order to further reduce the computational complexity, the error criterion is modified as reduced bit sum of absolute difference (RBSAD). As the operation of the BMA is block-by-block comparison, and the comparison is performed pixel by pixel, the basic operation of the BMA is pixel comparison. Since the pixel comparison is a bitwise operation, if the number of bits is reduced then the corresponding hardware can be reduced. Taking hardware realization into consideration, RBSSAD is proposed.

Figure 4: Spatial homogeneity in the subsampling lattice.
Figure 5: Directional coverage in the subsampling lattice.

For any pixel value , let be bits in the binary representation of, where . (Let be the number of bits in a pixel.)

For example, let . Then .

The proposed RBSAD criterion can be described as follows: where is a given factor which should be is the reference block of size at coordinate is the candidate block within a search area in the previous frame, and represents the candidate motion vector. The motion vector is determined by the least RBSAD for all possible displacements within a search area. Since RBSAD uses only upper bits of pixels, if , RBSAD is equivalent to SAD.

A normally encountered problem in fast search methods is the chances of misinterpreting local minima as global minima. This is mainly due to the reduced number of search points spread in a particular small region out of the entire search area. So in the proposed technique, the search points are spread over the entire search area. This goes in line with the probabilistic global search procedure of “Multistart." The inherent drawback of MultiStart is the possibility of determination of same minimum several times. To avoid this to an extent, the search points are chosen based on Markov model.

Suppose that the maximum motion in the vertical and horizontal directions is , there are candidates in total to be checked if the full search method is used, each corresponding to a point (called candidate block) in the search window. The SAD values resulted from these points form an error surface

The complexity of this error surface has a significant impact on the performance of the algorithm. Almost all conventional fast algorithms have explicitly or implicitly made the assumption that the SAD increases monotonically as the checking point moves away from the global minimum or the error surface is unimodal over the search window. Unfortunately, this assumption is usually not true due to many reasons such as the luminance change between frames. As a consequence, the search would easily be trapped at a local minimum. Despite that the error surface defined above exhibits uncertainties in large spatial scale, we can reasonably assume that it is monotonic in a small neighborhood around the global minimum. In the existence of local minima, one simple but perhaps the most efficient and reliable strategy is to put (at least) one checking point as close as possible to the global minimum point (representing the true motion vector). This is equivalent to reducing the distance from the true motion vector to the closest checking point as much as possible. If this distance is small enough, it will be very likely to find the global minimum through a local search.

3. CBPS Algorithm

Candidate block and pixel subsampling algorithm is based on a coarse-to-fine search approach. It is a proper blend of full search block matching algorithm and fast search block matching approach.

Here, we have constructed a new pattern of candidate blocks, as shown in Figure 6, to characterize spatial information in all directions. Initially, with coarse search, blocks are searched and during fine search 8 more blocks are searched. This arrangement reduces the number of candidate blocks to be searched to against used by FSBMA. Since the candidate blocks are uniformly chosen throughout the search area, during the coarse search, we get the direction of candidate block with global minima. During fine search, error is calculated for 8 blocks surrounding the chosen candidate block. Here, the block with minimum error will be the global minimum point. Thus, in this method, absolutely there is no chance of misinterpreting local minima as global minima. Pixel subsampling technique proposed here consists of four alternating subsampling patterns selected for each step as shown in Figure 7, so that all the pixels in the current block are visited. The total computational complexity is found to be reduced to 7.35% compared to FSBMA. The loss in PSNR is very negligible and at the worst case comes to an average of less than 0.23 dB in both low-motion and medium-motion video sequences. Thus, the subjective quality is at par with that of FSBMA whereas computational complexity, area consumption, and power consumption are the least compared to any fast BMME reported so far. The error criterion used is the subsampled sum of absolute difference (SSAD). The computational complexity could be further reduced by truncating the least significant two bits. This is termed as reduced bit subsampled sum of absolute difference (RBSSAD6). The total computational complexity is found to be reduced to 5.9 % compared to FSBMA. The loss in PSNR is very negligible and at the worst case comes to an average of less than 0.23 dB in both low-motion and medium-motion video sequences. Thus, the subjective quality is at par with that of FSBMA whereas computational complexity, area consumption, and power consumption are competitive compared to any fast BMME reported so far.

Figure 6: Selection of candidate blocks.
Figure 7: New 4-queen pattern.

CBPS algorithm can be expressed with the following equations: where current frame macroblock pixel, previous or candidate macroblock pixel, and subsampling matrix for macroblock.

4. Proposed Fully Pipelined Parallel Architecture

In digital CMOS systems, there are three major sources of power consumption: The first term represents the switching power component, where is the transition probability, is the loading capacitance, is the supply voltage, and is the clock frequency. The second term is the short circuit power component, and the third term is due to the leakage current Switching power is the dominant source of power dissipation in digital CMOS systems. Reducing the supply voltage is the most effective way to reduce power consumption as shown in (5). Quadratic improvement in power consumption can be achieved in this way, although this happens at the cost of increasing the delay. One of the techniques to increase the throughput is a parallel implementation, which in turn reduces the supply voltage. Thus reduction in power consumption can be achieved at the cost of increasing the area instead of increasing the delay.

The proposed architecture consists of two main parts, namely, the pipelined pixel selection unit (PPSU) and the SAD&MV computation unit (SMCU) with pipelining registers between them and a control unit to control their operation as shown in Figure 8.

Figure 8: Fully pipelined parallel architechture for CBPSA.

A search window of pixels and a macroblock of pixels are used for prototyping. For candidate block and pixel subsampling algorithm (CBPSA), we have 289 () candidate blocks out of which only 77 blocks are chosen for coarse search and 8 candidate blocks for fine search. Seventy seven blocks are arranged in groups of 9 blocks and 8 blocks in alternate odd rows referred to as A rows and B rows . Block diagram of the parallel architecture of the pipelined pixel selection unit (PPSU) is shown in Figure 9. It consists of a memory for the search window data, a queue for the reference macroblock pixels, a pipelined structure for the candidate block pixels, and 9 processing elements, one for each selected column of candidate blocks. The search window pixels are selected as follows. A pipeline structure made of 17 multiplexers, in the first layer, is used in order to access 17 columns of pixels. Eight multiplexers and one buffer are used to select between A rows block pixels and B rows block pixels. During fine search, the outputs of the first layer multiplexers are mapped into 3 outputs . The reference block is stored in an internal memory of 64 bytes and the reference block pixels are broadcasted to all the processing elements at the same time.

Figure 9: Pipelined pixel selection unit(PPSU).

Internal structure of the search window memory consists of a horizontal address decoder and a vertical address decoder as shown in Figure 10. Seventeen memory columns are multiplexed and connected to 9 processing elements.

Figure 10: Internal structure of search window memory.

Processing element consists of one subtractor and one accumulator. Processing element takes two inputs: one coming from the reference block queue and the other coming from one of the 17 columns consisting the candidate block in the search window memory. The accumulator adds or subtracts the subtractor output according to its sign bit to accumulate the absolute value needed in the SSAD computation as in (2). SSAD computed by PE is compared to the existing SSAD and the result is given to a final coarse comparator which is a parallel structure. Nine parallel PEs comparator and the final coarse comparator form the SSAD and motion vector computation unit (SMCU) as shown in Figure 11.

Figure 11: Block diagram of the SAD and MV Computation Unit (SMCU).

Structure of final coarse comparator, as shown in Figure 12, consists of comparators arranged in a parallel tree architecture. The structure is simple and regular, so that coarse and final motion vectors are obtained very easily.

Figure 12: Block diagram of the final coarse comparator.

5. Architecture Prototyping and Results

The proposed architecture has been prototyped with Xilinx Virtex-II Pro XUPV2 as the target device, simulated using Xilinx 8.1 i and synthesized using SynplifyPro 8v0 for a typical real-time video application with , , , and (CIF). Table 1 shows the comparison between the proposed architecture and six different motion estimation architectures. Our architecture is 60.66% more area efficient and 67.35% more power efficient compared to [5]. The major achievement is in the clock frequency. Required frame rate of 30 f/s is achieved with 4.5 MHz clock which allows the usage of a reduced power supply which in turn promises less power consumption. With this hardware, time required to encode a frame is 3.7 milliseconds against 33.3 milliseconds as per the standard. This shows that the architecture can be very much useful in high throughput applications. However, gate count is 5.08 % more than that in [5] and the core size is 3.9 % more than that in [6]. Results of frequency scaling and voltage scaling are shown in Tables 2 and 3, respectively.

Table 1: Comparison of performance parameters of propsed architecture with other architectures.
Table 2: Performance of proposed architecture with frequency scaling.
Table 3: Effect of voltage scaling for the proposed architecture (for 0.18 μ technology, VDD =1.8 V).

6. Conclusion

This paper presented a fully pipelined parallel implementation of novel coarse-to-fine search CBPS algorithm for motion estimation which successfully reduces the computational complexity to a large extend without affecting the subjective quality. This architecture gives very good speed performance and very low-power dissipation compared to different architectures for block motion estimation. We have tested its performance with different CIF sequences for videophone applications choosing Xilinx FPGA Virtex-II Pro as the target device. We have also performed an ASIC design simulation with Microwind and DSCH version 3.0. Thus with algorithmic as well as architectural optimization, great performances in terms of speed and power dissipation are achieved. However, to accommodate different block and subblock sizes prescribed in H.264/AVC or to provide flexible search ranges to suit any complex application, certain modifications need to be incorporated in the present architecture. For any block size, some of the channels of the MUXes can be disabled. For flexible ranges, more MUXes can be appended to the existing MUX banks in the PPSU. Further work involves the application of leakage power reduction techniques to the proposed architecture.


The authors wish to express their sincere gratitude to all the anonymous reviewers whose valuable suggestions helped to improve the paper.


  1. A. Artieri and F. Jutand, “A versatile and powerful chip for real time motion estimation,” in Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP '89), vol. 4, pp. 2453–2456, Glasgow, UK, May 1989. View at Publisher · View at Google Scholar
  2. C.-M. Wu and D.-K. Yeh, “A VLSI motion estimator for video image compression,” IEEE Transactions on Consumer Electronics, vol. 39, no. 4, pp. 837–846, 1993. View at Publisher · View at Google Scholar
  3. F.-M. Yang, S. Wolter, and R. Laur, “VLSI architecture for HDTV motion estimation based on block-matching algorithm,” in Proceedings of the 7th International Conference on VLSI Design, pp. 287–290, Calcutta, India, January 1994. View at Publisher · View at Google Scholar
  4. N. Roma and L. Sousa, “Efficient and configurable full-search block matching processors,” IEEE Transactions on Circuits and Systems for Video Technology, vol. 12, no. 12, pp. 1160–1167, 2002. View at Publisher · View at Google Scholar
  5. M. Abbas, B. Talha, S. Khan, and A. Abbas, “A motion estimation chip for block based MPEG-4 video applications,” in Proceedinga of the 7th International Multi Topic Conference (INMIC '03), pp. 253–257, Islamabad, Pakistan, December 2003. View at Publisher · View at Google Scholar
  6. M. Sayed and W. Badawy, “A fully parallel-pipelined architecture for full-search block-based motion estimation,” in Proceedings of the 14th International Conference on Microelectronics (ICM '02), pp. 24–27, Beirut, Lebanon, December 2002.
  7. L. De Vos and M. Schobinger, “Efficient architecture of a programmable block matching algorithm,” in Proceedings of the International Conference on Application-Specific Array Processors, pp. 560–571, Venice, Italy, October 1993. View at Publisher · View at Google Scholar
  8. Y.-K. Lai and L.-G. Chen, “A data-interlacing architecture with two-dimensional data-reuse for full-search block matching algorithm,” IEEE Transactions on Circuits and Systems for Video Technology, vol. 8, no. 2, pp. 124–127, 1998. View at Publisher · View at Google Scholar
  9. D. Xu, R. Gao, and H. Batatia, “An improved parallel architecture for MPEG-4 motion estimation in 3G mobile applications,” in roceedings of IEEE International Conference on Acoustics, Speech, and Signal Processing (ICASSP '03), vol. 2, pp. 689–692, Hong kong, April 2003. View at Publisher · View at Google Scholar
  10. S.-H. Wang, W.-L Tao, C.-N. Wang, W.-H. Pong, and H. Chiang, “Platform based design of all binary motion estimation (ABME) with bus interleaved architecture,” in Proceedings of International Symposium on VLSI Design, Automation and Test (VLSI-TSA-DAT '05), pp. 241–244, Hsinchu, Taiwan, April 2005. View at Publisher · View at Google Scholar
  11. R. Korah and J. R. P. Perinbam, “A novel coarse-to-fine search motion estimator,” Information Technology Journal, vol. 5, no. 6, pp. 1073–1077, 2006. View at Google Scholar
  12. B. Liu and A. Zaccarin, “New fast algorithms for the estimation of block motion vectors,” IEEE Transactions on Circuits and Systems for Video Technology, vol. 3, no. 2, pp. 148–157, 1993. View at Publisher · View at Google Scholar