本文整理汇总了C++中Metadata::add1UInt8方法的典型用法代码示例。如果您正苦于以下问题:C++ Metadata::add1UInt8方法的具体用法?C++ Metadata::add1UInt8怎么用?C++ Metadata::add1UInt8使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Metadata
的用法示例。
在下文中一共展示了Metadata::add1UInt8方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: initDevice
int UsbCamera::initDevice() {
int res;
Metadata base;
// Create standard settings templates from copies of base metadata
res = base.add1UInt8(ANDROID_CONTROL_MODE, ANDROID_CONTROL_MODE_OFF);
if (res)
return res;
// Use base settings to create all other templates and set them. This is just some samples,
// More initialization may be needed.
res = initPreviewTemplate(base);
if (res)
return res;
res = initStillTemplate(base);
if (res)
return res;
res = initRecordTemplate(base);
if (res)
return res;
res = initSnapshotTemplate(base);
if (res)
return res;
res = initZslTemplate(base);
if (res)
return res;
res = initManualTemplate(base);
if (res)
return res;
return 0;
}
示例2: initManualTemplate
int UsbCamera::initManualTemplate(Metadata m) {
int res = m.add1UInt8(ANDROID_CONTROL_CAPTURE_INTENT,
ANDROID_CONTROL_CAPTURE_INTENT_MANUAL);
// Setup manual controls
if (res)
return res;
// TODO: set reprocessing parameters for zsl input queue
return setTemplate(CAMERA3_TEMPLATE_MANUAL, m.get());
}
示例3: initZslTemplate
int UsbCamera::initZslTemplate(Metadata m) {
int res = m.add1UInt8(ANDROID_CONTROL_CAPTURE_INTENT,
ANDROID_CONTROL_CAPTURE_INTENT_ZERO_SHUTTER_LAG);
// Setup default zero shutter lag controls
if (res)
return res;
// TODO: set reprocessing parameters for zsl input queue
return setTemplate(CAMERA3_TEMPLATE_ZERO_SHUTTER_LAG, m.get());
}
示例4: initSnapshotTemplate
int UsbCamera::initSnapshotTemplate(Metadata m) {
int res = m.add1UInt8(ANDROID_CONTROL_CAPTURE_INTENT,
ANDROID_CONTROL_CAPTURE_INTENT_VIDEO_SNAPSHOT);
// Setup default video snapshot controls
if (res)
return res;
// TODO: set slow auto-focus, auto-whitebalance, auto-exposure, flash off
return setTemplate(CAMERA3_TEMPLATE_VIDEO_SNAPSHOT, m.get());
}
示例5: initStillTemplate
int UsbCamera::initStillTemplate(Metadata m) {
int res = m.add1UInt8(ANDROID_CONTROL_CAPTURE_INTENT,
ANDROID_CONTROL_CAPTURE_INTENT_STILL_CAPTURE);
// Setup default still capture controls
if (res)
return res;
// TODO: set fast auto-focus, auto-whitebalance, auto-exposure, auto flash
return setTemplate(CAMERA3_TEMPLATE_STILL_CAPTURE, m.get());
}
示例6: initPreviewTemplate
int UsbCamera::initPreviewTemplate(Metadata m) {
// Setup default preview controls
int res = m.add1UInt8(ANDROID_CONTROL_CAPTURE_INTENT,
ANDROID_CONTROL_CAPTURE_INTENT_PREVIEW);
if (res)
return res;
// TODO: set fast auto-focus, auto-whitebalance, auto-exposure, auto flash
return setTemplate(CAMERA3_TEMPLATE_PREVIEW, m.get());
}