2008-05-06 05:35:37 +02:00
|
|
|
#ifndef _CODING_H
|
|
|
|
#define _CODING_H
|
|
|
|
|
|
|
|
#include "../vgmstream.h"
|
|
|
|
|
|
|
|
void decode_adx(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do);
|
|
|
|
|
|
|
|
void decode_g721(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do);
|
|
|
|
void g72x_init_state(struct g72x_state *state_ptr);
|
|
|
|
|
|
|
|
void decode_nds_ima(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do);
|
2008-05-24 00:52:02 +02:00
|
|
|
void decode_xbox_ima(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do,int channel);
|
2008-07-02 03:41:20 +02:00
|
|
|
void decode_dvi_ima(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do);
|
2008-07-03 04:20:52 +02:00
|
|
|
void decode_ima(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do);
|
2008-05-06 05:35:37 +02:00
|
|
|
|
|
|
|
void decode_ngc_afc(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do);
|
|
|
|
|
|
|
|
void decode_ngc_dsp(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do);
|
2008-07-14 15:30:26 +02:00
|
|
|
void decode_ngc_dsp_mem(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do, uint8_t * mem);
|
2008-05-06 05:35:37 +02:00
|
|
|
|
|
|
|
int32_t dsp_nibbles_to_samples(int32_t nibbles);
|
|
|
|
|
|
|
|
void decode_ngc_dtk(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do, int channel);
|
|
|
|
|
|
|
|
void decode_pcm16LE(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do);
|
|
|
|
void decode_pcm16BE(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do);
|
|
|
|
void decode_pcm8(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do);
|
|
|
|
|
|
|
|
void decode_psx(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do);
|
|
|
|
|
2008-06-25 22:39:15 +02:00
|
|
|
void decode_invert_psx(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do);
|
|
|
|
|
2008-05-11 03:55:13 +02:00
|
|
|
void decode_xa(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do);
|
|
|
|
|
2008-06-02 19:58:08 +02:00
|
|
|
void decode_eaxa(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do,int channel);
|
|
|
|
|
2008-06-15 06:01:03 +02:00
|
|
|
#ifdef VGM_USE_VORBIS
|
|
|
|
void decode_ogg_vorbis(ogg_vorbis_codec_data * data, sample * outbuf, int32_t samples_to_do, int channels);
|
|
|
|
#endif
|
|
|
|
|
2008-07-01 05:23:44 +02:00
|
|
|
void decode_sdx2(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do);
|
|
|
|
|
2008-07-04 02:06:51 +02:00
|
|
|
void decode_ws(VGMSTREAM * vgmstream, int channel, sample * outbuf, int channelspacing, int32_t first_sample, int32_t samples_to_do);
|
2008-07-03 23:21:01 +02:00
|
|
|
|
2008-07-05 13:49:29 +02:00
|
|
|
#ifdef VGM_USE_MPEG
|
|
|
|
void decode_fake_mpeg2_l2(VGMSTREAMCHANNEL * stream,
|
2008-07-06 17:33:38 +02:00
|
|
|
mpeg_codec_data * data,
|
2008-07-05 13:49:29 +02:00
|
|
|
sample * outbuf, int32_t samples_to_do);
|
2008-07-06 17:33:38 +02:00
|
|
|
void decode_mpeg(VGMSTREAMCHANNEL * stream,
|
|
|
|
mpeg_codec_data * data,
|
|
|
|
sample * outbuf, int32_t samples_to_do, int channels);
|
2008-07-05 13:49:29 +02:00
|
|
|
#endif
|
|
|
|
|
2008-05-06 05:35:37 +02:00
|
|
|
#endif
|