Check that the chosen plane supports the decoded frame pixel format

This commit is contained in:
Cameron Gutman
2023-09-29 17:22:49 -05:00
parent 0dd0112518
commit b6d4f97e96
2 changed files with 61 additions and 14 deletions
+2 -1
View File
@@ -73,7 +73,7 @@ private:
const char* getDrmColorEncodingValue(AVFrame* frame);
const char* getDrmColorRangeValue(AVFrame* frame);
bool mapSoftwareFrame(AVFrame* frame, AVDRMFrameDescriptor* mappedFrame);
bool addFbForFrame(AVFrame* frame, uint32_t* newFbId);
bool addFbForFrame(AVFrame* frame, uint32_t* newFbId, bool testMode);
IFFmpegRenderer* m_BackendRenderer;
bool m_DrmPrimeBackend;
@@ -90,6 +90,7 @@ private:
uint32_t m_CurrentFbId;
bool m_LastFullRange;
int m_LastColorSpace;
drmModePlanePtr m_Plane;
drmModePropertyPtr m_ColorEncodingProp;
drmModePropertyPtr m_ColorRangeProp;
drmModePropertyPtr m_HdrOutputMetadataProp;