1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef MODULES_DATA_SOURCE_PARAM_HPP_
- #define MODULES_DATA_SOURCE_PARAM_HPP_
- namespace cnstream {
- enum class OutputType {
- OUTPUT_CPU,
- OUTPUT_MLU
- };
- enum class DecoderType {
- DECODER_CPU,
- DECODER_MLU
- };
- struct DataSourceParam {
- OutputType output_type_ = OutputType::OUTPUT_CPU;
- size_t interval_ = 1;
- DecoderType decoder_type_ = DecoderType::DECODER_CPU;
- bool reuse_cndec_buf = false;
- int device_id_ = -1;
- uint32_t input_buf_number_ = 2;
- uint32_t output_buf_number_ = 3;
- bool apply_stride_align_for_scaler_ = false;
- };
- }
- #endif
|