Changes and Additions to Quicktime for Mac OS X (10.1)
Total Page:16
File Type:pdf, Size:1020Kb
CHAPTER 1 Figure 1-0 Listing 1-0 Changes and Additions to Table 1-0 QuickTime for Mac OS X (10.1) 1 QuickTime for Mac OS X (10.1) establishes feature and functional parity with the recent QuickTime 5.02 software release. This document lists most of those changes and additions, which are described in detail in “What’s New in QuickTime 5.” This document also includes descriptions of some new features and changes specific to OS X. List of Changes and Additions 1 The following is a list of changes and additions in QuickTime for Mac OS X (10.1). Features Documented in “What’s New in QuickTime 5” 1 These features are present in QuickTime 5.02 for Windows, Mac OS 8, and Mac OS 9. They are now available as part of OS X (10.1). I Support for the Sorenson 3 codec. I Support for Media Skins in Mac OS X (10.1). Media skins that were constructed using QuickTime 5.02 will now play in Mac OS X (10.1). I QuickTime Broadcasting APIs have been brought up to the same level as those in QuickTime 5.02. I Support for QuickTime VR Authoring Components added. I Scriptability of the Player has been enhanced. New Apple event support has been added. I Improved video playback, including DV performance improvements. List of Changes and Additions 1 CHAPTER 1 Changes and Additions to QuickTime for Mac OS X (10.1) Features Unique to Mac OS X 1 These features or changes are specific to OS X. I Header files missing in the QuickTime framework that developers would need to create QuickTime components have been added. Technote 2012 <http://developer.apple.com/technotes/tn/tn2012.html> discusses how to build CFM and Mach-O QuickTime components for Mach OS X, with the changes required to move existing QuickTime components to Mac OS X. I Support for third-party bundles has been added. I Support for the new Audio and MIDI APIs on Mac OS X (10.1) has been added. Refer to Apple’s audio developer website <http://developer.apple.com/audio/macosxaudio.html> for more information. A PDF documenting this support is available for download at <http://developer.apple.com/audio/pdf/coreaudio.pdf>. I Changes in the Plugin file type, now using BRPL. Instead of being an NSPL file, a new API has been added with which the client can choose the MIME list from the Plugin. I Soft VDIG is no longer present––it has been removed. I A new QDesign component has been added for better performance. I A CDDA type has been introduced for tracks on CD especially for use with iTunes. I The location of external libraries for QuickTimeJava has been changed from System/Library/frameworks/javavm.frameworks/versions/1.3.1/home/lib/ext The new location in Mac OS X (10.1) is System/Library/Java/Extensions Features Introduced in Mac OS X (10.1) 1 These features are not yet present in QuickTime 5.02 for Windows, Mac OS 8, or Mac OS 9. They are being introduced first in Mac OS X (10.1). I Additional support has been added for still image metadata, specifically for creating Exif files and thumbnails. 2 List of Changes and Additions CHAPTER 1 Changes and Additions to QuickTime for Mac OS X (10.1) Additional Still Image Metadata Support 1 The JPEG and TIFF graphics exporters should be able to create Exif files containing application-specified metadata and thumbnail images. QuickTime for Mac OS X (10.1) provides this support. Indexed Image Types 1 Several graphics importers support access to individual images within a multiple-image file. By using the GraphicsImportGetImageCount and GraphicsImportSetImageIndex routines, you can select an individual layer from a Photoshop file, or an individual resolution from a multi-resolution FlashPix file, for example. However, there has not been a way to distinguish between different types of indexed images: thumbnail, layer, page, resolution, etc. Although applications can sometimes use the file type to suggest the interpretation, this inhibits them from being able to take full advantage of new third-party graphics importers. Furthermore, some formats, such as TIFF, can support a variety of indexed image types. The user data type kQTIndexedImageType has now been defined for graphics importers to indicate what a particular indexed image is. The following sample code shows how to determine whether the second image in a file is a thumbnail. Boolean IsSecondImageThumbnail( GraphicsImportComponent gi ) { OSErr err; unsigned long saveIndex = 1; UserData userData = nil; Handle h = nil; Boolean isThumbnail = false; long count, i; GraphicsImportGetImageIndex( gi, &saveIndex ); err = GraphicsImportSetImageIndex( gi, 2 ); if( err ) goto bail; err = NewUserData( &userData ); if( err ) goto bail; Additional Still Image Metadata Support 3 CHAPTER 1 Changes and Additions to QuickTime for Mac OS X (10.1) err = GraphicsImportGetMetaData( gi, userData ); if( err ) goto bail; h = NewHandle( 0 ); err = MemError(); if( err ) goto bail; err = GetUserData( userData, h, kQTIndexedImageType, 1 ); if( err ) goto bail; // Is kQTIndexedImageIsThumbnail present in the list? count = GetHandleSize( h ) / sizeof( OSType ); for( i = 0; i < count; i++ ) { if( EndianU32_NtoB(kQTIndexedImageIsThumbnail) == ((OSType *)*h)[ i ] ) { isThumbnail = true; break; } } bail: if( userData ) DisposeUserData( userData ); if( h ) DisposeHandle( h ); GraphicsImportSetImageIndex( gi, saveIndex ); return isThumbnail; } Alpha Modes 1 The user data type kQTAlphaMode has been defined to allow graphics importers to indicate the recommended interpretation of an image’s alpha channel, if known. For example, a graphics importer could indicate that the image data has been premultiplied with the alpha channel against a black background by reporting a metadata item of type kQTAlphaMode and value graphicsModePreBlackAlpha. If the image data has not been premultiplied, it would report graphicsModeStraightAlpha. 4 Additional Still Image Metadata Support CHAPTER 1 Changes and Additions to QuickTime for Mac OS X (10.1) Image Data User Data Type Not premultiplied graphicsModeStraightAlpha Premultiplied with alpha channel graphicsModePreBlackAlpha against black background Premultiplied with alpha channel graphicsModePreWhiteAlpha against white background Premultiplied with alpha channel graphicsModePreMulColorAlpha; against other color color indicated in kQTAlphaModePreMulColor value The depth value of 32 in an image description indicates the presence of an alpha channel. Extracted TIFF and Exif Metadata 1 The TIFF graphics importer can extract metadata from a variety of TIFF tags for which QuickTime does not have standard user data type codes. Rather than define an individual code for each TIFF tag imported in this way, the graphics importer constructs user data type codes from the TIFF tags by adding the TIFF tag values (which are unsigned 2-byte integers) to defined prefix values (which fill in the two most significant bytes). The following fields in the main TIFF directory are translated to standard QuickTime user data types: TIFF Field User Data Type DocumentName kUserDataTextFullName ImageDescription kUserDataTextInformation Make kUserDataTextMake Model kUserDataTextModel Software kUserDataTextSoftware DateTime kUserDataTextCreationDate Artist kUserDataTextArtist Additional Still Image Metadata Support 5 CHAPTER 1 Changes and Additions to QuickTime for Mac OS X (10.1) TIFF Field User Data Type HostComputer kUserDataTextHostComputer Copyright kUserDataTextCopyright IPTC (0x8469) kUserDataIPTC The following fields in the main TIFF directory are translated to user data using the prefix value kQTTIFFUserDataPrefix: I Orientation (0x0112) I TransferFunction (0x012D) I WhitePoint (0x013E) I PrimaryChromaticities (0x013F) I ColorMap (0x0140) I TransferRange (0x0156) I YCbCrCoefficients (0x0211) I YCbCrPositioning (0x0213) I ReferenceBlackWhite (0x0214) I ModelPixelScale (0x830E) I ModelTransformation (0x85D8) I ModelTiepoint (0x8482) I GeoKeyDirectory (0x87AF) I GeoDoubleParams (0x87B0) I GeoAsciiParams (0x87B1) I IntergraphMatrix (0x8480) In Exif TIFF files, all fields in the Exif directory are translated to user data using the prefix value kQTTIFFExifUserDataPrefix. All fields in a GPS directory are translated to user data using the prefix value kQTTIFFExifGPSUserDataPrefix. The TIFF graphics exporter also supports storing the following user data types in exported TIFF files: User Data TypeTIFF Field kUserDataTextFullName DocumentName 6 Additional Still Image Metadata Support CHAPTER 1 Changes and Additions to QuickTime for Mac OS X (10.1) kUserDataTextInformation ImageDescription kUserDataTextMake Make kUserDataTextModel Model kUserDataTextArtist Artist kUserDataTextCopyright Copyright Software, DateTime, and HostComputer are written automatically. In Exif mode, the TIFF graphics exporter will also write tags defined in the Exif version 2.1 specification by reversing the kQTTIFFExifUserDataPrefix and kQTTIFFExifGPSUserDataPrefix mappings. In Exif mode, the JPEG graphics exporter supports all the same metadata fields as the TIFF graphics exporter. Note that UserData item data is always stored big-endian. The TIFF graphics importer and graphics exporter perform whatever translation is necessary. New APIs For Creating Exif Files 1 GraphicsExportSetExifEnabled 1 Sets whether or not the graphics exporter component should create Exif files. ComponentResult GraphicsExportSetExifEnabled (GraphicsExportComponent ci, Boolean enableExif ); ci The component instance that identifies your connection to the graphics exporter component. enableExif Indicates whether to turn Exif export on or off. New APIs For Creating Exif Files 7 CHAPTER 1 Changes and Additions to QuickTime for Mac OS