OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 | 10 |
11 #ifndef VP9_ENCODER_VP9_LOOKAHEAD_H_ | 11 #ifndef VP9_ENCODER_VP9_LOOKAHEAD_H_ |
12 #define VP9_ENCODER_VP9_LOOKAHEAD_H_ | 12 #define VP9_ENCODER_VP9_LOOKAHEAD_H_ |
13 | 13 |
14 #include "vpx_scale/yv12config.h" | 14 #include "vpx_scale/yv12config.h" |
15 #include "vpx/vpx_integer.h" | 15 #include "vpx/vpx_integer.h" |
16 | 16 |
17 #ifdef __cplusplus | 17 #ifdef __cplusplus |
18 extern "C" { | 18 extern "C" { |
19 #endif | 19 #endif |
20 | 20 |
21 #define MAX_LAG_BUFFERS 25 | 21 #define MAX_LAG_BUFFERS 25 |
22 | 22 |
| 23 // The max of past frames we want to keep in the queue. |
| 24 #define MAX_PRE_FRAMES 1 |
| 25 |
23 struct lookahead_entry { | 26 struct lookahead_entry { |
24 YV12_BUFFER_CONFIG img; | 27 YV12_BUFFER_CONFIG img; |
25 int64_t ts_start; | 28 int64_t ts_start; |
26 int64_t ts_end; | 29 int64_t ts_end; |
27 unsigned int flags; | 30 unsigned int flags; |
28 }; | 31 }; |
29 | 32 |
30 | 33 |
31 struct lookahead_ctx; | 34 struct lookahead_ctx; |
32 | 35 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 * | 98 * |
96 * \param[in] ctx Pointer to the lookahead context | 99 * \param[in] ctx Pointer to the lookahead context |
97 */ | 100 */ |
98 unsigned int vp9_lookahead_depth(struct lookahead_ctx *ctx); | 101 unsigned int vp9_lookahead_depth(struct lookahead_ctx *ctx); |
99 | 102 |
100 #ifdef __cplusplus | 103 #ifdef __cplusplus |
101 } // extern "C" | 104 } // extern "C" |
102 #endif | 105 #endif |
103 | 106 |
104 #endif // VP9_ENCODER_VP9_LOOKAHEAD_H_ | 107 #endif // VP9_ENCODER_VP9_LOOKAHEAD_H_ |
OLD | NEW |