[vlc-commits] videotoolbox: request full range pixel format instead of video range

Felix Paul Kühne git at videolan.org
Fri Aug 21 19:10:33 CEST 2015


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Aug 21 18:05:08 2015 +0200| [6a9687195c32efd3674addecde7e261953cc5c57] | committer: 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)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6a9687195c32efd3674addecde7e261953cc5c57
---

 modules/codec/videotoolbox.m |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 2e89f3c..0ba844c 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -475,7 +475,7 @@ static int StartVideoToolbox(decoder_t *p_dec, block_t *p_block)
 #endif
     VTDictionarySetInt32(dpba,
                          kCVPixelBufferPixelFormatTypeKey,
-                         kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange);
+                         kCVPixelFormatType_420YpCbCr8BiPlanarFullRange);
     VTDictionarySetInt32(dpba,
                          kCVPixelBufferWidthKey,
                          i_video_width);



More information about the vlc-commits mailing list