Method and System for Power-Aware Motion Estimation for Video Processing

- BROADCOM CORPORATION

Methods and systems for power-aware motion estimation video processing are disclosed. Aspects of one method may include estimating motion for video data by block matching reduced resolution blocks of video data to generate an initial motion vector. The preliminary motion vector and motion for a previous frame may be used to generate a final motion vector for the block for the present frame using an iterative algorithm. The motion estimation may be dynamically enabled and/or disabled based on content of the video data, available power to a mobile terminal, and/or a user input. The iterations used to generate the final motion vector may be based on content of the video data, available power to a mobile terminal, and/or a user input.

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description
CROSS-REFERENCE TO RELATED APPLICATIONS/INCORPORATION BY REFERENCE

This application is a continuation of U.S. patent application Ser. No. 11/871,370, entitled “METHOD AND SYSTEM FOR POWER-AWARE MOTION ESTIMATION FOR VIDEO PROCESSING,” and filed on Oct. 12, 2007, which is incorporated by reference in its entirety.

FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT

[Not Applicable]

MICROFICHE/COPYRIGHT REFERENCE

[Not Applicable]

FIELD OF THE INVENTION

Certain embodiments of the invention relate to video processing. More specifically, certain embodiments of the invention relate to a method and system for power-aware motion estimation video processing.

BACKGROUND OF THE INVENTION

Users of electronic devices are becoming more aware of power consumption by those devices. Certainly, users of mobile devices are sensitive to the issue of power consumption since the mobile devices are inherently limited in available battery power, and the battery needs to be recharged periodically. Additionally, the “green” movement is leading to reduced power usage even for electronic devices that are plugged in. Reduced power requirement will benefit the consumer with reduced electric bills, and benefit society with reduced power demand on a power-grid. However, generally, when an electronic device enters a low-power state, functionality of the electronic device is greatly reduced.

Further limitations and disadvantages of conventional and traditional approaches will become apparent to one of skill in the art, through comparison of such systems with some aspects of the present invention as set forth in the remainder of the present application with reference to the drawings.

BRIEF SUMMARY OF THE INVENTION

A system and/or method for power-aware motion estimation video processing, substantially as shown in and/or described in connection with at least one of the figures, as set forth more completely in the claims.

Various advantages, aspects and novel features of the present invention, as well as details of an illustrated embodiment thereof, will be more fully understood from the following description and drawings.

BRIEF DESCRIPTION OF SEVERAL VIEWS OF THE DRAWINGS

FIG. 1 is an exemplary block diagram of a portion of a mobile terminal, in accordance with an embodiment of the invention.

FIG. 2A is an exemplary image lattice illustrating initial motion vector locations, in accordance with an embodiment of the invention.

FIG. 2B is an exemplary image lattice illustrating determining motion vector locations, in accordance with an embodiment of the invention.

FIG. 3 is an exemplary block diagram illustrating data flow for power-aware motion estimation, in accordance with an embodiment of the invention.

FIG. 4 is an exemplary graph illustrating power consumption versus number of iterations in determining motion estimation, in accordance with an embodiment of the invention.

DETAILED DESCRIPTION OF THE INVENTION

Certain embodiments of the invention may be found in a method and system for power-aware motion estimation video processing. Aspects of the invention may comprise estimating motion for video data by block matching a reduced resolution block of video data in a present frame with one or more similarly reduced resolution blocks of video data in a previous frame to generate a preliminary motion vector for the block of video data in the present frame. The preliminary motion vector and motion vectors that correspond to blocks of video data from a previous frame may be used to generate a final motion vector for the block of video data for the present frame. A global motion vector may also be used in generating the final motion vector. The final motion vector may be generated using an iterative algorithm that adds the preliminary motion vector to a feedback motion vector. The feedback motion vector may be generated by appropriately processing the result of adding the preliminary motion vector to a feedback motion vector. The final motion vector for each block of video data may be stored in memory for generating motion vectors for blocks of video data in a subsequent frame.

The motion estimation may be dynamically enabled and/or disabled based on content of the video data, available power to a mobile terminal, and/or a user input. The number of iterations used for the iterative algorithm in generating the final motion vector may also be based on content of the video data, available power to a mobile terminal, and/or a user input. The incremental correction for an output generated at each iteration of the iterative algorithm may be adjusted, where the generated output may be the final motion vector when the iterative algorithm is finished with its iterations. Power may also be dynamically turned off to the circuitry that makes motion estimation, if said motion estimation is not needed, such as, for example, during motion-compensated frame rate up-conversion.

FIG. 1 is an exemplary diagram of a portion of a mobile terminal, which may be utilized in connection with an embodiment of the invention. Referring to FIG. 1, there is shown a mobile terminal 100. The mobile terminal 100 may comprise an image sensor 110, an image processor 112, a processor 114, and a memory block 116. The image sensor 110 may comprise suitable circuitry and/or logic that may enable capture of light intensity at a plurality of colors, such as, for example, red, green, and blue. The captured light intensity levels may be further processed as video and/or still photograph outputs. These color levels may be converted, for example, to the YUV color space and the resulting color information may be communicated to, for example, the image processor 112 for further processing.

The image processor 112 may comprise suitable circuitry and/or logic that may enable processing of video information. The processing may comprise, for example, compressing the video information from the image sensor 110. The processing may also comprise, for example, decompressing video information communicated to the mobile terminal 100. The processing may comprise, for example, power-aware motion estimation video processing. The processor 114 may determine the mode of operation of various portions of the mobile terminal 100. For example, the processor 114 may set up data registers in the image processor block 112 to allow direct memory access (DMA) transfers of video data to the memory block 116. The processor 114 may also communicate instructions to the image sensor 110 to initiate capturing of images. The memory block 116 may be used to store image data that may be processed and communicated by the image processor 112. The memory block 116 may also be used for storing code and/or data that may be used by the processor 114. The memory block 116 may also be used to store data for other functionalities of the mobile terminal 100. For example, the memory block 114 may store data corresponding to voice communication.

In operation, the processor 114 may initiate image capture by the image sensor 110. The image sensor 110 may communicate the video data corresponding to the captured images to the image processor 112. The image processor 112 may, for example, compress the video data in a suitable format for storing as a file. The image processor 112 functionalities that enable power-aware motion detection are discussed with respect to FIGS. 2-5. The video data in the memory block 116 may be further processed by, for example, the processor 114.

FIGS. 2A and 2B are exemplary image lattices illustrating motion vector estimations, in accordance with an embodiment of the invention. Referring to FIG. 2A, there is shown the image lattices 200, where the image lattice 200 may be a representation of a previous frame FK-1. The image lattice 200 may comprise a plurality of blocks, where each block may comprise, for example, M pixels in a horizontal direction and N pixels in a vertical direction. For example, M and N may each be 16. Referring to FIG. 2B, there is shown the image lattice 210, where the image lattice 210 may be a representation of a present frame FK. The image lattice 210 may be similar to the image lattice 200 with respect to the number of blocks in the image and where each block comprises M×N pixels. The image processor 112 may, for example, process image lattices to determine motion estimation between various frames.

Motion estimation may be an effective but high-complexity technique for video compression and other processing systems. To estimate the motion of a block of video, for example, the block 211 in the frame FK, a search may be initiated to locate a most similar block, or a best matched block, in a previous frame. Based on the search, a motion vector may be generated that may indicate motion from a block in the previous frame to a block in the present frame. For example, the best match for the block 211 in the present frame FK may be the block 202 in the previous frame FK-1. Accordingly, the motion vector for the block 211 may indicate movement from the block 202 in the frame FK-1 to the block 211 in the present frame FK. To search for the best matched block, a Full Search (FS) motion estimation may be used, where the algorithm may search through all possible candidates in a search range. This may result in smallest error in matching, or a smallest cost value, but the FS motion estimation may use most resources and most search time.

Other search methods, which may have a higher cost value, but a more efficient use of resources, and a shorter search time may comprise, for example, a multi-step search, a hierarchical search, and a diamond search. Basically, efficiency may be gained by skipping some candidate blocks so that the computational complexity may be lower but the search result may still be close to the best-matched result. Other methods of searching may comprise, for example, a pixel truncation scheme, where some lower bits of a coefficient may be truncated during motion estimation search, and a sub-sampling scheme, which may sub-sample the image to a smaller image for motion estimation search. Accordingly, these various methods may be combined to reduce a search time while limiting loss of precision. A power-aware motion estimation may use, for example, various searching methods with variable search range, and pre-constrained searching candidate numbers, for example, where the limitations may increase for low power instances.

The visual motion estimation may comprise an optimization problem that searches the optimal optical flow estimate given the visual observation, the matching and flow model, and, possibly, additional input from higher cognitive levels. These inputs and models may impose individual constraints on the solution. Thus, finding an optimal solution may be called a constraint optimization problem, where its mathematical formulation and the computational approach chosen may depend on the constraints imposed.

The first constraint chosen may be the minimum displacement constraint. This may come various motion estimation methods that apply the block matching explicitly. The displacement per time unit in image space may serve as a measure for image motion. Typically, the matching method may be described by the following least-squares error equation:


E(x,y,t;vx,vy,Δt)=(P(x,y,t)−P(x+vx,y+vy,t+Δt))2,  [1]

where P may describe the brightness distribution in the image space and time on a Cartesian coordinate system, and vx and vy may be translational displacements, also called a motion vector, in image space. The coordinates vxt and vyt may be determined for a time t for a given Δt such that E(x,y,t;vxt,vyt,Δt) is minimized. Accordingly, the equation [1] may be expressed as:


{right arrow over (v)}t=(vxt,vyt)=arg minvx,vyE(x,y,t;vx,vy,Δt).  [12]

The instantaneous estimate of optical flow in an image space may be its vector field, which may be expressed as:

v t ( x , y , t ) = ( v x t t , v y t t ) . [ 3 ]

Using Taylor expansion, P(x,y,t) may be expressed as:

P ( x + v x , y + v y , t + Δ t ) = P ( x , y , t ) + P x v x + P y v y + P t Δ t + ɛ ( o 2 ) [ 4 ]

where ε(o2) may comprise higher order terms that are neglected. Thus, equation [1] may be expressed as:

E ( x , y , t ; v x , v y , Δ t ) = ( P x v x + P y v y + P t Δ t ) 2 . [ 5 ]

An exemplary visual motion estimation may be determined utilizing a flow model that imposes assumptions related to properties of the expected optical flow. For example, an assumption may be that the optical flow estimate is smooth. The smoothness constraint S({right arrow over (v)}) may be defined as a quadratic measure of how much the flow field varies across the image space:

S ( v ) = ( v x x ) 2 + ( v x y ) 2 + ( v y x ) 2 + ( v y y ) 2 + ( v x t ) 2 + ( v y t ) 2 [ 6 ]

Smoothness may assume, for example, that locations in images close to each other may be more likely to belong to a same moving region, and thus may be more likely to have a same visual motion. Smoothness may be closely related to a motion field of rigid objects. However, the smoothness constraints may be violated at locations where motion discontinuities are likely to occur, such as, for example, moving object boundaries. This may be due to judder, or temporal artifacts that may be associated with moving images that have been sampled at one rate and converted for display at another rate.

Another assumption of the flow model may be, for example, that some optical flow vectors may be derived from a known reference motion vector. This may be referred to, for example, as a bias constraint. Such constraint may be defined as:


B({right arrow over (v)},vref)=(vx−vxref)2+(vy−vyref)2,  [7]

where B may measure how much the estimated optical flow vector may deviate from a given reference motion {right arrow over (v)}ref=(vxref,vyref). The bias constraint may permit the visual motion estimation algorithm to incorporate and apply a priori information about expected motion. For example, the given reference motion may be a global motion vector. The reference motion vector {right arrow over (v)}ref=(vxref,vyref) may specify a good optical flow estimate under conditions where the visual input may be ambiguous and unreliable. The reference motion vector {right arrow over (v)}ref=(vxref,vyref) may be used to adapt the visual motion estimation algorithm to different visual conditions. The bias constraint may incorporate additional information that may allow a better estimate of visual motion.

The above constraints may be combined such that for a continuous input of the brightness distribution P(x,y,t) on an image region Ω⊂R2, the problem to solve may be to find vx and vy for a given time duration Δt such that the cost function

J ( v , w S , w B ) = Ω ( E + w S · S + w B · B ) Ω [ 8 ]

may be minimal, with {right arrow over (v)}″={right arrow over (0)} along ∂Ω and wS>0, and wB≧0. The relative weights of the constraints may be set by the parameters wS and wB. When the visual motion estimation algorithm is first initialized for use, these parameters may be assumed to be constant. However, since these parameters may be considered as a function of time, location, and the current motion estimation, these parameters may be variable. Weighting parameters and the reference motion vector, which may be design dependent, may allow the visual motion estimation algorithm to account for different models of visual motion perception. The motion estimation formulated as the constraint optimization problem expressed by the equation [8] may have a unique solution that may depend continuously on input data.

Although equation [8] may be formulated on a continuous image space Ω⊂R2, video data may be provided by an imaging device as discrete temporal pictures with discrete spatial resolution. For example, if a discrete image space is defined on an orthogonal lattice, where each node is labeled by two integer values iε[0, 1, . . . , H−1] and jε[0, 1, . . . , V−1], equation [8] may be reduced to a finite number of locations. To model the cost function for implementation of equation [8], the (i,j) lattice may be partitioned to p×q blocks, where each block may comprise m×n pixels. Accordingly, iε[pm, . . . , pm+m−1] where

p [ 0 , 1 , , H m - 1 ] ,

and jε[qn, . . . , qn+n−1] where

q [ 0 , 1 , , V n - 1 ] .

Since a single motion vector may be determined for each block, there may be p×q motion vectors in an image space, such as, for example, the image lattice 200 and the image lattice 210. Thus, the estimation of the optical flow motion vector may be modeled as a causal discrete constraint optimization process with the cost function for the block (p, q) expressed as:

J ( v , w S , w B ) = i = pm pm + m - 1 j = qn qn + n - 1 ( P ( x i , y j , k ) - P ( x i + v x , y j + v y , k - 1 ) ) 2 + w S · ( ( v x - v x , ( p - 1 , q ) k ) 2 + ( v y - v y , ( p - 1 , q ) k ) 2 + ( v x - v x , ( p , q - 1 ) k ) 2 + ( v y - v y , ( p , q - 1 ) k ) 2 + ( v x - v x , p , q k - 1 ) 2 + ( v y - v y , ( p , q ) k - 1 ) 2 ) + w B · ( ( v x - v x , ref ) 2 + ( v y - v y ref ) 2 ) [ 9 ]

where the partial derivatives of the flow vectors in the smoothness term in equation [8] may be replaced by a difference operator, and an index ‘k’ may indicate the frame number. The term vb,(c,d)a may indicate a previously estimated motion vector in the frame ‘a’ for the ‘b’ direction and at the grid location (c, d). While an embodiment of the invention may use the equation [9], other variations of the equation [9] may be used. For example, the smoothness term with vb,(c,d)a may be altered.

An embodiment of the invention may use a block matching motion-estimation algorithm to minimize a cost function for equation [9]. The equation [9] may have a unique solution as in the continuous case. Accordingly, it follows that


J′({right arrow over (v)},wS,wB)=0  [10]

may be a sufficient condition for the unique solution. J({right arrow over (v)},wS,wB) may be assumed to be sufficiently regular and at least twice continuously differentiable. Thus, gradient descent on the cost function [9] may be used as an update strategy for an iterative motion estimation algorithm. The changes of each motion vector component vx and vy may be negatively proportional to the partial gradients of the cost function, and may be expressed as:

v . x - J ( v , w S , w B ) v x and v . y - J ( v , w S , w B ) v y [ 11 ]

until steady state may be reached. This may lead to the following linear partial differential equations, which may be jointly referred to as equation [12]:

v . x = - A · ( i = pm pm + m - 1 j = qn qn + n - 1 B x i , y j · E ( x i , y j , k ; v x , v y , 1 ) + w S · ( 3 v x - v x , ( p - 1 , q ) k - v x , ( p , q - 1 ) k - v x , ( p , q ) k - 1 ) + w B · ( v x - v x ref ) ) v . y = - A · ( i = pm pm + m - 1 j = qn qn + n - 1 C x i , y j · E ( x i , y j , k ; v x , v y , 1 ) + w S · ( 3 v y - v y , ( p - 1 , q ) k - v y , ( p , q - 1 ) k - v y , ( p , q ) k - 1 ) + w B · ( v y - v y ref ) ) [ 12 ]

where E(xi,yj,k;vx,vy,1)=E(xi,yj,k)−E(xi+vx,yj+vy,k−1), ‘A’ is a positive constant, and

B x i , y j = P x i , C x i , y j = P y j ,

as derived from equation [4].

The Steepest-Descent (SD) method may be used for finding a solution to the equation [12]. The SD method may take the previous result {right arrow over (v)}(ρ−1) and update it using the instantaneous gradient of the temporal squared error, for example, E(xi,yjk;vx,vy,1), to get the following recursive equation:


{right arrow over (v)}(ρ)={right arrow over (v)}(ρ−1)+A·({right arrow over (f)}({right arrow over (v)}(0),{right arrow over (v)}p-1,q)k,{right arrow over (v)}(p,q-1)k,{right arrow over (v)}(p,q)k-1,{right arrow over (v)}ref)−(3wS+wB{right arrow over (v)}(ρ−1)),  [13]

where

v ( ρ ) = ( v x ( ρ ) v y ( ρ ) )

and ρ is the iteration step. To simplify the operation, Bxi,yj and Cxi,yj may be assumed to be constants for each m×n block. Thus,

f ( v ( 0 ) , v ( p - 1 , q ) k , v ( p , q - 1 ) k , v ( p , q ) k - 1 , v ref ) = ( - B p , q i = pm pm + m - 1 j = qn qn + n - 1 E ( x i , y j , k ; v T ( 0 ) , 1 ) + w S · ( v x , ( p - 1 , q ) k + v x , ( p , q - 1 ) k + v x , ( p , q ) k - 1 ) + w B · v x ref - C p , q i = pm pm + m - 1 j = qn qn + n - 1 E ( x i , y j , k ; v T ( 0 ) , 1 ) + w S · ( v y , ( p - 1 , q ) k + v y , ( p , q - 1 ) k + v y , ( p , q ) k - 1 ) + w B · v y ref ) [ 14 ]

The initial motion vector {right arrow over (v)}(0) may be computed by a lower-resolution block matching search algorithm and Bxp,yq and Cxp,yq may be estimated, for example, by the block boundary pixel difference. Equation [13] may be, for example, one iteration of the steepest decent algorithm. The parameter A, which may be referred to as the step-size, may control the size of the incremental correction applied to the motion vector from one iteration to the next. The parameter A may need to be determined such that the relationship described by equation [13] is stable, or converges to a solution.

For frames that comprise fast moving scenes, the term {right arrow over (v)}(p,q)k-1 in equations [13] and [14] may be replaced by a motion vector of the block in the k−1 frame pointed by the vector) −{right arrow over (v)}(0) from the block (p,q) in the frame k. The minus sign may indicate that the vector may be from a previous frame. Accordingly, a motion vector for a block in a present frame may be set to be equal to the motion vector for a block in a previous frame. For example, if the motion vector for the block 202 points to the block 211, the block 211 may be given a motion vector that may be the same as the motion vector for the block 201. A data flow diagram for an implementation using equation [13] is disclosed with respect to FIG. 3.

FIG. 3 is an exemplary block diagram illustrating data flow for power-aware motion estimation, in accordance with an embodiment of the invention. Referring to FIG. 3, there is shown a portion of the mobile terminal 100 that comprise an adaptive power control block 300, an adaptive motion estimation engine 310, and memory 320. The adaptive power control block 300 may comprise suitable logic, circuitry, and/or code that may enable controlling power to the adaptive motion estimation engine 310. The power control functionality may be, for example, programmable based on whether the mobile terminal 100 may be in a low-power state. In instances when the mobile terminal 100 is in a low-power state, power to the adaptive motion estimation engine 310 may be turned off by the adaptive power control block 300. In instances when the mobile terminal 100 is in a full-power state, power to the adaptive motion estimation engine 310 may be turned on by the adaptive power control block 300. The threshold voltage(s) at which the adaptive power control block 300 may turn on or off power to the adaptive motion estimation engine 310 may be programmed by, for example, the processor 114. The processor 114 may also communicate a command to the adaptive power control block 300 to turn off the adaptive motion estimation engine 310. The processor 114 may communicate a power control command based on, for example, a user's selection of a power model for use by the mobile terminal 100.

The number of iterations for motion estimation may also be based on, for example, limitation of the power source and/or the complexity of video data. For example, while the mobile terminal 100 may be in a full-power state, if video data complexity is deemed to be decreasing, then the number of iterations for motion estimation may be reduced. If the video data complexity is simple enough, the motion estimation engine may be turned off. The determination of video data complexity may be design dependent. Additionally, even with complex video data, in instances where voltage level of, for example, a battery (not shown) is decreasing, the number of iterations for motion estimation may be reduced. Video data complexity may be determined by, for example, the image processor 112 and/or the processor 114. Accordingly, the image processor 112 and/or the processor 114 may program the number of iterations to execute for motion estimation for various levels of video data complexity.

The adaptive motion estimation engine 310 may be an implementation of, for example, the equation [13]. The adaptive motion estimation engine 310 may comprise a low resolution search block 312, an initial motion vector generator block 314, amplitude adjuster blocks 316, 324, 326, and 328, a summer block 318, an iteration control block 320, and a delay block 322. The low resolution search block 312 may comprise suitable logic, circuitry, and/or code that may sample video blocks in a video frame to generate lower resolution video blocks for the video frame. The low resolution search block 312 may then determine a global motion vector for a frame. The low resolution search block 312 may also search for best matches for each low resolution video block to generate low resolution motion vectors for each video block in the video frame, where the scope of search may be controlled by, for example, the image processor 112 and/or the processor 114. Accordingly, the scope of the search may be the blocks in the video frame, or a portion of the blocks in the video frame.

The initial motion vector generator block 314 may comprise suitable logic, circuitry, and/or code that may receive input data from the low resolution search block 312 as well as motion vectors from a previous video frame. Various embodiments of the invention may use different motion vectors from a previous frame, depending on the solution used for the equation [13].

The amplitude adjuster blocks 316, 324, 326, and 328 may comprise suitable logic, circuitry, and/or code that may enable multiplying an input digital data by a suitable value, where the value used may be controlled by, for example, the image processor 112 and/or the processor 114.

The summer block 318 may comprise suitable logic, circuitry, and/or code that may enable adding digital data from a plurality of sources to output a single digital data. The iteration control block 320 may comprise suitable logic, circuitry, and/or code that may enable controlling a number of iterations used in determining a motion vector for a block in a video frame. The delay block 322 may comprise suitable logic, circuitry, and/or code that may enable providing suitable delay such that a motion vector for a block may be processed to generate a next iteration of a motion vector.

Memory 320 may be, for example, a part of the memory block 116, and may store the motion vectors generated by the adaptive motion estimation engine 310. The motion vectors stored in the memory 320 may be communicated to, for example, the low resolution search block 312 and/or the initial motion vector generator block 314.

In operation, video data for a video block in a present frame FK may be communicated to the scene adaptive auto shut-off block 300. The scene adaptive auto shut-off block 300 may communicate the video data to the low resolution search block 312 if it determines that the adaptive motion estimation engine 310 may be turned on to generate motion vectors. If the scene adaptive auto shut-off block 300 determines that the adaptive motion estimation engine 310 may need to be shut off, the video data may be, for example, further processed by the image processor 112 without motion estimation.

The low resolution search block 312 may sample the video data to generate a lower resolution video block that may correspond to the video data from the scene adaptive auto shut-off block 300. The scene adaptive auto shut-off block 300 may also be controlled via a shut-off command from, for example, the processor 114. For example, the processor 114 may dynamically communicate a command to the scene adaptive auto shut-off block 300 to shut off power to the adaptive motion estimation engine 310 when motion estimation is not needed. For example, when the mobile terminal 100 is performing motion-compensated frame rate up-conversion, a frame may be repeated and motion estimation may not be needed. Accordingly, the processor 114 may communicate a command to have the adaptive motion estimation engine 310 turned off to save power.

The low resolution search block 312 may then generate a low resolution motion vector {right arrow over (v)}(0) for each lower resolution block. The low resolution search block 312 may also output a global motion vector {right arrow over (v)}ref, which may be, for example, stored in the low resolution search block 312 by the processor 114. The motion vectors may be communicated to the vector generator block 314. The vector generator block 314 may use the motion vectors from the low resolution search block 312 and motion vectors for blocks from a previous frame to determine a motion vector for a block in the present frame. The motion vectors for blocks from a previous frame may be stored, for example, in the memory 320. For example, a motion vector {right arrow over (f)} for the block 212, which may also be referred to as block (p,q) in the present frame FK, may be determined based on motion vectors for the blocks 201, 202, and 203 in the previous frame FK-1, as well as the global motion vector {right arrow over (v)}ref for the present frame FK and the low resolution motion vector {right arrow over (v)}(0) for the block 212 in the present frame FK. The motion vector {right arrow over (f)} may be represented by the equation [14].

The motion vector {right arrow over (f)} may be communicated to the amplitude adjuster block 316, which may multiply the motion vector {right arrow over (f)} by a parameter A, where the parameter may be a programmable parameter. The parameter A may be, for example, a positive value that may be chosen to ensure convergence to a solution. The output of the amplitude adjuster block 316 may be constant until the motion vector is generated at the final iteration. The output of the amplitude adjuster block 316 may be communicated to the summer block 318, which may combine the outputs of the amplitude adjuster block 316, 324, and 328. The output of the summer block 318 may be referred to as a present iteration motion vector {right arrow over (v)}(ρ). The iteration control block 320 may determine whether a number of iterations selected for motion estimation may have occurred. If so, the present iteration motion vector {right arrow over (v)}(ρ) may be saved as a final motion vector for a block, for example, the block (p,q), in the memory 320. Accordingly, the motion vectors for all blocks in a frame may be saved in the memory 320 for future use, including for generation of motion vectors for a subsequent frame.

If more iterations are to take place to generate the motion vector, the present iteration motion vector {right arrow over (v)}(ρ) may be communicated to the delay block 322. The delay block 322 may delay the present iteration motion vector {right arrow over (v)}(ρ) such that it may be used as a previous iteration motion vector {right arrow over (v)}(ρ−1), as shown in the equation [14]. Various embodiments of the invention may, for example, set the output of the delay block 322 to zero at the start of a first iteration, or to a known pre-determined value.

The previous iteration motion vector {right arrow over (v)}(ρ−1) may be communicated to the amplitude adjuster blocks 324 and 326. The amplitude adjuster blocks 324 may be output a motion vector that may be identical to the motion vector {right arrow over (v)}(ρ−1). The output of the amplitude adjuster block 324 may be communicated to the summer block 318 for generating a subsequent present iteration motion vector {right arrow over (v)}(ρ). The amplitude adjuster block 326 may, for example, multiply the motion vector {right arrow over (v)}(ρ−1) by a parameter of “3Ws+Wb,” where the weighting parameter Ws may be greater than zero and the weighting parameter Wb may be greater than or equal to zero. Various embodiments of the invention may initially set the weighting parameters Ws and Wb to some constant values, where the constant values may depend on, for example, different models of visual motion perception. Accordingly, the initial values of the weighting parameters Ws and Wb may be design and/or implementation dependent.

The output of the amplitude adjuster block 326 may be communicated to the amplitude adjuster block 328, which may multiply the data communicated from the amplitude adjuster block 326 by a parameter of “−A.” The parameter −A may be a negative of the parameter A used by the amplitude adjuster block 326 316. The output of the amplitude adjuster block 328 may be communicated to the summer block 316. The output of the amplitude adjuster blocks 324 and 328 may be referred to as a feedback motion vector.

FIG. 4 is an exemplary graph illustrating power consumption versus number of iterations in determining motion estimation, in accordance with an embodiment of the invention. Referring to FIG. 4, there is shown the graph 400 that may represent, for example, power used in processing video. For example, graph point 402 may indicate zero iterations for generating a motion vector. The number of iterations may be set to zero, for example, when the adaptive motion estimation engine 310 may be turned off. Other embodiments of the invention may allow a separate state where the adaptive motion estimation engine 310 may be turned on, but with zero iterations, and where the adaptive motion estimation engine 310 may be turned off. Accordingly, video processing may result in increased power usage as the number of iterations for motion vector estimation increases, until the maximum number of iterations is reached.

Various embodiments of the invention may, therefore, control power consumption for video processing by turning on or off, for example, the adaptive motion estimation engine 310. Power consumption may also be changed by adjusting the number of iterations allowed for determining a motion vector for a block of video in a present frame. Accordingly, by suitably determining power consumption versus operation of the adaptive motion estimation engine 310, various power models may be generated. A user of the mobile terminal 100, for example, may then select a desired power model for video processing, and the image processor 114 may be appropriately configured.

For example, the processor 114 may communicate a command to the adaptive power control block 300 to turn off power to the adaptive motion estimation engine 310. The processor 114 may also communicate a command to the power control block 300 to turn on power to the adaptive motion estimation engine 310. When the adaptive motion estimation engine 310 is turned on, various parameters may be adjusted, for example, by the processor 114. For example, the parameters A, Ws, Wb, and −A for the amplitude adjuster blocks 316, 324, 326, and 328, respectively may be set to desired values. Additionally, the number of iterations may be set for the iteration control block 320.

The scene adaptive auto shut-off block 300 may also be controlled via a shut-off command from, for example, the processor 114 to save power for certain applications, such as, for example, motion-compensated frame rate up-conversion where a frame may be repeated to save power.

In accordance with an embodiment of the invention, aspects of an exemplary system may comprise the scenic adaptive auto shut-off block 300, the adaptive motion estimation engine 310, and memory 320. The scenic adaptive auto shut-off block 300 may control, for example, power to the adaptive motion estimation engine 310. The scenic adaptive auto shut-off block 300 may either turn on or turn off power to the adaptive motion estimation engine 310 based on video content of video data communicated to the scenic adaptive auto shut-off block 300 and/or available power for the mobile terminal 100. The power level at which the scenic adaptive auto shut-off block 300 turns on or off the adaptive motion estimation engine 310 may be design and/or implementation dependent. For example, the threshold value for the power level may be set by the processor 114 to a default value, or according to a power model selected by a user.

When the power to the adaptive motion estimation engine 310 is turned on, the adaptive motion estimation engine 310 may make motion estimations for video data. The motion estimations may comprise a motion vector for each block of video data in a frame. For example, the low resolution search block 312 may generate a low resolution block from video data for the block 212 in the present frame FK by sampling the video data in the block 212. The low resolution search block 312 may then perform block matching for the low resolution block of video data with one or more similarly sampled low resolution blocks of video data in a previous frame, for example, the frame FK-1. The block matching may result in a low resolution motion vector for the block 212 in the present frame. The low resolution search block 312 may also output a global motion vector.

The initial motion vector generator block 314 may generate an initial motion vector, or a preliminary motion vector, based on the low resolution motion vector for the block 212 and the global motion vector. The initial motion vector may also be based on, for example, motion vectors from the previous frame. The initial motion vector may be summed by the summer block 318 with a feedback motion vector, where the feedback motion vector may be iteratively adjusted. The feedback motion vector may be generated by processing the output of the summer block 318 via the delay block 322, and the amplitude adjuster blocks 324, 326, and 328.

The number of iterations may be controlled, for example, by the processor 114. The number of iterations used for the iterative algorithm in generating the final motion vector may be, for example, communicated by the processor 114 to the iteration control block 320. After the number of iterations allowed by the iteration control block 320, the summed result of the initial motion vector and the feedback motion vector may be saved in memory 320 as a final motion vector for the block 212. The final motion vector for each of the blocks in the present frame FK may be used to generate motion vectors for blocks of video data of a subsequent frame.

Various embodiments of the invention may also adjust the number of iterations based on video content of video data communicated to the scenic adaptive auto shut-off block 300 and/or levels of available power for the mobile terminal 100. The power levels at which the scenic adaptive auto shut-off block 300 may adjust the number of iterations may be design and/or implementation dependent. For example, the threshold values for the power levels may be set by the processor 114 to a default value, or according to a power model selected by a user. The processor 114, for example, may also control the incremental correction for an output generated at each iteration of the iterative algorithm, wherein the generated output may be the final motion vector when the iterative algorithm is finished with its iterations. A processor, such as, for example, the processor 114 may also communicate a command to the scenic adaptive auto shut-off block 300 to turn off power to the adaptive motion estimation engine 310. This may occur when motion estimation is not needed during such times as, for example, when motion-compensated frame rate up-conversion repeats a frame.

Another embodiment of the invention may provide a machine-readable storage, having stored thereon, a computer program having at least one code section executable by a machine, thereby causing the machine to perform the steps as described herein for power-aware motion estimation video processing.

Accordingly, the present invention may be realized in hardware, software, or a combination of hardware and software. The present invention may be realized in a centralized fashion in at least one computer system, or in a distributed fashion where different elements are spread across several interconnected computer systems. Any kind of computer system or other apparatus adapted for carrying out the methods described herein is suited. A typical combination of hardware and software may be a general-purpose computer system with a computer program that, when being loaded and executed, controls the computer system such that it carries out the methods described herein.

The present invention may also be embedded in a computer program product, which comprises all the features enabling the implementation of the methods described herein, and which when loaded in a computer system is able to carry out these methods. Computer program in the present context means any expression, in any language, code or notation, of a set of instructions intended to cause a system having an information processing capability to perform a particular function either directly or after either or both of the following: a) conversion to another language, code or notation; b) reproduction in a different material form.

While the present invention has been described with reference to certain embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the scope of the present invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the present invention without departing from its scope. Therefore, it is intended that the present invention not be limited to the particular embodiment disclosed, but that the present invention will comprise all embodiments falling within the scope of the appended claims.

Claims

1. A method, comprising:

generating a motion vector for estimating motion in video data by block matching a first block of video data in a present frame with at least one block of video data in a previous frame;
applying an incremental correction to the motion vector; and
dynamically adjusting a number of times the applying the incremental correction to the motion vector is performed for the motion vector based at least in part on a selected one of a plurality of power models, the power models corresponding to varying power consumption requirements.

2. The method of claim 1, further comprising dynamically adjusting the number of times the applying the incremental correction to the motion vector is performed for the motion vector based at least in part on available power.

3. The method of claim 1, further comprising generating each incremental correction based at least in part on a respective motion vector that corresponds to one block of video data from the previous frame.

4. The method of claim 1, further comprising dynamically disabling motion estimation using the motion vector that has been incrementally corrected based at least in part on available power.

5. The method of claim 1, further comprising dynamically enabling motion estimation using the motion vector that has been incrementally corrected based at least in part on available power.

6. The method of claim 1, further comprising storing the motion vector that has been incrementally corrected in memory for use in estimating motion for a subsequent frame.

7. The method of claim 1, further comprising:

determining whether motion estimation is needed for the video data; and
dynamically powering off circuitry employed to perform the motion estimation in response to determining that the motion estimation is not needed for the video data.

8. The method of claim 1, further comprising:

sampling the first block of video data to generate a lower resolution block of video data; and
wherein the lower resolution block of video data is used for the block matching with similarly sampled lower resolution blocks of video data for the previous frame.

9. A system, comprising:

circuitry configured to: generate a motion vector for estimating motion in video data by block matching a first block of video data in a present frame with at least one block of video data in a previous frame; apply at least one incremental correction to the motion vector; and dynamically adjust a number of times the motion vector is incrementally corrected based at least in part on a measure of power available to the circuitry.

10. The system of claim 9, wherein the circuitry is further configured to apply the at least one incremental correction according to an iterative algorithm.

11. The system of claim 9, wherein the circuitry is further configured to dynamically adjust the number of times the motion vector is incrementally corrected based at least in part on a selected one of a plurality of power models, the power models corresponding to varying power consumption requirements.

12. The system of claim 9, wherein the circuitry is further configured to generate each one of the at least one incremental correction based at least in part on a respective motion vector that corresponds to one block of video data from the previous frame.

13. The system of claim 9, wherein the circuitry is further configured to dynamically disable motion estimation using the motion vector that has been incrementally corrected based at least in part on the measure of power available to the circuitry.

14. The system of claim 9, wherein the circuitry is further configured to dynamically enable motion estimation using the motion vector that has been incrementally corrected based at least in part on the measure of power available to the circuitry.

15. The system of claim 9, wherein the circuitry is further configured to store the motion vector that has been incrementally corrected in memory for use in estimating motion for a subsequent frame.

16. The system of claim 9, wherein the circuitry is further configured to:

determine whether motion estimation is needed for the video data; and
dynamically power off a portion of the circuitry in response to determining that the motion estimation is not needed for the video data.

17. The system of claim 9, wherein the circuitry is further configured to:

sample the first block of video data to generate a lower resolution block of video data; and
wherein the lower resolution block of video data is used for the block matching with similarly sampled lower resolution blocks of video data for the previous frame.

18. A non-transitory computer-readable medium embodying a program executable in a computing device, comprising:

code that generates a motion vector for estimating motion in video data by block matching a first block of video data in a present frame with at least one block of video data in a previous frame;
code that iteratively applies at least one incremental correction to the motion vector; and
code that dynamically adjusts a number of iterations employed by the code that iteratively applies the at least one incremental correction to the motion vector based at least in part on a measure of power available to the computing device.

19. The non-transitory computer-readable medium of claim 18, further comprising code that dynamically adjusts the number of iterations employed by the code that iteratively applies the at least one incremental correction to the motion vector based at least in part on a selected one of a plurality of power models, the power models corresponding to varying power consumption requirements.

20. The non-transitory computer-readable medium of claim 18, further comprising:

code that samples the first block of video data to generate a lower resolution block of video data; and
wherein the lower resolution block of video data is used for the block matching with similarly sampled lower resolution blocks of video data for the previous frame.
Patent History
Publication number: 20120274844
Type: Application
Filed: Jul 9, 2012
Publication Date: Nov 1, 2012
Applicant: BROADCOM CORPORATION (Irvine, CA)
Inventor: Xuemin Chen (San Diego, CA)
Application Number: 13/544,170
Classifications
Current U.S. Class: Including Motion Vector (348/416.1); With Bandwidth Reduction (epo) (348/E11.006)
International Classification: H04N 11/02 (20060101);