Skip to content

Commit 734e641

Browse files
committed
10.8 compatibility, if the system supports hardware acceleration it's should be enabled by default
1 parent 680d934 commit 734e641

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/vt_rgb_packet_processor.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,6 @@ class VTRgbPacketProcessorImpl: public WithPerfLogging
6969

7070
CMVideoFormatDescriptionCreate(NULL, kCMVideoCodecType_JPEG, width, height, NULL, &format);
7171

72-
const void *decoderSpecificationKeys[] = {kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder};
73-
const void *decoderSpecificationValues[] = {kCFBooleanTrue};
74-
CFDictionaryRef decoderSpecification = CFDictionaryCreate(NULL,
75-
decoderSpecificationKeys,
76-
decoderSpecificationValues,
77-
1,
78-
&kCFTypeDictionaryKeyCallBacks,
79-
&kCFTypeDictionaryValueCallBacks);
80-
8172
int32_t pixelFormat = kCVPixelFormatType_32BGRA;
8273
const void *outputKeys[] = {kCVPixelBufferPixelFormatTypeKey, kCVPixelBufferWidthKey, kCVPixelBufferHeightKey};
8374
const void *outputValues[] =
@@ -93,9 +84,8 @@ class VTRgbPacketProcessorImpl: public WithPerfLogging
9384

9485
VTDecompressionOutputCallbackRecord callback = {&VTRgbPacketProcessorImpl::decodeFrame, NULL};
9586

96-
VTDecompressionSessionCreate(NULL, format, decoderSpecification, outputConfiguration, &callback, &decoder);
87+
VTDecompressionSessionCreate(NULL, format, NULL, outputConfiguration, &callback, &decoder);
9788

98-
CFRelease(decoderSpecification);
9989
CFRelease(outputConfiguration);
10090
}
10191

0 commit comments

Comments
 (0)