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

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

Issue 289373011: Support for YUV 4:4:4 subsampling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Software path. Created 6 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 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 <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 YV12 = 1, // 12bpp YVU planar 1x1 Y, 2x2 VU samples 50 YV12 = 1, // 12bpp YVU planar 1x1 Y, 2x2 VU samples
51 YV16 = 2, // 16bpp YVU planar 1x1 Y, 2x1 VU samples 51 YV16 = 2, // 16bpp YVU planar 1x1 Y, 2x1 VU samples
52 I420 = 3, // 12bpp YVU planar 1x1 Y, 2x2 UV samples. 52 I420 = 3, // 12bpp YVU planar 1x1 Y, 2x2 UV samples.
53 YV12A = 4, // 20bpp YUVA planar 1x1 Y, 2x2 VU, 1x1 A samples. 53 YV12A = 4, // 20bpp YUVA planar 1x1 Y, 2x2 VU, 1x1 A samples.
54 #if defined(VIDEO_HOLE) 54 #if defined(VIDEO_HOLE)
55 HOLE = 5, // Hole frame. 55 HOLE = 5, // Hole frame.
56 #endif // defined(VIDEO_HOLE) 56 #endif // defined(VIDEO_HOLE)
57 NATIVE_TEXTURE = 6, // Native texture. Pixel-format agnostic. 57 NATIVE_TEXTURE = 6, // Native texture. Pixel-format agnostic.
58 YV12J = 7, // JPEG color range version of YV12 58 YV12J = 7, // JPEG color range version of YV12
59 NV12 = 8, // 12bpp 1x1 Y plane followed by an interleaved 2x2 UV plane. 59 NV12 = 8, // 12bpp 1x1 Y plane followed by an interleaved 2x2 UV plane.
60 FORMAT_MAX = NV12, // Must always be equal to largest entry logged. 60 I444 = 9, // 24bpp YUV planer, no subsampling.
scherkus (not reviewing) 2014/05/22 23:45:11 s/planer/planar/ it seems like we have I420 to re
sandersd (OOO until July 31) 2014/05/23 00:45:22 Works for me. (Although I did't find a code path w
61 FORMAT_MAX = I444, // Must always be equal to largest entry logged.
61 }; 62 };
62 63
63 // Returns the name of a Format as a string. 64 // Returns the name of a Format as a string.
64 static std::string FormatToString(Format format); 65 static std::string FormatToString(Format format);
65 66
66 // Creates a new frame in system memory with given parameters. Buffers for 67 // Creates a new frame in system memory with given parameters. Buffers for
67 // the frame are allocated but not initialized. 68 // the frame are allocated but not initialized.
68 static scoped_refptr<VideoFrame> CreateFrame( 69 static scoped_refptr<VideoFrame> CreateFrame(
69 Format format, 70 Format format,
70 const gfx::Size& coded_size, 71 const gfx::Size& coded_size,
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 std::vector<uint32> release_sync_points_; 331 std::vector<uint32> release_sync_points_;
331 332
332 const bool end_of_stream_; 333 const bool end_of_stream_;
333 334
334 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame); 335 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame);
335 }; 336 };
336 337
337 } // namespace media 338 } // namespace media
338 339
339 #endif // MEDIA_BASE_VIDEO_FRAME_H_ 340 #endif // MEDIA_BASE_VIDEO_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698