summaryrefslogtreecommitdiff
path: root/common/quicktime_win32/CMScriptingPlugin.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /common/quicktime_win32/CMScriptingPlugin.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'common/quicktime_win32/CMScriptingPlugin.h')
-rw-r--r--common/quicktime_win32/CMScriptingPlugin.h243
1 files changed, 243 insertions, 0 deletions
diff --git a/common/quicktime_win32/CMScriptingPlugin.h b/common/quicktime_win32/CMScriptingPlugin.h
new file mode 100644
index 0000000..dcd7d71
--- /dev/null
+++ b/common/quicktime_win32/CMScriptingPlugin.h
@@ -0,0 +1,243 @@
+/*
+ File: CMScriptingPlugin.h
+
+ Contains: ColorSync Scripting Plugin API
+
+ Version: QuickTime 7.3
+
+ Copyright: (c) 2007 (c) 1998-2001 by Apple Computer, Inc., all rights reserved.
+
+ Bugs?: For bug reports, consult the following page on
+ the World Wide Web:
+
+ http://developer.apple.com/bugreporter/
+
+*/
+#ifndef __FILES__
+#include <Files.h>
+#endif
+
+#ifndef __CMAPPLICATION__
+#include <CMApplication.h>
+#endif
+
+
+
+
+
+
+#if PRAGMA_ONCE
+#pragma once
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if PRAGMA_IMPORT
+#pragma import on
+#endif
+
+enum {
+ /* ColorSync Scripting AppleEvent Errors */
+ cmspInvalidImageFile = -4220, /* Plugin cannot handle this image file type */
+ cmspInvalidImageSpace = -4221, /* Plugin cannot create an image file of this colorspace */
+ cmspInvalidProfileEmbed = -4222, /* Specific invalid profile errors */
+ cmspInvalidProfileSource = -4223,
+ cmspInvalidProfileDest = -4224,
+ cmspInvalidProfileProof = -4225,
+ cmspInvalidProfileLink = -4226
+};
+
+
+/**** embedFlags field ****/
+/* reserved for future use: currently 0 */
+
+/**** matchFlags field ****/
+enum {
+ cmspFavorEmbeddedMask = 0x00000001 /* if bit 0 is 0 then use srcProf profile, if 1 then use profile embedded in image if present*/
+};
+
+
+/**** scripting plugin entry points ****/
+typedef CALLBACK_API_C( CMError , ValidateImageProcPtr )(const FSSpec * spec);
+typedef CALLBACK_API_C( CMError , GetImageSpaceProcPtr )(const FSSpec *spec, OSType *space);
+typedef CALLBACK_API_C( CMError , ValidateSpaceProcPtr )(const FSSpec *spec, OSType *space);
+typedef CALLBACK_API_C( CMError , EmbedImageProcPtr )(const FSSpec *specFrom, const FSSpec *specInto, CMProfileRef embedProf, UInt32 embedFlags);
+typedef CALLBACK_API_C( CMError , UnembedImageProcPtr )(const FSSpec *specFrom, const FSSpec *specInto);
+typedef CALLBACK_API_C( CMError , MatchImageProcPtr )(const FSSpec *specFrom, const FSSpec *specInto, UInt32 qual, UInt32 srcIntent, CMProfileRef srcProf, CMProfileRef dstProf, CMProfileRef prfProf, UInt32 matchFlags);
+typedef CALLBACK_API_C( CMError , CountImageProfilesProcPtr )(const FSSpec *spec, UInt32 *count);
+typedef CALLBACK_API_C( CMError , GetIndImageProfileProcPtr )(const FSSpec *spec, UInt32 index, CMProfileRef *prof);
+typedef CALLBACK_API_C( CMError , SetIndImageProfileProcPtr )(const FSSpec *specFrom, const FSSpec *specInto, UInt32 index, CMProfileRef prof, UInt32 embedFlags);
+/**** CSScriptingLib API ****/
+
+/*
+ * CMValidImage()
+ *
+ * Availability:
+ * Non-Carbon CFM: in CSScriptingLib 2.6 and later
+ * CarbonLib: in CarbonLib 1.0 and later
+ * Mac OS X: in 3.0 and later
+ */
+EXTERN_API_C( CMError )
+CMValidImage(const FSSpec * spec);
+
+
+/*
+ * CMGetImageSpace()
+ *
+ * Availability:
+ * Non-Carbon CFM: in CSScriptingLib 2.6 and later
+ * CarbonLib: in CarbonLib 1.0 and later
+ * Mac OS X: in 3.0 and later
+ */
+EXTERN_API_C( CMError )
+CMGetImageSpace(
+ const FSSpec * spec,
+ OSType * space);
+
+
+/*
+ * CMEmbedImage()
+ *
+ * Availability:
+ * Non-Carbon CFM: in CSScriptingLib 2.6 and later
+ * CarbonLib: in CarbonLib 1.0 and later
+ * Mac OS X: in 3.0 and later
+ */
+EXTERN_API_C( CMError )
+CMEmbedImage(
+ const FSSpec * specFrom,
+ const FSSpec * specInto,
+ Boolean repl,
+ CMProfileRef embProf);
+
+
+/*
+ * CMUnembedImage()
+ *
+ * Availability:
+ * Non-Carbon CFM: in CSScriptingLib 2.6 and later
+ * CarbonLib: in CarbonLib 1.0 and later
+ * Mac OS X: in 3.0 and later
+ */
+EXTERN_API_C( CMError )
+CMUnembedImage(
+ const FSSpec * specFrom,
+ const FSSpec * specInto,
+ Boolean repl);
+
+
+/*
+ * CMMatchImage()
+ *
+ * Availability:
+ * Non-Carbon CFM: in CSScriptingLib 2.6 and later
+ * CarbonLib: in CarbonLib 1.0 and later
+ * Mac OS X: in 3.0 and later
+ */
+EXTERN_API_C( CMError )
+CMMatchImage(
+ const FSSpec * specFrom,
+ const FSSpec * specInto,
+ Boolean repl,
+ UInt32 qual,
+ CMProfileRef srcProf,
+ UInt32 srcIntent,
+ CMProfileRef dstProf);
+
+
+/*
+ * CMProofImage()
+ *
+ * Availability:
+ * Non-Carbon CFM: in CSScriptingLib 2.6 and later
+ * CarbonLib: in CarbonLib 1.0 and later
+ * Mac OS X: in 3.0 and later
+ */
+EXTERN_API_C( CMError )
+CMProofImage(
+ const FSSpec * specFrom,
+ const FSSpec * specInto,
+ Boolean repl,
+ UInt32 qual,
+ CMProfileRef srcProf,
+ UInt32 srcIntent,
+ CMProfileRef dstProf,
+ CMProfileRef prfProf);
+
+
+/*
+ * CMLinkImage()
+ *
+ * Availability:
+ * Non-Carbon CFM: in CSScriptingLib 2.6 and later
+ * CarbonLib: in CarbonLib 1.0 and later
+ * Mac OS X: in 3.0 and later
+ */
+EXTERN_API_C( CMError )
+CMLinkImage(
+ const FSSpec * specFrom,
+ const FSSpec * specInto,
+ Boolean repl,
+ UInt32 qual,
+ CMProfileRef lnkProf,
+ UInt32 lnkIntent);
+
+
+/*
+ * CMCountImageProfiles()
+ *
+ * Availability:
+ * Non-Carbon CFM: in CSScriptingLib 2.6 and later
+ * CarbonLib: in CarbonLib 1.0 and later
+ * Mac OS X: in 3.0 and later
+ */
+EXTERN_API_C( CMError )
+CMCountImageProfiles(
+ const FSSpec * spec,
+ UInt32 * count);
+
+
+/*
+ * CMGetIndImageProfile()
+ *
+ * Availability:
+ * Non-Carbon CFM: in CSScriptingLib 2.6 and later
+ * CarbonLib: in CarbonLib 1.0 and later
+ * Mac OS X: in 3.0 and later
+ */
+EXTERN_API_C( CMError )
+CMGetIndImageProfile(
+ const FSSpec * spec,
+ UInt32 index,
+ CMProfileRef * prof);
+
+
+/*
+ * CMSetIndImageProfile()
+ *
+ * Availability:
+ * Non-Carbon CFM: in CSScriptingLib 2.6 and later
+ * CarbonLib: in CarbonLib 1.0 and later
+ * Mac OS X: in 3.0 and later
+ */
+EXTERN_API_C( CMError )
+CMSetIndImageProfile(
+ const FSSpec * specFrom,
+ const FSSpec * specInto,
+ Boolean repl,
+ UInt32 index,
+ CMProfileRef prof);
+
+
+
+#ifdef PRAGMA_IMPORT_OFF
+#pragma import off
+#elif PRAGMA_IMPORT
+#pragma import reset
+#endif
+
+#ifdef __cplusplus
+}
+#endif