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 pvmf_media_msg.h
     20  *  @brief This file defines the PV Multimedia Framework (PVMF) media message
     21  *  class which is used as the main interface for all messages sent over the
     22  *  normal media data path.
     23  *
     24  */
     25 
     26 #ifndef PVMF_MEDIA_MSG_H_INCLUDED
     27 #define PVMF_MEDIA_MSG_H_INCLUDED
     28 
     29 #ifndef OSCL_BASE_H_INCLUDED
     30 #include "oscl_base.h"
     31 #endif
     32 
     33 #ifndef PVMF_TIMESTAMP_H_INCLUDED
     34 #include "pvmf_timestamp.h"
     35 #endif
     36 
     37 #ifndef PV_INTERFACE_H
     38 #include "pv_interface.h"
     39 #endif
     40 
     41 #ifndef OSCL_SHARED_PTR_H_INCLUDED
     42 #include "oscl_shared_ptr.h"
     43 #endif
     44 
     45 #ifndef OSCL_REFCOUNTER_MEMFRAG_H_INCLUDED
     46 #include "oscl_refcounter_memfrag.h"
     47 #endif
     48 
     49 
     50 class PVMFMediaMsg
     51 {
     52 
     53 
     54     public:
     55         virtual ~PVMFMediaMsg() {}
     56         virtual PVMFTimestamp getTimestamp() = 0;
     57         virtual uint32 getDuration() = 0;
     58         virtual uint32 getStreamID() = 0;
     59         virtual uint32 getSeqNum() = 0;
     60         virtual PVUid32 getFormatID() = 0;
     61         virtual bool queryInterface(const PVUuid& uuid, PVInterface*& iface) = 0;
     62         virtual bool getFormatSpecificInfo(OsclRefCounterMemFrag& memfrag) = 0;
     63         virtual void setTimestamp(const PVMFTimestamp& ts) = 0;
     64         virtual void setDuration(const uint32& duration) = 0;
     65         virtual void setStreamID(uint32 id) = 0;
     66         virtual void setSeqNum(uint32 seqnum) = 0;
     67 
     68 };
     69 
     70 typedef OsclSharedPtr<PVMFMediaMsg> PVMFSharedMediaMsgPtr;
     71 
     72 #endif
     73