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

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

Issue 1015483002: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 9 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
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void vp9_cyclic_refresh_update_segment(struct VP9_COMP *const cpi, 55 void vp9_cyclic_refresh_update_segment(struct VP9_COMP *const cpi,
56 MB_MODE_INFO *const mbmi, 56 MB_MODE_INFO *const mbmi,
57 int mi_row, int mi_col, BLOCK_SIZE bsize, 57 int mi_row, int mi_col, BLOCK_SIZE bsize,
58 int64_t rate, int64_t dist); 58 int64_t rate, int64_t dist);
59 59
60 // Update the segmentation map, and related quantities: cyclic refresh map, 60 // Update the segmentation map, and related quantities: cyclic refresh map,
61 // refresh sb_index, and target number of blocks to be refreshed. 61 // refresh sb_index, and target number of blocks to be refreshed.
62 void vp9_cyclic_refresh_update__map(struct VP9_COMP *const cpi); 62 void vp9_cyclic_refresh_update__map(struct VP9_COMP *const cpi);
63 63
64 // Update the actual number of blocks that were applied the segment delta q. 64 // Update the actual number of blocks that were applied the segment delta q.
65 void vp9_cyclic_refresh_update_actual_count(struct VP9_COMP *const cpi); 65 void vp9_cyclic_refresh_postencode(struct VP9_COMP *const cpi);
66
67 // Set golden frame update interval, for non-svc 1 pass CBR mode.
68 void vp9_cyclic_refresh_set_golden_update(struct VP9_COMP *const cpi);
69
70 // Check if we should not update golden reference, based on past refresh stats.
71 void vp9_cyclic_refresh_check_golden_update(struct VP9_COMP *const cpi);
66 72
67 // Set/update global/frame level refresh parameters. 73 // Set/update global/frame level refresh parameters.
68 void vp9_cyclic_refresh_update_parameters(struct VP9_COMP *const cpi); 74 void vp9_cyclic_refresh_update_parameters(struct VP9_COMP *const cpi);
69 75
70 // Setup cyclic background refresh: set delta q and segmentation map. 76 // Setup cyclic background refresh: set delta q and segmentation map.
71 void vp9_cyclic_refresh_setup(struct VP9_COMP *const cpi); 77 void vp9_cyclic_refresh_setup(struct VP9_COMP *const cpi);
72 78
73 int vp9_cyclic_refresh_get_rdmult(const CYCLIC_REFRESH *cr); 79 int vp9_cyclic_refresh_get_rdmult(const CYCLIC_REFRESH *cr);
74 80
81 static INLINE int cyclic_refresh_segment_id_boosted(int segment_id) {
82 return segment_id == CR_SEGMENT_ID_BOOST1 ||
83 segment_id == CR_SEGMENT_ID_BOOST2;
84 }
85
75 #ifdef __cplusplus 86 #ifdef __cplusplus
76 } // extern "C" 87 } // extern "C"
77 #endif 88 #endif
78 89
79 #endif // VP9_ENCODER_VP9_AQ_CYCLICREFRESH_H_ 90 #endif // VP9_ENCODER_VP9_AQ_CYCLICREFRESH_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/decoder/vp9_decodemv.c ('k') | source/libvpx/vp9/encoder/vp9_aq_cyclicrefresh.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698