/* ------------------------------------------------------------------
- * Copyright (C) 1998-2009 PacketVideo
+ * Copyright (C) 1998-2010 PacketVideo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
{
public:
OSCL_IMPORT_REF PV2WayLipSyncSourceAndSinks(PV2Way324InitInfo& aSdkInitInfo);
- OSCL_IMPORT_REF virtual ~PV2WayLipSyncSourceAndSinks()
- {}
+ OSCL_IMPORT_REF virtual ~PV2WayLipSyncSourceAndSinks();
protected:
/* ------------------------------------------------------------------
- * Copyright (C) 1998-2009 PacketVideo
+ * Copyright (C) 1998-2010 PacketVideo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include "pv_2way_media_output_mio_node_factory.h"
#include "pv_2way_interface.h"
-#include "pvmf_fileoutput_factory.h"
#include "pv_2way_media.h"
#include "pvmi_media_io_fileoutput.h"
#include "pv_media_output_node_factory.h"
/* ------------------------------------------------------------------
- * Copyright (C) 1998-2009 PacketVideo
+ * Copyright (C) 1998-2010 PacketVideo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include "pv_2way_source_and_sinks_lipsync.h"
-PV2WayLipSyncSourceAndSinks::PV2WayLipSyncSourceAndSinks(PV2Way324InitInfo& aSdkInitInfo):
+OSCL_EXPORT_REF PV2WayLipSyncSourceAndSinks::PV2WayLipSyncSourceAndSinks(PV2Way324InitInfo& aSdkInitInfo):
PV2WayDummySourceAndSinks(aSdkInitInfo)
{
if (iDummyMioAudioInputFactory)
iDummyMioVideoOutputFactory = OSCL_NEW(PV2WayLipSyncOutputMIONodeFactory, ());
}
+OSCL_EXPORT_REF PV2WayLipSyncSourceAndSinks::~PV2WayLipSyncSourceAndSinks()
+{
+}
#include "pvmf_media_input_node_factory.h"
#include "pv_2way_interface.h"
-#include "pvmf_fileoutput_factory.h"
#include "pv_2way_media.h"
#include "pvmf_dummy_fileinput_node_factory.h"
#include "pvmf_dummy_fileoutput_factory.h"
OSCL_EXPORT_REF void PV2WayLogger::CreateLogger()
{
+ //output file
OSCL_HeapString<OsclMemAllocator> logfilename(PVLOG_PREPEND_OUT_FILENAME);
logfilename += PVLOG_OUT_FILENAME;
PVLoggerCfgFileParser::SetupLogAppender(PVLoggerCfgFileParser::ePVLOG_APPENDER_FILE,
// This header file is automatically generated at build-time
// *** OFFICIAL RELEASE INFO -- Will not auto update
-#define PV2WAY_ENGINE_SDKINFO_LABEL "1306603"
+#define PV2WAY_ENGINE_SDKINFO_LABEL "1306627"
#define PV2WAY_ENGINE_SDKINFO_DATE 0x20100308
#endif //PV_2WAY_SDKINFO_H_INCLUDED
virtual ~test_base()
{
+ CancelTimers();
cleanup();
if (iSourceAndSinks)
{
#include "basic_lipsync_test.h"
#include "acceptable_formats_test.h"
#include "negotiated_formats_test.h"
-#include "pvmf_fileoutput_factory.h"
#include "oscl_string_utils.h"
#include "oscl_mem_audit.h"
#include "pv_2way_mio.h"
// This header file is automatically generated at build-time
// *** OFFICIAL RELEASE INFO -- Will not auto update
-#define PVAUTHOR_ENGINE_SDKINFO_LABEL "1306603"
+#define PVAUTHOR_ENGINE_SDKINFO_LABEL "1306627"
#define PVAUTHOR_ENGINE_SDKINFO_DATE 0x20100308
#endif //PV_AUTHOR_SDKINFO_H_INCLUDED
// This header file is automatically generated at build-time
// *** OFFICIAL RELEASE INFO -- Will not auto update
-#define PVPLAYER_ENGINE_SDKINFO_LABEL "1306603"
+#define PVPLAYER_ENGINE_SDKINFO_LABEL "1306627"
#define PVPLAYER_ENGINE_SDKINFO_DATE 0x20100308
#endif //PV_PLAYER_SDKINFO_H_INCLUDED
./common/src/pvt_common.cpp \
./common/src/lipsync_singleton_object.cpp \
./common/src/h324utils.cpp \
+ ./common/src/pv_2way_h324m_types.cpp \
./h223/src/adaptationlayer.cpp \
./h223/src/cpvh223multiplex.cpp \
./h223/src/h223api.cpp \
SRCS += common/src/pvt_common.cpp \
common/src/lipsync_singleton_object.cpp \
common/src/h324utils.cpp \
+ common/src/pv_2way_h324m_types.cpp \
h223/src/adaptationlayer.cpp \
h223/src/cpvh223multiplex.cpp \
h223/src/h223api.cpp \
#include "pv_2way_basic_types.h"
#endif
+#ifndef PV_UUID_H_INCLUDED
+#include "pv_uuid.h"
+#endif
+
+#ifndef PV_INTERFACE_H
+#include "pv_interface.h"
+#endif
+
// MACROS
/** The maximum number of supported formats for user input **/
#define PV_2WAY_MAX_USER_INPUT_FORMATS 4
* Constructor of CPVUserInputDtmf class.
*
**/
- OSCL_IMPORT_REF CPVUserInput(): iRefCounter(1) {};
+ OSCL_IMPORT_REF CPVUserInput();
/**
* Virtual destructor
* KErrNoMemory if the SDK failed to allocate memory during this operation.
* @returns void
**/
- OSCL_IMPORT_REF CPVUserInputDtmf(uint8 aInput, bool aUpdate, uint16 aDuration = 0) :
- iInput(aInput),
- iIsUpdate(aUpdate),
- iDuration(aDuration)
- {};
+ OSCL_IMPORT_REF CPVUserInputDtmf(uint8 aInput, bool aUpdate, uint16 aDuration = 0);
/**
* Destructor.
**/
- OSCL_IMPORT_REF ~CPVUserInputDtmf() {};
+ //OSCL_IMPORT_REF ~CPVUserInputDtmf() {};
+ OSCL_IMPORT_REF ~CPVUserInputDtmf();
// from CPVUserInput
- OSCL_IMPORT_REF PV2WayUserInputType GetType()
- {
- return PV_DTMF;
- }
+ OSCL_IMPORT_REF PV2WayUserInputType GetType();
/**
* Return the user input DTMF tone
*
* @returns Returns the input DTMF tone.
**/
- OSCL_IMPORT_REF uint8 GetInput()
- {
- return iInput;
- }
+ OSCL_IMPORT_REF uint8 GetInput();
/**
* Return if the DTMF tone is an update
*
* @returns Returns if the input DTMF tone is an update.
**/
- OSCL_IMPORT_REF bool IsUpdate()
- {
- return iIsUpdate;
- }
+ OSCL_IMPORT_REF bool IsUpdate();
/**
* Return the duration of the update.
*
* @returns Returns the duration of the update.
**/
- OSCL_IMPORT_REF uint16 GetDuration()
- {
- return iDuration;
- }
+ OSCL_IMPORT_REF uint16 GetDuration();
private:
/**
* @leave This method can leave with one of the following error codes
* OsclErrGeneral memory copy failed
**/
- OSCL_IMPORT_REF CPVUserInputAlphanumeric(uint8* apInput, uint16 aLen)
- {
- if (aLen)
- {
- int err;
- ipInput = OSCL_STATIC_CAST(uint8*, OSCL_MALLOC(aLen));
- OSCL_TRY(err, oscl_memcpy(ipInput, apInput, aLen));
- OSCL_FIRST_CATCH_ANY(err,
- OSCL_DELETE(ipInput);
- OSCL_LEAVE(OsclErrGeneral);
- );
- iLength = aLen;
- }
- }
+ OSCL_IMPORT_REF CPVUserInputAlphanumeric(uint8* apInput, uint16 aLen);
/**
* Destructor.
**/
- OSCL_IMPORT_REF ~CPVUserInputAlphanumeric()
- {
- if (ipInput)
- {
- OSCL_DELETE(ipInput);
- }
- }
+ OSCL_IMPORT_REF ~CPVUserInputAlphanumeric();
// from CPVUserInput
- OSCL_IMPORT_REF PV2WayUserInputType GetType()
- {
- return PV_ALPHANUMERIC;
- }
+ OSCL_IMPORT_REF PV2WayUserInputType GetType();
/**
* Return the user input alphanumeric user input
*
* @returns Returns pointer to alphanumeric user input.
**/
- OSCL_IMPORT_REF uint8* GetInput()
- {
- return ipInput;
- }
+ OSCL_IMPORT_REF uint8* GetInput();
/**
* Return the size of alphanumeric user input
*
* @returns Returns size of alphanumeric user input.
**/
- OSCL_IMPORT_REF uint16 GetLength()
- {
- return iLength;
- }
+ OSCL_IMPORT_REF uint16 GetLength();
protected:
/**
--- /dev/null
+/* ------------------------------------------------------------------
+ * Copyright (C) 1998-2010 PacketVideo
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ * -------------------------------------------------------------------
+ */
+#include "pv_2way_h324m_types.h"
+
+OSCL_EXPORT_REF CPVUserInput::CPVUserInput(): iRefCounter(1) {}
+
+OSCL_EXPORT_REF CPVUserInputDtmf::CPVUserInputDtmf(uint8 aInput, bool aUpdate, uint16 aDuration) :
+ iInput(aInput),
+ iIsUpdate(aUpdate),
+ iDuration(aDuration)
+{}
+
+OSCL_EXPORT_REF CPVUserInputDtmf::~CPVUserInputDtmf()
+{}
+
+OSCL_EXPORT_REF PV2WayUserInputType CPVUserInputDtmf::GetType()
+{
+ return PV_DTMF;
+}
+
+OSCL_EXPORT_REF uint8 CPVUserInputDtmf::GetInput()
+{
+ return iInput;
+}
+
+OSCL_EXPORT_REF bool CPVUserInputDtmf::IsUpdate()
+{
+ return iIsUpdate;
+}
+
+OSCL_EXPORT_REF uint16 CPVUserInputDtmf::GetDuration()
+{
+ return iDuration;
+}
+
+OSCL_EXPORT_REF CPVUserInputAlphanumeric::CPVUserInputAlphanumeric(uint8* apInput, uint16 aLen)
+{
+ if (aLen)
+ {
+ int err;
+ OSCL_TRY(err, ipInput = OSCL_STATIC_CAST(uint8*, OSCL_MALLOC(aLen)));
+ OSCL_FIRST_CATCH_ANY(err, return;);
+
+ OSCL_TRY(err, oscl_memcpy(ipInput, apInput, aLen));
+ OSCL_FIRST_CATCH_ANY(err, OSCL_FREE(ipInput); return;);
+ iLength = aLen;
+ }
+}
+
+OSCL_EXPORT_REF CPVUserInputAlphanumeric::~CPVUserInputAlphanumeric()
+{
+ if (ipInput)
+ {
+ OSCL_DELETE(ipInput);
+ }
+}
+
+OSCL_EXPORT_REF PV2WayUserInputType CPVUserInputAlphanumeric::GetType()
+{
+ return PV_ALPHANUMERIC;
+}
+
+OSCL_EXPORT_REF uint8* CPVUserInputAlphanumeric::GetInput()
+{
+ return ipInput;
+}
+
+OSCL_EXPORT_REF uint16 CPVUserInputAlphanumeric::GetLength()
+{
+ return iLength;
+}
*
* @returns A pointer to a CPvtMediaCapability
**/
- CPvtMediaCapability* GetRemoteCodecCapability(FormatCapabilityInfo aFormatCapabilityInfo);
+ OSCL_IMPORT_REF CPvtMediaCapability* GetRemoteCodecCapability(FormatCapabilityInfo aFormatCapabilityInfo);
OSCL_IMPORT_REF void SetClock(PVMFMediaClock* aClock);
OSCL_IMPORT_REF void SetMioLatency(int32 aLatency, bool aAudio);
*
* @returns TPVStatusCode Fails if channel is not found
**/
- TPVStatusCode SetLogicalChannelPause(TPVChannelId aChannelId, TPVDirection aDir, bool aPause);
+ OSCL_IMPORT_REF TPVStatusCode SetLogicalChannelPause(TPVChannelId aChannelId, TPVDirection aDir, bool aPause);
private:
void Cleanup();
return iTSCcapability.GetRemoteCapability();
}
-CPvtMediaCapability* TSC_324m::GetRemoteCodecCapability(FormatCapabilityInfo aFormatCapabilityInfo)
+OSCL_EXPORT_REF CPvtMediaCapability* TSC_324m::GetRemoteCodecCapability(FormatCapabilityInfo aFormatCapabilityInfo)
{
CPvtMediaCapability* pMediaCapability = NULL;
CPvtTerminalCapability* pRemoteCaps = GetRemoteCapability();
return EPVT_Success;
}
-PVMFStatus TSC_324m::SetLogicalChannelPause(TPVChannelId aChannelId, TPVDirection aDir, bool aPause)
+OSCL_EXPORT_REF PVMFStatus TSC_324m::SetLogicalChannelPause(TPVChannelId aChannelId, TPVDirection aDir, bool aPause)
{
PVLOGGER_LOGMSG(PVLOGMSG_INST_HLDBG, iLogger, PVLOGMSG_STACK_TRACE,
(0, "TSC_324m::SetPause ChannelId(%d), Direction(%d), Pause(%d)", aChannelId, aDir, aPause));
case PhaseG_Dis:
statusString[index] = "PhaseG_Dis";
break;
+ default:
+ statusString[index] = NULL;
+ break;
}
}