| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 int spatial_layer_to_encode; | 51 int spatial_layer_to_encode; |
| 52 | 52 |
| 53 // Workaround for multiple frame contexts | 53 // Workaround for multiple frame contexts |
| 54 enum { | 54 enum { |
| 55 ENCODED = 0, | 55 ENCODED = 0, |
| 56 ENCODING, | 56 ENCODING, |
| 57 NEED_TO_ENCODE | 57 NEED_TO_ENCODE |
| 58 }encode_empty_frame_state; | 58 }encode_empty_frame_state; |
| 59 struct lookahead_entry empty_frame; | 59 struct lookahead_entry empty_frame; |
| 60 int empty_frame_width; | 60 int encode_intra_empty_frame; |
| 61 int empty_frame_height; | |
| 62 | 61 |
| 63 // Store scaled source frames to be used for temporal filter to generate | 62 // Store scaled source frames to be used for temporal filter to generate |
| 64 // a alt ref frame. | 63 // a alt ref frame. |
| 65 YV12_BUFFER_CONFIG scaled_frames[MAX_LAG_BUFFERS]; | 64 YV12_BUFFER_CONFIG scaled_frames[MAX_LAG_BUFFERS]; |
| 66 | 65 |
| 67 // Layer context used for rate control in one pass temporal CBR mode or | 66 // Layer context used for rate control in one pass temporal CBR mode or |
| 68 // two pass spatial mode. Defined for temporal or spatial layers for now. | 67 // two pass spatial mode. Defined for temporal or spatial layers for now. |
| 69 // Does not support temporal combined with spatial RC. | 68 // Does not support temporal combined with spatial RC. |
| 70 LAYER_CONTEXT layer_context[MAX(VPX_TS_MAX_LAYERS, VPX_SS_MAX_LAYERS)]; | 69 LAYER_CONTEXT layer_context[MAX(VPX_TS_MAX_LAYERS, VPX_SS_MAX_LAYERS)]; |
| 71 } SVC; | 70 } SVC; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 int drain); | 108 int drain); |
| 110 | 109 |
| 111 // Start a frame and initialize svc parameters | 110 // Start a frame and initialize svc parameters |
| 112 int vp9_svc_start_frame(struct VP9_COMP *const cpi); | 111 int vp9_svc_start_frame(struct VP9_COMP *const cpi); |
| 113 | 112 |
| 114 #ifdef __cplusplus | 113 #ifdef __cplusplus |
| 115 } // extern "C" | 114 } // extern "C" |
| 116 #endif | 115 #endif |
| 117 | 116 |
| 118 #endif // VP9_ENCODER_VP9_SVC_LAYERCONTEXT_ | 117 #endif // VP9_ENCODER_VP9_SVC_LAYERCONTEXT_ |
| OLD | NEW |