/**
* gst_gl_memory_read_pixels:
* @gl_mem: a #GstGLMemory
- * @read_pointer: the data pointer to pass to glReadPixels
+ * @write_pointer: the data pointer to pass to glReadPixels
*
- * Reads the texture in #GstGLMemory into @read_pointer if no buffer is bound
- * to `GL_PIXEL_PACK_BUFFER`. Otherwise @read_pointer is the byte offset into
+ * Reads the texture in #GstGLMemory into @write_pointer if no buffer is bound
+ * to `GL_PIXEL_PACK_BUFFER`. Otherwise @write_pointer is the byte offset into
* the currently bound `GL_PIXEL_PACK_BUFFER` buffer to store the result of
* glReadPixels. See the OpenGL specification for glReadPixels for more
* details.
* Since: 1.8
*/
gboolean
-gst_gl_memory_read_pixels (GstGLMemory * gl_mem, gpointer read_pointer)
+gst_gl_memory_read_pixels (GstGLMemory * gl_mem, gpointer write_pointer)
{
GstGLContext *context = gl_mem->mem.context;
const GstGLFuncs *gl = context->gl_vtable;
_gst_gl_memory_start_log (gl_mem, "glReadPixels");
gl->ReadPixels (0, 0, gl_mem->tex_width, GL_MEM_HEIGHT (gl_mem), format,
- type, read_pointer);
+ type, write_pointer);
_gst_gl_memory_end_log (gl_mem);
gl->BindFramebuffer (GL_FRAMEBUFFER, 0);
* @gl_mem: a #GstGLMemory
* @read_pointer: the data pointer to pass to glTexSubImage
*
+ * Reads the texture in @read_pointer into @gl_mem.
+ *
* See gst_gl_memory_read_pixels() for what @read_pointer signifies.
*
* Since: 1.8
* @width: width of @tex_id
* @height: height of @tex_id
*
- * Copies @gl_mem into the texture specfified by @tex_id. The format of @tex_id
+ * Copies @gl_mem into the texture specified by @tex_id. The format of @tex_id
* is specified by @tex_format, @width and @height.
*
* Returns: Whether the copy succeeded
* @stride: stride of the backing texture data
* @respecify: whether to copy the data or copy per texel
*
- * Copies @gl_mem into the texture specfified by @tex_id. The format of @tex_id
+ * Copies @gl_mem into the texture specified by @tex_id. The format of @tex_id
* is specified by @tex_format, @width and @height.
*
* If @respecify is %TRUE, then the copy is performed in terms of the texture
* Depending on @func, different formulas might be applied. Some formulas
* encode a linear segment in the lower range.
*
- * Returns: the gamme encoded value of @val
+ * Returns: the gamma encoded value of @val
*
* Since: 1.6
*/
* Depending on @func, different formulas might be applied. Some formulas
* encode a linear segment in the lower range.
*
- * Returns: the gamme decoded value of @val
+ * Returns: the gamma decoded value of @val
*
* Since: 1.6
*/