2010-05-18 11:58:33 -04:00
|
|
|
/*
|
2010-09-09 08:16:39 -04:00
|
|
|
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
2010-05-18 11:58:33 -04:00
|
|
|
*
|
2010-06-18 12:39:21 -04:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
2010-06-04 16:19:40 -04:00
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
2010-06-18 12:39:21 -04:00
|
|
|
* in the file PATENTS. All contributing project authors may
|
2010-06-04 16:19:40 -04:00
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2010-05-18 11:58:33 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2012-11-29 16:36:10 -08:00
|
|
|
#ifndef VP9_COMMON_VP9_ALLOCCOMMON_H_
|
|
|
|
#define VP9_COMMON_VP9_ALLOCCOMMON_H_
|
2010-05-18 11:58:33 -04:00
|
|
|
|
2015-02-18 09:40:34 -08:00
|
|
|
#define INVALID_IDX -1 // Invalid buffer index.
|
|
|
|
|
2014-01-18 12:16:11 -08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2014-03-24 12:21:22 -07:00
|
|
|
struct VP9Common;
|
2015-03-16 16:17:51 -07:00
|
|
|
struct BufferPool;
|
2014-03-24 12:21:22 -07:00
|
|
|
|
|
|
|
void vp9_remove_common(struct VP9Common *cm);
|
2013-06-05 20:56:37 -07:00
|
|
|
|
2014-06-16 16:22:28 -07:00
|
|
|
int vp9_alloc_context_buffers(struct VP9Common *cm, int width, int height);
|
2014-07-10 15:35:51 -07:00
|
|
|
void vp9_init_context_buffers(struct VP9Common *cm);
|
2014-06-16 16:22:28 -07:00
|
|
|
void vp9_free_context_buffers(struct VP9Common *cm);
|
2012-10-29 21:24:12 -07:00
|
|
|
|
2015-03-16 16:17:51 -07:00
|
|
|
void vp9_free_ref_frame_buffers(struct BufferPool *pool);
|
|
|
|
void vp9_free_postproc_buffers(struct VP9Common *cm);
|
2014-07-10 15:35:51 -07:00
|
|
|
|
|
|
|
int vp9_alloc_state_buffers(struct VP9Common *cm, int width, int height);
|
|
|
|
void vp9_free_state_buffers(struct VP9Common *cm);
|
2013-04-30 11:14:27 -07:00
|
|
|
|
2014-07-10 15:35:51 -07:00
|
|
|
void vp9_set_mb_mi(struct VP9Common *cm, int width, int height);
|
2014-03-13 13:55:33 -07:00
|
|
|
|
2015-01-27 12:26:28 -08:00
|
|
|
void vp9_swap_current_and_last_seg_map(struct VP9Common *cm);
|
|
|
|
|
2014-01-18 12:16:11 -08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} // extern "C"
|
|
|
|
#endif
|
|
|
|
|
2012-12-18 15:31:19 -08:00
|
|
|
#endif // VP9_COMMON_VP9_ALLOCCOMMON_H_
|