Home | History | Annotate | Download | only in Camera2Raw
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3  Copyright 2015 The Android Open Source Project
      4 
      5  Licensed under the Apache License, Version 2.0 (the "License");
      6  you may not use this file except in compliance with the License.
      7  You may obtain a copy of the License at
      8 
      9      http://www.apache.org/licenses/LICENSE-2.0
     10 
     11  Unless required by applicable law or agreed to in writing, software
     12  distributed under the License is distributed on an "AS IS" BASIS,
     13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  See the License for the specific language governing permissions and
     15  limitations under the License.
     16 -->
     17 
     18 <sample>
     19     <name>Camera2Raw</name>
     20     <group>Media</group>
     21     <package>com.example.android.camera2raw</package>
     22 
     23     <minSdk>21</minSdk>
     24 
     25     <strings>
     26         <intro>
     27             <![CDATA[
     28             This sample demonstrates how to use the Camera2 API to capture RAW
     29             camera buffers and save them as DNG files.
     30             ]]>
     31         </intro>
     32     </strings>
     33 
     34     <template src="base"/>
     35 
     36         <metadata>
     37         <status>PUBLISHED</status>
     38         <categories>Media, Camera, Camera2</categories>
     39         <technologies>Android</technologies>
     40         <languages>Java</languages>
     41         <solutions>Mobile</solutions>
     42         <level>INTERMEDIATE</level>
     43         <icon>screenshots/icon-web.png</icon>
     44         <screenshots>
     45             <img>screenshots/main.png</img>
     46         </screenshots>
     47         <api_refs>
     48             <android>android.hardware.camera2.DngCreator</android>
     49         </api_refs>
     50 
     51         <description>
     52 <![CDATA[
     53 This sample demonstrates using the Camera2 API to capture a JPEG and RAW sensor frame.
     54 Check the source code to see a typical example of how to display the camera preview;
     55 run auto-focus, auto-exposure metering, and auto-white-balance; capture a JPEG and
     56 RAW image for the same sensor frame; and save these into MediaStore for use in other
     57 applications.
     58 ]]>
     59         </description>
     60 
     61         <intro>
     62 <![CDATA[
     63 The [Camera2 API][1] allows users to capture RAW images, i.e. unprocessed pixel data
     64 directly from the camera sensor that has not yet been converted into a format and
     65 colorspace typically used for displaying and storing images viewed by humans.  The
     66 [DngCreator][2] class is provided as part of the Camera2 API as a utility for saving
     67 RAW images as DNG files.
     68 
     69 This sample displays a live camera preview in a TextureView, and saves JPEG and DNG
     70 file for each image captured.
     71 
     72 [1]: https://developer.android.com/reference/android/hardware/camera2/package-summary.html
     73 [2]: https://developer.android.com/reference/android/hardware/camera2/DngCreator.html
     74 ]]>
     75         </intro>
     76     </metadata>
     77 
     78 </sample>
     79