Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Relevant replacement documents include:
- http://developer.apple.com/documentation/QuickTime/Conceptual/QTKitCaptureProgrammingGuide/Introduction/Introduction.html
- http://developer.apple.com/samplecode/MYRecorder/index.html#//apple_ref/doc/uid/DTS10004263
- http://developer.apple.com/samplecode/QTCompressionOptionsWindow/index.html#//apple_ref/doc/uid/DTS10004627
- http://developer.apple.com/samplecode/StillMotion/index.html#//apple_ref/doc/uid/DTS10004355
Common Files/EndianUtilities.h
////////// |
// |
// File: EndianUtilities.h |
// |
// Contains: Utilities for managing the endian differences between operating systems. |
// |
// Written by: Tim Monroe |
// Based on existing endian functions by various QT engineers |
// |
// Copyright: © 1998 by Apple Computer, Inc., all rights reserved. |
// |
// Change History (most recent first): |
// |
// <1> 03/27/98 rtm first file |
// |
////////// |
#pragma once |
// header files |
#ifndef __ENDIANUTILITIES__ |
#define __ENDIANUTILITIES__ |
#ifndef __ENDIAN__ |
#include <Endian.h> |
#endif |
#ifndef __MOVIES__ |
#include <Movies.h> |
#endif |
// constants |
enum { |
kBtoN = false, |
kNtoB = true |
}; |
// data types |
typedef struct { |
ImageDescription id; |
ColorTable ct; |
} ImDesc; |
// function prototypes |
static void EndianUtils_FlipImageDescription (Boolean theNtoB, ImageDescriptionHandle theIDH); |
void EndianUtils_ImageDescription_NtoB (ImageDescriptionHandle theIDH); |
void EndianUtils_ImageDescription_BtoN (ImageDescriptionHandle theIDH); |
void EndianUtils_MatrixRecord_NtoB (MatrixRecord *theMatrix); |
void EndianUtils_RgnHandle_NtoB (RgnHandle theRgn); |
void EndianUtils_Float_NtoB (float *theFloat); |
#endif // ifndef __ENDIANUTILITIES__ |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14