1;//
2;// Copyright (C) 2007-2008 ARM Limited
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 express or implied.
13;// See the License for the specific language governing permissions and
14;// limitations under the License.
15;//
16;//
17;//
18;// File Name:  omxtypes_s.h
19;// OpenMAX DL: v1.0.2
20;// Revision:   9641
21;// Date:       Thursday, February 7, 2008
22;//
23;//
24;//
25;//
26
27;// Mandatory return codes - use cases are explicitly described for each function
28OMX_Sts_NoErr                    EQU  0    ;// No error the function completed successfully
29OMX_Sts_Err                      EQU -2    ;// Unknown/unspecified error
30OMX_Sts_InvalidBitstreamValErr   EQU -182  ;// Invalid value detected during bitstream processing
31OMX_Sts_MemAllocErr              EQU -9    ;// Not enough memory allocated for the operation
32OMX_StsACAAC_GainCtrErr    	     EQU -159  ;// AAC: Unsupported gain control data detected
33OMX_StsACAAC_PrgNumErr           EQU -167  ;// AAC: Invalid number of elements for one program
34OMX_StsACAAC_CoefValErr          EQU -163  ;// AAC: Invalid quantized coefficient value
35OMX_StsACAAC_MaxSfbErr           EQU -162  ;// AAC: Invalid maxSfb value in relation to numSwb
36OMX_StsACAAC_PlsDataErr		     EQU -160  ;// AAC: pulse escape sequence data error
37
38;// Optional return codes - use cases are explicitly described for each function
39OMX_Sts_BadArgErr                EQU -5    ;// Bad Arguments
40
41OMX_StsACAAC_TnsNumFiltErr       EQU -157  ;// AAC: Invalid number of TNS filters
42OMX_StsACAAC_TnsLenErr           EQU -156  ;// AAC: Invalid TNS region length
43OMX_StsACAAC_TnsOrderErr         EQU -155  ;// AAC: Invalid order of TNS filter
44OMX_StsACAAC_TnsCoefResErr       EQU -154  ;// AAC: Invalid bit-resolution for TNS filter coefficients
45OMX_StsACAAC_TnsCoefErr          EQU -153  ;// AAC: Invalid TNS filter coefficients
46OMX_StsACAAC_TnsDirectErr        EQU -152  ;// AAC: Invalid TNS filter direction
47
48OMX_StsICJP_JPEGMarkerErr        EQU -183  ;// JPEG marker encountered within an entropy-coded block;
49                                            ;// Huffman decoding operation terminated early.
50OMX_StsICJP_JPEGMarker           EQU -181  ;// JPEG marker encountered; Huffman decoding
51                                            ;// operation terminated early.
52OMX_StsIPPP_ContextMatchErr      EQU -17   ;// Context parameter doesn't match to the operation
53
54OMX_StsSP_EvenMedianMaskSizeErr  EQU -180  ;// Even size of the Median Filter mask was replaced by the odd one
55
56OMX_Sts_MaximumEnumeration       EQU 0x7FFFFFFF
57
58
59
60OMX_MIN_S8      EQU 	   	(-128)
61OMX_MIN_U8  	EQU     	0
62OMX_MIN_S16		EQU      	(-32768)
63OMX_MIN_U16		EQU	        0
64
65
66OMX_MIN_S32		EQU	(-2147483647-1)
67OMX_MIN_U32		EQU	0
68
69OMX_MAX_S8		EQU	(127)
70OMX_MAX_U8		EQU	(255)
71OMX_MAX_S16		EQU	(32767)
72OMX_MAX_U16		EQU	(0xFFFF)
73OMX_MAX_S32		EQU	(2147483647)
74OMX_MAX_U32		EQU	(0xFFFFFFFF)
75
76OMX_VC_UPPER    EQU 0x1                 ;// Used by the PredictIntra functions
77OMX_VC_LEFT     EQU 0x2                 ;// Used by the PredictIntra functions
78OMX_VC_UPPER_RIGHT    EQU 0x40          ;// Used by the PredictIntra functions
79
80NULL    EQU 0
81
82;// Structures
83
84    INCLUDE     armCOMM_s.h
85
86    M_STRUCT    OMXPoint
87    M_FIELD     x, 4
88    M_FIELD     y, 4
89    M_ENDSTRUCT
90
91        END
92