blob: df0bff1541c6c1bc6b0a6bafae39e23ca790f3ed [file] [log] [blame]
Yaowu Xuf883b422016-08-30 14:01:10 -07001/*
Yaowu Xu9c01aa12016-09-01 14:32:49 -07002 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
Yaowu Xuf883b422016-08-30 14:01:10 -07003 *
Yaowu Xu9c01aa12016-09-01 14:32:49 -07004 * This source code is subject to the terms of the BSD 2 Clause License and
5 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6 * was not distributed with this source code in the LICENSE file, you can
7 * obtain it at www.aomedia.org/license/software. If the Alliance for Open
8 * Media Patent License 1.0 was not distributed with this source code in the
9 * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
Yaowu Xuf883b422016-08-30 14:01:10 -070010 */
11
12#ifndef AOM_MEM_AOM_MEM_H_
13#define AOM_MEM_AOM_MEM_H_
14
15#include "aom_config.h"
16#if defined(__uClinux__)
17#include <lddk.h>
18#endif
19
20#include <stdlib.h>
21#include <stddef.h>
22
23#if defined(__cplusplus)
24extern "C" {
25#endif
26
27void *aom_memalign(size_t align, size_t size);
28void *aom_malloc(size_t size);
29void *aom_calloc(size_t num, size_t size);
30void *aom_realloc(void *memblk, size_t size);
31void aom_free(void *memblk);
32
33#if CONFIG_AOM_HIGHBITDEPTH
34void *aom_memset16(void *dest, int val, size_t length);
35#endif
36
37#include <string.h>
38
39#ifdef AOM_MEM_PLTFRM
40#include AOM_MEM_PLTFRM
41#endif
42
43#if defined(__cplusplus)
44}
45#endif
46
47#endif // AOM_MEM_AOM_MEM_H_