mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-07 01:06:46 +08:00
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:
parent
3db4588bf9
commit
d45342f61e
@ -1,6 +1,6 @@
|
|||||||
Name: libyuv
|
Name: libyuv
|
||||||
URL: http://code.google.com/p/libyuv/
|
URL: http://code.google.com/p/libyuv/
|
||||||
Version: 695
|
Version: 696
|
||||||
License: BSD
|
License: BSD
|
||||||
License File: LICENSE
|
License File: LICENSE
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,6 @@
|
|||||||
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
||||||
#define INCLUDE_LIBYUV_VERSION_H_
|
#define INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|
||||||
#define LIBYUV_VERSION 695
|
#define LIBYUV_VERSION 696
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||||
|
|||||||
@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h> // For getenv()
|
|
||||||
|
|
||||||
#include "libyuv/cpu_id.h"
|
#include "libyuv/cpu_id.h"
|
||||||
#include "libyuv/planar_functions.h" // For CopyPlane
|
#include "libyuv/planar_functions.h" // For CopyPlane
|
||||||
@ -3313,13 +3312,6 @@ void ScalePlane(const uint8* src, int src_stride,
|
|||||||
uint8* dst, int dst_stride,
|
uint8* dst, int dst_stride,
|
||||||
int dst_width, int dst_height,
|
int dst_width, int dst_height,
|
||||||
FilterMode filtering) {
|
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.
|
// Use specialized scales to improve performance for common resolutions.
|
||||||
// For example, all the 1/2 scalings will use ScalePlaneDown2()
|
// For example, all the 1/2 scalings will use ScalePlaneDown2()
|
||||||
if (dst_width == src_width && dst_height == src_height) {
|
if (dst_width == src_width && dst_height == src_height) {
|
||||||
|
|||||||
@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h> // For getenv()
|
|
||||||
|
|
||||||
#include "libyuv/cpu_id.h"
|
#include "libyuv/cpu_id.h"
|
||||||
#include "libyuv/planar_functions.h" // For CopyARGB
|
#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;
|
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.
|
// Special case for integer step values.
|
||||||
if (((dx | dy) & 0xffff) == 0) {
|
if (((dx | dy) & 0xffff) == 0) {
|
||||||
// Optimized even scale down. ie 2, 4, 6, 8, 10x.
|
// Optimized even scale down. ie 2, 4, 6, 8, 10x.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user