44 #define OFFSET(x) offsetof(G722Context, x)
45 #define AD AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_DECODING_PARAM
47 {
"bits_per_codeword",
"Bits per G722 codeword",
OFFSET(bits_per_codeword),
AV_OPT_TYPE_INT, { .i64 = 8 }, 6, 8,
AD },
76 -35, -35, -2919, -2195, -1765, -1458, -1219, -1023,
77 -858, -714, -587, -473, -370, -276, -190, -110,
78 2919, 2195, 1765, 1458, 1219, 1023, 858, 714,
79 587, 473, 370, 276, 190, 110, 35, -35
101 out_buf = (int16_t *)frame->
data[0];
105 for (j = 0; j < avpkt->
size; j++) {
106 int ilow, ihigh, rlow, rhigh, dhigh;
113 rlow = av_clip_intp2((c->
band[0].
scale_factor * quantizer_table[ilow] >> 10)
126 *out_buf++ = av_clip_int16(xout[0] >> 11);
127 *out_buf++ = av_clip_int16(xout[1] >> 11);
149 .priv_class = &g722_decoder_class,