blob: a7c4d1a6a11175a65dbce29cb83e1bbe8e1f5249 [file] [log] [blame]
Cyril Concolato6c788832017-10-30 16:30:35 -07001/*
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
17extern "C" {
18#endif
19
20int file_is_obu(struct AvxInputContext *input_ctx);
21
22int obu_read_temporal_unit(FILE *infile, uint8_t **buffer, size_t *bytes_read,
Soo-Chul Hanf8589862018-01-24 03:13:14 +000023#if CONFIG_SCALABILITY
24 size_t *buffer_size, int last_layer_id);
25#else
Cyril Concolato6c788832017-10-30 16:30:35 -070026 size_t *buffer_size);
Soo-Chul Hanf8589862018-01-24 03:13:14 +000027#endif
Cyril Concolato6c788832017-10-30 16:30:35 -070028
29#ifdef __cplusplus
30} /* extern "C" */
31#endif
32
33#endif // OBUDEC_H_