MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / decode_bytes_and_gain

Function decode_bytes_and_gain

libavcodec/cook.c:883–897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

881 */
882
883static inline void
884decode_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.

Callers 1

decode_subpacketFunction · 0.85

Calls 3

init_get_bitsFunction · 0.85
decode_gain_infoFunction · 0.85
decode_bytesFunction · 0.70

Tested by

no test coverage detected