mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-02-12 13:19:52 +08:00
use named type for pointer
BUG=403 TESTED=try bot Review URL: https://webrtc-codereview.appspot.com/38179004 git-svn-id: http://libyuv.googlecode.com/svn/trunk@1287 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
parent
6a192487fe
commit
cfd6f897c4
@ -2131,17 +2131,17 @@ void I422ToUYVYRow_C(const uint8* src_y,
|
|||||||
void I422ToRGB565Row_SSSE3(const uint8* src_y,
|
void I422ToRGB565Row_SSSE3(const uint8* src_y,
|
||||||
const uint8* src_u,
|
const uint8* src_u,
|
||||||
const uint8* src_v,
|
const uint8* src_v,
|
||||||
uint8* rgb_buf,
|
uint8* dst_rgb565,
|
||||||
int width) {
|
int width) {
|
||||||
SIMD_ALIGNED(uint8 row[MAXTWIDTH * 4]);
|
SIMD_ALIGNED(uint8 row[MAXTWIDTH * 4]);
|
||||||
while (width > 0) {
|
while (width > 0) {
|
||||||
int twidth = width > MAXTWIDTH ? MAXTWIDTH : width;
|
int twidth = width > MAXTWIDTH ? MAXTWIDTH : width;
|
||||||
I422ToARGBRow_SSSE3(src_y, src_u, src_v, row, twidth);
|
I422ToARGBRow_SSSE3(src_y, src_u, src_v, row, twidth);
|
||||||
ARGBToRGB565Row_SSE2(row, rgb_buf, twidth);
|
ARGBToRGB565Row_SSE2(row, dst_rgb565, twidth);
|
||||||
src_y += twidth;
|
src_y += twidth;
|
||||||
src_u += twidth / 2;
|
src_u += twidth / 2;
|
||||||
src_v += twidth / 2;
|
src_v += twidth / 2;
|
||||||
dst_argb += twidth * 2;
|
dst_rgb565 += twidth * 2;
|
||||||
width -= twidth;
|
width -= twidth;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2151,18 +2151,18 @@ void I422ToRGB565Row_SSSE3(const uint8* src_y,
|
|||||||
void I422ToARGB1555Row_SSSE3(const uint8* src_y,
|
void I422ToARGB1555Row_SSSE3(const uint8* src_y,
|
||||||
const uint8* src_u,
|
const uint8* src_u,
|
||||||
const uint8* src_v,
|
const uint8* src_v,
|
||||||
uint8* rgb_buf,
|
uint8* dst_argb1555,
|
||||||
int width) {
|
int width) {
|
||||||
// Row buffer for intermediate ARGB pixels.
|
// Row buffer for intermediate ARGB pixels.
|
||||||
SIMD_ALIGNED(uint8 row[MAXTWIDTH * 4]);
|
SIMD_ALIGNED(uint8 row[MAXTWIDTH * 4]);
|
||||||
while (width > 0) {
|
while (width > 0) {
|
||||||
int twidth = width > MAXTWIDTH ? MAXTWIDTH : width;
|
int twidth = width > MAXTWIDTH ? MAXTWIDTH : width;
|
||||||
I422ToARGBRow_SSSE3(src_y, src_u, src_v, row, twidth);
|
I422ToARGBRow_SSSE3(src_y, src_u, src_v, row, twidth);
|
||||||
ARGBToARGB1555Row_SSE2(row, rgb_buf, twidth);
|
ARGBToARGB1555Row_SSE2(row, dst_argb1555, twidth);
|
||||||
src_y += twidth;
|
src_y += twidth;
|
||||||
src_u += twidth / 2;
|
src_u += twidth / 2;
|
||||||
src_v += twidth / 2;
|
src_v += twidth / 2;
|
||||||
rgb_buf += twidth * 2;
|
dst_argb1555 += twidth * 2;
|
||||||
width -= twidth;
|
width -= twidth;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2170,18 +2170,18 @@ void I422ToARGB1555Row_SSSE3(const uint8* src_y,
|
|||||||
void I422ToARGB4444Row_SSSE3(const uint8* src_y,
|
void I422ToARGB4444Row_SSSE3(const uint8* src_y,
|
||||||
const uint8* src_u,
|
const uint8* src_u,
|
||||||
const uint8* src_v,
|
const uint8* src_v,
|
||||||
uint8* rgb_buf,
|
uint8* dst_argb4444,
|
||||||
int width) {
|
int width) {
|
||||||
// Row buffer for intermediate ARGB pixels.
|
// Row buffer for intermediate ARGB pixels.
|
||||||
SIMD_ALIGNED(uint8 row[MAXTWIDTH * 4]);
|
SIMD_ALIGNED(uint8 row[MAXTWIDTH * 4]);
|
||||||
while (width > 0) {
|
while (width > 0) {
|
||||||
int twidth = width > MAXTWIDTH ? MAXTWIDTH : width;
|
int twidth = width > MAXTWIDTH ? MAXTWIDTH : width;
|
||||||
I422ToARGBRow_SSSE3(src_y, src_u, src_v, row, twidth);
|
I422ToARGBRow_SSSE3(src_y, src_u, src_v, row, twidth);
|
||||||
ARGBToARGB4444Row_SSE2(row, rgb_buf, twidth);
|
ARGBToARGB4444Row_SSE2(row, dst_argb4444, twidth);
|
||||||
src_y += twidth;
|
src_y += twidth;
|
||||||
src_u += twidth / 2;
|
src_u += twidth / 2;
|
||||||
src_v += twidth / 2;
|
src_v += twidth / 2;
|
||||||
rgb_buf += twidth * 2;
|
dst_argb4444 += twidth * 2;
|
||||||
width -= twidth;
|
width -= twidth;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user