Renaming and making vp9_update_mode_info_border() static.
Change-Id: Ibb72a29cae9ca9443aae56fc4c5458d190eae279
This commit is contained in:
parent
b3afae3a10
commit
e141f10bfc
@ -17,16 +17,15 @@
|
|||||||
#include "vp9/common/vp9_onyxc_int.h"
|
#include "vp9/common/vp9_onyxc_int.h"
|
||||||
#include "vp9/common/vp9_systemdependent.h"
|
#include "vp9/common/vp9_systemdependent.h"
|
||||||
|
|
||||||
void vp9_update_mode_info_border(VP9_COMMON *cm, MODE_INFO *mi) {
|
static void clear_mi_border(const VP9_COMMON *cm, MODE_INFO *mi) {
|
||||||
const int stride = cm->mode_info_stride;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
// Clear down top border row
|
// Top border row
|
||||||
vpx_memset(mi, 0, sizeof(MODE_INFO) * stride);
|
vpx_memset(mi, 0, sizeof(*mi) * cm->mode_info_stride);
|
||||||
|
|
||||||
// Clear left border column
|
// Left border column
|
||||||
for (i = 1; i < cm->mi_rows + 1; i++)
|
for (i = 1; i < cm->mi_rows + 1; ++i)
|
||||||
vpx_memset(&mi[i * stride], 0, sizeof(MODE_INFO));
|
vpx_memset(&mi[i * cm->mode_info_stride], 0, sizeof(*mi));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void set_mb_mi(VP9_COMMON *cm, int aligned_width, int aligned_height) {
|
static void set_mb_mi(VP9_COMMON *cm, int aligned_width, int aligned_height) {
|
||||||
@ -52,7 +51,7 @@ static void setup_mi(VP9_COMMON *cm) {
|
|||||||
cm->mode_info_stride * (cm->mi_rows + 1) *
|
cm->mode_info_stride * (cm->mi_rows + 1) *
|
||||||
sizeof(*cm->mi_grid_base));
|
sizeof(*cm->mi_grid_base));
|
||||||
|
|
||||||
vp9_update_mode_info_border(cm, cm->prev_mip);
|
clear_mi_border(cm, cm->prev_mip);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int alloc_mi(VP9_COMMON *cm, int mi_size) {
|
static int alloc_mi(VP9_COMMON *cm, int mi_size) {
|
||||||
|
@ -20,8 +20,6 @@ extern "C" {
|
|||||||
|
|
||||||
void vp9_initialize_common();
|
void vp9_initialize_common();
|
||||||
|
|
||||||
void vp9_update_mode_info_border(VP9_COMMON *cm, MODE_INFO *mi);
|
|
||||||
|
|
||||||
void vp9_remove_common(VP9_COMMON *cm);
|
void vp9_remove_common(VP9_COMMON *cm);
|
||||||
|
|
||||||
int vp9_resize_frame_buffers(VP9_COMMON *cm, int width, int height);
|
int vp9_resize_frame_buffers(VP9_COMMON *cm, int width, int height);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user