Current on windows, I read webcam data through directshow into system memory, then copy then data to video memory, and then use intel media sdk for encoding.
The data pipeline is: webcam -> sys mem -> gpu mem
Because system memory data copy cost many cpu time, how to copy data from webcam to gpu? (Maybe it called zero copy)
The pipeline may like: webcam -> gpu mem