blob: 69d590413ec72808661bfd54afcae05e0bf67bef [file] [log] [blame]
Dmitry Kovalev5ab63582014-01-17 17:02:37 -08001/*
2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef Y4MENC_H_
12#define Y4MENC_H_
13
Dmitry Kovalev5ab63582014-01-17 17:02:37 -080014#include "./tools_common.h"
15
16#include "vpx/vpx_decoder.h"
17
James Zern25cfd8e2014-01-18 12:16:11 -080018#ifdef __cplusplus
19extern "C" {
20#endif
21
Dmitry Kovalev5260b392014-01-28 11:12:58 -080022#define Y4M_BUFFER_SIZE 128
Dmitry Kovalev5ab63582014-01-17 17:02:37 -080023
Dmitry Kovalev5260b392014-01-28 11:12:58 -080024int y4m_write_file_header(char *buf, size_t len, int width, int height,
25 const struct VpxRational *framerate,
Deb Mukherjee5820c5d2014-06-12 16:53:13 -070026 vpx_img_fmt_t fmt, unsigned int bit_depth);
Dmitry Kovalev5260b392014-01-28 11:12:58 -080027int y4m_write_frame_header(char *buf, size_t len);
Dmitry Kovalev5ab63582014-01-17 17:02:37 -080028
James Zern25cfd8e2014-01-18 12:16:11 -080029#ifdef __cplusplus
30} // extern "C"
31#endif
32
Dmitry Kovalev5ab63582014-01-17 17:02:37 -080033#endif // Y4MENC_H_