vp9_encoder: make vp9_alloc_compressor_data private
Change-Id: I38b4de692f4f7e880766316783981cbd1134bed9
This commit is contained in:
@@ -686,7 +686,7 @@ static int alloc_context_buffers_ext(VP9_COMP *cpi) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void vp9_alloc_compressor_data(VP9_COMP *cpi) {
|
static void alloc_compressor_data(VP9_COMP *cpi) {
|
||||||
VP9_COMMON *cm = &cpi->common;
|
VP9_COMMON *cm = &cpi->common;
|
||||||
|
|
||||||
vp9_alloc_context_buffers(cm, cm->width, cm->height);
|
vp9_alloc_context_buffers(cm, cm->width, cm->height);
|
||||||
@@ -775,7 +775,7 @@ static void init_config(struct VP9_COMP *cpi, VP9EncoderConfig *oxcf) {
|
|||||||
|
|
||||||
cm->width = oxcf->width;
|
cm->width = oxcf->width;
|
||||||
cm->height = oxcf->height;
|
cm->height = oxcf->height;
|
||||||
vp9_alloc_compressor_data(cpi);
|
alloc_compressor_data(cpi);
|
||||||
|
|
||||||
cpi->svc.temporal_layering_mode = oxcf->temporal_layering_mode;
|
cpi->svc.temporal_layering_mode = oxcf->temporal_layering_mode;
|
||||||
|
|
||||||
@@ -1510,7 +1510,7 @@ void vp9_change_config(struct VP9_COMP *cpi, const VP9EncoderConfig *oxcf) {
|
|||||||
if (cpi->initial_width) {
|
if (cpi->initial_width) {
|
||||||
if (cm->width > cpi->initial_width || cm->height > cpi->initial_height) {
|
if (cm->width > cpi->initial_width || cm->height > cpi->initial_height) {
|
||||||
vp9_free_context_buffers(cm);
|
vp9_free_context_buffers(cm);
|
||||||
vp9_alloc_compressor_data(cpi);
|
alloc_compressor_data(cpi);
|
||||||
realloc_segmentation_maps(cpi);
|
realloc_segmentation_maps(cpi);
|
||||||
cpi->initial_width = cpi->initial_height = 0;
|
cpi->initial_width = cpi->initial_height = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -605,8 +605,6 @@ int64_t vp9_highbd_get_y_sse(const YV12_BUFFER_CONFIG *a,
|
|||||||
const YV12_BUFFER_CONFIG *b);
|
const YV12_BUFFER_CONFIG *b);
|
||||||
#endif // CONFIG_VP9_HIGHBITDEPTH
|
#endif // CONFIG_VP9_HIGHBITDEPTH
|
||||||
|
|
||||||
void vp9_alloc_compressor_data(VP9_COMP *cpi);
|
|
||||||
|
|
||||||
void vp9_scale_references(VP9_COMP *cpi);
|
void vp9_scale_references(VP9_COMP *cpi);
|
||||||
|
|
||||||
void vp9_update_reference_frames(VP9_COMP *cpi);
|
void vp9_update_reference_frames(VP9_COMP *cpi);
|
||||||
|
|||||||
Reference in New Issue
Block a user