Remove getenv for scaling filter as its not needed now and is showing up on profiles.

BUG=228
TESTED=unittest and try bots
Review URL: https://webrtc-codereview.appspot.com/1496004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@696 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
fbarchard@google.com 2013-05-17 09:12:29 +00:00
parent 3db4588bf9
commit d45342f61e
4 changed files with 2 additions and 18 deletions

View File

@ -1,6 +1,6 @@
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 695
Version: 696
License: BSD
License File: LICENSE

View File

@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 695
#define LIBYUV_VERSION 696
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT

View File

@ -12,7 +12,6 @@
#include <assert.h>
#include <string.h>
#include <stdlib.h> // For getenv()
#include "libyuv/cpu_id.h"
#include "libyuv/planar_functions.h" // For CopyPlane
@ -3313,13 +3312,6 @@ void ScalePlane(const uint8* src, int src_stride,
uint8* dst, int dst_stride,
int dst_width, int dst_height,
FilterMode filtering) {
#ifdef CPU_X86
// environment variable overrides for testing.
char* filter_override = getenv("LIBYUV_FILTER");
if (filter_override) {
filtering = (FilterMode)atoi(filter_override); // NOLINT
}
#endif
// Use specialized scales to improve performance for common resolutions.
// For example, all the 1/2 scalings will use ScalePlaneDown2()
if (dst_width == src_width && dst_height == src_height) {

View File

@ -12,7 +12,6 @@
#include <assert.h>
#include <string.h>
#include <stdlib.h> // For getenv()
#include "libyuv/cpu_id.h"
#include "libyuv/planar_functions.h" // For CopyARGB
@ -1109,13 +1108,6 @@ static void ScaleARGB(const uint8* src, int src_stride,
dst += clip_y * dst_stride;
}
#ifdef CPU_X86
// Environment variable overrides for testing.
char* filter_override = getenv("LIBYUV_FILTER");
if (filter_override) {
filtering = (FilterMode)atoi(filter_override); // NOLINT
}
#endif
// Special case for integer step values.
if (((dx | dy) & 0xffff) == 0) {
// Optimized even scale down. ie 2, 4, 6, 8, 10x.