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

Unified Diff: media/base/video_frame.h

Issue 2745743002: Added BitsPerChannel method to video frame class. (Closed)
Patch Set: Added BitsPerChannel method to video frame class. Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/video_resource_updater.cc ('k') | media/base/video_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.h
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index 7ed1162b7a4147956f0d01d95c971ce7bbf4a0ab..38bc1a361479d0ce666e7135ddbbefb0d075d0a6 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -393,6 +393,9 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
// guaranteed to be unique within a single process.
int unique_id() const { return unique_id_; }
+ // Returns the number of bits per channel for given |format|.
+ int BitsPerChannel(VideoPixelFormat format);
+
protected:
friend class base::RefCountedThreadSafe<VideoFrame>;
« no previous file with comments | « cc/resources/video_resource_updater.cc ('k') | media/base/video_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698