Commit 2f4eb5f0 authored by Yaowu Xu's avatar Yaowu Xu
Browse files

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
parent 3678ed36
......@@ -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);
......
......@@ -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);
......
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment