@@ -605,7 +605,9 @@ __CXXDECL_BEGIN
605605
606606struct video_buffer {
607607 struct video_buffer_ops const *vb_ops; /* [1..1][const] Buffer operations. */
608- struct video_domain const *vb_domain; /* [1..1][const] Buffer domain. */
608+ struct video_domain const *vb_domain; /* [1..1][const] Buffer domain (generic wrappers use `video_ramdomain()',
609+ * meaning a different value here implies that the buffer was created by
610+ * that domain's `video_domain_newbuffer()' or `video_domain_formem()') */
609611 struct video_format vb_format; /* [const] Buffer format. */
610612 video_dim_t vb_xdim; /* Buffer dimension in X (in pixels) */
611613 video_dim_t vb_ydim; /* Buffer dimension in Y (in pixels) */
@@ -679,7 +681,11 @@ __CXXDECL_END
679681__DEFINE_REFCNT_FUNCTIONS (struct video_buffer , vb_refcnt, video_buffer_destroy)
680682
681683
682- /* Convert `__self' into the specified domain and format. */
684+ /* Convert `__self' into the specified domain and format.
685+ * @return: * : The converted video buffer.
686+ * @return: NULL: [errno=ENOMEM] Insufficient memory (either regular RAM, or V-RAM)
687+ * @return: NULL: [errno=ENOTSUP] Given `__format->vf_codec' is not supported by `__domain ?: __self->vb_domain'
688+ * @return: NULL: [errno=*] Failed to convert buffer for some reason (s.a. `errno') */
683689typedef __ATTR_WUNUSED_T __ATTR_INOUT_T(1 ) __ATTR_NONNULL_T((2 )) __ATTR_IN_T(3 ) __REF struct video_buffer *
684690(LIBVIDEO_GFX_CC *PVIDEO_BUFFER_CONVERT)(struct video_buffer *__restrict __self,
685691 struct video_domain const *__domain,
0 commit comments