gallium: rename 'state tracker' to 'frontend'
[mesa.git] / src / gallium / frontends / omx / tizonia / h264e.h
1 /**************************************************************************
2 *
3 * Copyright 2013 Advanced Micro Devices, Inc.
4 * All Rights Reserved.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the
8 * "Software"), to deal in the Software without restriction, including
9 * without limitation the rights to use, copy, modify, merge, publish,
10 * distribute, sub license, and/or sell copies of the Software, and to
11 * permit persons to whom the Software is furnished to do so, subject to
12 * the following conditions:
13 *
14 * The above copyright notice and this permission notice (including the
15 * next paragraph) shall be included in all copies or substantial portions
16 * of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
21 * IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR
22 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 *
26 **************************************************************************/
27
28 #ifndef H264E_H
29 #define H264E_H
30
31 #include <OMX_Core.h>
32 #include <OMX_Types.h>
33 #include <OMX_Video.h>
34
35 #define OMX_VID_ENC_AVC_ROLE "video_encoder.avc"
36
37 /* With libtizonia, port indexes must start at index 0 */
38 #define OMX_VID_ENC_AVC_INPUT_PORT_INDEX 0
39 #define OMX_VID_ENC_AVC_OUTPUT_PORT_INDEX 1
40 #define OMX_VID_ENC_AVC_DEFAULT_FRAME_WIDTH 176
41 #define OMX_VID_ENC_AVC_DEFAULT_FRAME_HEIGHT 144
42 #define OMX_VID_ENC_AVC_INPUT_PORT_MIN_BUF_COUNT 8
43 #define OMX_VID_ENC_AVC_OUTPUT_PORT_MIN_BUF_COUNT 2
44 #define OMX_VID_ENC_AVC_PORT_MIN_INPUT_BUF_SIZE 4 * 1024
45 #define OMX_VID_ENC_AVC_PORT_MIN_OUTPUT_BUF_SIZE 345600
46 #define OMX_VID_ENC_AVC_PORT_NONCONTIGUOUS OMX_FALSE
47 #define OMX_VID_ENC_AVC_PORT_ALIGNMENT 0
48 #define OMX_VID_ENC_AVC_PORT_SUPPLIERPREF OMX_BufferSupplyInput
49
50 OMX_PTR instantiate_h264e_config_port(OMX_HANDLETYPE ap_hdl);
51 OMX_PTR instantiate_h264e_input_port(OMX_HANDLETYPE ap_hdl);
52 OMX_PTR instantiate_h264e_output_port(OMX_HANDLETYPE ap_hdl);
53 OMX_PTR instantiate_h264e_processor(OMX_HANDLETYPE ap_hdl);
54
55 #endif /* H264E_H */