Commit 6a968719 authored by Felix Paul Kühne's avatar Felix Paul Kühne

videotoolbox: request full range pixel format instead of video range

This provides broader details for luma and chroma (0-255 instead of 16-235 and respectively 1-255 instead of 16-240)
parent bb27e693
...@@ -475,7 +475,7 @@ static int StartVideoToolbox(decoder_t *p_dec, block_t *p_block) ...@@ -475,7 +475,7 @@ static int StartVideoToolbox(decoder_t *p_dec, block_t *p_block)
#endif #endif
VTDictionarySetInt32(dpba, VTDictionarySetInt32(dpba,
kCVPixelBufferPixelFormatTypeKey, kCVPixelBufferPixelFormatTypeKey,
kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange); kCVPixelFormatType_420YpCbCr8BiPlanarFullRange);
VTDictionarySetInt32(dpba, VTDictionarySetInt32(dpba,
kCVPixelBufferWidthKey, kCVPixelBufferWidthKey,
i_video_width); i_video_width);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment