#ifndef MEDIA_BASE_DEMUXER_MEMORY_LIMIT_H_
#define MEDIA_BASE_DEMUXER_MEMORY_LIMIT_H_
#include <stddef.h>
#include "build/build_config.h"
#include "media/base/audio_decoder_config.h"
#include "media/base/demuxer.h"
#include "media/base/media_export.h"
#include "media/base/video_decoder_config.h"
namespace media {
MEDIA_EXPORT size_t
GetDemuxerStreamAudioMemoryLimit(const AudioDecoderConfig* audio_config);
MEDIA_EXPORT size_t
GetDemuxerStreamVideoMemoryLimit(Demuxer::DemuxerTypes demuxer_type,
const VideoDecoderConfig* video_config);
MEDIA_EXPORT size_t GetDemuxerMemoryLimit(Demuxer::DemuxerTypes demuxer_type);
namespace internal {
constexpr size_t kDemuxerStreamAudioMemoryLimitDefault = …;
constexpr size_t kDemuxerStreamAudioMemoryLimitMedium = …;
constexpr size_t kDemuxerStreamAudioMemoryLimitLow = …;
constexpr size_t kDemuxerStreamVideoMemoryLimitDefault = …;
constexpr size_t kDemuxerStreamVideoMemoryLimitMedium = …;
constexpr size_t kDemuxerStreamVideoMemoryLimitLow = …;
#if BUILDFLAG(IS_ANDROID)
constexpr size_t kDemuxerStreamAudioMemoryLimitVeryLow = 1 * 1024 * 1024;
constexpr size_t kDemuxerStreamVideoMemoryLimitVeryLow = 15 * 1024 * 1024;
#endif
}
}
#endif