27 #define AES3_HEADER_LEN 4
39 "Encoding %d channel(s) is not allowed. Only 2, 4, 6 and 8 channels are supported.\n",
94 const uint32_t *samples = (uint32_t *)frame->
data[0];
99 for (channels = 0; channels < avctx->
channels; channels += 2) {
100 o[0] =
ff_reverse[(samples[0] & 0x0000FF00) >> 8];
101 o[1] =
ff_reverse[(samples[0] & 0x00FF0000) >> 16];
102 o[2] =
ff_reverse[(samples[0] & 0xFF000000) >> 24];
103 o[3] =
ff_reverse[(samples[1] & 0x00000F00) >> 4] | vucf;
104 o[4] =
ff_reverse[(samples[1] & 0x000FF000) >> 12];
105 o[5] =
ff_reverse[(samples[1] & 0x0FF00000) >> 20];
106 o[6] =
ff_reverse[(samples[1] & 0xF0000000) >> 28];
116 const uint32_t *samples = (uint32_t *)frame->
data[0];
121 for (channels = 0; channels < avctx->
channels; channels += 2) {
122 o[0] =
ff_reverse[ (samples[0] & 0x000FF000) >> 12];
123 o[1] =
ff_reverse[ (samples[0] & 0x0FF00000) >> 20];
124 o[2] =
ff_reverse[((samples[0] & 0xF0000000) >> 28) | vucf];
125 o[3] =
ff_reverse[ (samples[1] & 0x000FF000) >> 12];
126 o[4] =
ff_reverse[ (samples[1] & 0x0FF00000) >> 20];
127 o[5] =
ff_reverse[ (samples[1] & 0xF0000000) >> 28];
137 const uint16_t *samples = (uint16_t *)frame->
data[0];
142 for (channels = 0; channels < avctx->
channels; channels += 2) {
144 o[1] =
ff_reverse[(samples[0] & 0xFF00) >> 8];
145 o[2] =
ff_reverse[(samples[1] & 0x0F) << 4] | vucf;
146 o[3] =
ff_reverse[(samples[1] & 0x0FF0) >> 4];
147 o[4] =
ff_reverse[(samples[1] & 0xF000) >> 12];
176 .supported_samplerates = (
const int[]) { 48000, 0 },