mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
h263parse: minor clean-ups
const-ify some arguments and re-indent header a little.
This commit is contained in:
parent
588db0bf51
commit
88cd418bc9
2 changed files with 23 additions and 12 deletions
|
@ -31,7 +31,7 @@ GST_DEBUG_CATEGORY_EXTERN (h263_parse_debug);
|
||||||
#define GST_CAT_DEFAULT h263_parse_debug
|
#define GST_CAT_DEFAULT h263_parse_debug
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
gst_h263_parse_is_delta_unit (H263Params * params)
|
gst_h263_parse_is_delta_unit (const H263Params * params)
|
||||||
{
|
{
|
||||||
return (params->type == PICTURE_I);
|
return (params->type == PICTURE_I);
|
||||||
}
|
}
|
||||||
|
@ -455,7 +455,7 @@ beach:
|
||||||
}
|
}
|
||||||
|
|
||||||
gint
|
gint
|
||||||
gst_h263_parse_get_profile (H263Params * params)
|
gst_h263_parse_get_profile (const H263Params * params)
|
||||||
{
|
{
|
||||||
gboolean c, d, d1, d21, d22, e, f, f2, g, h, i, j, k, k0, k1, k2, l, m, n, o,
|
gboolean c, d, d1, d21, d22, e, f, f2, g, h, i, j, k, k0, k1, k2, l, m, n, o,
|
||||||
p, q, r, s, t, u, v, w;
|
p, q, r, s, t, u, v, w;
|
||||||
|
@ -577,7 +577,7 @@ gst_h263_parse_get_profile (H263Params * params)
|
||||||
(gst_value_compare (&(f1), &(f2)) == GST_VALUE_EQUAL))
|
(gst_value_compare (&(f1), &(f2)) == GST_VALUE_EQUAL))
|
||||||
|
|
||||||
gint
|
gint
|
||||||
gst_h263_parse_get_level (H263Params * params, gint profile,
|
gst_h263_parse_get_level (const H263Params * params, gint profile,
|
||||||
guint bitrate, gint fps_num, gint fps_denom)
|
guint bitrate, gint fps_num, gint fps_denom)
|
||||||
{
|
{
|
||||||
GValue fps15 = { 0, };
|
GValue fps15 = { 0, };
|
||||||
|
@ -659,7 +659,8 @@ gst_h263_parse_get_level (H263Params * params, gint profile,
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
gst_h263_parse_get_framerate (H263Params * params, gint * num, gint * denom)
|
gst_h263_parse_get_framerate (const H263Params * params, gint * num,
|
||||||
|
gint * denom)
|
||||||
{
|
{
|
||||||
*num = params->pcfnum;
|
*num = params->pcfnum;
|
||||||
*denom = params->pcfdenom;
|
*denom = params->pcfdenom;
|
||||||
|
|
|
@ -131,14 +131,24 @@ struct _H263Params
|
||||||
gint32 pcfnum, pcfdenom;
|
gint32 pcfnum, pcfdenom;
|
||||||
};
|
};
|
||||||
|
|
||||||
gboolean gst_h263_parse_is_delta_unit (H263Params * params);
|
gboolean gst_h263_parse_is_delta_unit (const H263Params * params);
|
||||||
GstFlowReturn gst_h263_parse_get_params (H263Params ** params_p,
|
|
||||||
GstBuffer * buffer, gboolean fast, H263ParseState * state);
|
GstFlowReturn gst_h263_parse_get_params (H263Params ** params_p,
|
||||||
void gst_h263_parse_get_framerate (H263Params * params,
|
GstBuffer * buffer,
|
||||||
gint * num, gint * denom);
|
gboolean fast,
|
||||||
gint gst_h263_parse_get_profile (H263Params * params);
|
H263ParseState * state);
|
||||||
gint gst_h263_parse_get_level (H263Params * params, gint profile,
|
|
||||||
guint bitrate, gint fps_num, gint fps_denom);
|
void gst_h263_parse_get_framerate (const H263Params * params,
|
||||||
|
gint * num,
|
||||||
|
gint * denom);
|
||||||
|
|
||||||
|
gint gst_h263_parse_get_profile (const H263Params * params);
|
||||||
|
|
||||||
|
gint gst_h263_parse_get_level (const H263Params * params,
|
||||||
|
gint profile,
|
||||||
|
guint bitrate,
|
||||||
|
gint fps_num,
|
||||||
|
gint fps_denom);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue