blob: 36a6fb84e6083dc2856b5796f71020b920e750fe [file] [log] [blame]
Tom Finegan00a35aa2013-11-14 12:37:42 -08001/*
Yaowu Xu9c01aa12016-09-01 14:32:49 -07002 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
Tom Finegan00a35aa2013-11-14 12:37:42 -08003 *
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.
Tom Finegan00a35aa2013-11-14 12:37:42 -080010 */
11#ifndef IVFDEC_H_
12#define IVFDEC_H_
13
14#include "./tools_common.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
Yaowu Xuf883b422016-08-30 14:01:10 -070020int file_is_ivf(struct AvxInputContext *input);
Tom Finegan00a35aa2013-11-14 12:37:42 -080021
clang-format6c4d83e2016-08-08 19:03:30 -070022int ivf_read_frame(FILE *infile, uint8_t **buffer, size_t *bytes_read,
23 size_t *buffer_size);
Tom Finegan00a35aa2013-11-14 12:37:42 -080024
25#ifdef __cplusplus
clang-format6c4d83e2016-08-08 19:03:30 -070026} /* extern "C" */
Tom Finegan00a35aa2013-11-14 12:37:42 -080027#endif
28
James Zern0f512782013-12-15 18:40:23 -080029#endif // IVFDEC_H_