*
* Get the current @size, @offset and @maxsize of @mem.
*
- * Returns: the current sizes of @mem
+ * Returns: the current size of @mem
*/
gsize
gst_memory_get_sizes (GstMemory * mem, gsize * offset, gsize * maxsize)
* GstMemoryUnmapFunction:
* @mem: a #GstMemory
*
- * Return the pointer previously retrieved with gst_memory_map().
+ * Release the pointer previously retrieved with gst_memory_map().
*/
typedef void (*GstMemoryUnmapFunction) (GstMemory *mem);
* @mem: a #GstMemory
* @info: a #GstMapInfo
*
- * Return the pointer previously retrieved with gst_memory_map() with @info.
+ * Release the pointer previously retrieved with gst_memory_map() with @info.
*/
typedef void (*GstMemoryUnmapFullFunction) (GstMemory *mem, GstMapInfo * info);
* gst_memory_unref: (skip)
* @memory: (transfer full): the memory to refcount
*
- * Decrease the refcount of an memory, freeing it if the refcount reaches 0.
+ * Decrease the refcount of a memory, freeing it if the refcount reaches 0.
*/
static inline void gst_memory_unref(GstMemory* memory);
static inline void
gst_object_unref (sinkpad);
}
- /* The only case where we don't have an upstream start-start event
+ /* The only case where we don't have an upstream stream-start event
* here is for source elements */
if (!upstream_stream_id) {
GstQuery *query;
templ = gst_pad_get_pad_template_caps (pad);
otempl = gst_pad_get_pad_template_caps (otherpad);
- /* first prepare the filter to be send onwards. We need to filter and
+ /* first prepare the filter to be sent onwards. We need to filter and
* transform it to valid caps for the otherpad. */
if (filter) {
GST_DEBUG_OBJECT (pad, "filter caps %" GST_PTR_FORMAT, filter);
*
* See if @trans is configured as a passthrough transform.
*
- * Returns: %TRUE is the transform is configured in passthrough mode.
+ * Returns: %TRUE if the transform is configured in passthrough mode.
*
* MT safe.
*/
*
* See if @trans is configured as a in_place transform.
*
- * Returns: %TRUE is the transform is configured in in_place mode.
+ * Returns: %TRUE if the transform is configured in in_place mode.
*
* MT safe.
*/
* @trans: a #GstBaseTransform
*
* Returns: (transfer full): the instance of the #GstBufferPool used
- * by @trans; free it after use it
+ * by @trans; free it after use
*/
GstBufferPool *
gst_base_transform_get_buffer_pool (GstBaseTransform * trans)
* @params: (out) (allow-none) (transfer full): the
* #GstAllocationParams of @allocator
*
- * Lets #GstBaseTransform sub-classes to know the memory @allocator
+ * Lets #GstBaseTransform sub-classes know the memory @allocator
* used by the base class and its @params.
*
- * Unref the @allocator after use it.
+ * Unref the @allocator after use.
*/
void
gst_base_transform_get_allocator (GstBaseTransform * trans,
* @updated_caps: An updated version of the srcpad caps to be pushed
* downstream
*
- * Updates the srcpad caps and send the caps downstream. This function
+ * Updates the srcpad caps and sends the caps downstream. This function
* can be used by subclasses when they have already negotiated their caps
* but found a change in them (or computed new information). This way,
* they can notify downstream about that change without losing any
* buffer.
*
- * Returns: %TRUE if the caps could be send downstream %FALSE otherwise
+ * Returns: %TRUE if the caps could be sent downstream %FALSE otherwise
*
* Since: 1.6
*/
* Subclasses can override this method to check if @caps can be
* handled by the element. The default implementation might not be
* the most optimal way to check this in all cases.
- * @set_caps: allows the subclass to be notified of the actual caps set.
+ * @set_caps: Allows the subclass to be notified of the actual caps set.
* @query: Optional.
* Handle a requested query. Subclasses that implement this
- * should must chain up to the parent if they didn't handle the
+ * must chain up to the parent if they didn't handle the
* query
* @decide_allocation: Setup the allocation parameters for allocating output
* buffers. The passed in query contains the result of the
* The default implementation uses get_unit_size and keeps
* the number of units the same.
* @get_unit_size: Required if the transform is not in-place.
- * get the size in bytes of one unit for the given caps.
+ * Get the size in bytes of one unit for the given caps.
* @start: Optional.
* Called when the element starts processing.
* Allows opening external resources.
* offsets of the buffer.
* @transform_meta: Optional. Transform the metadata on the input buffer to the
* output buffer. By default this method copies all meta without
- * tags. subclasses can implement this method and return %TRUE if
+ * tags. Subclasses can implement this method and return %TRUE if
* the metadata is to be copied.
* @before_transform: Optional.
* This method is called right before the base class will
* @queued_buf variable, generates an output buffer if needed
* by calling the class @prepare_output_buffer, and then
* calls either @transform or @transform_ip. Elements that don't
- * do 1-to-1 transformations on input to output buffers can either
+ * do 1-to-1 transformations of input to output buffers can either
* return GST_BASE_TRANSFORM_FLOW_DROPPED or simply not generate
* an output buffer until they are ready to do so. (Since: 1.6)
*