aboutsummaryrefslogtreecommitdiff
path: root/source/convert_from.cc
diff options
context:
space:
mode:
authorfbarchard@google.com <fbarchard@google.com@16f28f9a-4ce2-e073-06de-1de4eb20be90>2013-01-09 05:30:08 +0000
committerfbarchard@google.com <fbarchard@google.com@16f28f9a-4ce2-e073-06de-1de4eb20be90>2013-01-09 05:30:08 +0000
commitceee491c24cc649ebb61c77326794d4e8674366e (patch)
treec32b75c456849fc3cdc709282e811b5954ae3b88 /source/convert_from.cc
parentaa64b6b14c12117e1002d0e16ee58b3bccb6aec9 (diff)
downloadlibyuv-ceee491c24cc649ebb61c77326794d4e8674366e.tar.gz
move READWORD and WRITEWORD into row_common along with row functions that use them
BUG=171 TEST=still builds Review URL: https://webrtc-codereview.appspot.com/1021008 git-svn-id: http://libyuv.googlecode.com/svn/trunk@528 16f28f9a-4ce2-e073-06de-1de4eb20be90
Diffstat (limited to 'source/convert_from.cc')
-rw-r--r--source/convert_from.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/source/convert_from.cc b/source/convert_from.cc
index fba0513c..33c9fed6 100644
--- a/source/convert_from.cc
+++ b/source/convert_from.cc
@@ -210,26 +210,6 @@ int I400Copy(const uint8* src_y, int src_stride_y,
return 0;
}
-#define EIGHTTOTEN(x) (x << 2 | x >> 6)
-static void UYVYToV210Row_C(const uint8* src_uyvy, uint8* dst_v210, int width) {
- for (int x = 0; x < width; x += 6) {
- WRITEWORD(dst_v210 + 0, (EIGHTTOTEN(src_uyvy[0])) |
- (EIGHTTOTEN(src_uyvy[1]) << 10) |
- (EIGHTTOTEN(src_uyvy[2]) << 20));
- WRITEWORD(dst_v210 + 4, (EIGHTTOTEN(src_uyvy[3])) |
- (EIGHTTOTEN(src_uyvy[4]) << 10) |
- (EIGHTTOTEN(src_uyvy[5]) << 20));
- WRITEWORD(dst_v210 + 8, (EIGHTTOTEN(src_uyvy[6])) |
- (EIGHTTOTEN(src_uyvy[7]) << 10) |
- (EIGHTTOTEN(src_uyvy[8]) << 20));
- WRITEWORD(dst_v210 + 12, (EIGHTTOTEN(src_uyvy[9])) |
- (EIGHTTOTEN(src_uyvy[10]) << 10) |
- (EIGHTTOTEN(src_uyvy[11]) << 20));
- src_uyvy += 12;
- dst_v210 += 16;
- }
-}
-
LIBYUV_API
int I422ToYUY2(const uint8* src_y, int src_stride_y,
const uint8* src_u, int src_stride_u,