view loader/dmo/DMO_AudioDecoder.h @ 34982:df138f843ebc

Prefer converting 9/10 bit formats to 16 bit, this is a simple left-shift. Should make -vo gl behave nicer/run faster for cases where 9/10 bit is not supported. Only some old r200 class cards running on little-endian could still have issues with 16-bit YUV and I neither have an idea nor hardware to improve this.
author reimar
date Sun, 12 Aug 2012 13:24:54 +0000
parents 837cd9762b4e
children
line wrap: on
line source

#ifndef MPLAYER_DMO_AUDIODECODER_H
#define MPLAYER_DMO_AUDIODECODER_H

#include "loader/com.h"
#include "loader/wine/mmreg.h"

typedef struct DMO_AudioDecoder DMO_AudioDecoder;

//DMO_AudioDecoder * DMO_AudioDecoder_Create(const CodecInfo * info, const WAVEFORMATEX* wf);
DMO_AudioDecoder * DMO_AudioDecoder_Open(char* dllname, GUID* guid, WAVEFORMATEX* wf,int out_channels);

void DMO_AudioDecoder_Destroy(DMO_AudioDecoder *this);

int DMO_AudioDecoder_Convert(DMO_AudioDecoder *this, const void* in_data, unsigned int in_size,
			     void* out_data, unsigned int out_size,
			     unsigned int* size_read, unsigned int* size_written);

int DMO_AudioDecoder_GetSrcSize(DMO_AudioDecoder *this, int dest_size);

#endif /* MPLAYER_DMO_AUDIODECODER_H */