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

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

Issue 62015: Add YV16 convert (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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
« no previous file with comments | « no previous file | media/base/yuv_convert.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 {
11 11
12 // Convert a frame of YUV to 32 bit ARGB. 12 // Convert a frame of YV12 (aka YUV420) to 32 bit ARGB.
13 void ConvertYV12ToRGB32(const uint8* yplane, 13 void ConvertYV12ToRGB32(const uint8* yplane,
14 const uint8* uplane, 14 const uint8* uplane,
15 const uint8* vplane, 15 const uint8* vplane,
16 uint8* rgbframe, 16 uint8* rgbframe,
17 size_t frame_width, 17 size_t frame_width,
18 size_t frame_height, 18 size_t frame_height,
19 int ystride, 19 int ystride,
20 int uvstride, 20 int uvstride,
21 int rgbstride); 21 int rgbstride);
22 22
23 // Convert a frame of YV16 (aka YUV422) to 32 bit ARGB.
24 void ConvertYV16ToRGB32(const uint8* yplane,
25 const uint8* uplane,
26 const uint8* vplane,
27 uint8* rgbframe,
28 size_t frame_width,
29 size_t frame_height,
30 int ystride,
31 int uvstride,
32 int rgbstride);
33
34
23 #endif // MEDIA_BASE_YUV_CONVERT_H_ 35 #endif // MEDIA_BASE_YUV_CONVERT_H_
24 36
25 } // namespace media 37 } // namespace media
OLDNEW
« no previous file with comments | « no previous file | media/base/yuv_convert.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698