Chromium Code Reviews| 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: |