2011-07-07 08:21:25 +00:00
|
|
|
/*
|
2012-06-21 12:11:50 +00:00
|
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
2011-07-07 08:21:25 +00:00
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2012-06-29 13:20:14 +00:00
|
|
|
#ifndef WEBRTC_VIDEO_ENGINE_VIE_FILE_IMAGE_H_
|
|
|
|
|
#define WEBRTC_VIDEO_ENGINE_VIE_FILE_IMAGE_H_
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2013-05-17 13:44:48 +00:00
|
|
|
#include "webrtc/common_video/interface/i420_video_frame.h"
|
|
|
|
|
#include "webrtc/typedefs.h"
|
|
|
|
|
#include "webrtc/video_engine/include/vie_file.h"
|
2011-12-16 08:52:41 +00:00
|
|
|
|
2011-07-07 08:21:25 +00:00
|
|
|
namespace webrtc {
|
2011-12-16 08:52:41 +00:00
|
|
|
|
|
|
|
|
class ViEFileImage {
|
|
|
|
|
public:
|
|
|
|
|
static int ConvertJPEGToVideoFrame(int engine_id,
|
|
|
|
|
const char* file_nameUTF8,
|
2012-10-24 18:33:04 +00:00
|
|
|
I420VideoFrame* video_frame);
|
|
|
|
|
static int ConvertPictureToI420VideoFrame(int engine_id,
|
|
|
|
|
const ViEPicture& picture,
|
|
|
|
|
I420VideoFrame* video_frame);
|
2011-07-07 08:21:25 +00:00
|
|
|
};
|
|
|
|
|
|
2011-12-16 08:52:41 +00:00
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2012-06-29 13:20:14 +00:00
|
|
|
#endif // WEBRTC_VIDEO_ENGINE_VIE_FILE_IMAGE_H_
|