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 #ifndef SDP_PARSING_UTILS_H 20 #define SDP_PARSING_UTILS_H 21 22 23 bool get_next_line(const char *start_ptr, const char * end_ptr, 24 const char *& line_start, 25 const char *& line_end); 26 27 bool parseQoEMetrics(const char *start_ptr, 28 const char *end_ptr, 29 QoEMetricsType &qoeMetrics); 30 bool parseAssetInfo(const char *sptr, const char *line_end_ptr, 31 AssetInfoType &ainfo); 32 33 bool sdp_decodebase64(uint8* aInBuf, uint32 aInBufLen, 34 uint8* aOutBuf, uint32& aOutBufLen, uint32 aMaxOutBufLen); 35 36 void pvSDPParserGetAssetInfoLanguageCode(uint16 langcode, char* LangCode); 37 38 bool pvSDPParserParse3GPPAssetInfoLocation(AssetInfoType& aInfo, 39 uint8* aBuf, 40 uint32 aBufSize); 41 42 #endif 43 44 45