#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <omxcore.h>
#include <OMX_Core.h>
#include <OMX_Component.h>
#include "omx_base_component.h"
#include "omx_base_audio_port.h"
Go to the source code of this file.
Functions | |
OMX_ERRORTYPE | base_audio_port_Constructor (OMX_COMPONENTTYPE *openmaxStandComp, omx_base_PortType **openmaxStandPort, OMX_U32 nPortIndex, OMX_BOOL isInput) |
The base contructor for the generic OpenMAX ST Audio port. | |
OMX_ERRORTYPE | base_audio_port_Destructor (omx_base_PortType *openmaxStandPort) |
The base audio port destructor for the generic OpenMAX ST Audio port. |
Copyright (C) 2007 STMicroelectronics Copyright (C) 2007-2008 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
$Date$ Revision $Rev$ Author $Author$
Definition in file omx_base_audio_port.c.
OMX_ERRORTYPE base_audio_port_Constructor | ( | OMX_COMPONENTTYPE * | openmaxStandComp, | |
omx_base_PortType ** | openmaxStandPort, | |||
OMX_U32 | nPortIndex, | |||
OMX_BOOL | isInput | |||
) |
The base contructor for the generic OpenMAX ST Audio port.
the base contructor for the generic OpenMAX ST Audio 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.
openmaxStandComp | pointer to the Handle of the component | |
openmaxStandPort | the ST port to be initialized | |
nPortIndex | Index of the port to be constructed | |
isInput | specifices if the port is an input or an output |
Definition at line 55 of file omx_base_audio_port.c.
References OMX_PARAM_PORTDEFINITIONTYPE::audio, base_audio_port_Destructor(), base_port_Constructor(), OMX_AUDIO_PORTDEFINITIONTYPE::bFlagErrorConcealment, OMX_AUDIO_PORTDEFINITIONTYPE::cMIMEType, DEFAULT_IN_BUFFER_SIZE, DEFAULT_MIME_STRING_LENGTH, DEFAULT_OUT_BUFFER_SIZE, OMX_PARAM_PORTDEFINITIONTYPE::eDomain, OMX_AUDIO_PORTDEFINITIONTYPE::eEncoding, OMX_AUDIO_PARAM_PORTFORMATTYPE::eEncoding, OMX_PARAM_PORTDEFINITIONTYPE::format, OMX_PARAM_PORTDEFINITIONTYPE::nBufferSize, OMX_AUDIO_PARAM_PORTFORMATTYPE::nIndex, OMX_AUDIO_PARAM_PORTFORMATTYPE::nPortIndex, OMX_AUDIO_CodingUnused, OMX_ErrorInsufficientResources, OMX_ErrorNone, OMX_FALSE, OMX_PortDomainAudio, OMX_TRUE, OMX_AUDIO_PORTDEFINITIONTYPE::pNativeRender, omx_base_audio_PortType::PortDestructor, omx_base_audio_PortType::sAudioParam, setHeader(), and omx_base_audio_PortType::sPortParam.
Referenced by omx_alsasink_component_Constructor(), omx_alsasrc_component_Constructor(), omx_audio_mixer_component_Constructor(), omx_audiodec_component_Constructor(), omx_filereader_component_Constructor(), omx_maddec_component_Constructor(), omx_parser3gp_component_Constructor(), omx_volume_component_Constructor(), and omx_vorbisdec_component_Constructor().
OMX_ERRORTYPE base_audio_port_Destructor | ( | omx_base_PortType * | openmaxStandPort | ) |
The base audio port destructor for the generic OpenMAX ST Audio port.
the base audio port destructor for the generic OpenMAX ST Audio 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
openmaxStandPort | the ST port to be destructed |
Definition at line 102 of file omx_base_audio_port.c.
References OMX_PARAM_PORTDEFINITIONTYPE::audio, base_port_Destructor(), OMX_AUDIO_PORTDEFINITIONTYPE::cMIMEType, OMX_PARAM_PORTDEFINITIONTYPE::format, OMX_ErrorNone, and omx_base_PortType::sPortParam.
Referenced by base_audio_port_Constructor().