mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
mac-videotoolbox: Remove HW_ACCEL flags
The hw/sw encoder selection is enforced by the encoder IDs, so these flags are not explicitly needed.
This commit is contained in:
parent
761530d34b
commit
44c824985c
@ -339,10 +339,6 @@ void sample_encoded_callback(void *data, void *source, OSStatus status,
|
|||||||
CFRelease(pixbuf);
|
CFRelease(pixbuf);
|
||||||
}
|
}
|
||||||
#define ENCODER_ID kVTVideoEncoderSpecification_EncoderID
|
#define ENCODER_ID kVTVideoEncoderSpecification_EncoderID
|
||||||
#define ENABLE_HW_ACCEL \
|
|
||||||
kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder
|
|
||||||
#define REQUIRE_HW_ACCEL \
|
|
||||||
kVTVideoEncoderSpecification_RequireHardwareAcceleratedVideoEncoder
|
|
||||||
static inline CFMutableDictionaryRef
|
static inline CFMutableDictionaryRef
|
||||||
create_encoder_spec(const char *vt_encoder_id)
|
create_encoder_spec(const char *vt_encoder_id)
|
||||||
{
|
{
|
||||||
@ -355,9 +351,6 @@ create_encoder_spec(const char *vt_encoder_id)
|
|||||||
CFDictionaryAddValue(encoder_spec, ENCODER_ID, id);
|
CFDictionaryAddValue(encoder_spec, ENCODER_ID, id);
|
||||||
CFRelease(id);
|
CFRelease(id);
|
||||||
|
|
||||||
CFDictionaryAddValue(encoder_spec, ENABLE_HW_ACCEL, kCFBooleanTrue);
|
|
||||||
CFDictionaryAddValue(encoder_spec, REQUIRE_HW_ACCEL, kCFBooleanFalse);
|
|
||||||
|
|
||||||
return encoder_spec;
|
return encoder_spec;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -392,8 +385,6 @@ create_prores_encoder_spec(CMVideoCodecType target_codec_type,
|
|||||||
return encoder_spec;
|
return encoder_spec;
|
||||||
}
|
}
|
||||||
#undef ENCODER_ID
|
#undef ENCODER_ID
|
||||||
#undef REQUIRE_HW_ACCEL
|
|
||||||
#undef ENABLE_HW_ACCEL
|
|
||||||
|
|
||||||
static inline CFMutableDictionaryRef create_pixbuf_spec(struct vt_encoder *enc)
|
static inline CFMutableDictionaryRef create_pixbuf_spec(struct vt_encoder *enc)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user