Home | History | Annotate | Download | only in src
      1 /* ------------------------------------------------------------------
      2  * Copyright (C) 1998-2009 PacketVideo
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
     13  * express or implied.
     14  * See the License for the specific language governing permissions
     15  * and limitations under the License.
     16  * -------------------------------------------------------------------
     17  */
     18 #ifndef TEST_PV_PLAYER_ENGINE_TESTSET_MIO_FILE_H_INCLUDED
     19 #include "test_pv_player_engine_testset_mio_file.h"
     20 #endif
     21 
     22 PVPlayerTestMioFactory* PVPlayerTestMioFactory::Create()
     23 {
     24     return new PVPlayerTestFileOutputMioFactory();
     25 }
     26 
     27 PvmiMIOControl* PVPlayerTestFileOutputMioFactory::CreateAudioOutput(OsclAny* aParam)
     28 {
     29     return new PVRefFileOutput(((OSCL_wString*)aParam)->get_cstr());
     30 }
     31 
     32 PvmiMIOControl* PVPlayerTestFileOutputMioFactory::CreateAudioOutput(
     33     OsclAny* aParam,
     34     MediaType aMediaType,
     35     bool aCompressedAudio)
     36 {
     37     return new PVRefFileOutput(((OSCL_wString*)aParam)->get_cstr(), aMediaType, aCompressedAudio);
     38 }
     39 
     40 PvmiMIOControl* PVPlayerTestFileOutputMioFactory::CreateAudioOutput(
     41     OsclAny* aParam,
     42     PVRefFileOutputTestObserver* aObserver,
     43     bool aActiveTiming,
     44     uint32 aQueueLimit,
     45     bool aSimFlowControl,
     46     bool logStrings)
     47 {
     48     return new PVRefFileOutput(
     49                *(OSCL_wString*)aParam,
     50                aObserver,
     51                aActiveTiming,
     52                aQueueLimit,
     53                aSimFlowControl,
     54                logStrings);
     55 }
     56 
     57 void PVPlayerTestFileOutputMioFactory::DestroyAudioOutput(PvmiMIOControl* aMio)
     58 {
     59     PVRefFileOutput* mio = (PVRefFileOutput*)aMio;
     60     delete mio;
     61 }
     62 
     63 PvmiMIOControl* PVPlayerTestFileOutputMioFactory::CreateVideoOutput(OsclAny* aParam)
     64 {
     65     return new PVRefFileOutput(((OSCL_wString*)aParam)->get_cstr());
     66 }
     67 
     68 PvmiMIOControl* PVPlayerTestFileOutputMioFactory::CreateVideoOutput(
     69     OsclAny* aParam,
     70     MediaType aMediaType,
     71     bool aCompressedVideo)
     72 {
     73     return new PVRefFileOutput(((OSCL_wString*)aParam)->get_cstr(), aMediaType, aCompressedVideo);
     74 }
     75 
     76 PvmiMIOControl* PVPlayerTestFileOutputMioFactory::CreateVideoOutput(
     77     OsclAny* aParam,
     78     PVRefFileOutputTestObserver* aObserver,
     79     bool aActiveTiming,
     80     uint32 aQueueLimit,
     81     bool aSimFlowControl,
     82     bool logStrings)
     83 {
     84     return new PVRefFileOutput(
     85                *(OSCL_wString*)aParam,
     86                aObserver,
     87                aActiveTiming,
     88                aQueueLimit,
     89                aSimFlowControl,
     90                logStrings);
     91 }
     92 
     93 void PVPlayerTestFileOutputMioFactory::DestroyVideoOutput(PvmiMIOControl* aMio)
     94 {
     95     PVRefFileOutput* mio = (PVRefFileOutput*)aMio;
     96     delete mio;
     97 }
     98 
     99 PvmiMIOControl* PVPlayerTestFileOutputMioFactory::CreateTextOutput(OsclAny* aParam)
    100 {
    101     return new PVRefFileOutput(((OSCL_wString*)aParam)->get_cstr());
    102 }
    103 
    104 PvmiMIOControl* PVPlayerTestFileOutputMioFactory::CreateTextOutput(OsclAny* aParam, MediaType aMediaType)
    105 {
    106     return new PVRefFileOutput(((OSCL_wString*)aParam)->get_cstr(), aMediaType);
    107 }
    108 
    109 void PVPlayerTestFileOutputMioFactory::DestroyTextOutput(PvmiMIOControl* aMio)
    110 {
    111     PVRefFileOutput* mio = (PVRefFileOutput*)aMio;
    112     delete mio;
    113 }
    114 
    115 
    116 
    117 
    118