Home | History | Annotate | Download | only in core
      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 PV_PLAYER_CONFIG_H_INCLUDED
     19 #define PV_PLAYER_CONFIG_H_INCLUDED
     20 
     21 // Configuration flags for pvplayerengine are set in this header file
     22 
     23 
     24 // Playback rate range
     25 #define PVP_PBRATE_MIN 0
     26 #define PVP_PBRATE_MAX 500000
     27 
     28 // Playback position status event unit
     29 // Default
     30 #define PVPLAYERENGINE_CONFIG_PBPOSSTATUSUNIT_DEF PVPPBPOSUNIT_MILLISEC
     31 #define PVPLAYERENGINE_CONFIG_PBPOSSTATUSUNIT_DEF_STRING "PVPPBPOSUNIT_MILLISEC"
     32 // Capability
     33 #define PVPLAYERENGINE_CONFIG_PBPOSSTATUSINTERVAL_CAP_STRING "PVPPBPOSUNIT_MILLISEC;PVPPBPOSUNIT_SEC;PVPPBPOSUNIT_MIN"
     34 
     35 // Playback position status event interval in milliseconds
     36 // Default
     37 #define PVPLAYERENGINE_CONFIG_PBPOSSTATUSINTERVAL_DEF 1000
     38 // Min-Max
     39 #define PVPLAYERENGINE_CONFIG_PBPOSSTATUSINTERVAL_MIN 200
     40 #define PVPLAYERENGINE_CONFIG_PBPOSSTATUSINTERVAL_MAX 5000
     41 
     42 // End time check interval in milliseconds
     43 // Default
     44 #define PVPLAYERENGINE_CONFIG_ENDTIMECHECKINTERVAL_DEF 1000
     45 // Min-Max
     46 #define PVPLAYERENGINE_CONFIG_ENDTIMECHECKINTERVAL_MIN 200
     47 #define PVPLAYERENGINE_CONFIG_ENDTIMECHECKINTERVAL_MAX 5000
     48 
     49 // Seek to sync point when repositioning
     50 #define PVPLAYERENGINE_CONFIG_SEEKTOSYNCPOINT_DEF true
     51 
     52 // Whether to render skipped data or not when repositioning
     53 #define PVPLAYERENGINE_CONFIG_RENDERSKIPPED_DEF false
     54 
     55 // Time window when seeking sync point in milliseconds
     56 // Default
     57 #define PVPLAYERENGINE_CONFIG_SEEKTOSYNCPOINTWINDOW_DEF 0
     58 // Min-Max
     59 #define PVPLAYERENGINE_CONFIG_SEEKTOSYNCPOINTWINDOW_MIN 0
     60 #define PVPLAYERENGINE_CONFIG_SEEKTOSYNCPOINTWINDOW_MAX 300000
     61 
     62 // Min-Max
     63 #define PVPLAYERENGINE_CONFIG_SYNCMARGIN_MIN -10000
     64 #define PVPLAYERENGINE_CONFIG_SYNCMARGIN_MAX 10000
     65 
     66 // Node command timeout value in milliseconds
     67 // Default
     68 #define PVPLAYERENGINE_CONFIG_NODECMDTIMEOUT_DEF 10000
     69 // Min-Max
     70 #define PVPLAYERENGINE_CONFIG_NODECMDTIMEOUT_MIN 1000
     71 #define PVPLAYERENGINE_CONFIG_NODECMDTIMEOUT_MAX 300000
     72 
     73 // Data sink node data queuing timeout value in milliseconds
     74 // This will be same as threshold value for difference in sync point and actual
     75 // reposition point in millisec
     76 // Default is set to maximum value
     77 #define PVPLAYERENGINE_CONFIG_NODEDATAQUEUINGTIMEOUT_DEF 5*60*1000
     78 // Min-Max
     79 #define PVPLAYERENGINE_CONFIG_NODEDATAQUEUINGTIMEOUT_MIN 1000
     80 #define PVPLAYERENGINE_CONFIG_NODEDATAQUEUINGTIMEOUT_MAX 300000
     81 
     82 // Product name info string
     83 #define PVPLAYERENGINE_PRODINFO_PRODNAME_STRING "pvPlayer v4.0"
     84 // Part number info string
     85 #define PVPLAYERENGINE_PRODINFO_PARTNUM_STRING "000000"
     86 // HW platform info string
     87 #define PVPLAYERENGINE_PRODINFO_HWPLATFORM_STRING "Unknown"
     88 // SW platform info string
     89 #define PVPLAYERENGINE_PRODINFO_SWPLATFORM_STRING "Unknown"
     90 // Device info string
     91 #define PVPLAYERENGINE_PRODINFO_DEVICE_STRING "Unknown"
     92 
     93 #endif
     94 
     95 
     96