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

Side by Side Diff: media/base/yuv_convert.h

Issue 10075001: add more color formats NV21 and YV12 in video capture (mainly from Android). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_YUV_CONVERT_H_ 5 #ifndef MEDIA_BASE_YUV_CONVERT_H_
6 #define MEDIA_BASE_YUV_CONVERT_H_ 6 #define MEDIA_BASE_YUV_CONVERT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 namespace media { 10 namespace media {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 int ystride, 106 int ystride,
107 int uvstride); 107 int uvstride);
108 108
109 void ConvertYUY2ToYUV(const uint8* src, 109 void ConvertYUY2ToYUV(const uint8* src,
110 uint8* yplane, 110 uint8* yplane,
111 uint8* uplane, 111 uint8* uplane,
112 uint8* vplane, 112 uint8* vplane,
113 int width, 113 int width,
114 int height); 114 int height);
115 115
116 void ConvertNV21ToYUV(const uint8* src,
scherkus (not reviewing) 2012/04/13 03:01:57 do you know why none of these methods accept a str
wjia(left Chromium) 2012/04/17 23:49:32 There could be strides for Y and UV (typically ali
117 uint8* yplane,
118 uint8* uplane,
119 uint8* vplane,
120 int width,
121 int height);
122
116 // Empty SIMD register state after calling optimized scaler functions. 123 // Empty SIMD register state after calling optimized scaler functions.
117 // This method is only used in unit test after calling SIMD functions. 124 // This method is only used in unit test after calling SIMD functions.
118 void EmptyRegisterState(); 125 void EmptyRegisterState();
119 126
120 } // namespace media 127 } // namespace media
121 128
122 #endif // MEDIA_BASE_YUV_CONVERT_H_ 129 #endif // MEDIA_BASE_YUV_CONVERT_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/video_capture_controller.cc ('k') | media/base/yuv_convert.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698