Cyril Concolato | 6c78883 | 2017-10-30 16:30:35 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017, Alliance for Open Media. All rights reserved |
| 3 | * |
| 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. |
| 10 | */ |
| 11 | #ifndef OBUDEC_H_ |
| 12 | #define OBUDEC_H_ |
| 13 | |
| 14 | #include "./tools_common.h" |
| 15 | |
| 16 | #ifdef __cplusplus |
| 17 | extern "C" { |
| 18 | #endif |
| 19 | |
| 20 | int file_is_obu(struct AvxInputContext *input_ctx); |
| 21 | |
| 22 | int obu_read_temporal_unit(FILE *infile, uint8_t **buffer, size_t *bytes_read, |
Soo-Chul Han | f858986 | 2018-01-24 03:13:14 +0000 | [diff] [blame] | 23 | #if CONFIG_SCALABILITY |
| 24 | size_t *buffer_size, int last_layer_id); |
| 25 | #else |
Cyril Concolato | 6c78883 | 2017-10-30 16:30:35 -0700 | [diff] [blame] | 26 | size_t *buffer_size); |
Soo-Chul Han | f858986 | 2018-01-24 03:13:14 +0000 | [diff] [blame] | 27 | #endif |
Cyril Concolato | 6c78883 | 2017-10-30 16:30:35 -0700 | [diff] [blame] | 28 | |
| 29 | #ifdef __cplusplus |
| 30 | } /* extern "C" */ |
| 31 | #endif |
| 32 | |
| 33 | #endif // OBUDEC_H_ |