Add a decoder/renderer callback to specify the desired color range
This commit is contained in:
parent
7a39daf179
commit
c55af7fff3
7 changed files with 20 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue