Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 1 | /* |
Yaowu Xu | 9c01aa1 | 2016-09-01 14:32:49 -0700 | [diff] [blame] | 2 | * Copyright (c) 2016, Alliance for Open Media. All rights reserved |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 3 | * |
Yaowu Xu | 9c01aa1 | 2016-09-01 14:32:49 -0700 | [diff] [blame] | 4 | * 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 Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 10 | */ |
| 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) |
| 24 | extern "C" { |
| 25 | #endif |
| 26 | |
| 27 | void *aom_memalign(size_t align, size_t size); |
| 28 | void *aom_malloc(size_t size); |
| 29 | void *aom_calloc(size_t num, size_t size); |
| 30 | void *aom_realloc(void *memblk, size_t size); |
| 31 | void aom_free(void *memblk); |
| 32 | |
| 33 | #if CONFIG_AOM_HIGHBITDEPTH |
| 34 | void *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_ |