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

Unified Diff: cc/resources/video_resource_updater.h

Issue 2370453003: 12-bit vp9 video support (Closed)
Patch Set: build fix 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') | cc/resources/video_resource_updater.cc » ('J')
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..993fc6b47158f2e14fe9815e1bdef64f6794edef 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 .. (1<<bits_per_channel) - 1
danakj 2016/09/27 20:49:11 nit: 0..2^{bits_per_channel}-1 ? or maybe thats my
hubbe 2016/09/27 22:27:36 1 << x reads exactly like 2^x to me, but that migh
+ // |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') | cc/resources/video_resource_updater.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698