45 return le ? bytestream2_get_le16(gb) : bytestream2_get_be16(gb);
51 return le ? bytestream2_get_le32(gb) : bytestream2_get_be32(gb);
57 av_alias64 i = { .u64 = le ? bytestream2_get_le64(gb) : bytestream2_get_be64(gb)};
65 case TIFF_BYTE:
return bytestream2_get_byte(gb);
68 default:
return UINT_MAX;
72 static const char *
auto_sep(
int count,
const char *sep,
int i,
int columns)
79 return columns < count ?
"\n" :
"";
90 if (count >= INT_MAX /
sizeof(int64_t) || count <= 0)
97 for (i = 0; i <
count; i++) {
123 if (count >= INT_MAX /
sizeof(
int32_t) || count <= 0)
130 for (i = 0; i <
count; i++) {
154 if (count >= INT_MAX /
sizeof(int64_t) || count <= 0)
161 for (i = 0; i <
count; i++) {
185 if (count >= INT_MAX /
sizeof(int16_t) || count <= 0)
192 for (i = 0; i <
count; i++) {
217 if (count >= INT_MAX /
sizeof(int8_t) || count < 0)
224 for (i = 0; i <
count; i++) {
225 int v = is_signed ? (int8_t)bytestream2_get_byte(gb) : bytestream2_get_byte(gb);
267 *le = bytestream2_get_le16u(gb);
270 }
else if (*le ==
AV_RB16(
"MM")) {
287 unsigned *
count,
int *next)