Add support for negotiating non-default transfer formats for hwframes

This commit is contained in:
Cameron Gutman
2022-01-01 22:15:43 -06:00
parent 154b5b6ded
commit a26ced04ff
2 changed files with 73 additions and 10 deletions
@@ -19,10 +19,12 @@ public:
private:
void renderOverlay(Overlay::OverlayType type);
enum AVPixelFormat getReadBackFormat(AVBufferRef* hwFrameCtxRef);
int m_VideoFormat;
SDL_Renderer* m_Renderer;
SDL_Texture* m_Texture;
int m_SwPixelFormat;
enum AVPixelFormat m_SwPixelFormat;
SDL_Texture* m_OverlayTextures[Overlay::OverlayMax];
SDL_Rect m_OverlayRects[Overlay::OverlayMax];