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

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

Issue 1339513003: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 3 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
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
11 #include <math.h> 11 #include <math.h>
12 12
13 #include "vp9/encoder/vp9_encoder.h" 13 #include "vp9/encoder/vp9_encoder.h"
14 #include "vp9/encoder/vp9_svc_layercontext.h" 14 #include "vp9/encoder/vp9_svc_layercontext.h"
15 #include "vp9/encoder/vp9_extend.h" 15 #include "vp9/encoder/vp9_extend.h"
16 #include "vpx_dsp/vpx_dsp_common.h"
16 17
17 #define SMALL_FRAME_FB_IDX 7 18 #define SMALL_FRAME_FB_IDX 7
18 #define SMALL_FRAME_WIDTH 32 19 #define SMALL_FRAME_WIDTH 32
19 #define SMALL_FRAME_HEIGHT 16 20 #define SMALL_FRAME_HEIGHT 16
20 21
21 void vp9_init_layer_context(VP9_COMP *const cpi) { 22 void vp9_init_layer_context(VP9_COMP *const cpi) {
22 SVC *const svc = &cpi->svc; 23 SVC *const svc = &cpi->svc;
23 const VP9EncoderConfig *const oxcf = &cpi->oxcf; 24 const VP9EncoderConfig *const oxcf = &cpi->oxcf;
24 int sl, tl; 25 int sl, tl;
25 int alt_ref_idx = svc->number_spatial_layers; 26 int alt_ref_idx = svc->number_spatial_layers;
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 buf = vp9_lookahead_peek(ctx, 0); 635 buf = vp9_lookahead_peek(ctx, 0);
635 if (buf != NULL) { 636 if (buf != NULL) {
636 // Only remove the buffer when pop the highest layer. 637 // Only remove the buffer when pop the highest layer.
637 if (cpi->svc.spatial_layer_id == cpi->svc.number_spatial_layers - 1) { 638 if (cpi->svc.spatial_layer_id == cpi->svc.number_spatial_layers - 1) {
638 vp9_lookahead_pop(ctx, drain); 639 vp9_lookahead_pop(ctx, drain);
639 } 640 }
640 } 641 }
641 } 642 }
642 return buf; 643 return buf;
643 } 644 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_speed_features.c ('k') | source/libvpx/vp9/encoder/vp9_temporal_filter.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698