Home | History | Annotate | Download | only in include
      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 /**
     19  * @file pvmp4ffcn_trackconfig.h
     20  * @brief Track level configuration of PVMp4FFComposerNode
     21  */
     22 
     23 #ifndef PVMP4FFCN_TRACKCONFIG_H_INCLUDED
     24 #define PVMP4FFCN_TRACKCONFIG_H_INCLUDED
     25 
     26 #ifndef OSCL_BASE_H_INCLUDED
     27 #include "oscl_base.h"
     28 #endif
     29 #ifndef PV_UUID_H_INCLUDED
     30 #include "pv_uuid.h"
     31 #endif
     32 #ifndef PV_INTERFACE_H_INCLUDED
     33 #include "pv_interface.h"
     34 #endif
     35 
     36 #define KPVMp4FFCNTrackConfigUuid PVUuid(0x81c0c80e,0xe3dd,0x4786,0xab,0xc8,0x7b,0x48,0x41,0x4f,0x6c,0x12)
     37 
     38 /**
     39  * PVMp4FFCNTrackConfigInterface allows a client to do track level configuration
     40  * of a PVMp4FFComposerNode
     41  */
     42 class PVMp4FFCNTrackConfigInterface : public PVInterface
     43 {
     44     public:
     45         /**
     46          * Register a reference to this interface.
     47          */
     48         virtual void addRef() = 0;
     49 
     50         /**
     51          * Remove a reference to this interface.
     52          */
     53         virtual void removeRef() = 0;
     54 
     55         /**
     56          * Query for an instance of a particular interface.
     57          *
     58          * @param uuid Uuid of the requested interface
     59          * @param iface Output parameter where pointer to an instance of the
     60          * requested interface will be stored if it is supported by this object
     61          * @return true if the requested interface is supported, else false
     62          */
     63         virtual bool queryInterface(const PVUuid& uuid, PVInterface*& iface) = 0;
     64 
     65         /**
     66          * Sets reference to a media track.
     67          *
     68          * @param aPort The port associated with the media track that references another media track.
     69          * @param @ReferencePort The port associated with the reference media track.
     70          * @return Result of this method.
     71          */
     72         virtual PVMFStatus SetTrackReference(const PVMFPortInterface& aPort, const PVMFPortInterface& aReferencePort) = 0;
     73 
     74         /**
     75          * Sets codec specific information for a media track.
     76          *
     77          * @param aPort The port to which the codec specific information is associated with.
     78          * @param aInfo Codec specific information.
     79          * @param aSize Size of codec specific information.
     80          * @return Result of this method.
     81          */
     82         virtual PVMFStatus SetCodecSpecificInfo(const PVMFPortInterface& aPort, uint8* aInfo, int32 aSize) = 0;
     83 };
     84 
     85 #endif // PVMP4FFCN_TRACKCONFIG_H_INCLUDED
     86