Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: source/libvpx/vp9/encoder/vp9_svc_layercontext.h

Issue 375983002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 10 matching lines...) Expand all
21 21
22 typedef struct { 22 typedef struct {
23 RATE_CONTROL rc; 23 RATE_CONTROL rc;
24 int target_bandwidth; 24 int target_bandwidth;
25 double framerate; 25 double framerate;
26 int avg_frame_size; 26 int avg_frame_size;
27 TWO_PASS twopass; 27 TWO_PASS twopass;
28 struct vpx_fixed_buf rc_twopass_stats_in; 28 struct vpx_fixed_buf rc_twopass_stats_in;
29 unsigned int current_video_frame_in_layer; 29 unsigned int current_video_frame_in_layer;
30 int is_key_frame; 30 int is_key_frame;
31 vpx_svc_parameters_t svc_params_received;
31 } LAYER_CONTEXT; 32 } LAYER_CONTEXT;
32 33
33 typedef struct { 34 typedef struct {
34 int spatial_layer_id; 35 int spatial_layer_id;
35 int temporal_layer_id; 36 int temporal_layer_id;
36 int number_spatial_layers; 37 int number_spatial_layers;
37 int number_temporal_layers; 38 int number_temporal_layers;
38 // Layer context used for rate control in one pass temporal CBR mode or 39 // Layer context used for rate control in one pass temporal CBR mode or
39 // two pass spatial mode. Defined for temporal or spatial layers for now. 40 // two pass spatial mode. Defined for temporal or spatial layers for now.
40 // Does not support temporal combined with spatial RC. 41 // Does not support temporal combined with spatial RC.
(...skipping 26 matching lines...) Expand all
67 68
68 // Initialize second pass rc for spatial svc. 69 // Initialize second pass rc for spatial svc.
69 void vp9_init_second_pass_spatial_svc(struct VP9_COMP *cpi); 70 void vp9_init_second_pass_spatial_svc(struct VP9_COMP *cpi);
70 71
71 // Increment number of video frames in layer 72 // Increment number of video frames in layer
72 void vp9_inc_frame_in_layer(SVC *svc); 73 void vp9_inc_frame_in_layer(SVC *svc);
73 74
74 // Check if current layer is key frame in spatial upper layer 75 // Check if current layer is key frame in spatial upper layer
75 int vp9_is_upper_layer_key_frame(const struct VP9_COMP *const cpi); 76 int vp9_is_upper_layer_key_frame(const struct VP9_COMP *const cpi);
76 77
78 // Copy the source image, flags and svc parameters into a new framebuffer
79 // with the expected stride/border
80 int vp9_svc_lookahead_push(const struct VP9_COMP *const cpi,
81 struct lookahead_ctx *ctx, YV12_BUFFER_CONFIG *src,
82 int64_t ts_start, int64_t ts_end,
83 unsigned int flags);
84
85 // Get the next source buffer to encode
86 struct lookahead_entry *vp9_svc_lookahead_pop(struct VP9_COMP *const cpi,
87 struct lookahead_ctx *ctx,
88 int drain);
89
90 // Get a future source buffer to encode
91 struct lookahead_entry *vp9_svc_lookahead_peek(struct VP9_COMP *const cpi,
92 struct lookahead_ctx *ctx,
93 int index, int copy_params);
94
77 #ifdef __cplusplus 95 #ifdef __cplusplus
78 } // extern "C" 96 } // extern "C"
79 #endif 97 #endif
80 98
81 #endif // VP9_ENCODER_VP9_SVC_LAYERCONTEXT_ 99 #endif // VP9_ENCODER_VP9_SVC_LAYERCONTEXT_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_speed_features.c ('k') | source/libvpx/vp9/encoder/vp9_svc_layercontext.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698