Lines Matching refs:count
73 static const char *auto_sep(int count, const char *sep, int i, int columns)
80 return columns < count ? "\n" : "";
99 int ff_tadd_rational_metadata(int count, const char *name, const char *sep,
106 if (count >= INT_MAX / sizeof(int64_t) || count <= 0)
108 if (bytestream2_get_bytes_left(gb) < count * sizeof(int64_t))
111 av_bprint_init(&bp, 10 * count, AV_BPRINT_SIZE_UNLIMITED);
113 for (i = 0; i < count; i++) {
116 av_bprintf(&bp, "%s%7"PRId32":%-7"PRId32, auto_sep(count, sep, i, 4), nom, denom);
123 int ff_tadd_long_metadata(int count, const char *name, const char *sep,
129 if (count >= INT_MAX / sizeof(int32_t) || count <= 0)
131 if (bytestream2_get_bytes_left(gb) < count * sizeof(int32_t))
134 av_bprint_init(&bp, 10 * count, AV_BPRINT_SIZE_UNLIMITED);
136 for (i = 0; i < count; i++) {
137 av_bprintf(&bp, "%s%7i", auto_sep(count, sep, i, 8), ff_tget_long(gb, le));
144 int ff_tadd_doubles_metadata(int count, const char *name, const char *sep,
150 if (count >= INT_MAX / sizeof(int64_t) || count <= 0)
152 if (bytestream2_get_bytes_left(gb) < count * sizeof(int64_t))
155 av_bprint_init(&bp, 10 * count, 100 * count);
157 for (i = 0; i < count; i++) {
158 av_bprintf(&bp, "%s%.15g", auto_sep(count, sep, i, 4), ff_tget_double(gb, le));
165 int ff_tadd_shorts_metadata(int count, const char *name, const char *sep,
171 if (count >= INT_MAX / sizeof(int16_t) || count <= 0)
173 if (bytestream2_get_bytes_left(gb) < count * sizeof(int16_t))
176 av_bprint_init(&bp, 10 * count, AV_BPRINT_SIZE_UNLIMITED);
178 for (i = 0; i < count; i++) {
180 av_bprintf(&bp, "%s%5i", auto_sep(count, sep, i, 8), v);
187 int ff_tadd_bytes_metadata(int count, const char *name, const char *sep,
193 if (count >= INT_MAX / sizeof(int8_t) || count < 0)
195 if (bytestream2_get_bytes_left(gb) < count * sizeof(int8_t))
198 av_bprint_init(&bp, 10 * count, AV_BPRINT_SIZE_UNLIMITED);
200 for (i = 0; i < count; i++) {
202 av_bprintf(&bp, "%s%3i", auto_sep(count, sep, i, 16), v);
208 int ff_tadd_string_metadata(int count, const char *name,
213 if (bytestream2_get_bytes_left(gb) < count || count < 0)
216 value = av_malloc(count + 1);
220 bytestream2_get_bufferu(gb, value, count);
221 value[count] = 0;
254 unsigned *count, int *next)
261 *count = ff_tget_long (gb, le);
274 // if count values do not fit into the offset value
275 if (ifd_tag || (*count > 4 || !(type_sizes[*type] * (*count) <= 4 || *type == TIFF_STRING))) {