aboutsummaryrefslogtreecommitdiff
path: root/en/devices/camera/camera3_requests_methods.html
blob: 901a236fffb8b561edcb9bfa1184faad8c549918 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<html devsite>
  <head>
    <title>Request creation and submission</title>
    <meta name="project_path" value="/_project.yaml" />
    <meta name="book_path" value="/_book.yaml" />
  </head>
  <body>
  <!--
      Copyright 2017 The Android Open Source Project

      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
  -->



<h2 id="default-settings">Default requests</h2>
<p>To construct default capture requests, call
  <a href="/reference/hidl/android/hardware/camera/device/3.2/ICameraDeviceSession#constructdefaultrequestsettings">ICameraDeviceSession::constructDefaultRequestSettings()</a>.</p>
<h2 id="request-submission">Request submission</h2>
<p>To submit camera capture requests, call
  <a href="/reference/hidl/android/hardware/camera/device/3.2/ICameraDeviceSession#processcapturerequest">ICameraDeviceSession::processCaptureRequest()</a>.</p>
<h2 id="misc-methods">Miscellaneous methods</h2>
<h3 id="request-result-message-queues">Request/result message queues</h3>
<p>Camera capture result and request IPC overhead can be further optimized via
  <a href="/devices/architecture/hidl/fmq">fast message queues</a>. Call the
  <a href="/reference/hidl/android/hardware/camera/device/3.2/ICameraDeviceSession#getcapturerequestmetadataqueue">ICameraDeviceSession::getCaptureRequestMetadataQueue()</a>
  and
  <a href="/reference/hidl/android/hardware/camera/device/3.2/ICameraDeviceSession#getcaptureresultmetadataqueue">ICameraDeviceSession::getCaptureResultMetadataQueue()</a>
  methods to query the corresponding queues.</p>
<h3 id="flush">flush</h3>
<p>To flush any pending capture requests, call
  <a href="/reference/hidl/android/hardware/camera/device/3.2/ICameraDeviceSession#flush">ICameraDeviceSession::flush()</a>.</p>
  </body>
</html>