Allow renderers to apply size and display changes seamlessly

This commit is contained in:
Cameron Gutman committed 2022-04-24 15:42:08 -05:00
1 parent 6c339551eb
commit c989133d27
8 files changed
+106 -15

No files matched your search

@@ -167,6 +167,12 @@ public:
return true;
}
virtual bool applyWindowChange(int, int, int) {
// By default, we cannot apply any changes. The renderer
// will be recreated after any window change.
return false;
}
virtual AVPixelFormat getPreferredPixelFormat(int videoFormat) {
if (videoFormat == VIDEO_FORMAT_H265_MAIN10) {
// 10-bit YUV 4:2:0