• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<ExternalCamera>
2    <Provider>
3        <ignore> <!-- Internal video devices to be ignored by external camera HAL -->
4        </ignore>
5    </Provider>
6    <!-- See ExternalCameraUtils.cpp for default values of Device configurations below -->
7    <Device>
8        <!-- Max JPEG buffer size in bytes-->
9        <MaxJpegBufferSize bytes="3145728"/> <!-- 3MB (~= 1080p YUV420) -->
10        <!-- Size of v4l2 buffer queue when streaming >= 30fps -->
11        <!-- Larger value: more request can be cached pipeline (less janky)  -->
12        <!-- Smaller value: use less memory -->
13        <NumVideoBuffers count="4"/>
14        <!-- Size of v4l2 buffer queue when streaming < 30fps -->
15        <NumStillBuffers count="2"/>
16
17        <!-- List of maximum fps for various output sizes -->
18        <!-- Any image size smaller than the size listed in Limit row will report
19            fps (as minimum frame duration) up to the fpsBound value. -->
20        <FpsList>
21            <!-- width/height must be increasing, fpsBound must be decreasing-->
22            <Limit width="640" height="480" fpsBound="30.0"/>
23            <Limit width="1280" height="720" fpsBound="15.0"/>
24            <Limit width="1920" height="1080" fpsBound="10.0"/>
25            <!-- image size larger than the last entry will not be supported-->
26        </FpsList>
27    </Device>
28</ExternalCamera>
29