• Home
  • Raw
  • Download

Lines Matching refs:count

64 int Metadata::addUInt8(uint32_t tag, int count, const uint8_t *data) {  in addUInt8()  argument
65 if (!validate(tag, TYPE_BYTE, count)) return -EINVAL; in addUInt8()
66 return add(tag, count, data); in addUInt8()
73 int Metadata::addInt32(uint32_t tag, int count, const int32_t *data) { in addInt32() argument
74 if (!validate(tag, TYPE_INT32, count)) return -EINVAL; in addInt32()
75 return add(tag, count, data); in addInt32()
78 int Metadata::addFloat(uint32_t tag, int count, const float *data) { in addFloat() argument
79 if (!validate(tag, TYPE_FLOAT, count)) return -EINVAL; in addFloat()
80 return add(tag, count, data); in addFloat()
83 int Metadata::addInt64(uint32_t tag, int count, const int64_t *data) { in addInt64() argument
84 if (!validate(tag, TYPE_INT64, count)) return -EINVAL; in addInt64()
85 return add(tag, count, data); in addInt64()
88 int Metadata::addDouble(uint32_t tag, int count, const double *data) { in addDouble() argument
89 if (!validate(tag, TYPE_DOUBLE, count)) return -EINVAL; in addDouble()
90 return add(tag, count, data); in addDouble()
93 int Metadata::addRational(uint32_t tag, int count, in addRational() argument
95 if (!validate(tag, TYPE_RATIONAL, count)) return -EINVAL; in addRational()
96 return add(tag, count, data); in addRational()
99 bool Metadata::validate(uint32_t tag, int tag_type, int count) { in validate() argument
113 if (count < 1) { in validate()
114 ALOGE("%s: Invalid metadata entry count: %d", __func__, count); in validate()
120 int Metadata::add(uint32_t tag, int count, const void *tag_data) { in add() argument
122 if (!add_camera_metadata_entry(mData, tag, tag_data, count)) { in add()
129 size_t size = calculate_camera_metadata_entry_data_size(tag_type, count); in add()
148 res = add_camera_metadata_entry(tmp, tag, tag_data, count); in add()
151 __func__, tag, tag_data, count, tmp); in add()