|
Packit |
1244b8 |
/*
|
|
Packit |
1244b8 |
* Copyright (C) 2015 Intel Corporation. All rights reserved.
|
|
Packit |
1244b8 |
*
|
|
Packit |
1244b8 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
Packit |
1244b8 |
* you may not use this file except in compliance with the License.
|
|
Packit |
1244b8 |
* You may obtain a copy of the License at
|
|
Packit |
1244b8 |
*
|
|
Packit |
1244b8 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
Packit |
1244b8 |
*
|
|
Packit |
1244b8 |
* Unless required by applicable law or agreed to in writing, software
|
|
Packit |
1244b8 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
Packit |
1244b8 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
Packit |
1244b8 |
* See the License for the specific language governing permissions and
|
|
Packit |
1244b8 |
* limitations under the License.
|
|
Packit |
1244b8 |
*/
|
|
Packit |
1244b8 |
|
|
Packit |
1244b8 |
#ifndef VIDEO_POST_PROCESS_INTERFACE_H_
|
|
Packit |
1244b8 |
#define VIDEO_POST_PROCESS_INTERFACE_H_
|
|
Packit |
1244b8 |
|
|
Packit |
1244b8 |
#include <VideoCommonDefs.h>
|
|
Packit |
1244b8 |
#include <VideoPostProcessDefs.h>
|
|
Packit |
1244b8 |
|
|
Packit |
1244b8 |
namespace YamiMediaCodec{
|
|
Packit |
1244b8 |
/**
|
|
Packit |
1244b8 |
* \class IVideoPostProcess
|
|
Packit |
1244b8 |
* \brief Abstract video post process interface of libyami
|
|
Packit |
1244b8 |
* it is the interface with client. they are not thread safe.
|
|
Packit |
1244b8 |
*/
|
|
Packit |
1244b8 |
class IVideoPostProcess {
|
|
Packit |
1244b8 |
public:
|
|
Packit |
1244b8 |
// set native display
|
|
Packit |
1244b8 |
virtual YamiStatus setNativeDisplay(const NativeDisplay& display) = 0;
|
|
Packit |
1244b8 |
// it may return YAMI_MORE_DATA when output is not ready
|
|
Packit |
1244b8 |
// it's no need fill every field of VideoFrame, we can get detailed information from lower level
|
|
Packit |
1244b8 |
// VideoFrame.surface is enough for most of case
|
|
Packit |
1244b8 |
// for some type of vpp such as deinterlace, we will hold a referece of src.
|
|
Packit |
1244b8 |
virtual YamiStatus process(const SharedPtr<VideoFrame>& src,
|
|
Packit |
1244b8 |
const SharedPtr<VideoFrame>& dest) = 0;
|
|
Packit |
1244b8 |
virtual YamiStatus setParameters(VppParamType type, void* vppParam) = 0;
|
|
Packit |
1244b8 |
virtual ~IVideoPostProcess() {}
|
|
Packit |
1244b8 |
};
|
|
Packit |
1244b8 |
}
|
|
Packit |
1244b8 |
#endif /* VIDEO_POST_PROCESS_INTERFACE_H_ */
|