AVCaptureDevice has API to work with camera flash on both iOS and OS X (quite limited on OS X though) - so camera flash control can be implemented in AVFoundation plugin. Task-number: QTBUG-37996 Change-Id: Ie9aaed09a709e7d09ccc1cedded93a69fea93975 Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
75 lines
1.9 KiB
Prolog
75 lines
1.9 KiB
Prolog
# Avoid clash with a variable named `slots' in a Quartz header
|
|
CONFIG += no_keywords
|
|
|
|
TARGET = qavfcamera
|
|
QT += multimedia-private network
|
|
|
|
PLUGIN_TYPE = mediaservice
|
|
PLUGIN_CLASS_NAME = AVFServicePlugin
|
|
load(qt_plugin)
|
|
|
|
LIBS += -framework AudioToolbox \
|
|
-framework CoreAudio \
|
|
-framework QuartzCore \
|
|
-framework AVFoundation \
|
|
-framework CoreMedia
|
|
osx:LIBS += -framework AppKit \
|
|
-framework AudioUnit
|
|
ios:LIBS += -framework CoreVideo
|
|
|
|
OTHER_FILES += avfcamera.json
|
|
|
|
DEFINES += QMEDIA_AVF_CAMERA
|
|
|
|
HEADERS += \
|
|
avfcameradebug.h \
|
|
avfcameraserviceplugin.h \
|
|
avfcameracontrol.h \
|
|
avfcamerametadatacontrol.h \
|
|
avfimagecapturecontrol.h \
|
|
avfmediarecordercontrol.h \
|
|
avfcameraservice.h \
|
|
avfcamerasession.h \
|
|
avfstoragelocation.h \
|
|
avfaudioinputselectorcontrol.h \
|
|
avfcamerainfocontrol.h \
|
|
avfmediavideoprobecontrol.h \
|
|
avfcamerainfocontrol.h \
|
|
avfcamerarenderercontrol.h \
|
|
avfcameradevicecontrol.h \
|
|
avfcamerafocuscontrol.h \
|
|
avfcameraexposurecontrol.h \
|
|
avfcamerautility.h \
|
|
avfcameraviewfindersettingscontrol.h \
|
|
avfimageencodercontrol.h \
|
|
avfcameraflashcontrol.h
|
|
|
|
OBJECTIVE_SOURCES += \
|
|
avfcameraserviceplugin.mm \
|
|
avfcameracontrol.mm \
|
|
avfcamerametadatacontrol.mm \
|
|
avfimagecapturecontrol.mm \
|
|
avfmediarecordercontrol.mm \
|
|
avfcameraservice.mm \
|
|
avfcamerasession.mm \
|
|
avfstoragelocation.mm \
|
|
avfaudioinputselectorcontrol.mm \
|
|
avfcamerainfocontrol.mm \
|
|
avfmediavideoprobecontrol.mm \
|
|
avfcamerainfocontrol.mm \
|
|
avfcameradevicecontrol.mm \
|
|
avfcamerarenderercontrol.mm \
|
|
avfcamerafocuscontrol.mm \
|
|
avfcameraexposurecontrol.mm \
|
|
avfcamerautility.mm \
|
|
avfcameraviewfindersettingscontrol.mm \
|
|
avfimageencodercontrol.mm \
|
|
avfcameraflashcontrol.mm
|
|
|
|
ios {
|
|
|
|
HEADERS += avfcamerazoomcontrol.h
|
|
OBJECTIVE_SOURCES += avfcamerazoomcontrol.mm
|
|
|
|
}
|