mtapi: update to reflect new API on iOS 4.x

Also add remaining property constants for device and stream.
This commit is contained in:
Ole André Vadla Ravnås 2010-11-05 15:07:38 +01:00
parent 9ac7950d2c
commit da5da05540
2 changed files with 57 additions and 16 deletions

View file

@ -45,15 +45,32 @@ gst_mt_api_obtain (GError ** error)
SYM_SPEC (FigCaptureDeviceGetFigBaseObject), SYM_SPEC (FigCaptureDeviceGetFigBaseObject),
SYM_SPEC (FigCaptureStreamGetFigBaseObject), SYM_SPEC (FigCaptureStreamGetFigBaseObject),
SYM_SPEC (kFigCaptureDeviceProperty_ImagerFormatDescription), SYM_SPEC (kFigCaptureDeviceProperty_Clock),
SYM_SPEC (kFigCaptureDeviceProperty_ImagerFrameRate), SYM_SPEC (kFigCaptureDeviceProperty_StreamArray),
SYM_SPEC (kFigCaptureDeviceProperty_ImagerMinimumFrameRate), SYM_SPEC (kFigCaptureStreamProperty_AudioLevelArray),
SYM_SPEC (kFigCaptureDeviceProperty_ImagerSupportedFormatsArray), SYM_SPEC (kFigCaptureStreamProperty_AudioLevelMeteringEnable),
SYM_SPEC (kFigCaptureStreamProperty_AudioLevelUnits),
SYM_SPEC (kFigCaptureStreamProperty_AutoAENow),
SYM_SPEC (kFigCaptureStreamProperty_AutoFocusNow),
SYM_SPEC (kFigCaptureStreamProperty_BufferAllocator),
SYM_SPEC (kFigCaptureStreamProperty_BufferQueue), SYM_SPEC (kFigCaptureStreamProperty_BufferQueue),
SYM_SPEC (kFigImagerSupportedFormat_FormatDescription), SYM_SPEC (kFigCaptureStreamProperty_FixedFrameRate),
SYM_SPEC (kFigImagerSupportedFormat_IsBinned), SYM_SPEC (kFigCaptureStreamProperty_FormatDescription),
SYM_SPEC (kFigImagerSupportedFormat_MaxFrameRate), SYM_SPEC (kFigCaptureStreamProperty_FormatIndex),
SYM_SPEC (kFigImagerSupportedFormat_ScaleFactor), SYM_SPEC (kFigCaptureStreamProperty_FrameDuration),
SYM_SPEC (kFigCaptureStreamProperty_MaximumFrameRate),
SYM_SPEC (kFigCaptureStreamProperty_MinimumFrameRate),
SYM_SPEC (kFigCaptureStreamProperty_NeedSampleBufferDurations),
SYM_SPEC (kFigCaptureStreamProperty_StillImageBufferQueue),
SYM_SPEC (kFigCaptureStreamProperty_StillImageCaptureNow),
SYM_SPEC (kFigCaptureStreamProperty_SupportedFormatsArray),
SYM_SPEC (kFigSupportedFormat_AudioMaxSampleRate),
SYM_SPEC (kFigSupportedFormat_AudioMinSampleRate),
SYM_SPEC (kFigSupportedFormat_FormatDescription),
SYM_SPEC (kFigSupportedFormat_VideoIsBinned),
SYM_SPEC (kFigSupportedFormat_VideoMaxFrameRate),
SYM_SPEC (kFigSupportedFormat_VideoMinFrameRate),
SYM_SPEC (kFigSupportedFormat_VideoScaleFactor),
{NULL, 0}, {NULL, 0},
}; };

View file

@ -29,8 +29,15 @@ typedef struct _GstMTApiClass GstMTApiClass;
typedef struct _FigCaptureDevice * FigCaptureDeviceRef; typedef struct _FigCaptureDevice * FigCaptureDeviceRef;
typedef struct _FigCaptureStream * FigCaptureStreamRef; typedef struct _FigCaptureStream * FigCaptureStreamRef;
typedef struct _FigCaptureDeviceIface FigCaptureDeviceIface;
typedef struct _FigCaptureStreamIface FigCaptureStreamIface; typedef struct _FigCaptureStreamIface FigCaptureStreamIface;
struct _FigCaptureDeviceIface
{
gsize unk;
OSStatus (* Func1) (FigCaptureDeviceRef stream);
};
struct _FigCaptureStreamIface struct _FigCaptureStreamIface
{ {
gsize unk; gsize unk;
@ -47,15 +54,32 @@ struct _GstMTApi
FigBaseObjectRef (* FigCaptureStreamGetFigBaseObject) FigBaseObjectRef (* FigCaptureStreamGetFigBaseObject)
(FigCaptureStreamRef stream); (FigCaptureStreamRef stream);
CFStringRef * kFigCaptureDeviceProperty_ImagerFormatDescription; CFStringRef * kFigCaptureDeviceProperty_Clock;
CFStringRef * kFigCaptureDeviceProperty_ImagerFrameRate; CFStringRef * kFigCaptureDeviceProperty_StreamArray;
CFStringRef * kFigCaptureDeviceProperty_ImagerMinimumFrameRate; CFStringRef * kFigCaptureStreamProperty_AudioLevelArray;
CFStringRef * kFigCaptureDeviceProperty_ImagerSupportedFormatsArray; CFStringRef * kFigCaptureStreamProperty_AudioLevelMeteringEnable;
CFStringRef * kFigCaptureStreamProperty_AudioLevelUnits;
CFStringRef * kFigCaptureStreamProperty_AutoAENow;
CFStringRef * kFigCaptureStreamProperty_AutoFocusNow;
CFStringRef * kFigCaptureStreamProperty_BufferAllocator;
CFStringRef * kFigCaptureStreamProperty_BufferQueue; CFStringRef * kFigCaptureStreamProperty_BufferQueue;
CFStringRef * kFigImagerSupportedFormat_FormatDescription; CFStringRef * kFigCaptureStreamProperty_FixedFrameRate;
CFStringRef * kFigImagerSupportedFormat_IsBinned; CFStringRef * kFigCaptureStreamProperty_FormatDescription;
CFStringRef * kFigImagerSupportedFormat_MaxFrameRate; CFStringRef * kFigCaptureStreamProperty_FormatIndex;
CFStringRef * kFigImagerSupportedFormat_ScaleFactor; CFStringRef * kFigCaptureStreamProperty_FrameDuration;
CFStringRef * kFigCaptureStreamProperty_MaximumFrameRate;
CFStringRef * kFigCaptureStreamProperty_MinimumFrameRate;
CFStringRef * kFigCaptureStreamProperty_NeedSampleBufferDurations;
CFStringRef * kFigCaptureStreamProperty_StillImageBufferQueue;
CFStringRef * kFigCaptureStreamProperty_StillImageCaptureNow;
CFStringRef * kFigCaptureStreamProperty_SupportedFormatsArray;
CFStringRef * kFigSupportedFormat_AudioMaxSampleRate;
CFStringRef * kFigSupportedFormat_AudioMinSampleRate;
CFStringRef * kFigSupportedFormat_FormatDescription;
CFStringRef * kFigSupportedFormat_VideoIsBinned;
CFStringRef * kFigSupportedFormat_VideoMaxFrameRate;
CFStringRef * kFigSupportedFormat_VideoMinFrameRate;
CFStringRef * kFigSupportedFormat_VideoScaleFactor;
}; };
struct _GstMTApiClass struct _GstMTApiClass