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

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

Issue 591313008: Add support for Rec709 color space videos in software YUV convert path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 YV16 = 2, // 16bpp YVU planar 1x1 Y, 2x1 VU samples 56 YV16 = 2, // 16bpp YVU planar 1x1 Y, 2x1 VU samples
57 I420 = 3, // 12bpp YVU planar 1x1 Y, 2x2 UV samples. 57 I420 = 3, // 12bpp YVU planar 1x1 Y, 2x2 UV samples.
58 YV12A = 4, // 20bpp YUVA planar 1x1 Y, 2x2 VU, 1x1 A samples. 58 YV12A = 4, // 20bpp YUVA planar 1x1 Y, 2x2 VU, 1x1 A samples.
59 #if defined(VIDEO_HOLE) 59 #if defined(VIDEO_HOLE)
60 HOLE = 5, // Hole frame. 60 HOLE = 5, // Hole frame.
61 #endif // defined(VIDEO_HOLE) 61 #endif // defined(VIDEO_HOLE)
62 NATIVE_TEXTURE = 6, // Native texture. Pixel-format agnostic. 62 NATIVE_TEXTURE = 6, // Native texture. Pixel-format agnostic.
63 YV12J = 7, // JPEG color range version of YV12 63 YV12J = 7, // JPEG color range version of YV12
64 NV12 = 8, // 12bpp 1x1 Y plane followed by an interleaved 2x2 UV plane. 64 NV12 = 8, // 12bpp 1x1 Y plane followed by an interleaved 2x2 UV plane.
65 YV24 = 9, // 24bpp YUV planar, no subsampling. 65 YV24 = 9, // 24bpp YUV planar, no subsampling.
66 FORMAT_MAX = YV24, // Must always be equal to largest entry logged. 66 YV12HD = 10, // Rec709 "HD" color space version of YV12
rileya (GONE FROM CHROMIUM) 2014/09/29 18:15:14 Is it worth making this another one-off, or is it
scherkus (not reviewing) 2014/10/01 16:39:34 I'm OK with this for now.
67 FORMAT_MAX = YV12HD, // Must always be equal to largest entry logged.
67 }; 68 };
68 69
69 // Returns the name of a Format as a string. 70 // Returns the name of a Format as a string.
70 static std::string FormatToString(Format format); 71 static std::string FormatToString(Format format);
71 72
72 // Creates a new frame in system memory with given parameters. Buffers for 73 // Creates a new frame in system memory with given parameters. Buffers for
73 // the frame are allocated but not initialized. 74 // the frame are allocated but not initialized.
74 static scoped_refptr<VideoFrame> CreateFrame( 75 static scoped_refptr<VideoFrame> CreateFrame(
75 Format format, 76 Format format,
76 const gfx::Size& coded_size, 77 const gfx::Size& coded_size,
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 uint32 release_sync_point_; 390 uint32 release_sync_point_;
390 391
391 const bool end_of_stream_; 392 const bool end_of_stream_;
392 393
393 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame); 394 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame);
394 }; 395 };
395 396
396 } // namespace media 397 } // namespace media
397 398
398 #endif // MEDIA_BASE_VIDEO_FRAME_H_ 399 #endif // MEDIA_BASE_VIDEO_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698