Commit 62e63b25 authored by fbarchard@google.com's avatar fbarchard@google.com

Remove .global from asm blocks to reduce external visibility

BUG=none
TEST=functions still build/link on 32 bit linux/osx
Review URL: http://webrtc-codereview.appspot.com/330011

git-svn-id: http://libyuv.googlecode.com/svn/trunk@116 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 9d206a29
Name: libyuv Name: libyuv
URL: http://code.google.com/p/libyuv/ URL: http://code.google.com/p/libyuv/
Version: 115 Version: 116
License: BSD License: BSD
License File: LICENSE License File: LICENSE
......
...@@ -977,6 +977,9 @@ int RAWToI420(const uint8* src_frame, int src_stride_frame, ...@@ -977,6 +977,9 @@ int RAWToI420(const uint8* src_frame, int src_stride_frame,
// Convert camera sample to I420 with cropping, rotation and vertical flip. // Convert camera sample to I420 with cropping, rotation and vertical flip.
// src_width is used for source stride computation // src_width is used for source stride computation
// src_height is used to compute location of planes, and indicate inversion // src_height is used to compute location of planes, and indicate inversion
// TODO(fbarchard): sample_size should be used to ensure the low levels do
// not read outside the buffer provided. It is measured in bytes and is the
// size of the frame. With MJPEG it is the compressed size of the frame.
int ConvertToI420(const uint8* sample, size_t sample_size, int ConvertToI420(const uint8* sample, size_t sample_size,
uint8* y, int y_stride, uint8* y, int y_stride,
uint8* u, int u_stride, uint8* u, int u_stride,
......
...@@ -33,18 +33,17 @@ uvec8 kShuffleReverseUV = { ...@@ -33,18 +33,17 @@ uvec8 kShuffleReverseUV = {
#define DECLARE_FUNCTION(name) \ #define DECLARE_FUNCTION(name) \
".text \n" \ ".text \n" \
".globl _" #name " \n" \ ".globl _" #name " \n" \
".private_extern _" #name " \n" \
".align 4,0x90 \n" \
"_" #name ": \n" "_" #name ": \n"
#else #else
#define DECLARE_FUNCTION(name) \ #define DECLARE_FUNCTION(name) \
".text \n" \ ".text \n" \
".global " #name " \n" \ ".align 4,0x90 \n" \
#name ": \n" #name ": \n"
#endif #endif
#endif #endif
typedef void (*reverse_uv_func)(const uint8*, uint8*, uint8*, int); typedef void (*reverse_uv_func)(const uint8*, uint8*, uint8*, int);
typedef void (*rotate_uv_wx8_func)(const uint8*, int, typedef void (*rotate_uv_wx8_func)(const uint8*, int,
uint8*, int, uint8*, int,
......
...@@ -526,15 +526,16 @@ static void ScaleRowDown38_2_Int_NEON(const uint8* src_ptr, int src_stride, ...@@ -526,15 +526,16 @@ static void ScaleRowDown38_2_Int_NEON(const uint8* src_ptr, int src_stride,
#define DECLARE_FUNCTION(name) \ #define DECLARE_FUNCTION(name) \
".text \n" \ ".text \n" \
".globl _" #name " \n" \ ".globl _" #name " \n" \
".private_extern _" #name " \n" \
".align 4,0x90 \n" \
"_" #name ": \n" "_" #name ": \n"
#else #else
#define DECLARE_FUNCTION(name) \ #define DECLARE_FUNCTION(name) \
".text \n" \ ".text \n" \
".global " #name " \n" \ ".align 4,0x90 \n" \
#name ": \n" #name ": \n"
#endif #endif
// Offsets for source bytes 0 to 9 // Offsets for source bytes 0 to 9
extern "C" TALIGN16(const uint8, shuf0[16]) = extern "C" TALIGN16(const uint8, shuf0[16]) =
{ 0, 1, 3, 4, 5, 7, 8, 9, 128, 128, 128, 128, 128, 128, 128, 128 }; { 0, 1, 3, 4, 5, 7, 8, 9, 128, 128, 128, 128, 128, 128, 128, 128 };
......
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