Apr 28, 2015Rounded video corners on Android — (Part II)We were able to map video textures on to some rounded cornered geometry on the screen but there are still a few rough edges. On this post we’ll focus on getting those corners properly anti-aliased and optimizing the GL performance a bit. Anti-Alias Back in the day — when I was…4 min read4 min read
Apr 12, 2015Rounded video corners on Android — (Part I)We have seen that we want to be in control of where the video frames are stored and how they’re mapped on the screen in order to round the video corners. We’re going to 1) add a GLSurfaceView to our layout, 2) create a texture on the GPU, 3) create…5 min read5 min read
Apr 12, 2015Rounded video corners on Android — (Intro)A very late update and before you read any of this post: as of Lollipop the most practical way of handling this is to use View#setClipToOutline() (and set the desired outline). It doesn’t support individual corner rounding or KitKat and below, but the setup is really minimal. …4 min read4 min read