📄 umc_avs_dec_processing_unit_sleep.cpp
字号:
/*
//
// INTEL CORPORATION PROPRIETARY INFORMATION
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Intel Corporation and may not be copied
// or disclosed except in accordance with the terms of that agreement.
// Copyright (c) 2007 Intel Corporation. All Rights Reserved.
//
//
*/
#include "umc_defs.h"
#if defined(UMC_ENABLE_AVS_VIDEO_DECODER)
#include "umc_avs_dec_processing_unit_sleep.h"
#include "umc_avs_dec_context.h"
#include "vm_time.h"
namespace UMC
{
//
// this class was designed to keep consistency with other performers.
// actually, it does nothing, just sleep for little amount of time.
//
enum
{
TIME_TO_SLEEP = 5
};
AVSSleepProcessingUnit::AVSSleepProcessingUnit(void)
{
} // AVSSleepProcessingUnit::AVSSleepProcessingUnit(void)
AVSSleepProcessingUnit::~AVSSleepProcessingUnit(void)
{
} // AVSSleepProcessingUnit::~AVSSleepProcessingUnit(void)
bool AVSSleepProcessingUnit::LoadJob(AVSListElement<AVSFrame> *pFrameList)
{
// touch unreferenced parameter
pFrameList = pFrameList;
// this class should be the last one in a chain of performers,
// so the method always returns true.
return true;
} // bool AVSSleepProcessingUnit::LoadJob(AVSListElement<AVSFrame> *pFrameList)
void AVSSleepProcessingUnit::DoJob(void)
{
// just sleep for a while
vm_time_sleep(TIME_TO_SLEEP);
} // void AVSSleepProcessingUnit::DoJob(void)
AVSTaskID AVSSleepProcessingUnit::GetTaskID(void)
{
return AVS_TASK_SLEEP;
} // AVSTaskID AVSSleepProcessingUnit::GetTaskID(void)
void AVSSleepProcessingUnit::UnloadJob(void)
{
// actually, it was just a halt of a thread for a while.
// there is nothing to unload.
} // void AVSSleepProcessingUnit::UnloadJob(void)
} // namespace UMC
#endif // #if defined(UMC_ENABLE_AVS_VIDEO_DECODER)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -