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 |
(...skipping 12 matching lines...) Expand all Loading... |
23 extern "C" { | 23 extern "C" { |
24 #endif | 24 #endif |
25 | 25 |
26 #define MAX_LAG_BUFFERS 25 | 26 #define MAX_LAG_BUFFERS 25 |
27 | 27 |
28 struct lookahead_entry { | 28 struct lookahead_entry { |
29 YV12_BUFFER_CONFIG img; | 29 YV12_BUFFER_CONFIG img; |
30 int64_t ts_start; | 30 int64_t ts_start; |
31 int64_t ts_end; | 31 int64_t ts_end; |
32 unsigned int flags; | 32 unsigned int flags; |
33 | |
34 #if CONFIG_SPATIAL_SVC | |
35 vpx_svc_parameters_t svc_params[VPX_SS_MAX_LAYERS]; | |
36 #endif | |
37 }; | 33 }; |
38 | 34 |
39 // The max of past frames we want to keep in the queue. | 35 // The max of past frames we want to keep in the queue. |
40 #define MAX_PRE_FRAMES 1 | 36 #define MAX_PRE_FRAMES 1 |
41 | 37 |
42 struct lookahead_ctx { | 38 struct lookahead_ctx { |
43 unsigned int max_sz; /* Absolute size of the queue */ | 39 unsigned int max_sz; /* Absolute size of the queue */ |
44 unsigned int sz; /* Number of buffers currently in the queue */ | 40 unsigned int sz; /* Number of buffers currently in the queue */ |
45 unsigned int read_idx; /* Read index */ | 41 unsigned int read_idx; /* Read index */ |
46 unsigned int write_idx; /* Write index */ | 42 unsigned int write_idx; /* Write index */ |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 * | 111 * |
116 * \param[in] ctx Pointer to the lookahead context | 112 * \param[in] ctx Pointer to the lookahead context |
117 */ | 113 */ |
118 unsigned int vp9_lookahead_depth(struct lookahead_ctx *ctx); | 114 unsigned int vp9_lookahead_depth(struct lookahead_ctx *ctx); |
119 | 115 |
120 #ifdef __cplusplus | 116 #ifdef __cplusplus |
121 } // extern "C" | 117 } // extern "C" |
122 #endif | 118 #endif |
123 | 119 |
124 #endif // VP9_ENCODER_VP9_LOOKAHEAD_H_ | 120 #endif // VP9_ENCODER_VP9_LOOKAHEAD_H_ |
OLD | NEW |