[vlmc-devel] IProfile
Yikai Lu
git at videolan.org
Mon Jul 4 15:33:44 CEST 2016
vlmc | branch: medialibrary | Yikai Lu <luyikei.qmltu at gmail.com> | Sun Jun 12 00:13:26 2016 +0900| [597626ead4925b2022159e504db80ffed5f2946c] | committer: Yikai Lu
IProfile
> https://code.videolan.org/videolan/vlmc/commit/597626ead4925b2022159e504db80ffed5f2946c
---
src/Backend/IProfile.h | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
src/CMakeLists.txt | 1 +
2 files changed, 50 insertions(+)
diff --git a/src/Backend/IProfile.h b/src/Backend/IProfile.h
new file mode 100644
index 0000000..59771be
--- /dev/null
+++ b/src/Backend/IProfile.h
@@ -0,0 +1,49 @@
+/*****************************************************************************
+ * IProfile.h: Defines an interface of common rendering settings
+ *****************************************************************************
+ * Copyright (C) 2008-2016 VideoLAN
+ *
+ * Authors: Yikei Lu <luyikei.qmltu at gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
+
+#ifndef IPROFILE_H
+#define IPROFILE_H
+
+namespace Backend
+{
+ class IProfile
+ {
+ public:
+ virtual ~IProfile() = default;
+
+ virtual int frameRateNum() const = 0;
+ virtual int frameRateDen() const = 0;
+ virtual double fps() const = 0;
+ virtual int width() const = 0;
+ virtual int height() const = 0;
+ virtual int aspectRatioNum() const = 0;
+ virtual int aspectRatioDen() const = 0;
+ virtual double aspectRatio() const = 0;
+
+ virtual void setWidth( int width ) = 0;
+ virtual void setHeight( int height ) = 0;
+ virtual void setAspectRatio( int numerator, int denominator ) = 0;
+ virtual void setFrameRate( int numerator, int denominator ) = 0;
+ };
+}
+
+#endif // IPROFILE_H
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 33795b3..1af93af 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -61,6 +61,7 @@ SET(VLMC_SRCS
Backend/IService.h
Backend/IConsumer.h
Backend/IProducer.h
+ Backend/IProfile.h
Backend/VLC/VLCBackend.cpp
Backend/VLC/VLCSourceRenderer.cpp
Backend/VLC/VLCVmemRenderer.cpp
More information about the Vlmc-devel
mailing list