Lines Matching defs:count
240 static char *doubles2str(double *dp, int count, const char *sep)
247 if (count >= (INT_MAX - 1)/component_len)
249 ap = av_malloc(component_len * count + 1);
254 for (i = 0; i < count; i++) {
266 static int add_metadata(int count, int type,
270 case TIFF_DOUBLE: return ff_tadd_doubles_metadata(count, name, sep, &s->gb, s->le, &frame->metadata);
271 case TIFF_SHORT : return ff_tadd_shorts_metadata(count, name, sep, &s->gb, s->le, 0, &frame->metadata);
272 case TIFF_STRING: return ff_tadd_string_metadata(count, name, &s->gb, s->le, &frame->metadata);
1222 unsigned tag, type, count, off, value = 0, value2 = 1; // value2 is a denominator so init. to 1
1228 ret = ff_tread_tag(&s->gb, s->le, &tag, &type, &count, &start);
1240 if (count == 1) {
1257 if (count <= 4) {
1280 if (count > 5 || count <= 0) {
1283 value, count);
1286 s->bppcount = count;
1287 if (count == 1)
1295 if (bytestream2_get_bytes_left(&s->gb) < type_sizes[type] * count)
1297 for (i = 0; i < count; i++)
1306 if (count != 1) {
1365 if (count == 1) {
1375 s->strips = count;
1381 if (count == 1) {
1393 s->strips = count;
1423 if (count == 1)
1425 else if (count > 1)
1429 if (count < 1 || count > FF_ARRAY_ELEMS(s->dng_lut))
1431 for (int i = 0; i < count; i++)
1435 if (count > 1) { /* Use the first value in the pattern (assume they're all the same) */
1456 if (count != 2 || (ff_tget(&s->gb, type, s->le) != 2 &&
1508 if (count / 3 > 256 ||
1509 bytestream2_get_bytes_left(&s->gb) < count / 3 * off * 3)
1513 bytestream2_skip(&pal_gb[1], count / 3 * off);
1514 bytestream2_skip(&pal_gb[2], count / 3 * off * 2);
1522 for (i = 0; i < count / 3; i++) {
1536 if (count != 2) {
1537 av_log(s->avctx, AV_LOG_ERROR, "subsample count invalid\n");
1540 for (i = 0; i < count; i++) {
1563 #define ADD_METADATA(count, name, sep)\
1564 if ((ret = add_metadata(count, type, name, sep, s, frame)) < 0) {\
1569 ADD_METADATA(count, "ModelPixelScaleTag", NULL);
1572 ADD_METADATA(count, "ModelTransformationTag", NULL);
1575 ADD_METADATA(count, "ModelTiepointTag", NULL);
1585 if (s->geotag_count > count / 4 - 1) {
1586 s->geotag_count = count / 4 - 1;
1603 s->geotags[i].count = ff_tget_short(&s->gb, s->le);
1612 if (count >= INT_MAX / sizeof(int64_t))
1614 if (bytestream2_get_bytes_left(&s->gb) < count * sizeof(int64_t))
1616 dp = av_malloc_array(count, sizeof(double));
1621 for (i = 0; i < count; i++)
1625 if (s->geotags[i].count == 0
1626 || s->geotags[i].offset + s->geotags[i].count > count) {
1631 char *ap = doubles2str(&dp[s->geotags[i].offset], s->geotags[i].count, ", ");
1647 if (s->geotags[i].count == 0
1648 || s->geotags[i].offset + s->geotags[i].count > count) {
1654 if (bytestream2_get_bytes_left(&s->gb) < s->geotags[i].count)
1658 ap = av_malloc(s->geotags[i].count);
1663 bytestream2_get_bufferu(&s->gb, ap, s->geotags[i].count);
1664 ap[s->geotags[i].count - 1] = '\0'; //replace the "|" delimiter with a 0 byte
1674 if (bytestream2_get_bytes_left(&gb_temp) < count)
1677 sd = av_frame_new_side_data(frame, AV_FRAME_DATA_ICC_PROFILE, count);
1681 bytestream2_get_bufferu(&gb_temp, sd->data, count);
1684 ADD_METADATA(count, "artist", NULL);
1687 ADD_METADATA(count, "copyright", NULL);
1690 ADD_METADATA(count, "date", NULL);
1693 ADD_METADATA(count, "document_name", NULL);
1696 ADD_METADATA(count, "computer", NULL);
1699 ADD_METADATA(count, "description", NULL);
1702 ADD_METADATA(count, "make", NULL);
1705 ADD_METADATA(count, "model", NULL);
1708 ADD_METADATA(count, "page_name", NULL);
1711 ADD_METADATA(count, "page_number", " / ");
1713 bytestream2_seek(&s->gb, -count * sizeof(uint16_t), SEEK_CUR);
1717 bytestream2_seek(&s->gb, count * sizeof(uint16_t) - sizeof(uint16_t), SEEK_CUR);
1720 ADD_METADATA(count, "software", NULL);
1723 if (count == 4) {
1755 s->bpp, count);