mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 01:02:19 +00:00
compositor: Sprinkle some const in prototypes
These helper functions don't edit the rectangles passed in.
This commit is contained in:
parent
ba4484c6a0
commit
bb1650cfda
1 changed files with 3 additions and 2 deletions
|
@ -282,7 +282,8 @@ _mixer_pad_get_output_size (GstCompositorPad * comp_pad, gint out_par_n,
|
||||||
|
|
||||||
/* Test whether rectangle2 contains rectangle 1 (geometrically) */
|
/* Test whether rectangle2 contains rectangle 1 (geometrically) */
|
||||||
static gboolean
|
static gboolean
|
||||||
is_rectangle_contained (GstVideoRectangle rect1, GstVideoRectangle rect2)
|
is_rectangle_contained (const GstVideoRectangle rect1,
|
||||||
|
const GstVideoRectangle rect2)
|
||||||
{
|
{
|
||||||
if ((rect2.x <= rect1.x) && (rect2.y <= rect1.y) &&
|
if ((rect2.x <= rect1.x) && (rect2.y <= rect1.y) &&
|
||||||
((rect2.x + rect2.w) >= (rect1.x + rect1.w)) &&
|
((rect2.x + rect2.w) >= (rect1.x + rect1.w)) &&
|
||||||
|
@ -314,7 +315,7 @@ clamp_rectangle (gint x, gint y, gint w, gint h, gint outer_width,
|
||||||
/* Call this with the lock taken */
|
/* Call this with the lock taken */
|
||||||
static gboolean
|
static gboolean
|
||||||
_pad_obscures_rectangle (GstVideoAggregator * vagg, GstVideoAggregatorPad * pad,
|
_pad_obscures_rectangle (GstVideoAggregator * vagg, GstVideoAggregatorPad * pad,
|
||||||
GstVideoRectangle rect, gboolean rect_transparent)
|
const GstVideoRectangle rect, gboolean rect_transparent)
|
||||||
{
|
{
|
||||||
GstVideoRectangle pad_rect;
|
GstVideoRectangle pad_rect;
|
||||||
GstCompositorPad *cpad = GST_COMPOSITOR_PAD (pad);
|
GstCompositorPad *cpad = GST_COMPOSITOR_PAD (pad);
|
||||||
|
|
Loading…
Reference in a new issue