vtprotocolplugins/VideoSource/inc/capivideosource.inl
changeset 0 ed9695c8bcbe
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Video Source subsystem.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 /*
       
    20  * CVSController
       
    21 */
       
    22 
       
    23 // -----------------------------------------------------------------------------
       
    24 // CVSController::Observer
       
    25 // -----------------------------------------------------------------------------
       
    26 //
       
    27 inline MVSControllerObserver& CVSController::Observer() const
       
    28     {
       
    29     return *iObserver;
       
    30     }
       
    31 
       
    32 /*
       
    33  * CVSDataProvider
       
    34 */
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // CVSDataProvider::Observer
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 inline MVSDataProviderObserver& CVSDataProvider::Observer() const
       
    41     {
       
    42     return *iObserver;
       
    43     }
       
    44 
       
    45 // -----------------------------------------------------------------------------
       
    46 // CVSDataProvider::BufferPool
       
    47 // -----------------------------------------------------------------------------
       
    48 //
       
    49 inline MVSBufferPool& CVSDataProvider::BufferPool() const
       
    50     {
       
    51     return *iPool;
       
    52     }
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // CVSDataProvider::FillBufferActive
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 inline TBool CVSDataProvider::FillBufferActive() const
       
    59     {
       
    60     return iFillBufferActive;
       
    61     }
       
    62 
       
    63 // -----------------------------------------------------------------------------
       
    64 // CVSDataProvider::Consumer
       
    65 // -----------------------------------------------------------------------------
       
    66 //
       
    67 inline MVTVideoSink* CVSDataProvider::Consumer() const
       
    68     {
       
    69     return iConsumer;
       
    70     }
       
    71 
       
    72 // -----------------------------------------------------------------------------
       
    73 // CVSDataProvider::MediaId
       
    74 // -----------------------------------------------------------------------------
       
    75 //
       
    76 inline TMediaId CVSDataProvider::MediaId() const
       
    77     {
       
    78     return iMediaId;
       
    79     }
       
    80 
       
    81 /*
       
    82  * CVSDataSource
       
    83 */
       
    84 
       
    85 // -----------------------------------------------------------------------------
       
    86 // CVSDataSource::Observer
       
    87 // -----------------------------------------------------------------------------
       
    88 //
       
    89 inline MVSDataSourceObserver& CVSDataSource::Observer() const
       
    90     {
       
    91     return *iObserver;
       
    92     }
       
    93 
       
    94 // -----------------------------------------------------------------------------
       
    95 // CVSDataSource::DataProvider
       
    96 // -----------------------------------------------------------------------------
       
    97 //
       
    98 inline CVSDataProvider& CVSDataSource::DataProvider() const
       
    99     {
       
   100     return *iProvider;
       
   101     }
       
   102 
       
   103 // -----------------------------------------------------------------------------
       
   104 // CVSDataSource::SwitchProvider
       
   105 // -----------------------------------------------------------------------------
       
   106 //
       
   107 inline CVSDataProvider* CVSDataSource::SwitchProvider(
       
   108     CVSDataProvider* aNewProvider )
       
   109     {
       
   110     CVSDataProvider* oldProvider = iProvider;
       
   111     iProvider = aNewProvider;
       
   112     return oldProvider;
       
   113     }
       
   114 
       
   115 /*
       
   116  * TVSStillImageDataProviderParams
       
   117  */
       
   118 
       
   119 // -----------------------------------------------------------------------------
       
   120 // TVSStillImageDataProviderParams::TVSStillImageDataProviderParams
       
   121 // -----------------------------------------------------------------------------
       
   122 //
       
   123 TVSStillImageDataProviderParams::TVSStillImageDataProviderParams()
       
   124     : iInitialize( EInitializeAsBlankImage ), iFileName( TPtrC() )
       
   125     {
       
   126     }
       
   127 
       
   128 // -----------------------------------------------------------------------------
       
   129 // TVSStillImageDataProviderParams::TVSStillImageDataProviderParams
       
   130 // -----------------------------------------------------------------------------
       
   131 //
       
   132 TVSStillImageDataProviderParams::TVSStillImageDataProviderParams(
       
   133     const TInitialize aInitialize )
       
   134     : iInitialize( aInitialize ), iFileName( TPtrC() )
       
   135     {
       
   136     }
       
   137 
       
   138 // -----------------------------------------------------------------------------
       
   139 // TVSStillImageDataProviderParams::TVSStillImageDataProviderParams
       
   140 // -----------------------------------------------------------------------------
       
   141 //
       
   142 TVSStillImageDataProviderParams::TVSStillImageDataProviderParams(
       
   143     const TFileName& aFileName )
       
   144     : iInitialize( EInitializeFromFile ), iFileName( aFileName )
       
   145     {
       
   146     }