Narendrabrsoft / libyuv

Automatically exported from code.google.com/p/libyuv
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Convert16ToF16 for higher bit depth conversions to half float. #560

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Project Member Reported by fbarchard@google.com, Today (moments ago)
Add support for conversion from 9 or 10 bits to 8 bits.

code fragment that produces values 0.5 to 1.0

for (; i < bytes_per_row / 2; i++)
  dst[i] = src[i] | 0x3800;

See also

https://code.google.com/p/chromium/issues/detail?id=445071
https://codereview.chromium.org/1599533002/

Texture path
https://codereview.chromium.org/1599533002/diff/220001/cc/resources/video_resour
ce_updater.cc

Original issue reported on code.google.com by fbarch...@google.com on 27 Jan 2016 at 12:53