Index: source/libvpx/vp9/encoder/vp9_svc_layercontext.h |
=================================================================== |
--- source/libvpx/vp9/encoder/vp9_svc_layercontext.h (revision 281795) |
+++ source/libvpx/vp9/encoder/vp9_svc_layercontext.h (working copy) |
@@ -28,6 +28,7 @@ |
struct vpx_fixed_buf rc_twopass_stats_in; |
unsigned int current_video_frame_in_layer; |
int is_key_frame; |
+ vpx_svc_parameters_t svc_params_received; |
} LAYER_CONTEXT; |
typedef struct { |
@@ -74,6 +75,23 @@ |
// Check if current layer is key frame in spatial upper layer |
int vp9_is_upper_layer_key_frame(const struct VP9_COMP *const cpi); |
+// Copy the source image, flags and svc parameters into a new framebuffer |
+// with the expected stride/border |
+int vp9_svc_lookahead_push(const struct VP9_COMP *const cpi, |
+ struct lookahead_ctx *ctx, YV12_BUFFER_CONFIG *src, |
+ int64_t ts_start, int64_t ts_end, |
+ unsigned int flags); |
+ |
+// Get the next source buffer to encode |
+struct lookahead_entry *vp9_svc_lookahead_pop(struct VP9_COMP *const cpi, |
+ struct lookahead_ctx *ctx, |
+ int drain); |
+ |
+// Get a future source buffer to encode |
+struct lookahead_entry *vp9_svc_lookahead_peek(struct VP9_COMP *const cpi, |
+ struct lookahead_ctx *ctx, |
+ int index, int copy_params); |
+ |
#ifdef __cplusplus |
} // extern "C" |
#endif |