Commit 1645ea4a authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

video: Rename alloc_output_buffer() to allocate_output_buffer()

parent 97ba3630
......@@ -2774,7 +2774,7 @@ no_decide_allocation:
}
/**
* gst_video_decoder_alloc_output_buffer:
* gst_video_decoder_allocate_output_buffer:
* @decoder: a #GstVideoDecoder
*
* Helper function that allocates a buffer to hold a video frame for @decoder's
......@@ -2783,7 +2783,7 @@ no_decide_allocation:
* Returns: (transfer full): allocated buffer
*/
GstBuffer *
gst_video_decoder_alloc_output_buffer (GstVideoDecoder * decoder)
gst_video_decoder_allocate_output_buffer (GstVideoDecoder * decoder)
{
GstBuffer *buffer;
......@@ -2803,7 +2803,7 @@ gst_video_decoder_alloc_output_buffer (GstVideoDecoder * decoder)
}
/**
* gst_video_decoder_alloc_output_frame:
* gst_video_decoder_allocate_output_frame:
* @decoder: a #GstVideoDecoder
* @frame: a #GstVideoCodecFrame
*
......@@ -2817,7 +2817,7 @@ gst_video_decoder_alloc_output_buffer (GstVideoDecoder * decoder)
* Returns: %GST_FLOW_OK if an output buffer could be allocated
*/
GstFlowReturn
gst_video_decoder_alloc_output_frame (GstVideoDecoder *
gst_video_decoder_allocate_output_frame (GstVideoDecoder *
decoder, GstVideoCodecFrame * frame)
{
GstFlowReturn flow_ret;
......
......@@ -318,10 +318,10 @@ void gst_video_decoder_add_to_frame (GstVideoDecoder *decoder,
int n_bytes);
GstFlowReturn gst_video_decoder_have_frame (GstVideoDecoder *decoder);
GstBuffer *gst_video_decoder_alloc_output_buffer (GstVideoDecoder * decoder);
GstBuffer *gst_video_decoder_allocate_output_buffer (GstVideoDecoder * decoder);
GstFlowReturn gst_video_decoder_alloc_output_frame (GstVideoDecoder *decoder,
GstVideoCodecFrame *frame);
GstFlowReturn gst_video_decoder_allocate_output_frame (GstVideoDecoder *decoder,
GstVideoCodecFrame *frame);
GstVideoCodecState *gst_video_decoder_set_output_state (GstVideoDecoder *decoder,
GstVideoFormat fmt, guint width, guint height,
......
......@@ -1400,7 +1400,7 @@ no_decide_allocation:
}
/**
* gst_video_encoder_alloc_output_buffer:
* gst_video_encoder_allocate_output_buffer:
* @encoder: a #GstVideoEncoder
* @size: size of the buffer
*
......@@ -1410,7 +1410,7 @@ no_decide_allocation:
* Returns: (transfer full): allocated buffer
*/
GstBuffer *
gst_video_encoder_alloc_output_buffer (GstVideoEncoder * encoder, gsize size)
gst_video_encoder_allocate_output_buffer (GstVideoEncoder * encoder, gsize size)
{
GstBuffer *buffer;
......@@ -1434,7 +1434,7 @@ gst_video_encoder_alloc_output_buffer (GstVideoEncoder * encoder, gsize size)
}
/**
* gst_video_encoder_alloc_output_frame:
* gst_video_encoder_allocate_output_frame:
* @encoder: a #GstVideoEncoder
* @frame: a #GstVideoCodecFrame
* @size: size of the buffer
......@@ -1449,7 +1449,7 @@ gst_video_encoder_alloc_output_buffer (GstVideoEncoder * encoder, gsize size)
* Returns: %GST_FLOW_OK if an output buffer could be allocated
*/
GstFlowReturn
gst_video_encoder_alloc_output_frame (GstVideoEncoder *
gst_video_encoder_allocate_output_frame (GstVideoEncoder *
encoder, GstVideoCodecFrame * frame, gsize size)
{
g_return_val_if_fail (frame->output_buffer == NULL, GST_FLOW_ERROR);
......
......@@ -262,12 +262,12 @@ GstVideoCodecFrame* gst_video_encoder_get_frame (GstVideoEncoder *encode
int frame_number);
GstVideoCodecFrame* gst_video_encoder_get_oldest_frame (GstVideoEncoder *encoder);
GstBuffer * gst_video_encoder_alloc_output_buffer (GstVideoEncoder * encoder,
gsize size);
GstBuffer * gst_video_encoder_allocate_output_buffer (GstVideoEncoder * encoder,
gsize size);
GstFlowReturn gst_video_encoder_alloc_output_frame (GstVideoEncoder *encoder,
GstVideoCodecFrame *frame,
gsize size);
GstFlowReturn gst_video_encoder_allocate_output_frame (GstVideoEncoder *encoder,
GstVideoCodecFrame *frame,
gsize size);
GstFlowReturn gst_video_encoder_finish_frame (GstVideoEncoder *encoder,
GstVideoCodecFrame *frame);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment