gst-libs: gl: Fix documentation typo and clarify gl_memory_texsubimage
authorMarijn Suijten <marijns95@gmail.com>
Thu, 3 Sep 2020 19:19:29 +0000 (21:19 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 9 Sep 2020 09:54:48 +0000 (09:54 +0000)
commit0ea3279df1661a92d2852127ba22e4e1275017ca
tree75bf4b05d15dcb73c2272feba2537c1f7405e82d
parent1208d4e635f33152fae0903790b2fe4a9172cb57
gst-libs: gl: Fix documentation typo and clarify gl_memory_texsubimage

`gst_gl_memory_read_pixels` reads pixels from `GLMemory` into the
pointer, effectively writing to it. This is opposite from
`gst_gl_memory_texsubimage` which reads texture data from `read_pointer`
into `GLMemory`.

Both cases are clarified by changing `read_pointer` to `write_pointer`,
and explaining what `gst_gl_memory_texsubimage` does in addition to
referring back to `gst_gl_memory_read_pixels`.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/806>
gst-libs/gst/gl/gstglmemory.c
gst-libs/gst/gl/gstglmemory.h
gst-libs/gst/gl/gstglmemorypbo.c
gst-libs/gst/video/video-color.c