OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebM project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 #ifndef IVFENC_H_ | 10 #ifndef IVFENC_H_ |
11 #define IVFENC_H_ | 11 #define IVFENC_H_ |
12 | 12 |
13 #include "./tools_common.h" | 13 #include "./tools_common.h" |
14 | 14 |
15 struct vpx_codec_enc_cfg; | 15 struct vpx_codec_enc_cfg; |
16 struct vpx_codec_cx_pkt; | 16 struct vpx_codec_cx_pkt; |
17 | 17 |
18 #ifdef __cplusplus | 18 #ifdef __cplusplus |
19 extern "C" { | 19 extern "C" { |
20 #endif | 20 #endif |
21 | 21 |
22 void ivf_write_file_header(FILE *outfile, | 22 void ivf_write_file_header(FILE *outfile, |
23 const struct vpx_codec_enc_cfg *cfg, | 23 const struct vpx_codec_enc_cfg *cfg, |
24 uint32_t fourcc, | 24 uint32_t fourcc, |
25 int frame_cnt); | 25 int frame_cnt); |
26 void ivf_write_frame_header(FILE *outfile, const struct vpx_codec_cx_pkt *pkt); | 26 |
27 void ivf_write_frame_size(FILE *outfile, size_t size); | 27 void ivf_write_frame_header(FILE *outfile, int64_t pts, size_t frame_size); |
| 28 |
| 29 void ivf_write_frame_size(FILE *outfile, size_t frame_size); |
28 | 30 |
29 #ifdef __cplusplus | 31 #ifdef __cplusplus |
30 } /* extern "C" */ | 32 } /* extern "C" */ |
31 #endif | 33 #endif |
32 | 34 |
33 #endif // IVFENC_H_ | 35 #endif // IVFENC_H_ |
OLD | NEW |