mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
video: Rename alloc_output_buffer() to allocate_output_buffer()
This commit is contained in:
parent
97ba363092
commit
1645ea4a90
4 changed files with 16 additions and 16 deletions
|
@ -2774,7 +2774,7 @@ no_decide_allocation:
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_video_decoder_alloc_output_buffer:
|
* gst_video_decoder_allocate_output_buffer:
|
||||||
* @decoder: a #GstVideoDecoder
|
* @decoder: a #GstVideoDecoder
|
||||||
*
|
*
|
||||||
* Helper function that allocates a buffer to hold a video frame for @decoder's
|
* 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
|
* Returns: (transfer full): allocated buffer
|
||||||
*/
|
*/
|
||||||
GstBuffer *
|
GstBuffer *
|
||||||
gst_video_decoder_alloc_output_buffer (GstVideoDecoder * decoder)
|
gst_video_decoder_allocate_output_buffer (GstVideoDecoder * decoder)
|
||||||
{
|
{
|
||||||
GstBuffer *buffer;
|
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
|
* @decoder: a #GstVideoDecoder
|
||||||
* @frame: a #GstVideoCodecFrame
|
* @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
|
* Returns: %GST_FLOW_OK if an output buffer could be allocated
|
||||||
*/
|
*/
|
||||||
GstFlowReturn
|
GstFlowReturn
|
||||||
gst_video_decoder_alloc_output_frame (GstVideoDecoder *
|
gst_video_decoder_allocate_output_frame (GstVideoDecoder *
|
||||||
decoder, GstVideoCodecFrame * frame)
|
decoder, GstVideoCodecFrame * frame)
|
||||||
{
|
{
|
||||||
GstFlowReturn flow_ret;
|
GstFlowReturn flow_ret;
|
||||||
|
|
|
@ -318,9 +318,9 @@ void gst_video_decoder_add_to_frame (GstVideoDecoder *decoder,
|
||||||
int n_bytes);
|
int n_bytes);
|
||||||
GstFlowReturn gst_video_decoder_have_frame (GstVideoDecoder *decoder);
|
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,
|
GstFlowReturn gst_video_decoder_allocate_output_frame (GstVideoDecoder *decoder,
|
||||||
GstVideoCodecFrame *frame);
|
GstVideoCodecFrame *frame);
|
||||||
|
|
||||||
GstVideoCodecState *gst_video_decoder_set_output_state (GstVideoDecoder *decoder,
|
GstVideoCodecState *gst_video_decoder_set_output_state (GstVideoDecoder *decoder,
|
||||||
|
|
|
@ -1400,7 +1400,7 @@ no_decide_allocation:
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_video_encoder_alloc_output_buffer:
|
* gst_video_encoder_allocate_output_buffer:
|
||||||
* @encoder: a #GstVideoEncoder
|
* @encoder: a #GstVideoEncoder
|
||||||
* @size: size of the buffer
|
* @size: size of the buffer
|
||||||
*
|
*
|
||||||
|
@ -1410,7 +1410,7 @@ no_decide_allocation:
|
||||||
* Returns: (transfer full): allocated buffer
|
* Returns: (transfer full): allocated buffer
|
||||||
*/
|
*/
|
||||||
GstBuffer *
|
GstBuffer *
|
||||||
gst_video_encoder_alloc_output_buffer (GstVideoEncoder * encoder, gsize size)
|
gst_video_encoder_allocate_output_buffer (GstVideoEncoder * encoder, gsize size)
|
||||||
{
|
{
|
||||||
GstBuffer *buffer;
|
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
|
* @encoder: a #GstVideoEncoder
|
||||||
* @frame: a #GstVideoCodecFrame
|
* @frame: a #GstVideoCodecFrame
|
||||||
* @size: size of the buffer
|
* @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
|
* Returns: %GST_FLOW_OK if an output buffer could be allocated
|
||||||
*/
|
*/
|
||||||
GstFlowReturn
|
GstFlowReturn
|
||||||
gst_video_encoder_alloc_output_frame (GstVideoEncoder *
|
gst_video_encoder_allocate_output_frame (GstVideoEncoder *
|
||||||
encoder, GstVideoCodecFrame * frame, gsize size)
|
encoder, GstVideoCodecFrame * frame, gsize size)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (frame->output_buffer == NULL, GST_FLOW_ERROR);
|
g_return_val_if_fail (frame->output_buffer == NULL, GST_FLOW_ERROR);
|
||||||
|
|
|
@ -262,10 +262,10 @@ GstVideoCodecFrame* gst_video_encoder_get_frame (GstVideoEncoder *encode
|
||||||
int frame_number);
|
int frame_number);
|
||||||
GstVideoCodecFrame* gst_video_encoder_get_oldest_frame (GstVideoEncoder *encoder);
|
GstVideoCodecFrame* gst_video_encoder_get_oldest_frame (GstVideoEncoder *encoder);
|
||||||
|
|
||||||
GstBuffer * gst_video_encoder_alloc_output_buffer (GstVideoEncoder * encoder,
|
GstBuffer * gst_video_encoder_allocate_output_buffer (GstVideoEncoder * encoder,
|
||||||
gsize size);
|
gsize size);
|
||||||
|
|
||||||
GstFlowReturn gst_video_encoder_alloc_output_frame (GstVideoEncoder *encoder,
|
GstFlowReturn gst_video_encoder_allocate_output_frame (GstVideoEncoder *encoder,
|
||||||
GstVideoCodecFrame *frame,
|
GstVideoCodecFrame *frame,
|
||||||
gsize size);
|
gsize size);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue