Home | History | Annotate | Download | only in 3.3
      1 /*
      2  * Copyright (C) 2017 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package android.hardware.camera.device@3.3;
     18 
     19 import android.hardware.camera.device@3.2::DataspaceFlags;
     20 import android.hardware.camera.device@3.2::HalStream;
     21 
     22 /**
     23  * HalStream:
     24  *
     25  * The camera HAL's response to each requested stream configuration.
     26  *
     27  * This version extends the @3.2 HalStream with the overrideDataspace
     28  * field
     29  */
     30 struct HalStream {
     31     /**
     32      * The definition of HalStream from the prior version.
     33      */
     34     @3.2::HalStream v3_2;
     35 
     36     /**
     37      * An override dataSpace for the buffers in this stream.
     38      *
     39      * The HAL must respect the requested dataSpace in Stream unless it is
     40      * IMPLEMENTATION_DEFINED, in which case the override dataSpace here must be
     41      * used by the client instead, for this stream. This allows cross-platform
     42      * HALs to use a specific dataSpace since IMPLEMENTATION_DEFINED formats often
     43      * require device-specific information for correct selection. In all other cases, the
     44      * overrideFormat must match the requested format.
     45      */
     46     DataspaceFlags overrideDataSpace;
     47 };
     48 
     49 /**
     50  * HalStreamConfiguration:
     51  *
     52  * Identical to @3.2::HalStreamConfiguration, except that it contains @3.3::HalStream entries.
     53  *
     54  */
     55 struct HalStreamConfiguration {
     56     vec<HalStream> streams;
     57 };
     58