| 47 | } |
| 48 | |
| 49 | bool CachedDecoderImpl::CacheLoad(const std::string& file_name, |
| 50 | uint8_t *output_data, |
| 51 | cudaStream_t stream) { |
| 52 | if (!cache_ || file_name.empty()) |
| 53 | return false; |
| 54 | return cache_->Read(file_name, output_data, stream); |
| 55 | } |
| 56 | |
| 57 | |
| 58 | bool CachedDecoderImpl::DeferCacheLoad(const std::string& file_name, uint8_t *output_data) { |