• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_DEFS_H_INCLUDED
19 #define PVMF_MP4FFPARSER_DEFS_H_INCLUDED
20 
21 ///////////////////////////////////////////////
22 // Error Events
23 ///////////////////////////////////////////////
24 //None--node uses the PVMF event codes.
25 
26 ///////////////////////////////////////////////
27 // Information Events
28 ///////////////////////////////////////////////
29 //None--node uses the PVMF event codes.
30 
31 ///////////////////////////////////////////////
32 // Port type tags
33 ///////////////////////////////////////////////
34 typedef enum
35 {
36     PVMF_MP4FFPARSERNODE_PORT_TYPE_OUTPUT = 1
37 } PVMFMP4FFParserNodePortType;
38 
39 
40 // Capability mime strings
41 #define PVMF_MP4FFPARSER_PORT_INPUT_FORMATS "x-pvmf/parser/mp4ff/input_formats"
42 #define PVMF_MP4FFPARSER_PORT_INPUT_FORMATS_VALTYPE "x-pvmf/port/formattype;valtype=char*"
43 
44 #define PVMF_MP4FFPARSER_NODE_PSEUDO_STREAMING_BUFFER_DURATION_IN_MS 4000
45 
46 #define PVMF_MP4FFPARSER_PARSER_NODE_TS_DELTA_DURING_REPOS_IN_MS 10 // 10ms
47 
48 #define DEFAULT_CAHCE_SIZE 8*1024
49 #define DEFAULT_ASYNC_READ_BUFFER_SIZE 8*1024
50 #define DEFAULT_NATIVE_ACCESS_MODE 0
51 #define MIN_CACHE_SIZE 1024
52 #define MAX_CACHE_SIZE 64*1024
53 #define MIN_ASYNC_READ_BUFFER_SIZE 1024
54 #define MAX_ASYNC_READ_BUFFER_SIZE 64*1024
55 #define DEFAULT_FILE_HANDLE NULL
56 
57 #define MIN_JITTER_BUFFER_DURATION_IN_MS       1000
58 #define MAX_JITTER_BUFFER_DURATION_IN_MS       10000
59 
60 // Format Type integer defines
61 #define PVMF_MP4_PARSER_NODE_FORMAT_UNKNOWN     0
62 #define PVMF_MP4_PARSER_NODE_AMR                1
63 #define PVMF_MP4_PARSER_NODE_AMRWB              2
64 #define PVMF_MP4_PARSER_NODE_AMR_IETF           3
65 #define PVMF_MP4_PARSER_NODE_AMRWB_IETF         4
66 #define PVMF_MP4_PARSER_NODE_AMR_IF2            5
67 #define PVMF_MP4_PARSER_NODE_ADIF               6
68 #define PVMF_MP4_PARSER_NODE_ADTS               7
69 #define PVMF_MP4_PARSER_NODE_MPEG4_AUDIO        8
70 #define PVMF_MP4_PARSER_NODE_M4V                9
71 #define PVMF_MP4_PARSER_NODE_H2631998           10
72 #define PVMF_MP4_PARSER_NODE_H2632000           11
73 #define PVMF_MP4_PARSER_NODE_H264_RAW           12
74 #define PVMF_MP4_PARSER_NODE_H264_MP4           13
75 #define PVMF_MP4_PARSER_NODE_H264               14
76 #define PVMF_MP4_PARSER_NODE_3GPP_TIMED_TEXT    15
77 
78 #endif // PVMF_MP4FFPARSER_DEFS_H_INCLUDED
79 
80