Only build multithreaded functions on mt builds.
Change-Id: I2e0cc72a0543bfea1d2d3499b9906519d5cb3f15
This commit is contained in:
Родитель
bd89a34c3a
Коммит
c7f58bcc70
|
@ -407,6 +407,7 @@ static void pack_tokens_into_partitions(VP8_COMP *cpi, unsigned char *cx_data,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#if CONFIG_MULTITHREAD
|
||||||
static void pack_mb_row_tokens(VP8_COMP *cpi, vp8_writer *w)
|
static void pack_mb_row_tokens(VP8_COMP *cpi, vp8_writer *w)
|
||||||
{
|
{
|
||||||
int mb_row;
|
int mb_row;
|
||||||
|
@ -421,6 +422,7 @@ static void pack_mb_row_tokens(VP8_COMP *cpi, vp8_writer *w)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endif // CONFIG_MULTITHREAD
|
||||||
|
|
||||||
static void write_mv_ref
|
static void write_mv_ref
|
||||||
(
|
(
|
||||||
|
@ -1675,7 +1677,7 @@ void vp8_pack_bitstream(VP8_COMP *cpi, unsigned char *dest, unsigned char * dest
|
||||||
if (cpi->b_multi_threaded)
|
if (cpi->b_multi_threaded)
|
||||||
pack_mb_row_tokens(cpi, &cpi->bc[1]);
|
pack_mb_row_tokens(cpi, &cpi->bc[1]);
|
||||||
else
|
else
|
||||||
#endif
|
#endif // CONFIG_MULTITHREAD
|
||||||
vp8_pack_tokens(&cpi->bc[1], cpi->tok, cpi->tok_count);
|
vp8_pack_tokens(&cpi->bc[1], cpi->tok, cpi->tok_count);
|
||||||
|
|
||||||
vp8_stop_encode(&cpi->bc[1]);
|
vp8_stop_encode(&cpi->bc[1]);
|
||||||
|
|
|
@ -700,6 +700,7 @@ static void init_encode_frame_mb_context(VP8_COMP *cpi)
|
||||||
vp8_zero(x->count_mb_ref_frame_usage);
|
vp8_zero(x->count_mb_ref_frame_usage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CONFIG_MULTITHREAD
|
||||||
static void sum_coef_counts(MACROBLOCK *x, MACROBLOCK *x_thread)
|
static void sum_coef_counts(MACROBLOCK *x, MACROBLOCK *x_thread)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
@ -729,6 +730,7 @@ static void sum_coef_counts(MACROBLOCK *x, MACROBLOCK *x_thread)
|
||||||
}
|
}
|
||||||
while (++i < BLOCK_TYPES);
|
while (++i < BLOCK_TYPES);
|
||||||
}
|
}
|
||||||
|
#endif // CONFIG_MULTITHREAD
|
||||||
|
|
||||||
void vp8_encode_frame(VP8_COMP *cpi)
|
void vp8_encode_frame(VP8_COMP *cpi)
|
||||||
{
|
{
|
||||||
|
@ -927,7 +929,7 @@ void vp8_encode_frame(VP8_COMP *cpi)
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif // CONFIG_MULTITHREAD
|
||||||
{
|
{
|
||||||
|
|
||||||
/* for each macroblock row in image */
|
/* for each macroblock row in image */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче