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

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

Issue 10035054: Merge VideoCaptureDevice::Capability with media::VideoCaptureCapability (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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
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_VIDEO_FRAME_H_ 5 #ifndef MEDIA_BASE_VIDEO_FRAME_H_
6 #define MEDIA_BASE_VIDEO_FRAME_H_ 6 #define MEDIA_BASE_VIDEO_FRAME_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/md5.h" 9 #include "base/md5.h"
10 #include "media/base/buffers.h" 10 #include "media/base/buffers.h"
(...skipping 17 matching lines...) Expand all
28 // http://www.fourcc.org/yuv.php 28 // http://www.fourcc.org/yuv.php
29 // Keep in sync with WebKit::WebVideoFrame! 29 // Keep in sync with WebKit::WebVideoFrame!
30 enum Format { 30 enum Format {
31 INVALID = 0, // Invalid format value. Used for error reporting. 31 INVALID = 0, // Invalid format value. Used for error reporting.
32 RGB32 = 4, // 32bpp RGB packed with extra byte 8:8:8 32 RGB32 = 4, // 32bpp RGB packed with extra byte 8:8:8
33 YV12 = 6, // 12bpp YVU planar 1x1 Y, 2x2 VU samples 33 YV12 = 6, // 12bpp YVU planar 1x1 Y, 2x2 VU samples
34 YV16 = 7, // 16bpp YVU planar 1x1 Y, 2x1 VU samples 34 YV16 = 7, // 16bpp YVU planar 1x1 Y, 2x1 VU samples
35 EMPTY = 9, // An empty frame. 35 EMPTY = 9, // An empty frame.
36 I420 = 11, // 12bpp YVU planar 1x1 Y, 2x2 UV samples. 36 I420 = 11, // 12bpp YVU planar 1x1 Y, 2x2 UV samples.
37 NATIVE_TEXTURE = 12, // Native texture. Pixel-format agnostic. 37 NATIVE_TEXTURE = 12, // Native texture. Pixel-format agnostic.
38
39 // Color formats from camera.
40 kColorUnknown, // Color format not set.
scherkus (not reviewing) 2012/04/19 19:09:35 does the capture code actually use VideoFrame or j
41 kI420,
42 kYUY2,
43 kUYVY,
44 kRGB24,
45 kARGB,
46 kMJPEG, // Currently only supported on Windows.
38 }; 47 };
39 48
40 // Creates a new frame in system memory with given parameters. Buffers for 49 // Creates a new frame in system memory with given parameters. Buffers for
41 // the frame are allocated but not initialized. 50 // the frame are allocated but not initialized.
42 static scoped_refptr<VideoFrame> CreateFrame( 51 static scoped_refptr<VideoFrame> CreateFrame(
43 Format format, 52 Format format,
44 size_t width, 53 size_t width,
45 size_t height, 54 size_t height,
46 base::TimeDelta timestamp, 55 base::TimeDelta timestamp,
47 base::TimeDelta duration); 56 base::TimeDelta duration);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 167
159 base::TimeDelta timestamp_; 168 base::TimeDelta timestamp_;
160 base::TimeDelta duration_; 169 base::TimeDelta duration_;
161 170
162 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame); 171 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame);
163 }; 172 };
164 173
165 } // namespace media 174 } // namespace media
166 175
167 #endif // MEDIA_BASE_VIDEO_FRAME_H_ 176 #endif // MEDIA_BASE_VIDEO_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698