h263parse: minor clean-ups

const-ify some arguments and re-indent header a little.
This commit is contained in:
Tim-Philipp Müller 2011-03-03 00:45:11 +00:00
parent 588db0bf51
commit 88cd418bc9
2 changed files with 23 additions and 12 deletions

View file

@ -31,7 +31,7 @@ GST_DEBUG_CATEGORY_EXTERN (h263_parse_debug);
#define GST_CAT_DEFAULT h263_parse_debug
gboolean
gst_h263_parse_is_delta_unit (H263Params * params)
gst_h263_parse_is_delta_unit (const H263Params * params)
{
return (params->type == PICTURE_I);
}
@ -455,7 +455,7 @@ beach:
}
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,
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))
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)
{
GValue fps15 = { 0, };
@ -659,7 +659,8 @@ gst_h263_parse_get_level (H263Params * params, gint profile,
}
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;
*denom = params->pcfdenom;

View file

@ -131,14 +131,24 @@ struct _H263Params
gint32 pcfnum, pcfdenom;
};
gboolean gst_h263_parse_is_delta_unit (H263Params * params);
GstFlowReturn gst_h263_parse_get_params (H263Params ** params_p,
GstBuffer * buffer, gboolean fast, H263ParseState * state);
void gst_h263_parse_get_framerate (H263Params * params,
gint * num, gint * denom);
gint gst_h263_parse_get_profile (H263Params * params);
gint gst_h263_parse_get_level (H263Params * params, gint profile,
guint bitrate, gint fps_num, gint fps_denom);
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);
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
#endif