| 616 | } |
| 617 | |
| 618 | static inline int binkb_get_value(BinkContext *c, int bundle_num) |
| 619 | { |
| 620 | int16_t ret; |
| 621 | const int bits = binkb_bundle_sizes[bundle_num]; |
| 622 | |
| 623 | if (bits <= 8) { |
| 624 | int val = *c->bundle[bundle_num].cur_ptr++; |
| 625 | return binkb_bundle_signed[bundle_num] ? (int8_t)val : val; |
| 626 | } |
| 627 | ret = *(int16_t*)c->bundle[bundle_num].cur_ptr; |
| 628 | c->bundle[bundle_num].cur_ptr += 2; |
| 629 | return ret; |
| 630 | } |
| 631 | |
| 632 | /** |
| 633 | * Read 8x8 block of DCT coefficients. |
no outgoing calls
no test coverage detected