2008-02-23 14:50:55 +00:00
|
|
|
#ifndef MPLAYER_DMO_H
|
|
|
|
#define MPLAYER_DMO_H
|
2002-11-26 22:54:11 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Definition of important DMO interfaces.
|
|
|
|
* Created using freely-available DirectX 8.1 SDK
|
|
|
|
* ( http://msdn.microsoft.com )
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2010-01-04 20:32:23 +00:00
|
|
|
#include "loader/dshow/iunk.h"
|
|
|
|
#include "loader/dshow/guids.h"
|
2002-11-26 22:54:11 +00:00
|
|
|
|
|
|
|
typedef AM_MEDIA_TYPE DMO_MEDIA_TYPE;
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-01-20 17:16:39 +00:00
|
|
|
enum DMO_INPUT_DATA_BUFFER_FLAGS
|
2002-11-26 22:54:11 +00:00
|
|
|
{
|
|
|
|
DMO_INPUT_DATA_BUFFERF_SYNCPOINT = 0x1,
|
|
|
|
DMO_INPUT_DATA_BUFFERF_TIME = 0x2,
|
|
|
|
DMO_INPUT_DATA_BUFFERF_TIMELENGTH = 0x4
|
|
|
|
};
|
|
|
|
|
2008-01-20 17:16:39 +00:00
|
|
|
enum DMO_OUTPUT_DATA_BUFFER_FLAGS
|
2002-11-26 22:54:11 +00:00
|
|
|
{
|
|
|
|
DMO_OUTPUT_DATA_BUFFERF_SYNCPOINT = 0x1,
|
|
|
|
DMO_OUTPUT_DATA_BUFFERF_TIME = 0x2,
|
|
|
|
DMO_OUTPUT_DATA_BUFFERF_TIMELENGTH = 0x4,
|
|
|
|
DMO_OUTPUT_DATA_BUFFERF_INCOMPLETE = 0x1000000
|
|
|
|
};
|
|
|
|
|
2008-01-20 17:16:39 +00:00
|
|
|
enum DMO_INPUT_STATUS_FLAGS
|
2002-11-26 22:54:11 +00:00
|
|
|
{
|
|
|
|
DMO_INPUT_STATUSF_ACCEPT_DATA = 0x1
|
|
|
|
};
|
|
|
|
|
2008-01-20 17:16:39 +00:00
|
|
|
enum DMO_INPUT_STREAM_INFO_FLAGS
|
2002-11-26 22:54:11 +00:00
|
|
|
{
|
|
|
|
DMO_INPUT_STREAMF_WHOLE_SAMPLES = 0x1,
|
|
|
|
DMO_INPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER = 0x2,
|
|
|
|
DMO_INPUT_STREAMF_FIXED_SAMPLE_SIZE = 0x4,
|
|
|
|
DMO_INPUT_STREAMF_HOLDS_BUFFERS = 0x8
|
|
|
|
};
|
|
|
|
|
2008-01-20 17:16:39 +00:00
|
|
|
enum DMO_OUTPUT_STREAM_INFO_FLAGS
|
2002-11-26 22:54:11 +00:00
|
|
|
{
|
|
|
|
DMO_OUTPUT_STREAMF_WHOLE_SAMPLES = 0x1,
|
|
|
|
DMO_OUTPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER = 0x2,
|
|
|
|
DMO_OUTPUT_STREAMF_FIXED_SAMPLE_SIZE = 0x4,
|
|
|
|
DMO_OUTPUT_STREAMF_DISCARDABLE = 0x8,
|
|
|
|
DMO_OUTPUT_STREAMF_OPTIONAL = 0x10
|
|
|
|
};
|
|
|
|
|
2008-01-20 17:16:39 +00:00
|
|
|
enum DMO_SET_TYPE_FLAGS
|
2002-11-26 22:54:11 +00:00
|
|
|
{
|
|
|
|
DMO_SET_TYPEF_TEST_ONLY = 0x1,
|
|
|
|
DMO_SET_TYPEF_CLEAR = 0x2
|
|
|
|
};
|
|
|
|
|
2008-01-20 17:16:39 +00:00
|
|
|
enum DMO_PROCESS_OUTPUT_FLAGS
|
2002-11-26 22:54:11 +00:00
|
|
|
{
|
|
|
|
DMO_PROCESS_OUTPUT_DISCARD_WHEN_NO_BUFFER = 0x1
|
|
|
|
};
|
|
|
|
|
2008-01-20 17:16:39 +00:00
|
|
|
enum DMO_VIDEO_OUTPUT_STREAM_FLAGS
|
2002-11-26 22:54:11 +00:00
|
|
|
{
|
|
|
|
DMO_VOSF_NEEDS_PREVIOUS_SAMPLE = 0x1
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* MediaErr.h */
|
|
|
|
#define DMO_E_INVALIDSTREAMINDEX 0x80040201
|
|
|
|
#define DMO_E_INVALIDTYPE 0x80040202
|
|
|
|
#define DMO_E_TYPE_NOT_SET 0x80040203
|
|
|
|
#define DMO_E_NOTACCEPTING 0x80040204
|
|
|
|
#define DMO_E_TYPE_NOT_ACCEPTED 0x80040205
|
|
|
|
#define DMO_E_NO_MORE_ITEMS 0x80040206
|
|
|
|
|
2008-02-23 14:50:55 +00:00
|
|
|
#endif /* MPLAYER_DMO_H */
|