Lines Matching refs:gbytes
73 static int exif_decode_tag(void *logctx, GetByteContext *gbytes, int le, in exif_decode_tag() argument
84 ff_tread_tag(gbytes, le, &id, &type, &count, &cur_pos); in exif_decode_tag()
86 if (!bytestream2_tell(gbytes)) { in exif_decode_tag()
87 bytestream2_seek(gbytes, cur_pos, SEEK_SET); in exif_decode_tag()
95 ret = ff_exif_decode_ifd(logctx, gbytes, le, depth + 1, metadata); in exif_decode_tag()
106 gbytes, le, metadata); in exif_decode_tag()
109 bytestream2_seek(gbytes, cur_pos, SEEK_SET); in exif_decode_tag()
115 int ff_exif_decode_ifd(void *logctx, GetByteContext *gbytes, in ff_exif_decode_ifd() argument
121 entries = ff_tget_short(gbytes, le); in ff_exif_decode_ifd()
123 if (bytestream2_get_bytes_left(gbytes) < entries * 12) { in ff_exif_decode_ifd()
128 if ((ret = exif_decode_tag(logctx, gbytes, le, depth, metadata)) < 0) { in ff_exif_decode_ifd()
134 return ff_tget_long(gbytes, le); in ff_exif_decode_ifd()