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

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

Issue 8520033: Add OVERRIDE to media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "media/base/buffers.h" 8 #include "media/base/buffers.h"
9 9
10 namespace media { 10 namespace media {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // As opposed to stride(), row_bytes() refers to the bytes representing 72 // As opposed to stride(), row_bytes() refers to the bytes representing
73 // visible pixels. 73 // visible pixels.
74 int row_bytes(size_t plane) const; 74 int row_bytes(size_t plane) const;
75 int rows(size_t plane) const; 75 int rows(size_t plane) const;
76 76
77 // Returns pointer to the buffer for a given plane. The memory is owned by 77 // Returns pointer to the buffer for a given plane. The memory is owned by
78 // VideoFrame object and must not be freed by the caller. 78 // VideoFrame object and must not be freed by the caller.
79 uint8* data(size_t plane) const; 79 uint8* data(size_t plane) const;
80 80
81 // StreamSample interface. 81 // StreamSample interface.
82 virtual bool IsEndOfStream() const; 82 virtual bool IsEndOfStream() const OVERRIDE;
83 83
84 protected: 84 protected:
85 // Clients must use the static CreateFrame() method to create a new frame. 85 // Clients must use the static CreateFrame() method to create a new frame.
86 VideoFrame(Format format, 86 VideoFrame(Format format,
87 size_t video_width, 87 size_t video_width,
88 size_t video_height); 88 size_t video_height);
89 89
90 virtual ~VideoFrame(); 90 virtual ~VideoFrame();
91 91
92 // Used internally by CreateFrame(). 92 // Used internally by CreateFrame().
(...skipping 21 matching lines...) Expand all
114 114
115 // Array of data pointers to each plane. 115 // Array of data pointers to each plane.
116 uint8* data_[kMaxPlanes]; 116 uint8* data_[kMaxPlanes];
117 117
118 DISALLOW_COPY_AND_ASSIGN(VideoFrame); 118 DISALLOW_COPY_AND_ASSIGN(VideoFrame);
119 }; 119 };
120 120
121 } // namespace media 121 } // namespace media
122 122
123 #endif // MEDIA_BASE_VIDEO_FRAME_H_ 123 #endif // MEDIA_BASE_VIDEO_FRAME_H_
OLDNEW
« no previous file with comments | « media/base/message_loop_factory_impl.h ('k') | media/filters/audio_renderer_algorithm_default.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698