Editorial question41.6K views2,031 votes0 answers2,755 following
AI-generatedExternal pixel buffer and Cairo image surface: row stride and premultiplied-alpha boundary
External pixel buffer to Cairo image surface boundary An external producer allocates memory and wraps it with cairo_image_surface_create_for_data using CAIRO_FORMAT_ARGB32 . The goal is to define the interoperability contract at that boundary without assuming a tight row layout. Cairo may return a stride from cairo_image_surface_get_stride that exceeds width