# For x-compile MacOSX 10.3 and 10.4
diff --git a/mythtv/libs/libmythtv/libmythtv.pro b/mythtv/libs/libmythtv/libmythtv.pro
index 9635faf..3d26e0a 100644
|
|
|
QMAKE_LFLAGS_SHLIB += $${FREETYPE_LIBS}
|
| 87 | 87 | |
| 88 | 88 | macx { |
| 89 | 89 | # Mac OS X Frameworks |
| 90 | | FWKS = AGL ApplicationServices Carbon Cocoa CoreFoundation CoreVideo OpenGL QuickTime IOKit |
| | 90 | FWKS = AGL ApplicationServices Carbon Cocoa CoreFoundation OpenGL QuickTime IOKit |
| | 91 | using_quartz_video { |
| | 92 | FWKS += QuartzCore |
| | 93 | } else { |
| | 94 | FWKS += CoreVideo |
| | 95 | } |
| 91 | 96 | |
| 92 | 97 | using_firewire:using_backend: FWKS += IOKit |
| 93 | 98 | |
diff --git a/mythtv/libs/libmythtv/privatedecoder_vda.cpp b/mythtv/libs/libmythtv/privatedecoder_vda.cpp
index be26f03..0414042 100644
|
|
|
|
| 9 | 9 | #include "myth_imgconvert.h" |
| 10 | 10 | #include "util-osx-cocoa.h" |
| 11 | 11 | #include "privatedecoder_vda.h" |
| | 12 | #ifdef USING_QUARTZ_VIDEO |
| | 13 | #undef CodecType |
| | 14 | #import "QuickTime/ImageCompression.h" |
| | 15 | #endif |
| 12 | 16 | |
| 13 | 17 | extern "C" { |
| 14 | 18 | #include "libavformat/avformat.h" |
| … |
… |
bool PrivateDecoderVDA::Init(const QString &decoder,
|
| 191 | 195 | CFDictionaryCreateMutable(kCFAllocatorDefault, 1, |
| 192 | 196 | &kCFTypeDictionaryKeyCallBacks, |
| 193 | 197 | &kCFTypeDictionaryValueCallBacks); |
| | 198 | #ifdef USING_QUARTZ_VIDEO |
| | 199 | OSType cvPixelFormatType = k422YpCbCr8PixelFormat; |
| | 200 | #else |
| 194 | 201 | OSType cvPixelFormatType = kCVPixelFormatType_422YpCbCr8; |
| | 202 | #endif |
| 195 | 203 | CFNumberRef pixelFormat = CFNumberCreate(kCFAllocatorDefault, |
| 196 | 204 | kCFNumberSInt32Type, |
| 197 | 205 | &cvPixelFormatType); |
diff --git a/mythtv/libs/libmythtv/privatedecoder_vda.h b/mythtv/libs/libmythtv/privatedecoder_vda.h
index cbb500b..eb79cc4 100644
|
|
|
|
| 6 | 6 | #include <QList> |
| 7 | 7 | |
| 8 | 8 | #import "CoreFoundation/CoreFoundation.h" |
| | 9 | #ifdef USING_QUARTZ_VIDEO |
| | 10 | #import "QuartzCore/CoreVideo.h" |
| | 11 | #else |
| 9 | 12 | #import "CoreVideo/CoreVideo.h" |
| | 13 | #endif |
| 10 | 14 | #include "privatedecoder_vda_defs.h" |
| 11 | 15 | #include "privatedecoder.h" |
| 12 | 16 | |
diff --git a/mythtv/libs/libmythtv/videoout_quartz.cpp b/mythtv/libs/libmythtv/videoout_quartz.cpp
index 3485b26..710361f 100644
|
|
|
using namespace std;
|
| 51 | 51 | |
| 52 | 52 | #include "util-osx.h" |
| 53 | 53 | |
| | 54 | #ifdef USING_QUARTZ_VIDEO |
| | 55 | #import <QuartzCore/CoreVideo.h> |
| | 56 | #else |
| 54 | 57 | #import <CoreGraphics/CGBase.h> |
| 55 | 58 | #import <CoreGraphics/CGDisplayConfiguration.h> |
| 56 | 59 | #import <CoreGraphics/CGImage.h> |
| | 60 | #endif |
| 57 | 61 | #import <Carbon/Carbon.h> |
| 58 | 62 | #import <QuickTime/QuickTime.h> |
| 59 | 63 | |
diff --git a/mythtv/libs/libmythtv/bswap.h b/mythtv/libs/libmythtv/bswap.h
index 6683c46..4856de9 100644
|
|
|
|
| 2 | 2 | #define MYTHTV_BSWAP_H |
| 3 | 3 | |
| 4 | 4 | #include <stdint.h> /* uint32_t */ |
| 5 | | #include <byteswap.h> /* bswap_16|32|64 */ |
| | 5 | |
| | 6 | #ifdef __linux__ |
| | 7 | # include <byteswap.h> /* bswap_16|32|64 */ |
| | 8 | #elif defined __APPLE__ |
| | 9 | # include <libkern/OSByteOrder.h> |
| | 10 | # define bswap_16(x) OSSwapInt16(x) |
| | 11 | # define bswap_32(x) OSSwapInt32(x) |
| | 12 | # define bswap_64(x) OSSwapInt64(x) |
| | 13 | #else |
| | 14 | # error Byte swapping functions not defined for this platform |
| | 15 | #endif |
| 6 | 16 | |
| 7 | 17 | static __inline__ double bswap_dbl(double x) |
| 8 | 18 | { |