[x264-devel] Re: static's
Tuukka Toivonen
tuukkat at ee.oulu.fi
Tue Apr 19 15:23:18 CEST 2005
On Tue, 19 Apr 2005, Tom Jacobs wrote:
> the main variable i am having trouble with is static int16_t *p_cost_mv[52];
> in x264_mb_analyse_load_costs() in analyse.c. here the encoder breaks when
> the static is removed from the variable. is this arrays data reused each
> time the function is called?
Yes. It contains some precalculated arrays for motion estimation
(MV length -> lambda * number of bits mapping),
which depend on the current QP value. If the same QP values are
used many times (very probably), the array needs not to be
recalculated again. On the other hand, memory and time are saved
as the arrays are not calculated for all QP values in the beginning
of the program, but only when needed.
--
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html
More information about the x264-devel
mailing list