Home | History | Annotate | Download | only in include
      1 /*
      2  * Copyright 2014 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 #ifndef SYSTEM_MEDIA_PRIVATE_INCLUDE_CAMERA_METADATA_HIDDEN_H
     18 #define SYSTEM_MEDIA_PRIVATE_INCLUDE_CAMERA_METADATA_HIDDEN_H
     19 
     20 #include <system/camera_vendor_tags.h>
     21 
     22 /**
     23  * Error codes returned by vendor tags ops operations. These are intended
     24  * to be used by all framework code that uses the return values from the
     25  * vendor operations object.
     26  */
     27 #define VENDOR_SECTION_NAME_ERR   NULL
     28 #define VENDOR_TAG_NAME_ERR       NULL
     29 #define VENDOR_TAG_COUNT_ERR      (-1)
     30 #define VENDOR_TAG_TYPE_ERR       (-1)
     31 
     32 #ifdef __cplusplus
     33 extern "C" {
     34 #endif
     35 /** **These are private functions for use only by the camera framework.** **/
     36 
     37 /**
     38  * Set the global vendor tag operations object used to define vendor tag
     39  * structure when parsing camera metadata with functions defined in
     40  * system/media/camera/include/camera_metadata.h.
     41  */
     42 ANDROID_API
     43 int set_camera_metadata_vendor_ops(const vendor_tag_ops_t *query_ops);
     44 
     45 #ifdef __cplusplus
     46 } /* extern "C" */
     47 #endif
     48 
     49 #endif /* SYSTEM_MEDIA_PRIVATE_INCLUDE_CAMERA_METADATA_HIDDEN_H */
     50