emotion/border: Add border/crop support for emotion objects.
authorantognolli <antognolli@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
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)
commitce62202ad46d7948c85e238a5a674e90d0b7d3a1
tree561e345e54acba33ab6316dcbe946038a0ec9970
parentdb9c54773d48b291f437c7ded258465f7584ff20
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: svn+ssh://svn.enlightenment.org/var/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