* @brief Extract InputOperatorSettingMode based on the DALI_ext_force_copy and DALI_ext_force_no_copy * * @param flags Flags typically specified in daliSetExternalInput* functions. */
| 105 | * @param flags Flags typically specified in daliSetExternalInput* functions. |
| 106 | */ |
| 107 | dali::InputOperatorCopyMode GetExternalSourceCopyMode(unsigned int flags) { |
| 108 | dali::InputOperatorCopyMode copy_mode = dali::InputOperatorCopyMode::DEFAULT; |
| 109 | DALI_ENFORCE(!((flags & DALI_ext_force_copy) && (flags & DALI_ext_force_no_copy)), |
| 110 | "External Source cannot be forced to use DALI_ext_force_copy and " |
| 111 | "DALI_ext_force_no_copy at the same time."); |
| 112 | if (flags & DALI_ext_force_copy) { |
| 113 | copy_mode = dali::InputOperatorCopyMode::FORCE_COPY; |
| 114 | } else if (flags & DALI_ext_force_no_copy) { |
| 115 | copy_mode = dali::InputOperatorCopyMode::FORCE_NO_COPY; |
| 116 | } |
| 117 | return copy_mode; |
| 118 | } |
| 119 | |
| 120 | template <typename Backend> |
| 121 | void SetExternalInput(daliPipelineHandle_t pipe_handle, const char *name, const void *data_ptr, |
no outgoing calls
no test coverage detected