mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-16 21:51:17 +00:00
Add a decoder/renderer callback to specify the desired color range
This commit is contained in:
@@ -158,6 +158,11 @@ public:
|
||||
return COLORSPACE_REC_601;
|
||||
}
|
||||
|
||||
virtual int getDecoderColorRange() {
|
||||
// Limited is the default
|
||||
return COLOR_RANGE_LIMITED;
|
||||
}
|
||||
|
||||
virtual int getFrameColorspace(const AVFrame* frame) {
|
||||
// Prefer the colorspace field on the AVFrame itself
|
||||
switch (frame->colorspace) {
|
||||
|
||||
Reference in New Issue
Block a user