Lines Matching defs:le_header
123 SpeexHeader *le_header;
124 le_header = (SpeexHeader*)speex_alloc(sizeof(SpeexHeader));
126 SPEEX_COPY(le_header, header, 1);
129 ENDIAN_SWITCH(le_header->speex_version_id);
130 ENDIAN_SWITCH(le_header->header_size);
131 ENDIAN_SWITCH(le_header->rate);
132 ENDIAN_SWITCH(le_header->mode);
133 ENDIAN_SWITCH(le_header->mode_bitstream_version);
134 ENDIAN_SWITCH(le_header->nb_channels);
135 ENDIAN_SWITCH(le_header->bitrate);
136 ENDIAN_SWITCH(le_header->frame_size);
137 ENDIAN_SWITCH(le_header->vbr);
138 ENDIAN_SWITCH(le_header->frames_per_packet);
139 ENDIAN_SWITCH(le_header->extra_headers);
142 return (char *)le_header;
148 SpeexHeader *le_header;
164 le_header = (SpeexHeader*)speex_alloc(sizeof(SpeexHeader));
166 SPEEX_COPY(le_header, (SpeexHeader*)packet, 1);
169 ENDIAN_SWITCH(le_header->speex_version_id);
170 ENDIAN_SWITCH(le_header->header_size);
171 ENDIAN_SWITCH(le_header->rate);
172 ENDIAN_SWITCH(le_header->mode);
173 ENDIAN_SWITCH(le_header->mode_bitstream_version);
174 ENDIAN_SWITCH(le_header->nb_channels);
175 ENDIAN_SWITCH(le_header->bitrate);
176 ENDIAN_SWITCH(le_header->frame_size);
177 ENDIAN_SWITCH(le_header->vbr);
178 ENDIAN_SWITCH(le_header->frames_per_packet);
179 ENDIAN_SWITCH(le_header->extra_headers);
181 if (le_header->mode >= SPEEX_NB_MODES || le_header->mode < 0)
184 speex_free (le_header);
188 if (le_header->nb_channels>2)
189 le_header->nb_channels = 2;
190 if (le_header->nb_channels<1)
191 le_header->nb_channels = 1;
193 return le_header;