Lines Matching refs:gbc

54     GetByteContext gbc;
197 ctx->cursor_hot_x = bytestream2_get_le16(&ctx->gbc);
198 ctx->cursor_hot_y = bytestream2_get_le16(&ctx->gbc);
199 ctx->cursor_w = bytestream2_get_le16(&ctx->gbc);
200 ctx->cursor_h = bytestream2_get_le16(&ctx->gbc);
203 cursor_fmt = bytestream2_get_le32(&ctx->gbc);
238 uint32_t bits = bytestream2_get_be32(&ctx->gbc);
251 uint32_t bits = bytestream2_get_be32(&ctx->gbc);
283 bytestream2_skip(&ctx->gbc,
288 int val = bytestream2_get_be32(&ctx->gbc);
299 int val = bytestream2_get_be32(&ctx->gbc);
399 if (bytestream2_get_bytes_left(&ctx->gbc) < 4 ||
400 bytestream2_get_le32(&ctx->gbc) != MKTAG('T','D','S','B') ||
401 bytestream2_get_bytes_left(&ctx->gbc) < TDSB_HEADER_SIZE - 4) {
406 tile_size = bytestream2_get_le32(&ctx->gbc);
407 if (bytestream2_get_bytes_left(&ctx->gbc) < tile_size)
410 tile_mode = bytestream2_get_le32(&ctx->gbc);
411 bytestream2_skip(&ctx->gbc, 4); // unknown
412 x = bytestream2_get_le32(&ctx->gbc);
413 y = bytestream2_get_le32(&ctx->gbc);
414 x2 = bytestream2_get_le32(&ctx->gbc);
415 y2 = bytestream2_get_le32(&ctx->gbc);
432 bytestream2_get_buffer(&ctx->gbc, ctx->tilebuffer, tile_size);
462 if (bytestream2_get_le32(&ctx->gbc) != BITMAPINFOHEADER_SIZE)
466 w = bytestream2_get_le32(&ctx->gbc);
467 h = -bytestream2_get_le32(&ctx->gbc);
469 if (bytestream2_get_le16(&ctx->gbc) != 1 || // 1 plane
470 bytestream2_get_le16(&ctx->gbc) != 24) // BGR24
473 bytestream2_skip(&ctx->gbc, 24); // unused fields
502 int action = bytestream2_get_le32(&ctx->gbc);
504 bytestream2_skip(&ctx->gbc, 4); // some kind of ID or version maybe?
508 ctx->cursor_x = bytestream2_get_le32(&ctx->gbc);
509 ctx->cursor_y = bytestream2_get_le32(&ctx->gbc);
553 bytestream2_init(&ctx->gbc, ctx->deflatebuffer, dlen);
556 if (bytestream2_get_bytes_left(&ctx->gbc) < 4 + 4) {
562 tag_header = bytestream2_get_le32(&ctx->gbc);
566 if (bytestream2_get_bytes_left(&ctx->gbc) < TDSF_HEADER_SIZE) {
571 number_tiles = bytestream2_get_le32(&ctx->gbc);
573 bytestream2_skip(&ctx->gbc, 4); // internal timestamp maybe?
574 keyframe = bytestream2_get_le32(&ctx->gbc) == 0x30;
581 if (bytestream2_get_bytes_left(&ctx->gbc) >= 4 + 4)
582 tag_header = bytestream2_get_le32(&ctx->gbc);
588 int tag_size = bytestream2_get_le32(&ctx->gbc);
590 if (bytestream2_get_bytes_left(&ctx->gbc) < tag_size) {