1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

possibly fixed problem with compiling library with MinGW 4.4.1

This commit is contained in:
Vadim Pisarevsky
2011-06-22 08:24:27 +00:00
parent 3fa4c8f091
commit c4bca84bc9
2 changed files with 35 additions and 4 deletions
+32
View File
@@ -0,0 +1,32 @@
#ifndef _BDATYPES_H
#define _BDATYPES_H
#if __GNUC__ >= 3
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern "C" {
#endif
/*--- DirectShow Reference - DirectShow Enumerated Types */
typedef enum {
MEDIA_TRANSPORT_PACKET,
MEDIA_ELEMENTARY_STREAM,
MEDIA_MPEG2_PSI,
MEDIA_TRANSPORT_PAYLOAD
} MEDIA_SAMPLE_CONTENT;
/*--- DirectShow Reference - DirectShow Structures */
typedef struct {
DWORD dwOffset;
DWORD dwPacketLength;
DWORD dwStride;
} MPEG2_TRANSPORT_STRIDE;
typedef struct {
ULONG ulPID;
MEDIA_SAMPLE_CONTENT MediaSampleContent ;
} PID_MAP;
#ifdef __cplusplus
}
#endif
#endif
+3 -4
View File
@@ -87,6 +87,8 @@ Thanks to:
*/
/////////////////////////////////////////////////////////
#include "precomp.hpp"
#if _MSC_VER >= 1400
#pragma warning(disable: 4995)
#endif
@@ -100,7 +102,6 @@ Thanks to:
#include <vector>
//Include Directshow stuff here so we don't worry about needing all the h files.
#ifdef _MSC_VER
#include "DShow.h"
@@ -111,7 +112,7 @@ Thanks to:
#else
#include "dshow/dshow.h"
#include "dshow/dvdmedia.h"
#include "bdatypes.h"
#include "dshow/bdatypes.h"
interface IEnumPIDMap : public IUnknown
{
@@ -155,8 +156,6 @@ interface IMPEG2PIDMap : public IUnknown
#define _WIN32_WINNT 0x400
#endif
#include <windows.h>
/*
MEDIASUBTYPE_I420 : TGUID ='{30323449-0000-0010-8000-00AA00389B71}';