Lines Matching defs:Metadata
21 #define LOG_TAG "Metadata"
28 #include "Metadata.h"
32 Metadata::Metadata()
44 Metadata::~Metadata()
60 Metadata::Metadata(uint8_t mode, uint8_t intent)
89 int Metadata::addUInt8(uint32_t tag, int count, uint8_t *data)
95 int Metadata::addInt32(uint32_t tag, int count, int32_t *data)
101 int Metadata::addFloat(uint32_t tag, int count, float *data)
107 int Metadata::addInt64(uint32_t tag, int count, int64_t *data)
113 int Metadata::addDouble(uint32_t tag, int count, double *data)
119 int Metadata::addRational(uint32_t tag, int count,
126 bool Metadata::validate(uint32_t tag, int tag_type, int count)
129 ALOGE("%s: Invalid metadata entry tag: %d", __func__, tag);
133 ALOGE("%s: Invalid metadata entry tag type: %d", __func__, tag_type);
142 ALOGE("%s: Invalid metadata entry count: %d", __func__, count);
148 int Metadata::add(uint32_t tag, int count, void *tag_data)
153 // Allocate array to hold new metadata
168 camera_metadata_t* Metadata::generate()
171 // Reuse if old generated metadata still valid
173 ALOGV("%s: Reusing generated metadata at %p", __func__, mGenerated);
176 // Destroy old metadata
178 ALOGV("%s: Freeing generated metadata at %p", __func__, mGenerated);
182 // Generate new metadata structure
183 ALOGV("%s: Generating new camera metadata structure, Entries:%d Data:%d",
187 ALOGE("%s: Failed to allocate metadata (%d entries %d data)",
191 // Walk list of entries adding each one to newly allocated metadata
196 ALOGE("%s: Failed to add camera metadata: %d", __func__, res);
208 Metadata::Entry::Entry(uint32_t tag, void *data, int count)
217 void Metadata::push(Entry *e)
227 Metadata::Entry::~Entry()
235 void Metadata::Entry::insertAfter(Entry *e)