Description[media]: Replace LUMINANCE_F16 by R16_EXT for 9/10-bit h264 videos.
LUMINANCE_F16 has following issues:
1. GL_LUMINANCE (as well as GL_ALPHA) is deprecated.
2. GpuMemoryBuffer cannot support LUMINANCE_F16.
3. LUMINANCE_F16 requires cpu int-to-float conversion.
This CL introduces a media switch "kUseR16Texture" feature to use R16_EXT.
If we get better power/performance numbers, we can enable R16_EXT
by default.
R16_EXT is :
+ intuitive
+ filterable
+ no int to half float CPU conversion
+ GpuMemoryBuffer can support R16_EXT
BUG=445071, 624436
TEST=existing cc_unittests. e.g. VideoGLRendererPixelHiLoTest,
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Patch Set 1 #Patch Set 2 : Fix resource multiplier in shader. #Patch Set 3 : Rebase afer viz:: namespace changes #Patch Set 4 : Add pixel test support for highbit texture; Remove LOGs later. #Patch Set 5 : multiplier in shader #Patch Set 6 : fix multiplier in pixel_test #Patch Set 7 : rebase #Patch Set 8 : done #Patch Set 9 : Fix in resource_format_utils #Messages
Total messages: 67 (67 generated)
|