blob: 652b4495e89eefba50bad1ace2a3ac12aa413233 [file] [log] [blame]
Tom Finegan00a35aa2013-11-14 12:37:42 -08001/*
Lester Lu6bc30d62021-12-16 19:13:21 +00002 * Copyright (c) 2021, Alliance for Open Media. All rights reserved
Tom Finegan00a35aa2013-11-14 12:37:42 -08003 *
Lester Lu6bc30d62021-12-16 19:13:21 +00004 * This source code is subject to the terms of the BSD 3-Clause Clear License
5 * and the Alliance for Open Media Patent License 1.0. If the BSD 3-Clause Clear
6 * License was not distributed with this source code in the LICENSE file, you
7 * can obtain it at aomedia.org/license/software-license/bsd-3-c-c/. If the
8 * Alliance for Open Media Patent License 1.0 was not distributed with this
9 * source code in the PATENTS file, you can obtain it at
10 * aomedia.org/license/patent-license/.
Tom Finegan00a35aa2013-11-14 12:37:42 -080011 */
James Zerne1cbb132018-08-22 14:10:36 -070012#ifndef AOM_COMMON_IVFDEC_H_
13#define AOM_COMMON_IVFDEC_H_
Tom Finegan00a35aa2013-11-14 12:37:42 -080014
Yaowu Xu047b7c92019-11-11 11:21:23 -080015#include "aom/aom_codec.h"
Tom Finegandd3e2a52018-05-23 14:33:09 -070016#include "common/tools_common.h"
Tom Finegan00a35aa2013-11-14 12:37:42 -080017
18#ifdef __cplusplus
19extern "C" {
20#endif
21
Yaowu Xuf883b422016-08-30 14:01:10 -070022int file_is_ivf(struct AvxInputContext *input);
clang-format6c4d83e2016-08-08 19:03:30 -070023int ivf_read_frame(FILE *infile, uint8_t **buffer, size_t *bytes_read,
Yunqing Wangdb7f0c52018-06-01 16:39:59 -070024 size_t *buffer_size, aom_codec_pts_t *pts);
Tom Finegan00a35aa2013-11-14 12:37:42 -080025
26#ifdef __cplusplus
clang-format6c4d83e2016-08-08 19:03:30 -070027} /* extern "C" */
Tom Finegan00a35aa2013-11-14 12:37:42 -080028#endif
29
James Zerne1cbb132018-08-22 14:10:36 -070030#endif // AOM_COMMON_IVFDEC_H_