17ec681f3Smrg/**************************************************************************
27ec681f3Smrg *
37ec681f3Smrg * Copyright 2013 Advanced Micro Devices, Inc.
47ec681f3Smrg * All Rights Reserved.
57ec681f3Smrg *
67ec681f3Smrg * Permission is hereby granted, free of charge, to any person obtaining a
77ec681f3Smrg * copy of this software and associated documentation files (the
87ec681f3Smrg * "Software"), to deal in the Software without restriction, including
97ec681f3Smrg * without limitation the rights to use, copy, modify, merge, publish,
107ec681f3Smrg * distribute, sub license, and/or sell copies of the Software, and to
117ec681f3Smrg * permit persons to whom the Software is furnished to do so, subject to
127ec681f3Smrg * the following conditions:
137ec681f3Smrg *
147ec681f3Smrg * The above copyright notice and this permission notice (including the
157ec681f3Smrg * next paragraph) shall be included in all copies or substantial portions
167ec681f3Smrg * of the Software.
177ec681f3Smrg *
187ec681f3Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
197ec681f3Smrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
207ec681f3Smrg * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
217ec681f3Smrg * IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR
227ec681f3Smrg * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
237ec681f3Smrg * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
247ec681f3Smrg * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
257ec681f3Smrg *
267ec681f3Smrg **************************************************************************/
277ec681f3Smrg
287ec681f3Smrg#ifndef H264E_H
297ec681f3Smrg#define H264E_H
307ec681f3Smrg
317ec681f3Smrg#include <OMX_Core.h>
327ec681f3Smrg#include <OMX_Types.h>
337ec681f3Smrg#include <OMX_Video.h>
347ec681f3Smrg
357ec681f3Smrg#define OMX_VID_ENC_AVC_ROLE "video_encoder.avc"
367ec681f3Smrg
377ec681f3Smrg/* With libtizonia, port indexes must start at index 0 */
387ec681f3Smrg#define OMX_VID_ENC_AVC_INPUT_PORT_INDEX 0
397ec681f3Smrg#define OMX_VID_ENC_AVC_OUTPUT_PORT_INDEX 1
407ec681f3Smrg#define OMX_VID_ENC_AVC_DEFAULT_FRAME_WIDTH 176
417ec681f3Smrg#define OMX_VID_ENC_AVC_DEFAULT_FRAME_HEIGHT 144
427ec681f3Smrg#define OMX_VID_ENC_AVC_INPUT_PORT_MIN_BUF_COUNT 8
437ec681f3Smrg#define OMX_VID_ENC_AVC_OUTPUT_PORT_MIN_BUF_COUNT 2
447ec681f3Smrg#define OMX_VID_ENC_AVC_PORT_MIN_INPUT_BUF_SIZE 4 * 1024
457ec681f3Smrg#define OMX_VID_ENC_AVC_PORT_MIN_OUTPUT_BUF_SIZE 345600
467ec681f3Smrg#define OMX_VID_ENC_AVC_PORT_NONCONTIGUOUS OMX_FALSE
477ec681f3Smrg#define OMX_VID_ENC_AVC_PORT_ALIGNMENT 0
487ec681f3Smrg#define OMX_VID_ENC_AVC_PORT_SUPPLIERPREF OMX_BufferSupplyInput
497ec681f3Smrg
507ec681f3SmrgOMX_PTR instantiate_h264e_config_port(OMX_HANDLETYPE ap_hdl);
517ec681f3SmrgOMX_PTR instantiate_h264e_input_port(OMX_HANDLETYPE ap_hdl);
527ec681f3SmrgOMX_PTR instantiate_h264e_output_port(OMX_HANDLETYPE ap_hdl);
537ec681f3SmrgOMX_PTR instantiate_h264e_processor(OMX_HANDLETYPE ap_hdl);
547ec681f3Smrg
557ec681f3Smrg#endif                          /* H264E_H */
56