Hello!
When writing an application for video encoding, some questions came up which couldn't be answered by myself. Maybe you can assist.
For video encoding, you need a graphics buffer (BufferGfx) as input buffer. How do I fill this buffer with data from the raw video file (e.g. UYVY) ?
In the DMAI example "video_encode_io1", some functions like "readFrame420P()" are used. These function use some calculations. Do I need to do it like this, too? I don't know, what these calculations are for, because I'm not yet into colorspaces right now. Or is it possible to simply load the data via fread() or the Loader module into the graphics buffer?
Another question: is the DMAI API intended for writing demo applications only or can this API also be used for production code?
Best regards,
Andreas