/usr/include/bellagio/omx_base_video_port.h is in libomxil-bellagio-dev 0.9.3-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | /**
src/base/omx_base_video_port.h
Base Video Port class for OpenMAX ports to be used in derived components.
Copyright (C) 2007-2009 STMicroelectronics
Copyright (C) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 2.1 of the License, or (at your option)
any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
details.
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA
02110-1301 USA
*/
#include "omx_base_component.h"
#include "omx_classmagic.h"
#include "omx_base_port.h"
#ifndef __OMX_BASE_VIDEO_PORT_H__
#define __OMX_BASE_VIDEO_PORT_H__
/** define the max output buffer size */
#define MAX_VIDEO_OUTPUT_BUF_SIZE 460800 //640 * 480 * 1.5
#define MIN_VIDEO_OUTPUT_BUF_SIZE 176*144*3 //176 * 144 * 1.5
/**
* @brief the base video domain structure that describes each port.
*
* The data structure is derived from base port class and contain video
* domain specific parameters.
* Other elements can be added in the derived components structures.
*/
DERIVEDCLASS(omx_base_video_PortType, omx_base_PortType)
#define omx_base_video_PortType_FIELDS omx_base_PortType_FIELDS \
/** @param sVideoParam Domain specific (video) OpenMAX port parameter */ \
OMX_VIDEO_PARAM_PORTFORMATTYPE sVideoParam;
ENDCLASS(omx_base_video_PortType)
/**
* @brief The base contructor for the generic OpenMAX ST Video port
*
* This function is executed by the component that uses a port.
* The parameter contains the info about the component.
* It takes care of constructing the instance of the port and
* every object needed by the base port.
*
* @param openmaxStandComp pointer to the Handle of the component
* @param openmaxStandPort the ST port to be initialized
* @param nPortIndex Index of the port to be constructed
* @param isInput specifices if the port is an input or an output
*
* @return OMX_ErrorInsufficientResources if a memory allocation fails
*/
OSCL_IMPORT_REF OMX_ERRORTYPE base_video_port_Constructor(
OMX_COMPONENTTYPE *openmaxStandComp,
omx_base_PortType **openmaxStandPort,
OMX_U32 nPortIndex,
OMX_BOOL isInput);
/**
* @brief The base video port destructor for the generic OpenMAX ST Video port
*
* This function is executed by the component that uses a port.
* The parameter contains the info about the port.
* It takes care of destructing the instance of the port
*
* @param openmaxStandPort the ST port to be destructed
*
* @return OMX_ErrorNone
*/
OSCL_IMPORT_REF OMX_ERRORTYPE base_video_port_Destructor(
omx_base_PortType *openmaxStandPort);
#endif
|