aboutsummaryrefslogtreecommitdiff
path: root/source/row_neon.cc
diff options
context:
space:
mode:
authorFrank Barchard <fbarchard@google.com>2015-10-07 19:46:56 -0700
committerFrank Barchard <fbarchard@google.com>2015-10-07 19:46:56 -0700
commit76a599ec3bac95f84a403881e1b8bf83d9532eec (patch)
tree2841a52b9eca748e2a3baf926d5a570964495dbb /source/row_neon.cc
parentfae8e66d4342d14c97bc28963035044a5ccc3178 (diff)
downloadlibyuv-76a599ec3bac95f84a403881e1b8bf83d9532eec.tar.gz
fix jpeg and bt.709 yuvconstants for neon64.
yuv constants for bt.601 were previously ported to neon64, as well as the code to respect other color spaces. But the jpeg and bt.709 colour conversion constants were still in armv7 form. This changes the constants for aarch64 builds to be compatible with the code. yuv constants are now passed as const * Remove Yvu constants which were used for older version on nv21 but not new code. TBR=harryjin@google.com BUG=none Review URL: https://codereview.chromium.org/1398623002 .
Diffstat (limited to 'source/row_neon.cc')
-rw-r--r--source/row_neon.cc40
1 files changed, 20 insertions, 20 deletions
diff --git a/source/row_neon.cc b/source/row_neon.cc
index 3378faf5..c352bd35 100644
--- a/source/row_neon.cc
+++ b/source/row_neon.cc
@@ -138,7 +138,7 @@ void I444ToARGBRow_NEON(const uint8* src_y,
const uint8* src_u,
const uint8* src_v,
uint8* dst_argb,
- struct YuvConstants* yuvconstants,
+ const struct YuvConstants* yuvconstants,
int width) {
asm volatile (
YUVTORGB_SETUP
@@ -168,7 +168,7 @@ void I422ToARGBRow_NEON(const uint8* src_y,
const uint8* src_u,
const uint8* src_v,
uint8* dst_argb,
- struct YuvConstants* yuvconstants,
+ const struct YuvConstants* yuvconstants,
int width) {
asm volatile (
YUVTORGB_SETUP
@@ -198,7 +198,7 @@ void I411ToARGBRow_NEON(const uint8* src_y,
const uint8* src_u,
const uint8* src_v,
uint8* dst_argb,
- struct YuvConstants* yuvconstants,
+ const struct YuvConstants* yuvconstants,
int width) {
asm volatile (
YUVTORGB_SETUP
@@ -228,7 +228,7 @@ void I422ToBGRARow_NEON(const uint8* src_y,
const uint8* src_u,
const uint8* src_v,
uint8* dst_bgra,
- struct YuvConstants* yuvconstants,
+ const struct YuvConstants* yuvconstants,
int width) {
asm volatile (
YUVTORGB_SETUP
@@ -259,7 +259,7 @@ void I422ToABGRRow_NEON(const uint8* src_y,
const uint8* src_u,
const uint8* src_v,
uint8* dst_abgr,
- struct YuvConstants* yuvconstants,
+ const struct YuvConstants* yuvconstants,
int width) {
asm volatile (
YUVTORGB_SETUP
@@ -290,7 +290,7 @@ void I422ToRGBARow_NEON(const uint8* src_y,
const uint8* src_u,
const uint8* src_v,
uint8* dst_rgba,
- struct YuvConstants* yuvconstants,
+ const struct YuvConstants* yuvconstants,
int width) {
asm volatile (
YUVTORGB_SETUP
@@ -320,7 +320,7 @@ void I422ToRGB24Row_NEON(const uint8* src_y,
const uint8* src_u,
const uint8* src_v,
uint8* dst_rgb24,
- struct YuvConstants* yuvconstants,
+ const struct YuvConstants* yuvconstants,
int width) {
asm volatile (
YUVTORGB_SETUP
@@ -349,7 +349,7 @@ void I422ToRAWRow_NEON(const uint8* src_y,
const uint8* src_u,
const uint8* src_v,
uint8* dst_raw,
- struct YuvConstants* yuvconstants,
+ const struct YuvConstants* yuvconstants,
int width) {
asm volatile (
YUVTORGB_SETUP
@@ -391,7 +391,7 @@ void I422ToRGB565Row_NEON(const uint8* src_y,
const uint8* src_u,
const uint8* src_v,
uint8* dst_rgb565,
- struct YuvConstants* yuvconstants,
+ const struct YuvConstants* yuvconstants,
int width) {
asm volatile (
YUVTORGB_SETUP
@@ -436,7 +436,7 @@ void I422ToARGB1555Row_NEON(const uint8* src_y,
const uint8* src_u,
const uint8* src_v,
uint8* dst_argb1555,
- struct YuvConstants* yuvconstants,
+ const struct YuvConstants* yuvconstants,
int width) {
asm volatile (
YUVTORGB_SETUP
@@ -476,7 +476,7 @@ void I422ToARGB4444Row_NEON(const uint8* src_y,
const uint8* src_u,
const uint8* src_v,
uint8* dst_argb4444,
- struct YuvConstants* yuvconstants,
+ const struct YuvConstants* yuvconstants,
int width) {
asm volatile (
YUVTORGB_SETUP
@@ -520,10 +520,10 @@ void I400ToARGBRow_NEON(const uint8* src_y,
: "+r"(src_y), // %0
"+r"(dst_argb), // %1
"+r"(width) // %2
- : [kUVToRB]"r"(&kYuvConstants.kUVToRB),
- [kUVToG]"r"(&kYuvConstants.kUVToG),
- [kUVBiasBGR]"r"(&kYuvConstants.kUVBiasBGR),
- [kYToRgb]"r"(&kYuvConstants.kYToRgb)
+ : [kUVToRB]"r"(&kYuvIConstants.kUVToRB),
+ [kUVToG]"r"(&kYuvIConstants.kUVToG),
+ [kUVBiasBGR]"r"(&kYuvIConstants.kUVBiasBGR),
+ [kYToRgb]"r"(&kYuvIConstants.kYToRgb)
: "cc", "memory", "q0", "q1", "q2", "q3", "q4",
"q8", "q9", "q10", "q11", "q12", "q13", "q14", "q15"
);
@@ -554,7 +554,7 @@ void J400ToARGBRow_NEON(const uint8* src_y,
void NV12ToARGBRow_NEON(const uint8* src_y,
const uint8* src_uv,
uint8* dst_argb,
- struct YuvConstants* yuvconstants,
+ const struct YuvConstants* yuvconstants,
int width) {
asm volatile (
YUVTORGB_SETUP
@@ -582,7 +582,7 @@ void NV12ToARGBRow_NEON(const uint8* src_y,
void NV21ToARGBRow_NEON(const uint8* src_y,
const uint8* src_vu,
uint8* dst_argb,
- struct YuvConstants* yuvconstants,
+ const struct YuvConstants* yuvconstants,
int width) {
asm volatile (
YUVTORGB_SETUP
@@ -610,7 +610,7 @@ void NV21ToARGBRow_NEON(const uint8* src_y,
void NV12ToRGB565Row_NEON(const uint8* src_y,
const uint8* src_uv,
uint8* dst_rgb565,
- struct YuvConstants* yuvconstants,
+ const struct YuvConstants* yuvconstants,
int width) {
asm volatile (
YUVTORGB_SETUP
@@ -637,7 +637,7 @@ void NV12ToRGB565Row_NEON(const uint8* src_y,
void YUY2ToARGBRow_NEON(const uint8* src_yuy2,
uint8* dst_argb,
- struct YuvConstants* yuvconstants,
+ const struct YuvConstants* yuvconstants,
int width) {
asm volatile (
YUVTORGB_SETUP
@@ -663,7 +663,7 @@ void YUY2ToARGBRow_NEON(const uint8* src_yuy2,
void UYVYToARGBRow_NEON(const uint8* src_uyvy,
uint8* dst_argb,
- struct YuvConstants* yuvconstants,
+ const struct YuvConstants* yuvconstants,
int width) {
asm volatile (
YUVTORGB_SETUP