From 7e3a67c0bfea7ad7f9482751bd866b2e1e9eca8a Mon Sep 17 00:00:00 2001 From: Zachary Pavlov Date: Sun, 14 May 2006 22:14:13 +0000 Subject: [PATCH] parser stubs are in for ffmpeg --- dtool/src/parser-inc/Sources.pp | 5 +++- dtool/src/parser-inc/avcodec.h | 8 ++++++ dtool/src/parser-inc/avformat.h | 6 +++++ dtool/src/parser-inc/avio.h | 4 +++ dtool/src/parser-inc/avutil.h | 4 +++ dtool/src/parser-inc/common.h | 9 +++++++ dtool/src/parser-inc/integer.h | 29 +++++++++++++++++++++ dtool/src/parser-inc/intfloat_readwrite.h | 6 +++++ dtool/src/parser-inc/mathematics.h | 7 +++++ dtool/src/parser-inc/rational.h | 31 +++++++++++++++++++++++ dtool/src/parser-inc/rtp.h | 22 ++++++++++++++++ dtool/src/parser-inc/rtsp.h | 22 ++++++++++++++++ dtool/src/parser-inc/rtspcodes.h | 11 ++++++++ 13 files changed, 163 insertions(+), 1 deletion(-) create mode 100644 dtool/src/parser-inc/avcodec.h create mode 100644 dtool/src/parser-inc/avformat.h create mode 100644 dtool/src/parser-inc/avio.h create mode 100644 dtool/src/parser-inc/avutil.h create mode 100644 dtool/src/parser-inc/common.h create mode 100644 dtool/src/parser-inc/integer.h create mode 100644 dtool/src/parser-inc/intfloat_readwrite.h create mode 100644 dtool/src/parser-inc/mathematics.h create mode 100644 dtool/src/parser-inc/rational.h create mode 100644 dtool/src/parser-inc/rtp.h create mode 100644 dtool/src/parser-inc/rtsp.h create mode 100644 dtool/src/parser-inc/rtspcodes.h diff --git a/dtool/src/parser-inc/Sources.pp b/dtool/src/parser-inc/Sources.pp index a4764e18e7..76d9533d93 100644 --- a/dtool/src/parser-inc/Sources.pp +++ b/dtool/src/parser-inc/Sources.pp @@ -7,4 +7,7 @@ nurbs.hh stddef.h krb5.h MainHelix.h dllpath.h hxcom.h \ hxcomm.h hxcore.h hxengin.h hxerror.h hxfiles.h hxtbuf.h \ hxtbuff.h hxwin.h Python.h Cg/cg.h Cg/cgGL.h \ - cv.h cvtypes.h cxcore.h cxerror.h cxtypes.h highgui.h + cv.h cvtypes.h cxcore.h cxerror.h cxtypes.h highgui.h \ + avcodec.h avformat.h avio.h avutil.h common.h integer.h \ + intfloat_readwrite.h mathematics.h rational.h rtp.h \ + rtsp.h rtspcodes.h diff --git a/dtool/src/parser-inc/avcodec.h b/dtool/src/parser-inc/avcodec.h new file mode 100644 index 0000000000..5333c8fc2e --- /dev/null +++ b/dtool/src/parser-inc/avcodec.h @@ -0,0 +1,8 @@ +#ifndef AVCODEC_H +#define AVCODEC_H + +typedef struct AVCodec AVCodec; +typedef struct AVCodecContext AVCodecContext; +typedef struct AVFrame AVFrame; + +#endif /* AVCODEC_H */ diff --git a/dtool/src/parser-inc/avformat.h b/dtool/src/parser-inc/avformat.h new file mode 100644 index 0000000000..83452626dd --- /dev/null +++ b/dtool/src/parser-inc/avformat.h @@ -0,0 +1,6 @@ +#ifndef AVFORMAT_H +#define AVFORMAT_H +typedef struct AVFormat AVFormat; +typedef struct AVFormatContext AVFormatContext; +#endif /* AVFORMAT_H */ + diff --git a/dtool/src/parser-inc/avio.h b/dtool/src/parser-inc/avio.h new file mode 100644 index 0000000000..aa1fe581c7 --- /dev/null +++ b/dtool/src/parser-inc/avio.h @@ -0,0 +1,4 @@ +#ifndef AVIO_H +#define AVIO_H +#endif + diff --git a/dtool/src/parser-inc/avutil.h b/dtool/src/parser-inc/avutil.h new file mode 100644 index 0000000000..1d12b9e8d8 --- /dev/null +++ b/dtool/src/parser-inc/avutil.h @@ -0,0 +1,4 @@ +#ifndef AVUTIL_H +#define AVUTIL_H + +#endif /* AVUTIL_H */ diff --git a/dtool/src/parser-inc/common.h b/dtool/src/parser-inc/common.h new file mode 100644 index 0000000000..b51ddf6923 --- /dev/null +++ b/dtool/src/parser-inc/common.h @@ -0,0 +1,9 @@ +/** + * @file common.h + * common internal api header. + */ + +#ifndef COMMON_H +#define COMMON_H + +#endif /* COMMON_H */ diff --git a/dtool/src/parser-inc/integer.h b/dtool/src/parser-inc/integer.h new file mode 100644 index 0000000000..a77f75b297 --- /dev/null +++ b/dtool/src/parser-inc/integer.h @@ -0,0 +1,29 @@ +/* + * arbitrary precision integers + * Copyright (c) 2004 Michael Niedermayer + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * @file integer.h + * arbitrary precision integers + * @author Michael Niedermayer + */ + +#ifndef INTEGER_H +#define INTEGER_H +#endif // INTEGER_H diff --git a/dtool/src/parser-inc/intfloat_readwrite.h b/dtool/src/parser-inc/intfloat_readwrite.h new file mode 100644 index 0000000000..c169836571 --- /dev/null +++ b/dtool/src/parser-inc/intfloat_readwrite.h @@ -0,0 +1,6 @@ +#ifndef INTFLOAT_READWRITE_H +#define INTFLOAT_READWRITE_H + +#include "common.h" + +#endif /* INTFLOAT_READWRITE_H */ diff --git a/dtool/src/parser-inc/mathematics.h b/dtool/src/parser-inc/mathematics.h new file mode 100644 index 0000000000..7be59e75ee --- /dev/null +++ b/dtool/src/parser-inc/mathematics.h @@ -0,0 +1,7 @@ +#ifndef MATHEMATICS_H +#define MATHEMATICS_H + +#include "rational.h" + + +#endif /* MATHEMATICS_H */ diff --git a/dtool/src/parser-inc/rational.h b/dtool/src/parser-inc/rational.h new file mode 100644 index 0000000000..475c4a5a90 --- /dev/null +++ b/dtool/src/parser-inc/rational.h @@ -0,0 +1,31 @@ +/* + * Rational numbers + * Copyright (c) 2003 Michael Niedermayer + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * @file rational.h + * Rational numbers. + * @author Michael Niedermayer + */ + +#ifndef RATIONAL_H +#define RATIONAL_H + + +#endif // RATIONAL_H diff --git a/dtool/src/parser-inc/rtp.h b/dtool/src/parser-inc/rtp.h new file mode 100644 index 0000000000..b8065cf131 --- /dev/null +++ b/dtool/src/parser-inc/rtp.h @@ -0,0 +1,22 @@ +/* + * RTP definitions + * Copyright (c) 2002 Fabrice Bellard. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +#ifndef RTP_H +#define RTP_H + +#endif /* RTP_H */ diff --git a/dtool/src/parser-inc/rtsp.h b/dtool/src/parser-inc/rtsp.h new file mode 100644 index 0000000000..435f78be11 --- /dev/null +++ b/dtool/src/parser-inc/rtsp.h @@ -0,0 +1,22 @@ +/* + * RTSP definitions + * Copyright (c) 2002 Fabrice Bellard. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +#ifndef RTSP_H +#define RTSP_H + +#endif /* RTSP_H */ diff --git a/dtool/src/parser-inc/rtspcodes.h b/dtool/src/parser-inc/rtspcodes.h new file mode 100644 index 0000000000..b967cb932a --- /dev/null +++ b/dtool/src/parser-inc/rtspcodes.h @@ -0,0 +1,11 @@ +DEF(200, RTSP_STATUS_OK, "OK") +DEF(405, RTSP_STATUS_METHOD, "Method Not Allowed") +DEF(453, RTSP_STATUS_BANDWIDTH, "Not Enough Bandwidth") +DEF(454, RTSP_STATUS_SESSION, "Session Not Found") +DEF(455, RTSP_STATUS_STATE, "Method Not Valid in This State") +DEF(459, RTSP_STATUS_AGGREGATE, "Aggregate operation not allowed") +DEF(460, RTSP_STATUS_ONLY_AGGREGATE, "Only aggregate operation allowed") +DEF(461, RTSP_STATUS_TRANSPORT, "Unsupported transport") +DEF(500, RTSP_STATUS_INTERNAL, "Internal Server Error") +DEF(503, RTSP_STATUS_SERVICE, "Service Unavailable") +DEF(505, RTSP_STATUS_VERSION, "RTSP Version not supported")