| 313 | } |
| 314 | |
| 315 | nvimgcodecStatus_t CodeStream::flush() { |
| 316 | try { |
| 317 | assert(io_stream_); |
| 318 | io_stream_->flush(); |
| 319 | return NVIMGCODEC_STATUS_SUCCESS; |
| 320 | } catch (std::exception& e) { |
| 321 | return NVIMGCODEC_STATUS_EXECUTION_FAILED; |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | nvimgcodecStatus_t CodeStream::map(void** addr, size_t offset, size_t size) { |
| 326 | try { |
no outgoing calls
no test coverage detected