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 },
74 -35, -35, -2919, -2195, -1765, -1458, -1219, -1023,
75 -858, -714, -587, -473, -370, -276, -190, -110,
76 2919, 2195, 1765, 1458, 1219, 1023, 858, 714,
77 587, 473, 370, 276, 190, 110, 35, -35
99 out_buf = (int16_t *)frame->
data[0];
103 for (j = 0; j < avpkt->
size; j++) {
104 int ilow, ihigh, rlow, rhigh, dhigh;
125 *out_buf++ = av_clip_int16(xout1 >> 11);
126 *out_buf++ = av_clip_int16(xout2 >> 11);
148 .priv_class = &g722_decoder_class,