Merge changes I3aed713e,I9ef7f56e,Ic18c60df
* changes: vp8_set_maps: remove hard-coded width/height vp8mt_alloc_temp_buffers: make prototype return void Disable compile warning for ERROR macro
This commit is contained in:
commit
78cbe51bc3
@ -78,8 +78,8 @@ if(frame_cnt + 1 == 22) {
|
|||||||
} else if(frame_cnt + 1 == 44) {
|
} else if(frame_cnt + 1 == 44) {
|
||||||
vpx_active_map_t active;
|
vpx_active_map_t active;
|
||||||
|
|
||||||
active.rows = 240/16;
|
active.rows = cfg.g_h/16;
|
||||||
active.cols = 320/16;
|
active.cols = cfg.g_w/16;
|
||||||
|
|
||||||
/* pass in null map to disable active_map*/
|
/* pass in null map to disable active_map*/
|
||||||
active.active_map = NULL;
|
active.active_map = NULL;
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
extern void vp8mt_decode_mb_rows(VP8D_COMP *pbi, MACROBLOCKD *xd);
|
extern void vp8mt_decode_mb_rows(VP8D_COMP *pbi, MACROBLOCKD *xd);
|
||||||
extern void vp8_decoder_remove_threads(VP8D_COMP *pbi);
|
extern void vp8_decoder_remove_threads(VP8D_COMP *pbi);
|
||||||
extern void vp8_decoder_create_threads(VP8D_COMP *pbi);
|
extern void vp8_decoder_create_threads(VP8D_COMP *pbi);
|
||||||
extern int vp8mt_alloc_temp_buffers(VP8D_COMP *pbi, int width, int prev_mb_rows);
|
extern void vp8mt_alloc_temp_buffers(VP8D_COMP *pbi, int width, int prev_mb_rows);
|
||||||
extern void vp8mt_de_alloc_temp_buffers(VP8D_COMP *pbi, int mb_rows);
|
extern void vp8mt_de_alloc_temp_buffers(VP8D_COMP *pbi, int mb_rows);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -596,7 +596,7 @@ void vp8mt_de_alloc_temp_buffers(VP8D_COMP *pbi, int mb_rows)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int vp8mt_alloc_temp_buffers(VP8D_COMP *pbi, int width, int prev_mb_rows)
|
void vp8mt_alloc_temp_buffers(VP8D_COMP *pbi, int width, int prev_mb_rows)
|
||||||
{
|
{
|
||||||
#if CONFIG_MULTITHREAD
|
#if CONFIG_MULTITHREAD
|
||||||
VP8_COMMON *const pc = & pbi->common;
|
VP8_COMMON *const pc = & pbi->common;
|
||||||
@ -647,7 +647,6 @@ int vp8mt_alloc_temp_buffers(VP8D_COMP *pbi, int width, int prev_mb_rows)
|
|||||||
for (i=0; i< pc->mb_rows; i++)
|
for (i=0; i< pc->mb_rows; i++)
|
||||||
CHECK_MEM_ERROR(pbi->mt_vleft_col[i], vpx_calloc(sizeof(unsigned char) * 8, 1));
|
CHECK_MEM_ERROR(pbi->mt_vleft_col[i], vpx_calloc(sizeof(unsigned char) * 8, 1));
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
#else
|
#else
|
||||||
(void) pbi;
|
(void) pbi;
|
||||||
(void) width;
|
(void) width;
|
||||||
|
@ -104,6 +104,7 @@ update_error_state(vpx_codec_alg_priv_t *ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#undef ERROR
|
||||||
#define ERROR(str) do {\
|
#define ERROR(str) do {\
|
||||||
ctx->base.err_detail = str;\
|
ctx->base.err_detail = str;\
|
||||||
return VPX_CODEC_INVALID_PARAM;\
|
return VPX_CODEC_INVALID_PARAM;\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user