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

Side by Side Diff: source/libvpx/vp8/encoder/ratectrl.c

Issue 11555023: libvpx: Add VP9 decoder. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 8 years 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) 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 cc->filter_level = cpi->common.filter_level; 235 cc->filter_level = cpi->common.filter_level;
236 cc->frames_till_gf_update_due = cpi->frames_till_gf_update_due; 236 cc->frames_till_gf_update_due = cpi->frames_till_gf_update_due;
237 cc->frames_since_golden = cpi->common.frames_since_golden; 237 cc->frames_since_golden = cpi->common.frames_since_golden;
238 238
239 vp8_copy(cc->mvc, cpi->common.fc.mvc); 239 vp8_copy(cc->mvc, cpi->common.fc.mvc);
240 vp8_copy(cc->mvcosts, cpi->rd_costs.mvcosts); 240 vp8_copy(cc->mvcosts, cpi->rd_costs.mvcosts);
241 241
242 vp8_copy(cc->ymode_prob, cpi->common.fc.ymode_prob); 242 vp8_copy(cc->ymode_prob, cpi->common.fc.ymode_prob);
243 vp8_copy(cc->uv_mode_prob, cpi->common.fc.uv_mode_prob); 243 vp8_copy(cc->uv_mode_prob, cpi->common.fc.uv_mode_prob);
244 244
245 vp8_copy(cc->ymode_count, cpi->mb.ymode_count); 245 vp8_copy(cc->ymode_count, cpi->ymode_count);
246 vp8_copy(cc->uv_mode_count, cpi->mb.uv_mode_count); 246 vp8_copy(cc->uv_mode_count, cpi->uv_mode_count);
247 247
248 248
249 /* Stats */ 249 /* Stats */
250 #ifdef MODE_STATS 250 #ifdef MODE_STATS
251 vp8_copy(cc->y_modes, y_modes); 251 vp8_copy(cc->y_modes, y_modes);
252 vp8_copy(cc->uv_modes, uv_modes); 252 vp8_copy(cc->uv_modes, uv_modes);
253 vp8_copy(cc->b_modes, b_modes); 253 vp8_copy(cc->b_modes, b_modes);
254 vp8_copy(cc->inter_y_modes, inter_y_modes); 254 vp8_copy(cc->inter_y_modes, inter_y_modes);
255 vp8_copy(cc->inter_uv_modes, inter_uv_modes); 255 vp8_copy(cc->inter_uv_modes, inter_uv_modes);
256 vp8_copy(cc->inter_b_modes, inter_b_modes); 256 vp8_copy(cc->inter_b_modes, inter_b_modes);
(...skipping 16 matching lines...) Expand all
273 cpi->frames_till_gf_update_due = cc->frames_till_gf_update_due; 273 cpi->frames_till_gf_update_due = cc->frames_till_gf_update_due;
274 cpi->common.frames_since_golden = cc->frames_since_golden; 274 cpi->common.frames_since_golden = cc->frames_since_golden;
275 275
276 vp8_copy(cpi->common.fc.mvc, cc->mvc); 276 vp8_copy(cpi->common.fc.mvc, cc->mvc);
277 277
278 vp8_copy(cpi->rd_costs.mvcosts, cc->mvcosts); 278 vp8_copy(cpi->rd_costs.mvcosts, cc->mvcosts);
279 279
280 vp8_copy(cpi->common.fc.ymode_prob, cc->ymode_prob); 280 vp8_copy(cpi->common.fc.ymode_prob, cc->ymode_prob);
281 vp8_copy(cpi->common.fc.uv_mode_prob, cc->uv_mode_prob); 281 vp8_copy(cpi->common.fc.uv_mode_prob, cc->uv_mode_prob);
282 282
283 vp8_copy(cpi->mb.ymode_count, cc->ymode_count); 283 vp8_copy(cpi->ymode_count, cc->ymode_count);
284 vp8_copy(cpi->mb.uv_mode_count, cc->uv_mode_count); 284 vp8_copy(cpi->uv_mode_count, cc->uv_mode_count);
285 285
286 /* Stats */ 286 /* Stats */
287 #ifdef MODE_STATS 287 #ifdef MODE_STATS
288 vp8_copy(y_modes, cc->y_modes); 288 vp8_copy(y_modes, cc->y_modes);
289 vp8_copy(uv_modes, cc->uv_modes); 289 vp8_copy(uv_modes, cc->uv_modes);
290 vp8_copy(b_modes, cc->b_modes); 290 vp8_copy(b_modes, cc->b_modes);
291 vp8_copy(inter_y_modes, cc->inter_y_modes); 291 vp8_copy(inter_y_modes, cc->inter_y_modes);
292 vp8_copy(inter_uv_modes, cc->inter_uv_modes); 292 vp8_copy(inter_uv_modes, cc->inter_uv_modes);
293 vp8_copy(inter_b_modes, cc->inter_b_modes); 293 vp8_copy(inter_b_modes, cc->inter_b_modes);
294 #endif 294 #endif
(...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after
1525 1525
1526 /* Check if we're dropping the frame: */ 1526 /* Check if we're dropping the frame: */
1527 if (cpi->drop_frame) 1527 if (cpi->drop_frame)
1528 { 1528 {
1529 cpi->drop_frame = 0; 1529 cpi->drop_frame = 0;
1530 return 0; 1530 return 0;
1531 } 1531 }
1532 } 1532 }
1533 return 1; 1533 return 1;
1534 } 1534 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698