[clutter-gst] aspectratio: remove commented code



commit 45662d782bc2024c0bf8ad99c1b3a31136f75d40
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Fri Nov 15 16:29:44 2013 +0000

    aspectratio: remove commented code

 clutter-gst/clutter-gst-aspectratio.c |  127 ---------------------------------
 1 files changed, 0 insertions(+), 127 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-aspectratio.c b/clutter-gst/clutter-gst-aspectratio.c
index b2363be..63ec862 100644
--- a/clutter-gst/clutter-gst-aspectratio.c
+++ b/clutter-gst/clutter-gst-aspectratio.c
@@ -219,133 +219,6 @@ content_iface_init (ClutterContentIface *iface)
 
 /**/
 
-/* static void */
-/* clutter_gst_aspectratio_paint_frame (ClutterGstActor *self, */
-/*                                      ClutterGstFrame *frame) */
-/* { */
-/*   ClutterGstAspectratioPrivate *priv = CLUTTER_GST_ASPECTRATIO (self)->priv; */
-/*   guint8 paint_opacity; */
-
-/*   paint_opacity = clutter_actor_get_paint_opacity (CLUTTER_ACTOR (self)); */
-/*   cogl_pipeline_set_color4ub (frame->pipeline, */
-/*                               paint_opacity, */
-/*                               paint_opacity, */
-/*                               paint_opacity, */
-/*                               paint_opacity); */
-/*   cogl_set_source (frame->pipeline); */
-
-/*   cogl_rectangle (priv->paint_box.x1, priv->paint_box.y1, */
-/*                   priv->paint_box.x2, priv->paint_box.y2); */
-
-/*   if (priv->paint_borders) */
-/*     { */
-/*       ClutterColor bg_color; */
-/*       ClutterActorBox box; */
-/*       gfloat box_width, box_height; */
-
-/*       clutter_actor_get_background_color (CLUTTER_ACTOR (self), &bg_color); */
-/*       clutter_actor_get_allocation_box (CLUTTER_ACTOR (self), &box); */
-
-/*       box_width = clutter_actor_box_get_width (&box); */
-/*       box_height = clutter_actor_box_get_height (&box); */
-
-/*       cogl_set_source_color4ub (bg_color.red, */
-/*                                 bg_color.green, */
-/*                                 bg_color.blue, */
-/*                                 paint_opacity); */
-
-/*       if (box_width != clutter_actor_box_get_width (&priv->paint_box)) */
-/*         { */
-/*           cogl_rectangle (0, 0, priv->paint_box.x1, box_height); */
-/*           cogl_rectangle (priv->paint_box.x2, 0, box_width, box_height); */
-/*         } */
-/*       if (box_height != clutter_actor_box_get_height (&priv->paint_box)) */
-/*         { */
-/*           cogl_rectangle (0, 0, box_width, priv->paint_box.y1); */
-/*           cogl_rectangle (0, priv->paint_box.y2, box_width, box_height); */
-/*         } */
-/*     } */
-/* } */
-
-/* static void */
-/* _recompute_paint_box (ClutterGstAspectratio *self) */
-/* { */
-/*   ClutterGstAspectratioPrivate *priv = self->priv; */
-/*   ClutterActorBox box; */
-/*   gfloat actor_width, actor_height; */
-/*   gdouble new_width, new_height; */
-/*   gdouble frame_aspect, actor_aspect; */
-
-/*   clutter_actor_get_allocation_box (CLUTTER_ACTOR (self), &box); */
-
-/*   actor_width = box.x2 - box.x1; */
-/*   actor_height = box.y2 - box.y1; */
-
-/*   if (actor_width <= 0 || actor_height <= 0) */
-/*     return; */
-
-/*   frame_aspect = (gdouble) priv->frame_width / (gdouble) priv->frame_height; */
-/*   actor_aspect = actor_width / actor_height; */
-
-/*   if (actor_aspect < frame_aspect) */
-/*     { */
-/*       new_width = actor_width; */
-/*       new_height = actor_width / frame_aspect; */
-/*     } */
-/*   else */
-/*     { */
-/*       new_height = actor_height; */
-/*       new_width = actor_height * frame_aspect; */
-/*     } */
-
-/*   priv->paint_box.x1 = (actor_width - new_width) / 2; */
-/*   priv->paint_box.y1 = (actor_height - new_height) / 2; */
-/*   priv->paint_box.x2 = priv->paint_box.x1 + new_width; */
-/*   priv->paint_box.y2 = priv->paint_box.y1 + new_height; */
-/* } */
-
-/* static void */
-/* _player_size_changed (ClutterGstPlayer      *player, */
-/*                       gint                   width, */
-/*                       gint                   height, */
-/*                       ClutterGstAspectratio *self) */
-/* { */
-/*   ClutterGstAspectratioPrivate *priv = self->priv; */
-
-/*   priv->frame_width = width; */
-/*   priv->frame_height = height; */
-
-/*   _recompute_paint_box (self); */
-/*   clutter_actor_queue_relayout (CLUTTER_ACTOR (self)); */
-/* } */
-
-/* static void */
-/* _player_changed (ClutterGstAspectratio *self, */
-/*                  GParamSpec            *spec, */
-/*                  gpointer               user_data) */
-/* { */
-/*   ClutterGstAspectratioPrivate *priv = self->priv; */
-/*   ClutterGstPlayer *player = clutter_gst_actor_get_player (CLUTTER_GST_ACTOR (self)); */
-
-/*   if (priv->player) */
-/*     g_signal_handlers_disconnect_by_func (priv->player, _player_size_changed, self); */
-/*   priv->player = player; */
-/*   if (priv->player) */
-/*     { */
-/*       ClutterGstFrame *frame = clutter_gst_player_get_frame (player); */
-
-/*       priv->frame_width = frame->resolution.width; */
-/*       priv->frame_height = frame->resolution.height; */
-
-/*       g_signal_connect (priv->player, "size-change", */
-/*                         G_CALLBACK (_player_size_changed), self); */
-/*     } */
-
-/*   _recompute_paint_box (self); */
-/* } */
-
-/**/
-
 static void
 clutter_gst_aspectratio_get_property (GObject    *object,
                                       guint       property_id,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]