with map_gst_buffer(buffer, Gst.MapFlags.READ | Gst.MapFlags.WRITE) as mapped:
My question is: what if I want to increase the buffer size by appending some bytes from Python?
Is it possible? If so, how to convert Python bytearray to C byte array, using Ctypes?
As per README, you can modify the buffer as
with map_gst_buffer(buffer, Gst.MapFlags.READ | Gst.MapFlags.WRITE) as mapped:
My question is: what if I want to increase the buffer size by appending some bytes from Python? Is it possible? If so, how to convert Python bytearray to C byte array, using Ctypes?
Thanks.
Best Regards,
Yu