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

Unified Diff: cc/resources/video_resource_updater.h

Issue 2370453003: 12-bit vp9 video support (Closed)
Patch Set: typO Created 4 years, 3 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 | « no previous file | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/video_resource_updater.h
diff --git a/cc/resources/video_resource_updater.h b/cc/resources/video_resource_updater.h
index a3a501199341eab044bc33b339fe5851c24492c4..a42784c9b999ca948b2ed1f4ee32fb8e09f10cf5 100644
--- a/cc/resources/video_resource_updater.h
+++ b/cc/resources/video_resource_updater.h
@@ -80,6 +80,15 @@ class CC_EXPORT VideoResourceUpdater
VideoFrameExternalResources CreateExternalResourcesFromVideoFrame(
scoped_refptr<media::VideoFrame> video_frame);
+ // Convert an array of short integers into an array of half-floats.
+ // |src| is an array of integers in range 0 .. 2^{bits_per_channel} - 1
+ // |num| is number of entries in input and output array.
+ // The numbers stored in |dst| will be half floats in range 0.0..1.0
+ static void MakeHalfFloats(const uint16_t* src,
+ int bits_per_channel,
+ size_t num,
+ uint16_t* dst);
+
private:
class PlaneResource {
public:
« no previous file with comments | « no previous file | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698