Commit d45342f6 authored by fbarchard@google.com's avatar fbarchard@google.com

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
parent 3db4588b
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 695
Version: 696
License: BSD
License File: LICENSE
......
......@@ -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
......@@ -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) {
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment