| 881 | */ |
| 882 | |
| 883 | static inline void |
| 884 | decode_bytes_and_gain(COOKContext *q, COOKSubpacket *p, const uint8_t *inbuffer, |
| 885 | cook_gains *gains_ptr) |
| 886 | { |
| 887 | int offset; |
| 888 | |
| 889 | offset = decode_bytes(inbuffer, q->decoded_bytes_buffer, |
| 890 | p->bits_per_subpacket/8); |
| 891 | init_get_bits(&q->gb, q->decoded_bytes_buffer + offset, |
| 892 | p->bits_per_subpacket); |
| 893 | decode_gain_info(&q->gb, gains_ptr->now); |
| 894 | |
| 895 | /* Swap current and previous gains */ |
| 896 | FFSWAP(int *, gains_ptr->now, gains_ptr->previous); |
| 897 | } |
| 898 | |
| 899 | /** |
| 900 | * Saturate the output signal to signed 16bit integers. |
no test coverage detected