Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: media/tools/omx_test/color_space_util.cc

Issue 7066071: Removing defunct OpenMAX code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: removed tab Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/tools/omx_test/color_space_util.h ('k') | media/tools/omx_test/file_reader_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/tools/omx_test/color_space_util.cc
diff --git a/media/tools/omx_test/color_space_util.cc b/media/tools/omx_test/color_space_util.cc
deleted file mode 100644
index 87a7bbaecc3e242fdabe0ee2c1ad291e38646af4..0000000000000000000000000000000000000000
--- a/media/tools/omx_test/color_space_util.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this
-// source code is governed by a BSD-style license that can be found in the
-// LICENSE file.
-
-#include "media/tools/omx_test/color_space_util.h"
-
-namespace media {
-
-void NV21toIYUV(const uint8* nv21, uint8* iyuv, int width, int height) {
- memcpy(iyuv, nv21, width * height);
- iyuv += width * height;
- nv21 += width * height;
- uint8* u = iyuv;
- uint8* v = iyuv + width * height / 4;
-
- for (int i = 0; i < width * height / 4; ++i) {
- *v++ = *nv21++;
- *u++ = *nv21++;
- }
-}
-
-void NV21toYV12(const uint8* nv21, uint8* yv12, int width, int height) {
- memcpy(yv12, nv21, width * height);
- yv12 += width * height;
- nv21 += width * height;
- uint8* v = yv12;
- uint8* u = yv12 + width * height / 4;
-
- for (int i = 0; i < width * height / 4; ++i) {
- *v++ = *nv21++;
- *u++ = *nv21++;
- }
-}
-
-void IYUVtoNV21(const uint8* iyuv, uint8* nv21, int width, int height) {
- memcpy(nv21, iyuv, width * height);
- iyuv += width * height;
- nv21 += width * height;
- const uint8* u = iyuv;
- const uint8* v = iyuv + width * height / 4;
-
- for (int i = 0; i < width * height / 4; ++i) {
- *nv21++ = *v++;
- *nv21++ = *u++;
- }
-}
-
-void YV12toNV21(const uint8* yv12, uint8* nv21, int width, int height) {
- memcpy(nv21, yv12, width * height);
- yv12 += width * height;
- nv21 += width * height;
- const uint8* v = yv12;
- const uint8* u = yv12 + width * height / 4;
-
- for (int i = 0; i < width * height / 4; ++i) {
- *nv21++ = *v++;
- *nv21++ = *u++;
- }
-}
-
-} // namespace media
« no previous file with comments | « media/tools/omx_test/color_space_util.h ('k') | media/tools/omx_test/file_reader_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698