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_header.h 20 * @brief This file defines the PV Multimedia Framework (PVMF) media message 21 * header class which is used to hold the basic information such as timestamp, 22 * sequence number, etc for every media message. 23 * 24 */ 25 26 #ifndef PVMF_MEDIA_MSG_HEADER_H_INCLUDED 27 #define PVMF_MEDIA_MSG_HEADER_H_INCLUDED 28 29 #ifndef OSCL_BASE_H_INCLUDED 30 #include "oscl_base.h" 31 #endif 32 33 #ifndef OSCL_REFCOUNTER_MEMFRAG_H_INCLUDED 34 #include "oscl_refcounter_memfrag.h" 35 #endif 36 37 #ifndef PV_UUID_H_INCLUDED 38 #include "pv_uuid.h" 39 #endif 40 41 struct PVMFMediaMsgHeader 42 { PVMFMediaMsgHeaderPVMFMediaMsgHeader43 PVMFMediaMsgHeader(): timestamp(0), 44 duration(0), 45 seqnum(0), 46 stream_id(0), 47 format_id(0) 48 {}; 49 50 PVMFTimestamp timestamp; 51 uint32 duration; 52 uint32 seqnum; 53 uint32 stream_id; 54 PVUid32 format_id; 55 OsclRefCounterMemFrag format_spec_info; 56 57 }; 58 59 60 #endif 61