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

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

Issue 12807010: libvpx: Fix pull from upstream (Closed) Base URL: https://src.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 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
« no previous file with comments | « source/libvpx/vp8/decoder/onyxd_int.h ('k') | source/libvpx/vp8/encoder/onyx_int.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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 int Speed = cpi->Speed; 634 int Speed = cpi->Speed;
635 int i; 635 int i;
636 VP8_COMMON *cm = &cpi->common; 636 VP8_COMMON *cm = &cpi->common;
637 int last_improved_quant = sf->improved_quant; 637 int last_improved_quant = sf->improved_quant;
638 int ref_frames; 638 int ref_frames;
639 639
640 /* Initialise default mode frequency sampling variables */ 640 /* Initialise default mode frequency sampling variables */
641 for (i = 0; i < MAX_MODES; i ++) 641 for (i = 0; i < MAX_MODES; i ++)
642 { 642 {
643 cpi->mode_check_freq[i] = 0; 643 cpi->mode_check_freq[i] = 0;
644 cpi->mode_chosen_counts[i] = 0;
645 } 644 }
646 645
647 cpi->mb.mbs_tested_so_far = 0; 646 cpi->mb.mbs_tested_so_far = 0;
648 647
649 /* best quality defaults */ 648 /* best quality defaults */
650 sf->RD = 1; 649 sf->RD = 1;
651 sf->search_method = NSTEP; 650 sf->search_method = NSTEP;
652 sf->improved_quant = 1; 651 sf->improved_quant = 1;
653 sf->improved_dct = 1; 652 sf->improved_dct = 1;
654 sf->auto_filter = 1; 653 sf->auto_filter = 1;
(...skipping 3938 matching lines...) Expand 10 before | Expand all | Expand 10 after
4593 4592
4594 { 4593 {
4595 FILE *fmodes = fopen("Modes.stt", "a"); 4594 FILE *fmodes = fopen("Modes.stt", "a");
4596 int i; 4595 int i;
4597 4596
4598 fprintf(fmodes, "%6d:%1d:%1d:%1d ", 4597 fprintf(fmodes, "%6d:%1d:%1d:%1d ",
4599 cpi->common.current_video_frame, 4598 cpi->common.current_video_frame,
4600 cm->frame_type, cm->refresh_golden_frame, 4599 cm->frame_type, cm->refresh_golden_frame,
4601 cm->refresh_alt_ref_frame); 4600 cm->refresh_alt_ref_frame);
4602 4601
4603 for (i = 0; i < MAX_MODES; i++)
4604 fprintf(fmodes, "%5d ", cpi->mode_chosen_counts[i]);
4605
4606 fprintf(fmodes, "\n"); 4602 fprintf(fmodes, "\n");
4607 4603
4608 fclose(fmodes); 4604 fclose(fmodes);
4609 } 4605 }
4610 } 4606 }
4611 4607
4612 #endif 4608 #endif
4613 4609
4614 if (cm->refresh_golden_frame == 1) 4610 if (cm->refresh_golden_frame == 1)
4615 cm->frame_flags = cm->frame_flags | FRAMEFLAGS_GOLDEN; 4611 cm->frame_flags = cm->frame_flags | FRAMEFLAGS_GOLDEN;
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
5514 } 5510 }
5515 5511
5516 return Total; 5512 return Total;
5517 } 5513 }
5518 5514
5519 5515
5520 int vp8_get_quantizer(VP8_COMP *cpi) 5516 int vp8_get_quantizer(VP8_COMP *cpi)
5521 { 5517 {
5522 return cpi->common.base_qindex; 5518 return cpi->common.base_qindex;
5523 } 5519 }
OLDNEW
« no previous file with comments | « source/libvpx/vp8/decoder/onyxd_int.h ('k') | source/libvpx/vp8/encoder/onyx_int.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698