Display the HDR option if the platform has a decoder that supports it
This commit is contained in:
parent
e0fd84d6f5
commit
1cbdd0e675
10 changed files with 77 additions and 46 deletions
|
|
@ -410,8 +410,15 @@ enum AVPixelFormat DrmRenderer::getPreferredPixelFormat(int)
|
|||
|
||||
int DrmRenderer::getRendererAttributes()
|
||||
{
|
||||
int attributes = 0;
|
||||
|
||||
// This renderer can only draw in full-screen
|
||||
return RENDERER_ATTRIBUTE_FULLSCREEN_ONLY;
|
||||
attributes |= RENDERER_ATTRIBUTE_FULLSCREEN_ONLY;
|
||||
|
||||
// This renderer supports HDR
|
||||
attributes |= RENDERER_ATTRIBUTE_HDR_SUPPORT;
|
||||
|
||||
return attributes;
|
||||
}
|
||||
|
||||
void DrmRenderer::setHdrMode(bool enabled)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue