MediaCapture: Warning fix
This commit is contained in:
parent
af47eb6956
commit
62eb557832
|
@ -86,7 +86,7 @@ float SettingInfo::FloatStepValue() const
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
const MediaCaptureBackend Settings::DEFAULT_MEDIA_CAPTURE_BACKEND = MediaCaptureBackend::MediaFoundation;
|
const MediaCaptureBackend Settings::DEFAULT_MEDIA_CAPTURE_BACKEND = MediaCaptureBackend::MediaFoundation;
|
||||||
#elif !defined(__ANDROID__)
|
#elif !defined(__ANDROID__)
|
||||||
const MediaCaptureBackend Settings::DEFAULT_MEDIA_CAPTURE_BACKEND = MediaCaptureBackend::FFMPEG;
|
const MediaCaptureBackend Settings::DEFAULT_MEDIA_CAPTURE_BACKEND = MediaCaptureBackend::FFmpeg;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Settings::Settings()
|
Settings::Settings()
|
||||||
|
|
|
@ -621,9 +621,9 @@ struct MediaFoundationCodec
|
||||||
bool require_hardware;
|
bool require_hardware;
|
||||||
};
|
};
|
||||||
static constexpr const MediaFoundationCodec s_media_foundation_audio_codecs[] = {
|
static constexpr const MediaFoundationCodec s_media_foundation_audio_codecs[] = {
|
||||||
{"aac", "Advanced Audio Coding", MFAudioFormat_AAC},
|
{"aac", "Advanced Audio Coding", MFAudioFormat_AAC, false},
|
||||||
{"mp3", "MPEG-2 Audio Layer III", MFAudioFormat_MP3},
|
{"mp3", "MPEG-2 Audio Layer III", MFAudioFormat_MP3, false},
|
||||||
{"pcm", "Uncompressed PCM", MFAudioFormat_PCM},
|
{"pcm", "Uncompressed PCM", MFAudioFormat_PCM, false},
|
||||||
};
|
};
|
||||||
static constexpr const MediaFoundationCodec s_media_foundation_video_codecs[] = {
|
static constexpr const MediaFoundationCodec s_media_foundation_video_codecs[] = {
|
||||||
{"h264", "H.264 with Software Encoding", MFVideoFormat_H264, false},
|
{"h264", "H.264 with Software Encoding", MFVideoFormat_H264, false},
|
||||||
|
@ -1609,8 +1609,8 @@ MediaCapture::ContainerList MediaCapture::GetContainerList(MediaCaptureBackend b
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#ifndef __ANDROID__
|
#ifndef __ANDROID__
|
||||||
case MediaCaptureBackend::FFMPEG:
|
case MediaCaptureBackend::FFmpeg:
|
||||||
// ret = MediaCaptureFFMPEG::GetContainerList();
|
// ret = MediaCaptureFFmpeg::GetContainerList();
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
|
@ -1630,8 +1630,8 @@ MediaCapture::CodecList MediaCapture::GetVideoCodecList(MediaCaptureBackend back
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#ifndef __ANDROID__
|
#ifndef __ANDROID__
|
||||||
case MediaCaptureBackend::FFMPEG:
|
case MediaCaptureBackend::FFmpeg:
|
||||||
// ret = MediaCaptureFFMPEG::GetVideoCodecList(container);
|
// ret = MediaCaptureFFmpeg::GetVideoCodecList(container);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
|
@ -1651,8 +1651,8 @@ MediaCapture::CodecList MediaCapture::GetAudioCodecList(MediaCaptureBackend back
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#ifndef __ANDROID__
|
#ifndef __ANDROID__
|
||||||
case MediaCaptureBackend::FFMPEG:
|
case MediaCaptureBackend::FFmpeg:
|
||||||
// ret = MediaCaptureFFMPEG::GetAudioCodecList(container);
|
// ret = MediaCaptureFFmpeg::GetAudioCodecList(container);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
|
@ -1670,7 +1670,8 @@ std::unique_ptr<MediaCapture> MediaCapture::Create(MediaCaptureBackend backend,
|
||||||
return MediaCaptureMF::Create(error);
|
return MediaCaptureMF::Create(error);
|
||||||
#endif
|
#endif
|
||||||
#ifndef __ANDROID__
|
#ifndef __ANDROID__
|
||||||
case MediaCaptureBackend::FFMPEG:
|
case MediaCaptureBackend::FFmpeg:
|
||||||
|
// return MediaCaptureFFmpeg::Create(error);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -20,7 +20,7 @@ enum class MediaCaptureBackend : u8
|
||||||
MediaFoundation,
|
MediaFoundation,
|
||||||
#endif
|
#endif
|
||||||
#ifndef __ANDROID__
|
#ifndef __ANDROID__
|
||||||
FFMPEG,
|
FFmpeg,
|
||||||
#endif
|
#endif
|
||||||
MaxCount,
|
MaxCount,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue