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

Side by Side Diff: source/libvpx/vp9/common/vp9_alloccommon.c

Issue 181493009: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vp9/common/vp9_alloccommon.h ('k') | source/libvpx/vp9/common/vp9_blockd.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 if (!cm->last_frame_seg_map) 193 if (!cm->last_frame_seg_map)
194 goto fail; 194 goto fail;
195 195
196 return 0; 196 return 0;
197 197
198 fail: 198 fail:
199 vp9_free_frame_buffers(cm); 199 vp9_free_frame_buffers(cm);
200 return 1; 200 return 1;
201 } 201 }
202 202
203 void vp9_create_common(VP9_COMMON *cm) {
204 vp9_machine_specific_config(cm);
205 }
206
207 void vp9_remove_common(VP9_COMMON *cm) { 203 void vp9_remove_common(VP9_COMMON *cm) {
208 vp9_free_frame_buffers(cm); 204 vp9_free_frame_buffers(cm);
209 vp9_free_internal_frame_buffers(&cm->int_frame_buffers); 205 vp9_free_internal_frame_buffers(&cm->int_frame_buffers);
210 } 206 }
211 207
212 void vp9_initialize_common() { 208 void vp9_initialize_common() {
213 vp9_init_neighbors(); 209 vp9_init_neighbors();
214 } 210 }
215 211
216 void vp9_update_frame_size(VP9_COMMON *cm) { 212 void vp9_update_frame_size(VP9_COMMON *cm) {
217 const int aligned_width = ALIGN_POWER_OF_TWO(cm->width, MI_SIZE_LOG2); 213 const int aligned_width = ALIGN_POWER_OF_TWO(cm->width, MI_SIZE_LOG2);
218 const int aligned_height = ALIGN_POWER_OF_TWO(cm->height, MI_SIZE_LOG2); 214 const int aligned_height = ALIGN_POWER_OF_TWO(cm->height, MI_SIZE_LOG2);
219 215
220 set_mb_mi(cm, aligned_width, aligned_height); 216 set_mb_mi(cm, aligned_width, aligned_height);
221 setup_mi(cm); 217 setup_mi(cm);
222 218
223 // Initialize the previous frame segment map to 0. 219 // Initialize the previous frame segment map to 0.
224 if (cm->last_frame_seg_map) 220 if (cm->last_frame_seg_map)
225 vpx_memset(cm->last_frame_seg_map, 0, cm->mi_rows * cm->mi_cols); 221 vpx_memset(cm->last_frame_seg_map, 0, cm->mi_rows * cm->mi_cols);
226 } 222 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_alloccommon.h ('k') | source/libvpx/vp9/common/vp9_blockd.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698