static void add_entry(TiffEncoderContext * s,

                      enum TiffTags tag, enum TiffTypes type, int count,

                      const void *ptr_val)

{

    uint8_t *entries_ptr = s->entries + 12 * s->num_entries;



    av_assert0(s->num_entries < TIFF_MAX_ENTRY);



    bytestream_put_le16(&entries_ptr, tag);

    bytestream_put_le16(&entries_ptr, type);

    bytestream_put_le32(&entries_ptr, count);



    if (type_sizes[type] * count <= 4) {

        tnput(&entries_ptr, count, ptr_val, type, 0);

    } else {

        bytestream_put_le32(&entries_ptr, *s->buf - s->buf_start);

        check_size(s, count * type_sizes2[type]);

        tnput(s->buf, count, ptr_val, type, 0);

    }



    s->num_entries++;

}

static void add_entry(TiffEncoderContext * s,

                      enum TiffTags tag, enum TiffTypes type, int count,

                      const void *ptr_val)

{

    uint8_t *entries_ptr = s->entries + 12 * s->num_entries;



    av_assert0(s->num_entries < TIFF_MAX_ENTRY);



    bytestream_put_le16(&entries_ptr, tag);

    bytestream_put_le16(&entries_ptr, type);

    bytestream_put_le32(&entries_ptr, count);



    if (type_sizes[type] * count <= 4) {

        tnput(&entries_ptr, count, ptr_val, type, 0);

    } else {

        bytestream_put_le32(&entries_ptr, *s->buf - s->buf_start);

        check_size(s, count * type_sizes2[type]);

        tnput(s->buf, count, ptr_val, type, 0);

    }



    s->num_entries++;

}

    if (type_sizes[type] * count <= 4) {         check_size(s, count * type_sizes2[type]);
static void FUNC_0(TiffEncoderContext * VAR_0,

                      enum TiffTags VAR_1, enum TiffTypes VAR_2, int VAR_3,

                      const void *VAR_4)

{

    uint8_t *entries_ptr = VAR_0->entries + 12 * VAR_0->num_entries;



    av_assert0(VAR_0->num_entries < TIFF_MAX_ENTRY);



    bytestream_put_le16(&entries_ptr, VAR_1);

    bytestream_put_le16(&entries_ptr, VAR_2);

    bytestream_put_le32(&entries_ptr, VAR_3);



    if (type_sizes[VAR_2] * VAR_3 <= 4) {

        tnput(&entries_ptr, VAR_3, VAR_4, VAR_2, 0);

    } else {

        bytestream_put_le32(&entries_ptr, *VAR_0->buf - VAR_0->buf_start);

        check_size(VAR_0, VAR_3 * type_sizes2[VAR_2]);

        tnput(VAR_0->buf, VAR_3, VAR_4, VAR_2, 0);

    }



    VAR_0->num_entries++;

}

static void FUNC_0(TiffEncoderContext * VAR_0,
enum TiffTags VAR_1, enum TiffTypes VAR_2, int VAR_3,
const void *VAR_4)
{ uint8_t *entries_ptr = VAR_0->entries + 12 * VAR_0->num_entries; av_assert0(VAR_0->num_entries < TIFF_MAX_ENTRY); bytestream_put_le16(&entries_ptr, VAR_1); bytestream_put_le16(&entries_ptr, VAR_2); bytestream_put_le32(&entries_ptr, VAR_3); if (type_sizes[VAR_2] * VAR_3 <= 4) { tnput(&entries_ptr, VAR_3, VAR_4, VAR_2, 0); } else { bytestream_put_le32(&entries_ptr, *VAR_0->buf - VAR_0->buf_start); check_size(VAR_0, VAR_3 * type_sizes2[VAR_2]); tnput(VAR_0->buf, VAR_3, VAR_4, VAR_2, 0); } VAR_0->num_entries++; }