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 /* ------------------------------------------------------------------- */ 20 /* MPEG-4 Util: H263DecoderSpecificInfo */ 21 /* ------------------------------------------------------------------- */ 22 /*********************************************************************************/ 23 /* 24 This DecoderSpecificInfo Class that holds the Mpeg4 VOL header for the 25 video stream 26 */ 27 28 #define __IMPLEMENT_H263DecoderSpecificInfo__ 29 30 #include "h263decoderspecificinfo.h" 31 32 #include "atomutils.h" 33 34 H263DecoderSpecificInfo::H263DecoderSpecificInfo(MP4_FF_FILE *fp, bool o3GPPTrack) 35 : DecoderSpecificInfo(fp, o3GPPTrack, false) 36 { 37 uint8 tmp; 38 39 if (o3GPPTrack) 40 { 41 42 } 43 else 44 { 45 AtomUtils::read32(fp, _VendorCode); 46 47 AtomUtils::read8(fp, _codec_version); 48 49 AtomUtils::read8(fp, _codec_profile); 50 51 AtomUtils::read8(fp, _codec_level); 52 53 AtomUtils::read8(fp, tmp); 54 55 AtomUtils::read16(fp, _max_width); 56 57 AtomUtils::read16(fp, _max_height); 58 } 59 60 return; 61 } 62 63 64