Refactored ViEFileImpl and ViEExternalCodec.

Review URL: http://webrtc-codereview.appspot.com/330007

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1246 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mflodman@webrtc.org 2011-12-20 10:39:30 +00:00
parent f3cea2336b
commit 813b4ef2ea
4 changed files with 1215 additions and 1635 deletions

View File

@ -8,196 +8,159 @@
* be found in the AUTHORS file in the root of the source tree.
*/
/*
* vie_external_codec_impl.cc
*/
#include "video_engine/vie_external_codec_impl.h"
#include "engine_configurations.h"
#include "vie_external_codec_impl.h"
#include "vie_errors.h"
#include "trace.h"
#include "vie_impl.h"
#include "vie_channel.h"
#include "vie_encoder.h"
#include "vie_channel_manager.h"
#include "system_wrappers/interface/trace.h"
#include "video_engine/main/interface/vie_errors.h"
#include "video_engine/vie_channel.h"
#include "video_engine/vie_channel_manager.h"
#include "video_engine/vie_encoder.h"
#include "video_engine/vie_impl.h"
namespace webrtc
{
namespace webrtc {
// ----------------------------------------------------------------------------
// GetInterface
// ----------------------------------------------------------------------------
ViEExternalCodec* ViEExternalCodec::GetInterface(VideoEngine* videoEngine)
{
ViEExternalCodec* ViEExternalCodec::GetInterface(VideoEngine* video_engine) {
#ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
if (videoEngine == NULL)
{
return NULL;
}
VideoEngineImpl* vieImpl = reinterpret_cast<VideoEngineImpl*> (videoEngine);
ViEExternalCodecImpl* vieExternalCodecImpl = vieImpl;
(*vieExternalCodecImpl)++; // Increase ref count
return vieExternalCodecImpl;
#else
if (video_engine == NULL) {
return NULL;
}
VideoEngineImpl* vie_impl = reinterpret_cast<VideoEngineImpl*>(video_engine);
ViEExternalCodecImpl* vie_external_codec_impl = vie_impl;
// Increase ref count.
(*vie_external_codec_impl)++;
return vie_external_codec_impl;
#else
return NULL;
#endif
}
// ----------------------------------------------------------------------------
// Release
//
// Releases the interface, i.e. reduces the reference counter. The number of
// remaining references is returned, -1 if released too many times.
// ----------------------------------------------------------------------------
int ViEExternalCodecImpl::Release()
{
WEBRTC_TRACE(webrtc::kTraceApiCall, webrtc::kTraceVideo, instance_id_,
int ViEExternalCodecImpl::Release() {
WEBRTC_TRACE(kTraceApiCall, kTraceVideo, instance_id_,
"ViEExternalCodec::Release()");
(*this)--; // Decrease ref count
// Decrease ref count.
(*this)--;
WebRtc_Word32 refCount = GetCount();
if (refCount < 0)
{
WEBRTC_TRACE(webrtc::kTraceWarning, webrtc::kTraceVideo, instance_id_,
"ViEExternalCodec release too many times");
SetLastError(kViEAPIDoesNotExist);
return -1;
}
WEBRTC_TRACE(webrtc::kTraceInfo, webrtc::kTraceVideo, instance_id_,
"ViEExternalCodec reference count: %d", refCount);
return refCount;
WebRtc_Word32 ref_count = GetCount();
if (ref_count < 0) {
WEBRTC_TRACE(kTraceWarning, kTraceVideo, instance_id_,
"ViEExternalCodec release too many times");
SetLastError(kViEAPIDoesNotExist);
return -1;
}
WEBRTC_TRACE(kTraceInfo, kTraceVideo, instance_id_,
"ViEExternalCodec reference count: %d", ref_count);
return ref_count;
}
// ----------------------------------------------------------------------------
// RegisterExternalSendCodec
// ----------------------------------------------------------------------------
int ViEExternalCodecImpl::RegisterExternalSendCodec(const int video_channel,
const unsigned char pl_type,
VideoEncoder* encoder) {
WEBRTC_TRACE(kTraceApiCall, kTraceVideo, ViEId(instance_id_),
"%s channel %d pl_type %d encoder 0x%x", __FUNCTION__,
video_channel, pl_type, encoder);
int ViEExternalCodecImpl::RegisterExternalSendCodec(const int videoChannel,
const unsigned char plType,
VideoEncoder* encoder)
{
WEBRTC_TRACE(webrtc::kTraceApiCall, webrtc::kTraceVideo, ViEId(instance_id_),
"%s channel %d plType %d encoder 0x%x", __FUNCTION__,
videoChannel, plType, encoder);
ViEChannelManagerScoped cs(channel_manager_);
ViEEncoder* vie_encoder = cs.Encoder(video_channel);
if (!vie_encoder) {
WEBRTC_TRACE(kTraceError, kTraceVideo, ViEId(instance_id_, video_channel),
"%s: Invalid argument video_channel %u. Does it exist?",
__FUNCTION__, video_channel);
SetLastError(kViECodecInvalidArgument);
return -1;
}
if (!encoder) {
WEBRTC_TRACE(kTraceError, kTraceVideo, ViEId(instance_id_, video_channel),
"%s: Invalid argument Encoder 0x%x.", __FUNCTION__, encoder);
SetLastError(kViECodecInvalidArgument);
return -1;
}
ViEChannelManagerScoped cs(channel_manager_);
ViEEncoder* vieEncoder = cs.Encoder(videoChannel);
if (!vieEncoder)
{
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceVideo,
ViEId(instance_id_, videoChannel),
"%s: Invalid argument videoChannel %u. Does it exist?",
__FUNCTION__, videoChannel);
SetLastError(kViECodecInvalidArgument);
return -1;
}
if (!encoder)
{
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceVideo,
ViEId(instance_id_, videoChannel),
"%s: Invalid argument Encoder 0x%x.", __FUNCTION__, encoder);
SetLastError(kViECodecInvalidArgument);
return -1;
}
if (vieEncoder->RegisterExternalEncoder(encoder, plType) != 0)
{
SetLastError(kViECodecUnknownError);
return -1;
}
return 0;
if (vie_encoder->RegisterExternalEncoder(encoder, pl_type) != 0) {
SetLastError(kViECodecUnknownError);
return -1;
}
return 0;
}
int ViEExternalCodecImpl::DeRegisterExternalSendCodec(
const int videoChannel, const unsigned char plType)
{
WEBRTC_TRACE(webrtc::kTraceApiCall, webrtc::kTraceVideo, ViEId(instance_id_),
"%s channel %d plType %d", __FUNCTION__, videoChannel, plType);
const int video_channel, const unsigned char pl_type) {
WEBRTC_TRACE(kTraceApiCall, kTraceVideo, ViEId(instance_id_),
"%s channel %d pl_type %d", __FUNCTION__, video_channel,
pl_type);
ViEChannelManagerScoped cs(channel_manager_);
ViEEncoder* vieEncoder = cs.Encoder(videoChannel);
if (!vieEncoder)
{
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceVideo,
ViEId(instance_id_, videoChannel),
"%s: Invalid argument videoChannel %u. Does it exist?",
__FUNCTION__, videoChannel);
SetLastError(kViECodecInvalidArgument);
return -1;
}
if (vieEncoder->DeRegisterExternalEncoder(plType) != 0)
{
SetLastError(kViECodecUnknownError);
return -1;
}
return 0;
ViEChannelManagerScoped cs(channel_manager_);
ViEEncoder* vie_encoder = cs.Encoder(video_channel);
if (!vie_encoder) {
WEBRTC_TRACE(kTraceError, kTraceVideo, ViEId(instance_id_, video_channel),
"%s: Invalid argument video_channel %u. Does it exist?",
__FUNCTION__, video_channel);
SetLastError(kViECodecInvalidArgument);
return -1;
}
if (vie_encoder->DeRegisterExternalEncoder(pl_type) != 0) {
SetLastError(kViECodecUnknownError);
return -1;
}
return 0;
}
int ViEExternalCodecImpl::RegisterExternalReceiveCodec(
const int videoChannel, const unsigned int plType, VideoDecoder* decoder,
bool decoderRender /*= false*/, int renderDelay /*= 0*/)
{
WEBRTC_TRACE(webrtc::kTraceApiCall, webrtc::kTraceVideo, ViEId(instance_id_),
"%s channel %d plType %d decoder 0x%x, decoderRender %d, "
"renderDelay %d", __FUNCTION__, videoChannel, plType, decoder,
decoderRender, renderDelay);
const int video_channel,
const unsigned int pl_type,
VideoDecoder* decoder,
bool decoder_render,
int render_delay) {
WEBRTC_TRACE(kTraceApiCall, kTraceVideo, ViEId(instance_id_),
"%s channel %d pl_type %d decoder 0x%x, decoder_render %d, "
"renderDelay %d", __FUNCTION__, video_channel, pl_type, decoder,
decoder_render, render_delay);
ViEChannelManagerScoped cs(channel_manager_);
ViEChannel* vieChannel = cs.Channel(videoChannel);
if (!vieChannel)
{
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceVideo,
ViEId(instance_id_, videoChannel),
"%s: Invalid argument videoChannel %u. Does it exist?",
__FUNCTION__, videoChannel);
SetLastError(kViECodecInvalidArgument);
return -1;
}
if (!decoder)
{
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceVideo,
ViEId(instance_id_, videoChannel),
"%s: Invalid argument decoder 0x%x.", __FUNCTION__, decoder);
SetLastError(kViECodecInvalidArgument);
return -1;
}
ViEChannelManagerScoped cs(channel_manager_);
ViEChannel* vie_channel = cs.Channel(video_channel);
if (!vie_channel) {
WEBRTC_TRACE(kTraceError, kTraceVideo, ViEId(instance_id_, video_channel),
"%s: Invalid argument video_channel %u. Does it exist?",
__FUNCTION__, video_channel);
SetLastError(kViECodecInvalidArgument);
return -1;
}
if (!decoder) {
WEBRTC_TRACE(kTraceError, kTraceVideo, ViEId(instance_id_, video_channel),
"%s: Invalid argument decoder 0x%x.", __FUNCTION__, decoder);
SetLastError(kViECodecInvalidArgument);
return -1;
}
if (vieChannel->RegisterExternalDecoder(plType, decoder, decoderRender,
renderDelay) != 0)
{
SetLastError(kViECodecUnknownError);
return -1;
}
return 0;
if (vie_channel->RegisterExternalDecoder(pl_type, decoder, decoder_render,
render_delay) != 0) {
SetLastError(kViECodecUnknownError);
return -1;
}
return 0;
}
int ViEExternalCodecImpl::DeRegisterExternalReceiveCodec(
const int videoChannel, const unsigned char plType)
{
WEBRTC_TRACE(webrtc::kTraceApiCall, webrtc::kTraceVideo, ViEId(instance_id_),
"%s channel %d plType %u", __FUNCTION__, videoChannel, plType);
const int video_channel, const unsigned char pl_type) {
WEBRTC_TRACE(kTraceApiCall, kTraceVideo, ViEId(instance_id_),
"%s channel %d pl_type %u", __FUNCTION__, video_channel,
pl_type);
ViEChannelManagerScoped cs(channel_manager_);
ViEChannel* vieChannel = cs.Channel(videoChannel);
if (!vieChannel)
{
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceVideo,
ViEId(instance_id_, videoChannel),
"%s: Invalid argument videoChannel %u. Does it exist?",
__FUNCTION__, videoChannel);
SetLastError(kViECodecInvalidArgument);
return -1;
}
if (vieChannel->DeRegisterExternalDecoder(plType) != 0)
{
SetLastError(kViECodecUnknownError);
return -1;
}
return 0;
ViEChannelManagerScoped cs(channel_manager_);
ViEChannel* vie_channel = cs.Channel(video_channel);
if (!vie_channel) {
WEBRTC_TRACE(kTraceError, kTraceVideo, ViEId(instance_id_, video_channel),
"%s: Invalid argument video_channel %u. Does it exist?",
__FUNCTION__, video_channel);
SetLastError(kViECodecInvalidArgument);
return -1;
}
if (vie_channel->DeRegisterExternalDecoder(pl_type) != 0) {
SetLastError(kViECodecUnknownError);
return -1;
}
return 0;
}
} // namespace webrtc
} // namespace webrtc

View File

@ -8,47 +8,36 @@
* be found in the AUTHORS file in the root of the source tree.
*/
/*
* vie_external_codec_impl.h
*/
#ifndef WEBRTC_VIDEO_ENGINE_VIE_EXTERNAL_CODEC_IMPL_H_
#define WEBRTC_VIDEO_ENGINE_VIE_EXTERNAL_CODEC_IMPL_H_
#ifndef WEBRTC_VIDEO_ENGINE_MAIN_SOURCE_VIE_EXTERNAL_CODEC_IMPL_H_
#define WEBRTC_VIDEO_ENGINE_MAIN_SOURCE_VIE_EXTERNAL_CODEC_IMPL_H_
#include "video_engine/main/interface/vie_external_codec.h"
#include "video_engine/vie_ref_count.h"
#include "video_engine/vie_shared_data.h"
#include "vie_external_codec.h"
#include "vie_ref_count.h"
#include "vie_shared_data.h"
namespace webrtc {
namespace webrtc
{
// ----------------------------------------------------------------------------
// ViEExternalCodec
// ----------------------------------------------------------------------------
class ViEExternalCodecImpl : public virtual ViESharedData,
public ViEExternalCodec,
public ViERefCount
{
public:
virtual int Release();
virtual int RegisterExternalSendCodec(const int videoChannel,
const unsigned char plType,
VideoEncoder* encoder);
virtual int DeRegisterExternalSendCodec(const int videoChannel,
const unsigned char plType);
virtual int RegisterExternalReceiveCodec(const int videoChannel,
const unsigned int plType,
VideoDecoder* decoder,
bool decoderRender = false,
int renderDelay = 0);
virtual int DeRegisterExternalReceiveCodec(const int videoChannel,
const unsigned char plType);
class ViEExternalCodecImpl
: public virtual ViESharedData,
public ViEExternalCodec,
public ViERefCount {
public:
// Implements ViEExternalCodec.
virtual int Release();
virtual int RegisterExternalSendCodec(const int video_channel,
const unsigned char pl_type,
VideoEncoder* encoder);
virtual int DeRegisterExternalSendCodec(const int video_channel,
const unsigned char pl_type);
virtual int RegisterExternalReceiveCodec(const int video_channel,
const unsigned int pl_type,
VideoDecoder* decoder,
bool decoder_render = false,
int render_delay = 0);
virtual int DeRegisterExternalReceiveCodec(const int video_channel,
const unsigned char pl_type);
};
} // namespace webrtc
#endif // WEBRTC_VIDEO_ENGINE_MAIN_SOURCE_VIE_EXTERNAL_CODEC_IMPL_H_
} // namespace webrtc
#endif // WEBRTC_VIDEO_ENGINE_VIE_EXTERNAL_CODEC_IMPL_H_

File diff suppressed because it is too large Load Diff

View File

@ -8,168 +8,120 @@
* be found in the AUTHORS file in the root of the source tree.
*/
/*
* vie_file_impl.h
*/
#ifndef WEBRTC_VIDEO_ENGINE_MAIN_SOURCE_VIE_FILE_IMPL_H_
#define WEBRTC_VIDEO_ENGINE_MAIN_SOURCE_VIE_FILE_IMPL_H_
#ifndef WEBRTC_VIDEO_ENGINE_VIE_FILE_IMPL_H_
#define WEBRTC_VIDEO_ENGINE_VIE_FILE_IMPL_H_
#include "typedefs.h"
#include "vie_defines.h"
#include "vie_file.h"
#include "vie_frame_provider_base.h"
#include "vie_ref_count.h"
#include "vie_shared_data.h"
#include "video_engine/main/interface/vie_file.h"
#include "video_engine/vie_defines.h"
#include "video_engine/vie_frame_provider_base.h"
#include "video_engine/vie_ref_count.h"
#include "video_engine/vie_shared_data.h"
namespace webrtc {
namespace webrtc
{
class ConditionVariableWrapper;
// ----------------------------------------------------------------------------
// ViECaptureSnapshot
// ----------------------------------------------------------------------------
class ViECaptureSnapshot : public ViEFrameCallback {
public:
ViECaptureSnapshot();
~ViECaptureSnapshot();
class ViECaptureSnapshot: public ViEFrameCallback
{
public:
ViECaptureSnapshot();
~ViECaptureSnapshot();
bool GetSnapshot(VideoFrame& video_frame, unsigned int max_wait_time);
bool GetSnapshot(VideoFrame& videoFrame, unsigned int maxWaitTime);
// Implements ViEFrameCallback.
virtual void DeliverFrame(int id, VideoFrame& video_frame, int num_csrcs = 0,
const WebRtc_UWord32 CSRC[kRtpCsrcSize] = NULL);
virtual void DelayChanged(int id, int frame_delay) {}
virtual int GetPreferedFrameSettings(int& width, int& height,
int& frame_rate) {
return -1;
}
virtual void ProviderDestroyed(int id) {}
// From ViEFrameCallback
virtual void DeliverFrame(int id, VideoFrame& videoFrame, int numCSRCs = 0,
const WebRtc_UWord32 CSRC[kRtpCsrcSize] = NULL);
virtual void DelayChanged(int id, int frameDelay) {}
virtual int GetPreferedFrameSettings(int &width, int &height,
int &frameRate)
{
return -1;
}
virtual void ProviderDestroyed(int id) {}
private:
CriticalSectionWrapper& _crit;
ConditionVariableWrapper& _conditionVaraible;
VideoFrame* _ptrVideoFrame;
private:
CriticalSectionWrapper& crit_;
ConditionVariableWrapper& condition_varaible_;
VideoFrame* video_frame_;
};
// ----------------------------------------------------------------------------
// VideoFileImpl
// ----------------------------------------------------------------------------
class ViEFileImpl: public virtual ViESharedData,
public ViEFile,
public ViERefCount
{
public:
virtual int Release();
// Play file
virtual int StartPlayFile(const char* fileNameUTF8, int& fileId,
const bool loop = false,
const webrtc::FileFormats fileFormat =
webrtc::kFileFormatAviFile);
virtual int StopPlayFile(const int fileId);
virtual int RegisterObserver(int fileId, ViEFileObserver& observer);
virtual int DeregisterObserver(int fileId, ViEFileObserver& observer);
virtual int SendFileOnChannel(const int fileId, const int videoChannel);
virtual int StopSendFileOnChannel(const int videoChannel);
virtual int StartPlayFileAsMicrophone(const int fileId,
const int audioChannel,
bool mixMicrophone = false,
float volumeScaling = 1);
virtual int StopPlayFileAsMicrophone(const int fileId,
const int audioChannel);
virtual int StartPlayAudioLocally(const int fileId, const int audioChannel,
float volumeScaling = 1);
virtual int StopPlayAudioLocally(const int fileId, const int audioChannel);
virtual int StartRecordOutgoingVideo(const int videoChannel,
const char* fileNameUTF8,
AudioSource audioSource,
const webrtc::CodecInst& audioCodec,
const VideoCodec& videoCodec,
const webrtc::FileFormats fileFormat =
webrtc::kFileFormatAviFile);
virtual int StartRecordIncomingVideo(const int videoChannel,
const char* fileNameUTF8,
AudioSource audioSource,
const webrtc::CodecInst& audioCodec,
const VideoCodec& videoCodec,
const webrtc::FileFormats fileFormat =
webrtc::kFileFormatAviFile);
virtual int StopRecordOutgoingVideo(const int videoChannel);
virtual int StopRecordIncomingVideo(const int videoChannel);
// File information
virtual int GetFileInformation(const char* fileName,
VideoCodec& videoCodec,
webrtc::CodecInst& audioCodec,
const webrtc::FileFormats fileFormat =
webrtc::kFileFormatAviFile);
// Snapshot
virtual int GetRenderSnapshot(const int videoChannel,
const char* fileNameUTF8);
virtual int GetRenderSnapshot(const int videoChannel, ViEPicture& picture);
virtual int FreePicture(ViEPicture& picture);
virtual int GetCaptureDeviceSnapshot(const int captureId,
const char* fileNameUTF8);
virtual int GetCaptureDeviceSnapshot(const int captureId,
ViEPicture& picture);
// Capture device images
virtual int SetCaptureDeviceImage(const int captureId,
const char* fileNameUTF8);
virtual int SetCaptureDeviceImage(const int captureId,
const ViEPicture& picture);
// Render images
virtual int SetRenderStartImage(const int videoChannel,
const char* fileNameUTF8);
virtual int SetRenderStartImage(const int videoChannel,
class ViEFileImpl
: public virtual ViESharedData,
public ViEFile,
public ViERefCount {
public:
// Implements ViEFile.
virtual int Release();
virtual int StartPlayFile(const char* file_nameUTF8, int& file_id,
const bool loop = false,
const FileFormats file_format = kFileFormatAviFile);
virtual int StopPlayFile(const int file_id);
virtual int RegisterObserver(int file_id, ViEFileObserver& observer);
virtual int DeregisterObserver(int file_id, ViEFileObserver& observer);
virtual int SendFileOnChannel(const int file_id, const int video_channel);
virtual int StopSendFileOnChannel(const int video_channel);
virtual int StartPlayFileAsMicrophone(const int file_id,
const int audio_channel,
bool mix_microphone = false,
float volume_scaling = 1);
virtual int StopPlayFileAsMicrophone(const int file_id,
const int audio_channel);
virtual int StartPlayAudioLocally(const int file_id, const int audio_channel,
float volume_scaling = 1);
virtual int StopPlayAudioLocally(const int file_id, const int audio_channel);
virtual int StartRecordOutgoingVideo(
const int video_channel,
const char* file_nameUTF8,
AudioSource audio_source,
const CodecInst& audio_codec,
const VideoCodec& video_codec,
const FileFormats file_format = kFileFormatAviFile);
virtual int StartRecordIncomingVideo(
const int video_channel,
const char* file_nameUTF8,
AudioSource audio_source,
const CodecInst& audio_codec,
const VideoCodec& video_codec,
const FileFormats file_format = kFileFormatAviFile);
virtual int StopRecordOutgoingVideo(const int video_channel);
virtual int StopRecordIncomingVideo(const int video_channel);
virtual int GetFileInformation(
const char* file_name,
VideoCodec& video_codec,
CodecInst& audio_codec,
const FileFormats file_format = kFileFormatAviFile);
virtual int GetRenderSnapshot(const int video_channel,
const char* file_nameUTF8);
virtual int GetRenderSnapshot(const int video_channel, ViEPicture& picture);
virtual int FreePicture(ViEPicture& picture);
virtual int GetCaptureDeviceSnapshot(const int capture_id,
const char* file_nameUTF8);
virtual int GetCaptureDeviceSnapshot(const int capture_id,
ViEPicture& picture);
virtual int SetCaptureDeviceImage(const int capture_id,
const char* file_nameUTF8);
virtual int SetCaptureDeviceImage(const int capture_id,
const ViEPicture& picture);
virtual int SetRenderStartImage(const int video_channel,
const char* file_nameUTF8);
virtual int SetRenderStartImage(const int video_channel,
const ViEPicture& picture);
virtual int SetRenderTimeoutImage(const int video_channel,
const char* file_nameUTF8,
const unsigned int timeout_ms);
virtual int SetRenderTimeoutImage(const int video_channel,
const ViEPicture& picture,
const unsigned int timeout_ms);
// Timeout image
virtual int SetRenderTimeoutImage(const int videoChannel,
const char* fileNameUTF8,
const unsigned int timeoutMs);
virtual int SetRenderTimeoutImage(const int videoChannel,
const ViEPicture& picture,
const unsigned int timeoutMs);
protected:
ViEFileImpl();
virtual ~ViEFileImpl();
private:
WebRtc_Word32 GetNextCapturedFrame(WebRtc_Word32 captureId,
VideoFrame& videoFrame);
protected:
ViEFileImpl();
virtual ~ViEFileImpl();
private:
WebRtc_Word32 GetNextCapturedFrame(WebRtc_Word32 capture_id,
VideoFrame& video_frame);
};
} // namespace webrtc
#endif // WEBRTC_VIDEO_ENGINE_MAIN_SOURCE_VIE_FILE_IMPL_H_
} // namespace webrtc
#endif // WEBRTC_VIDEO_ENGINE_VIE_FILE_IMPL_H_