Commit 2842f253 authored by fbarchard@google.com's avatar fbarchard@google.com

safe for x86 and memset for arm

BUG=none
TEST=none
Review URL: https://webrtc-codereview.appspot.com/401005

git-svn-id: http://libyuv.googlecode.com/svn/trunk@183 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 8058db48
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 182
Version: 183
License: BSD
License File: LICENSE
......
......@@ -11,7 +11,7 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 182
#define LIBYUV_VERSION 183
#endif // INCLUDE_LIBYUV_VERSION_H_
......@@ -11,9 +11,13 @@
{
'target_name': 'libyuv',
'type': 'static_library',
'defines': [
#'HAVE_JPEG',
],
'include_dirs': [
'include',
'.',
#'third_party/libjpeg_turbo',
],
'direct_dependent_settings': {
'include_dirs': [
......@@ -42,32 +46,16 @@
'source/cpu_id.cc',
'source/format_conversion.cc',
'source/planar_functions.cc',
#'source/mjpeg_decoder.cc',
'source/rotate.cc',
'source/rotate_neon.cc',
'source/row_common.cc',
'source/row_posix.cc',
'source/row_neon.cc',
'source/row_win.cc',
'source/scale.cc',
'source/video_common.cc',
],
'conditions': [
['OS=="win"', {
'sources': [
'source/row_win.cc',
],
},{ # else
'sources': [
'source/row_posix.cc',
],
}],
['target_arch=="arm"',{
'conditions': [
['arm_neon==1', {
'sources' : [
'source/rotate_neon.cc',
'source/row_neon.cc',
],
}],
],
}],
]
},
], # targets
}
......
......@@ -16,6 +16,7 @@
# The tests are based on gtest
'testing/gtest.gyp:gtest',
'testing/gtest.gyp:gtest_main',
#'third_party/libjpeg_turbo/libjpeg.gyp:libjpeg',
],
'sources': [
# headers
......
......@@ -647,6 +647,13 @@ int Q420ToI420(const uint8* src_y, int src_stride_y,
// READSAFE_ALWAYS - enables read ahead on systems without memory exceptions
// or where buffers are padded by 64 bytes.
#if defined(HAS_RGB24TOARGBROW_SSSE3) || \
defined(HAS_RGB24TOARGBROW_SSSE3) || \
defined(HAS_RAWTOARGBROW_SSSE3) || \
defined(HAS_RGB565TOARGBROW_SSE2) || \
defined(HAS_ARGB1555TOARGBROW_SSE2) || \
defined(HAS_ARGB4444TOARGBROW_SSE2)
#define READSAFE_ODDHEIGHT
static bool TestReadSafe(const uint8* src_yuy2, int src_stride_yuy2,
......@@ -676,6 +683,7 @@ static bool TestReadSafe(const uint8* src_yuy2, int src_stride_yuy2,
return false;
#endif
}
#endif
// Convert YUY2 to I420.
int YUY2ToI420(const uint8* src_yuy2, int src_stride_yuy2,
......
......@@ -29,13 +29,7 @@ typedef signed int INT32;
#endif
extern "C" {
// TODO(fbarchard): Port libjpeg_turbo to arm/neon
#if defined(__arm__)
// On ARM, require a system-installed libjpeg if JPEG support is enabled.
#include <jpeglib.h>
#else
#include "third_party/libjpeg_turbo/src/jpeglib.h"
#endif
}
namespace libyuv {
......
......@@ -10,6 +10,8 @@
#include "libyuv/planar_functions.h"
#include <string.h> // for memset()
#include "libyuv/cpu_id.h"
#include "row.h"
......
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