mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-16 14:22:28 +00:00
Add upstreamed NV15 format used by Rockchip devices
This commit is contained in:
parent
e1c4a488ed
commit
5baa8c680a
1 changed files with 9 additions and 3 deletions
|
@ -7,8 +7,13 @@ extern "C" {
|
||||||
#include <libdrm/drm_fourcc.h>
|
#include <libdrm/drm_fourcc.h>
|
||||||
|
|
||||||
// Special Rockchip type
|
// Special Rockchip type
|
||||||
#ifndef DRM_FORMAT_NV12_10
|
#ifndef DRM_FORMAT_NA12
|
||||||
#define DRM_FORMAT_NV12_10 fourcc_code('N', 'A', '1', '2')
|
#define DRM_FORMAT_NA12 fourcc_code('N', 'A', '1', '2')
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Same as NA12 but upstreamed
|
||||||
|
#ifndef DRM_FORMAT_NV15
|
||||||
|
#define DRM_FORMAT_NV15 fourcc_code('N', 'V', '1', '5')
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Special Raspberry Pi type (upstreamed)
|
// Special Raspberry Pi type (upstreamed)
|
||||||
|
@ -347,7 +352,8 @@ bool DrmRenderer::initialize(PDECODER_PARAMETERS params)
|
||||||
switch (plane->formats[j]) {
|
switch (plane->formats[j]) {
|
||||||
case DRM_FORMAT_P010:
|
case DRM_FORMAT_P010:
|
||||||
case DRM_FORMAT_P030:
|
case DRM_FORMAT_P030:
|
||||||
case DRM_FORMAT_NV12_10:
|
case DRM_FORMAT_NA12:
|
||||||
|
case DRM_FORMAT_NV15:
|
||||||
matchingFormat = true;
|
matchingFormat = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue