Remove vp9_create_common()

The function has evolved over time, now only calls vp9_rtcd(), so this
commit removes the function and changes to call vp9_rtcd() directly.

Change-Id: I8cfa6190daa4b28f6f3d1e11bb3a07f9c95322bf
This commit is contained in:
Yaowu Xu 2014-02-28 15:41:53 -08:00
parent 3678ed36b9
commit 2f4eb5f096
4 changed files with 2 additions and 7 deletions

View File

@ -200,10 +200,6 @@ int vp9_alloc_frame_buffers(VP9_COMMON *cm, int width, int height) {
return 1;
}
void vp9_create_common(VP9_COMMON *cm) {
vp9_rtcd();
}
void vp9_remove_common(VP9_COMMON *cm) {
vp9_free_frame_buffers(cm);
vp9_free_internal_frame_buffers(&cm->int_frame_buffers);

View File

@ -22,7 +22,6 @@ void vp9_initialize_common();
void vp9_update_mode_info_border(VP9_COMMON *cm, MODE_INFO *mi);
void vp9_create_common(VP9_COMMON *cm);
void vp9_remove_common(VP9_COMMON *cm);
int vp9_resize_frame_buffers(VP9_COMMON *cm, int width, int height);

View File

@ -138,7 +138,7 @@ VP9D_PTR vp9_create_decompressor(VP9D_CONFIG *oxcf) {
cm->error.setjmp = 1;
vp9_initialize_dec();
vp9_create_common(cm);
vp9_rtcd();
pbi->oxcf = *oxcf;
pbi->ready_for_new_data = 1;

View File

@ -1725,7 +1725,7 @@ VP9_PTR vp9_create_compressor(VP9_CONFIG *oxcf) {
CHECK_MEM_ERROR(cm, cpi->mb.ss, vpx_calloc(sizeof(search_site),
(MAX_MVSEARCH_STEPS * 8) + 1));
vp9_create_common(cm);
vp9_rtcd();
cpi->use_svc = 0;