Allow renderers to apply size and display changes seamlessly

This commit is contained in:
Cameron Gutman
2022-04-24 15:42:08 -05:00
parent 6c339551eb
commit c989133d27
8 changed files with 106 additions and 15 deletions
@@ -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