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 PVMF_MP4FFPARSER_NODE_TUNEABLES_H_INCLUDED 19 #define PVMF_MP4FFPARSER_NODE_TUNEABLES_H_INCLUDED 20 21 // Track data size and buffer depth values 22 #define M4V_MAXTRACKDATASIZE 20000 23 #define M4V_MAXTRACKQUEUEDEPTH 2 24 #define H263_MAXTRACKDATASIZE 20000 25 #define H263_MAXTRACKQUEUEDEPTH 2 26 #define H264_MP4_MAXTRACKDATASIZE 50000 27 #define H264_MP4_MAXTRACKQUEUEDEPTH 2 28 #define MPEG4_AUDIO_MAXTRACKDATASIZE 8192 29 #define MPEG4_AUDIO_MAXTRACKQUEUEDEPTH 2 30 #define AMR_IETF_MAXTRACKDATASIZE (5120) 31 #define AMR_IETF_MAXTRACKQUEUEDEPTH 2 32 #define AMRWB_IETF_MAXTRACKDATASIZE (61*10*2) 33 #define AMRWB_IETF_MAXTRACKQUEUEDEPTH 2 34 #define TIMEDTEXT_MAXTRACKDATASIZE 4096 35 #define TIMEDTEXT_MAXTRACKQUEUEDEPTH 2 36 #define UNKNOWN_MAXTRACKDATASIZE 10000 37 #define UNKNOWN_MAXTRACKQUEUEDEPTH 3 38 39 // PVMF media data memory pool settings 40 #define PVMP4FF_MEDIADATA_POOLNUM 8 41 #define PVMP4FF_MEDIADATA_CHUNKSIZE 128 42 43 // PVMF media data memory pool settings 44 #define PVMP4FF_TEXT_TRACK_MEDIADATA_POOLNUM 1 45 46 // Number of samples to retrieve per media data 47 #define M4V_NUMSAMPLES 1 48 #define H263_NUMSAMPLES 1 49 #define H264_MP4_NUMSAMPLES 1 50 #define MPEG4_AUDIO_NUMSAMPLES 4 51 #define AMR_IETF_NUMFRAMES 10 52 #define AMRWB_IETF_NUMFRAMES 10 53 #define TIMEDTEXT_NUMSAMPLES 1 54 #define UNKNOWN_NUMSAMPLES 1 55 56 //max number of attempts at growing the resizable mem pool 57 #define PVMF_MP4FF_PARSER_NODE_MEM_POOL_GROWTH_LIMIT 2 58 59 //optimized parsing mode 60 #define PVMF_MP4FF_PARSER_NODE_ENABLE_PARSER_OPTIMIZATION 1 61 #define PVMF_MP4FF_PARSER_NODE_ENABLE_PARSING_MOOF_UPFRONT 0 62 63 // EOS duration in seconds to prevent EOS timestamp overlapping with beginning of next playback 64 #define PVMP4FF_DEFAULT_EOS_DURATION_IN_SEC 1 65 66 #define PVMP4FF_UNDERFLOW_THRESHOLD_IN_MS 3000 67 #define PVMP4FF_UNDERFLOW_STATUS_EVENT_FREQUENCY 10 //every 100 ms 68 #define PVMP4FF_UNDERFLOW_STATUS_EVENT_CYCLES 1 69 70 #define PVMFFF_DEFAULT_THUMB_NAIL_SAMPLE_NUMBER 2 71 72 #define PVMP4FF_OMA2_DECRYPTION_BUFFER_SIZE 20*1024 73 74 // Number of samples to be retrieved for Best Thumbnail Mode 75 #define NUMSAMPLES_BEST_THUMBNAIL_MODE 10 76 77 //flag, enable(1) or disable(0) functionality to break up aac frames into multiple media messages 78 #define PVMFMP4FF_BREAKUP_AAC_FRAMES_INTO_MULTIPLE_MEDIA_FRAGS 1 79 80 #endif // PVMF_MP4FFPARSER_NODE_TUNEABLES_H_INCLUDED 81 82 83 84 85 86