emotion/border: Add border/crop support for emotion objects.
authorantognolli <antognolli>
Thu, 15 Sep 2011 18:51:23 +0000 (18:51 +0000)
committerantognolli <antognolli@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 15 Sep 2011 18:51:23 +0000 (18:51 +0000)
commitabfd3dfaa94343d017179eb715ba5dd9e013701f
tree561e345e54acba33ab6316dcbe946038a0ec9970
parentafee294b4bba3d125173a5b468082155231a7a77
emotion/border: Add border/crop support for emotion objects.

The emotion_object_border_set/get APIs were added, allowing one to
specify a positive (border) or negative (crop) value for each of the
edjes of the video being played. This allows easier setup on an Emotion
object to keep the aspect ratio, either by adding black areas on it, or
by cropping the exceding area of the video.

NOTE: The specified border/crop is based on the original size of the
video. If it is scaled (emotion object size is different from the video
size), the borders will be scaled as well.

Patch based on an original patch sent by
Hugo Camboulive <hugo.camboulive@gmail.com>.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@63414 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/examples/Makefile.am
src/examples/emotion_border_example.c [new file with mode: 0644]
src/lib/Emotion.h
src/lib/emotion_smart.c