[vlmc-devel] Hide VLC behind a set of interfaces.

Hugo Beauzée-Luyssen git at videolan.org
Mon Feb 24 20:09:38 CET 2014


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Feb 20 21:52:53 2014 +0200| [8e3da8b3b76a4337165fa70be832640c21996e62] | committer: Hugo Beauzée-Luyssen

Hide VLC behind a set of interfaces.

This introduces 3 interfaces:
- IBackend: Provides the very basic functionnalies associated to a media
  backend (log hook & creating sources)
- ISource: Provides functionnalities associated to a media source. Basic
  metadata handling & spawning renderers to use this source
- IMemorySource: Describe a source which is described programmaticaly
  and fed from memory
- ISourceRenderer: Allows one to render and configure render options.

On paper, this is feature complete with regards to the old
implementation.
In practice, it is not, and pretty much all media related
fonctionnalities are broken, and will require further refactoring to
become functionnal again.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=8e3da8b3b76a4337165fa70be832640c21996e62
---

 src/Backend/CMakeLists.txt                         |   14 +
 src/Backend/IBackend.h                             |   47 +++
 src/Backend/ISource.h                              |   63 +++
 src/Backend/ISourceRenderer.h                      |  110 ++++++
 src/Backend/VLC/EventWaiter.cpp                    |   84 ++++
 src/Backend/VLC/EventWaiter.h                      |   78 ++++
 src/Backend/VLC/LibVLCpp/VLCInstance.cpp           |   48 +++
 src/{ => Backend/VLC}/LibVLCpp/VLCInstance.h       |   16 +-
 src/{ => Backend/VLC}/LibVLCpp/VLCMedia.cpp        |   13 +-
 src/{ => Backend/VLC}/LibVLCpp/VLCMedia.h          |    5 +-
 src/Backend/VLC/LibVLCpp/VLCMediaPlayer.cpp        |  257 ++++++++++++
 src/{ => Backend/VLC}/LibVLCpp/VLCMediaPlayer.h    |   91 +----
 src/{ => Backend/VLC}/LibVLCpp/VLCpp.hpp           |    0
 .../VLCInstance.cpp => Backend/VLC/VLCBackend.cpp} |   49 ++-
 src/Backend/VLC/VLCBackend.h                       |   64 +++
 src/Backend/VLC/VLCMemorySource.cpp                |  114 ++++++
 src/Backend/VLC/VLCMemorySource.h                  |   78 ++++
 src/Backend/VLC/VLCSource.cpp                      |  142 +++++++
 src/Backend/VLC/VLCSource.h                        |   74 ++++
 src/Backend/VLC/VLCSourceRenderer.cpp              |  405 +++++++++++++++++++
 src/Backend/VLC/VLCSourceRenderer.h                |  130 ++++++
 src/Backend/VLC/VLCVmemRenderer.cpp                |   79 ++++
 src/Backend/VLC/VLCVmemRenderer.h                  |   64 +++
 src/CMakeLists.txt                                 |   21 +-
 src/Gui/MainWindow.cpp                             |   15 +-
 src/Gui/MainWindow.h                               |    6 +
 src/Gui/preview/PreviewRuler.cpp                   |    6 +-
 src/Gui/preview/PreviewWidget.cpp                  |   46 ++-
 src/Gui/preview/PreviewWidget.h                    |    5 +
 src/LibVLCpp/VLCMediaPlayer.cpp                    |  416 --------------------
 src/Media/Media.cpp                                |   37 +-
 src/Media/Media.h                                  |   13 +-
 src/Media/Transcoder.cpp                           |   32 +-
 src/Media/Transcoder.h                             |   14 +-
 src/Metadata/MetaDataManager.cpp                   |   96 ++---
 src/Metadata/MetaDataManager.h                     |   13 +-
 src/Metadata/MetaDataWorker.cpp                    |  274 -------------
 src/Metadata/MetaDataWorker.h                      |   90 -----
 src/Renderer/ClipRenderer.cpp                      |   65 ++-
 src/Renderer/ClipRenderer.h                        |    8 +-
 src/Renderer/GenericRenderer.cpp                   |   18 +-
 src/Renderer/GenericRenderer.h                     |   54 +--
 src/Renderer/WorkflowFileRenderer.cpp              |   60 +--
 src/Renderer/WorkflowFileRenderer.h                |   19 +-
 src/Renderer/WorkflowRenderer.cpp                  |  119 ++----
 src/Renderer/WorkflowRenderer.h                    |   43 +-
 src/Tools/RendererEventWatcher.cpp                 |   82 ++++
 src/Tools/RendererEventWatcher.h                   |   58 +++
 src/Workflow/AudioClipWorkflow.cpp                 |   54 +--
 src/Workflow/AudioClipWorkflow.h                   |   19 +-
 src/Workflow/ClipWorkflow.cpp                      |   75 ++--
 src/Workflow/ClipWorkflow.h                        |   47 +--
 src/Workflow/ImageClipWorkflow.cpp                 |   68 +---
 src/Workflow/ImageClipWorkflow.h                   |   16 +-
 src/Workflow/VideoClipWorkflow.cpp                 |   58 +--
 src/Workflow/VideoClipWorkflow.h                   |   15 +-
 56 files changed, 2447 insertions(+), 1540 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commitdiff;h=8e3da8b3b76a4337165fa70be832640c21996e62


More information about the Vlmc-devel mailing list