summaryrefslogtreecommitdiffstats
path: root/libhb/hb.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-06-20 15:59:03 +0000
committerRodeo <[email protected]>2012-06-20 15:59:03 +0000
commit28ff9e210e2604c47c5f157043aa85d4d56b6a16 (patch)
tree40c56e52a934f567e38a4ee15fbf6bcdb9fae070 /libhb/hb.c
parentd2189f51f3d68ac81e4849bda4a96877981baeab (diff)
Remove encca_haac_available(). It's no longer needed since we dropped support for OS X 10.5.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4759 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.c')
-rw-r--r--libhb/hb.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/libhb/hb.c b/libhb/hb.c
index 0d881b888..2a1cf53c4 100644
--- a/libhb/hb.c
+++ b/libhb/hb.c
@@ -2023,56 +2023,3 @@ hb_interjob_t * hb_interjob_get( hb_handle_t * h )
{
return h->interjob;
}
-
-/************************************************************************
- * encca_haac_available()
- ************************************************************************
- * Returns whether the Core Audio HE-AAC encoder is available for use
- * on the system. Under 10.5, if the encoder is available, register it.
- * The registration is actually only performed on the first call.
- ************************************************************************/
-int encca_haac_available()
-{
-#ifdef __APPLE__
- static int encca_haac_available = -1;
-
- if (encca_haac_available != -1)
- return encca_haac_available;
-
- encca_haac_available = 0;
-
- long minorVersion, majorVersion, quickTimeVersion;
- Gestalt(gestaltSystemVersionMajor, &majorVersion);
- Gestalt(gestaltSystemVersionMinor, &minorVersion);
- Gestalt(gestaltQuickTime, &quickTimeVersion);
-
- if (majorVersion > 10 || (majorVersion == 10 && minorVersion >= 6))
- {
- // OS X 10.6+ - ca_haac is available and ready to use
- encca_haac_available = 1;
- }
- else if (majorVersion == 10 && minorVersion >= 5 && quickTimeVersion >= 0x07630000)
- {
- // OS X 10.5, QuickTime 7.6.3+ - register the component
- ComponentDescription cd;
- cd.componentType = kAudioEncoderComponentType;
- cd.componentSubType = kAudioFormatMPEG4AAC_HE;
- cd.componentManufacturer = kAudioUnitManufacturer_Apple;
- cd.componentFlags = 0;
- cd.componentFlagsMask = 0;
- ComponentResult (*ComponentRoutine) (ComponentParameters * cp, Handle componentStorage);
- void *handle = dlopen("/System/Library/Components/AudioCodecs.component/Contents/MacOS/AudioCodecs", RTLD_LAZY|RTLD_LOCAL);
- if (handle)
- {
- ComponentRoutine = dlsym(handle, "ACMP4AACHighEfficiencyEncoderEntry");
- if (ComponentRoutine)
- if (RegisterComponent(&cd, ComponentRoutine, 0, NULL, NULL, NULL))
- encca_haac_available = 1;
- }
- }
-
- return encca_haac_available;
-#else
- return 0;
-#endif
-}