forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up encoding by using active map
Using active map can greatly reduce the amount of macro blocks need to be encoded by vp8. This brings average encoding time from 35ms per frame to about 8ms on the tested system. However this change depends on an updated version of libvpx. BUG=None TEST=chromoting still works & no visual problems Review URL: http://codereview.chromium.org/6518011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75586 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
1 parent
8339da4
commit 986a40a
Showing
3 changed files
with
80 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/python | ||
# | ||
# Copyright (c) 2010 The Chromium Authors. All rights reserved. | ||
# Copyright (c) 2011 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
|
@@ -15,6 +15,19 @@ | |
This script takes a set of files, where each file is a list of C-style | ||
signatures (one signature per line). The output is either a windows def file, | ||
or a header + implementation file of stubs suitable for use in a posix system. | ||
This script also handles varidiac functions, e.g. | ||
void printf(const char* s, ...); | ||
TODO(hclam): Fix the situation for varidiac functions. | ||
Stub for the above function will be generated and inside the stub function it | ||
is translated to: | ||
void printf(const char* s, ...) { | ||
printf_ptr(s, (void*)arg1); | ||
} | ||
Only one argument from the varidiac arguments is used and it will be used as | ||
type void*. | ||
""" | ||
|
||
__author__ = '[email protected] (Albert J. Wong)' | ||
|
@@ -96,7 +109,7 @@ def __str__(self): | |
%(return_type)s %(name)s(%(params)s) { | ||
va_list args___; | ||
va_start(args___, %(last_named_arg)s); | ||
%(return_type)s ret___ = %(name)s_ptr(%(arg_list)s, args___); | ||
%(return_type)s ret___ = %(name)s_ptr(%(arg_list)s, va_arg(args___, void*)); | ||
va_end(args___); | ||
return ret___; | ||
}""") | ||
|
@@ -116,7 +129,7 @@ def __str__(self): | |
void %(name)s(%(params)s) { | ||
va_list args___; | ||
va_start(args___, %(last_named_arg)s); | ||
%(name)s_ptr(%(arg_list)s, args___); | ||
%(name)s_ptr(%(arg_list)s, va_arg(args___, void*)); | ||
va_end(args___); | ||
}""") | ||
|
||
|