mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-25 07:26:29 +00:00
vtenc: set H264_Baseline_AutoLevel on OSX as well
This commit is contained in:
parent
d0ce9a6f7c
commit
d800ac023b
1 changed files with 4 additions and 3 deletions
|
@ -43,6 +43,10 @@ GST_DEBUG_CATEGORY (gst_vtenc_debug);
|
||||||
const CFStringRef
|
const CFStringRef
|
||||||
kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder =
|
kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder =
|
||||||
CFSTR ("EnableHardwareAcceleratedVideoEncoder");
|
CFSTR ("EnableHardwareAcceleratedVideoEncoder");
|
||||||
|
const CFStringRef kVTCompressionPropertyKey_ProfileLevel =
|
||||||
|
CFSTR ("ProfileLevel");
|
||||||
|
const CFStringRef kVTProfileLevel_H264_Baseline_AutoLevel =
|
||||||
|
CFSTR ("H264_Baseline_AutoLevel");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
enum
|
enum
|
||||||
|
@ -566,14 +570,11 @@ gst_vtenc_create_session (GstVTEnc * self)
|
||||||
gst_vtenc_session_configure_expected_framerate (self, session,
|
gst_vtenc_session_configure_expected_framerate (self, session,
|
||||||
(gdouble) self->negotiated_fps_n / (gdouble) self->negotiated_fps_d);
|
(gdouble) self->negotiated_fps_n / (gdouble) self->negotiated_fps_d);
|
||||||
|
|
||||||
/* FIXME: This is only available since OS X 10.9.6 */
|
|
||||||
#if HAVE_IOS
|
|
||||||
status = VTSessionSetProperty (session,
|
status = VTSessionSetProperty (session,
|
||||||
kVTCompressionPropertyKey_ProfileLevel,
|
kVTCompressionPropertyKey_ProfileLevel,
|
||||||
kVTProfileLevel_H264_Baseline_AutoLevel);
|
kVTProfileLevel_H264_Baseline_AutoLevel);
|
||||||
GST_DEBUG_OBJECT (self, "kVTCompressionPropertyKey_ProfileLevel => %d",
|
GST_DEBUG_OBJECT (self, "kVTCompressionPropertyKey_ProfileLevel => %d",
|
||||||
(int) status);
|
(int) status);
|
||||||
#endif
|
|
||||||
|
|
||||||
status = VTSessionSetProperty (session,
|
status = VTSessionSetProperty (session,
|
||||||
kVTCompressionPropertyKey_AllowTemporalCompression, kCFBooleanTrue);
|
kVTCompressionPropertyKey_AllowTemporalCompression, kCFBooleanTrue);
|
||||||
|
|
Loading…
Reference in a new issue