Path: blob/21.2-virgl/src/gallium/frontends/omx/tizonia/h264e.h
4561 views
/**************************************************************************1*2* Copyright 2013 Advanced Micro Devices, Inc.3* All Rights Reserved.4*5* Permission is hereby granted, free of charge, to any person obtaining a6* copy of this software and associated documentation files (the7* "Software"), to deal in the Software without restriction, including8* without limitation the rights to use, copy, modify, merge, publish,9* distribute, sub license, and/or sell copies of the Software, and to10* permit persons to whom the Software is furnished to do so, subject to11* the following conditions:12*13* The above copyright notice and this permission notice (including the14* next paragraph) shall be included in all copies or substantial portions15* of the Software.16*17* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS18* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF19* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.20* IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR21* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,22* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE23* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.24*25**************************************************************************/2627#ifndef H264E_H28#define H264E_H2930#include <OMX_Core.h>31#include <OMX_Types.h>32#include <OMX_Video.h>3334#define OMX_VID_ENC_AVC_ROLE "video_encoder.avc"3536/* With libtizonia, port indexes must start at index 0 */37#define OMX_VID_ENC_AVC_INPUT_PORT_INDEX 038#define OMX_VID_ENC_AVC_OUTPUT_PORT_INDEX 139#define OMX_VID_ENC_AVC_DEFAULT_FRAME_WIDTH 17640#define OMX_VID_ENC_AVC_DEFAULT_FRAME_HEIGHT 14441#define OMX_VID_ENC_AVC_INPUT_PORT_MIN_BUF_COUNT 842#define OMX_VID_ENC_AVC_OUTPUT_PORT_MIN_BUF_COUNT 243#define OMX_VID_ENC_AVC_PORT_MIN_INPUT_BUF_SIZE 4 * 102444#define OMX_VID_ENC_AVC_PORT_MIN_OUTPUT_BUF_SIZE 34560045#define OMX_VID_ENC_AVC_PORT_NONCONTIGUOUS OMX_FALSE46#define OMX_VID_ENC_AVC_PORT_ALIGNMENT 047#define OMX_VID_ENC_AVC_PORT_SUPPLIERPREF OMX_BufferSupplyInput4849OMX_PTR instantiate_h264e_config_port(OMX_HANDLETYPE ap_hdl);50OMX_PTR instantiate_h264e_input_port(OMX_HANDLETYPE ap_hdl);51OMX_PTR instantiate_h264e_output_port(OMX_HANDLETYPE ap_hdl);52OMX_PTR instantiate_h264e_processor(OMX_HANDLETYPE ap_hdl);5354#endif /* H264E_H */555657