Lines Matching refs:le_header

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