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 RTP_PAYLOAD_PARSER_INCLUDE_H 19 #define RTP_PAYLOAD_PARSER_INCLUDE_H 20 21 #include "oscl_types.h" 22 23 typedef struct AMR_INFO 24 { 25 enum AMR_TYPE 26 { 27 AMR_TYPE_NONE, 28 AMR_TYPE_AMR, 29 AMR_TYPE_WB, 30 31 }; 32 33 AMR_TYPE amr_type; 34 uint16 modeSet; 35 uint16 channels; 36 bool octetAligned; 37 bool crc; 38 bool interleave; 39 40 } S_AMR_INFO; 41 42 typedef struct H263_INFO 43 { 44 bool P_Bit; // indicates whether picture start code is present or not 45 bool V_Bit; // indicates presence of VRC data 46 uint8 PLEN; // Length in bytes of extra picture header 47 uint8 PEBIT; // indicates number of bits to be ignored in last byte of picture header 48 49 // VRC Fields 50 uint8 TID; // 51 uint8 Trun; // 52 uint8 S_Bit; // sync frame indication 53 54 55 } H263_INFO; 56 57 #endif // RTP_PAYLOAD_PARSER_INCLUDE_H 58 59