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

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

Issue 21953003: Added logging calls to FFmpegDemuxer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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 "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 29 matching lines...) Expand all
40 // http://www.fourcc.org/rgb.php 40 // http://www.fourcc.org/rgb.php
41 // http://www.fourcc.org/yuv.php 41 // http://www.fourcc.org/yuv.php
42 enum Format { 42 enum Format {
43 INVALID = 0, // Invalid format value. Used for error reporting. 43 INVALID = 0, // Invalid format value. Used for error reporting.
44 RGB32 = 4, // 32bpp RGB packed with extra byte 8:8:8 44 RGB32 = 4, // 32bpp RGB packed with extra byte 8:8:8
45 YV12 = 6, // 12bpp YVU planar 1x1 Y, 2x2 VU samples 45 YV12 = 6, // 12bpp YVU planar 1x1 Y, 2x2 VU samples
46 YV16 = 7, // 16bpp YVU planar 1x1 Y, 2x1 VU samples 46 YV16 = 7, // 16bpp YVU planar 1x1 Y, 2x1 VU samples
47 EMPTY = 9, // An empty frame. 47 EMPTY = 9, // An empty frame.
48 I420 = 11, // 12bpp YVU planar 1x1 Y, 2x2 UV samples. 48 I420 = 11, // 12bpp YVU planar 1x1 Y, 2x2 UV samples.
49 NATIVE_TEXTURE = 12, // Native texture. Pixel-format agnostic. 49 NATIVE_TEXTURE = 12, // Native texture. Pixel-format agnostic.
50 #if defined(GOOGLE_TV) 50 #if defined(GOOGLE_TV)
scherkus (not reviewing) 2013/08/03 00:17:18 can you add this to your .cc? if you don't we'll
Ty Overby 2013/08/05 19:18:45 Done.
51 HOLE = 13, // Hole frame. 51 HOLE = 13, // Hole frame.
52 #endif 52 #endif
53 YV12A = 14, // 20bpp YUVA planar 1x1 Y, 2x2 VU, 1x1 A samples. 53 YV12A = 14, // 20bpp YUVA planar 1x1 Y, 2x2 VU, 1x1 A samples.
54 }; 54 };
55 55
56 static std::string FormatToString(Format format);
scherkus (not reviewing) 2013/08/03 00:17:18 docs
Ty Overby 2013/08/05 19:18:45 Done.
57
56 // This class calls the TextureNoLongerNeededCallback when the last reference 58 // This class calls the TextureNoLongerNeededCallback when the last reference
57 // on the class is destroyed. The VideoFrame holds a reference to the mailbox 59 // on the class is destroyed. The VideoFrame holds a reference to the mailbox
58 // but anyone else who queries the mailbox should also hold a reference while 60 // but anyone else who queries the mailbox should also hold a reference while
59 // it is uses the mailbox, to ensure it remains valid. When finished with the 61 // it is uses the mailbox, to ensure it remains valid. When finished with the
60 // mailbox, call Return() with a new sync point, to ensure the mailbox remains 62 // mailbox, call Return() with a new sync point, to ensure the mailbox remains
61 // valid for the issued commands. 63 // valid for the issued commands.
62 class MEDIA_EXPORT MailboxHolder 64 class MEDIA_EXPORT MailboxHolder
63 : public base::RefCountedThreadSafe<MailboxHolder> { 65 : public base::RefCountedThreadSafe<MailboxHolder> {
64 public: 66 public:
65 typedef base::Callback<void(uint32 sync_point)> 67 typedef base::Callback<void(uint32 sync_point)>
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 base::Closure no_longer_needed_cb_; 268 base::Closure no_longer_needed_cb_;
267 269
268 base::TimeDelta timestamp_; 270 base::TimeDelta timestamp_;
269 271
270 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame); 272 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame);
271 }; 273 };
272 274
273 } // namespace media 275 } // namespace media
274 276
275 #endif // MEDIA_BASE_VIDEO_FRAME_H_ 277 #endif // MEDIA_BASE_VIDEO_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698