masterofeye / libyuv

Automatically exported from code.google.com/p/libyuv
0 stars 0 forks source link

Convert16To8 for higher bit depth conversions #559

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Add support for conversion from 9 or 10 bits to 8 bits.

code fragment
     for (int row = 0; row < video_frame->rows(plane); row++) {
       for (int x = 0; x < width; x++) {
         dst[x] = src[x] >> shift;
       }
       src += video_frame->stride(plane) / 2;
       dst += ret->stride(plane);
     }

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

Software path
https://codereview.chromium.org/1599533002/diff/220001/media/renderers/skcanvas_
video_renderer.cc

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