On Tue Jun 18 04:03:03 2024 +0000, Ziqing Hui wrote:
In my opion, getting rid of wg_format, using something in frontend to represent the media formats is better than what we have now. One problem I found in current wg_format is, in Proton, sometimes a format have a large codec data, it's not a good idea to let wg_format holding a large data. If we can translate from frontend to GstCaps directly, this won't be a problem.
If we want wg_format be able to hold large codec data. One way I can come up with is allocating the data in heap, then add a refcount member to wg_format, and we have to free the data when refcount goes to 0. But this makes wg_format really complicate, I don't think this is expected.