- Buffering input data - Data type conversions for input source - Output `Mat` types - Consider data type conversions for output sink