Dmitry Kovalev | 5ab6358 | 2014-01-17 17:02:37 -0800 | [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 |
Dmitry Kovalev | 5ab6358 | 2014-01-17 17:02:37 -0800 | [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. |
Dmitry Kovalev | 5ab6358 | 2014-01-17 17:02:37 -0800 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #ifndef Y4MENC_H_ |
| 13 | #define Y4MENC_H_ |
| 14 | |
Dmitry Kovalev | 5ab6358 | 2014-01-17 17:02:37 -0800 | [diff] [blame] | 15 | #include "./tools_common.h" |
| 16 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 17 | #include "aom/aom_decoder.h" |
Dmitry Kovalev | 5ab6358 | 2014-01-17 17:02:37 -0800 | [diff] [blame] | 18 | |
James Zern | 25cfd8e | 2014-01-18 12:16:11 -0800 | [diff] [blame] | 19 | #ifdef __cplusplus |
| 20 | extern "C" { |
| 21 | #endif |
| 22 | |
Dmitry Kovalev | 5260b39 | 2014-01-28 11:12:58 -0800 | [diff] [blame] | 23 | #define Y4M_BUFFER_SIZE 128 |
Dmitry Kovalev | 5ab6358 | 2014-01-17 17:02:37 -0800 | [diff] [blame] | 24 | |
Dmitry Kovalev | 5260b39 | 2014-01-28 11:12:58 -0800 | [diff] [blame] | 25 | int y4m_write_file_header(char *buf, size_t len, int width, int height, |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 26 | const struct AvxRational *framerate, |
| 27 | aom_img_fmt_t fmt, unsigned int bit_depth); |
Dmitry Kovalev | 5260b39 | 2014-01-28 11:12:58 -0800 | [diff] [blame] | 28 | int y4m_write_frame_header(char *buf, size_t len); |
Dmitry Kovalev | 5ab6358 | 2014-01-17 17:02:37 -0800 | [diff] [blame] | 29 | |
James Zern | 25cfd8e | 2014-01-18 12:16:11 -0800 | [diff] [blame] | 30 | #ifdef __cplusplus |
| 31 | } // extern "C" |
| 32 | #endif |
| 33 | |
Dmitry Kovalev | 5ab6358 | 2014-01-17 17:02:37 -0800 | [diff] [blame] | 34 | #endif // Y4MENC_H_ |