Re: QTMovieLayer with CIFilter returning bigger content
Re: QTMovieLayer with CIFilter returning bigger content
- Subject: Re: QTMovieLayer with CIFilter returning bigger content
- From: Keith Duncan <email@hidden>
- Date: Sun, 24 Jan 2010 14:58:32 +0000
On 24 Jan 2010, at 03:03, David Duncan wrote:
> On Jan 23, 2010, at 6:06 AM, Keith Duncan wrote:
>
>> I'm trying to apply CIFilters to images (using CALayer) and movies (using QTMovieLayer). However, some of these filters return a bigger image than the original content image/movie, such as a custom composite reflection filter I've written.
>
> What is the specific problem you are seeing with the larger content? If you mean the content is being resized downwards, then try changing the layer's contentsGravity property to center (or one of the other non-resize variants).
That it isn't resized to fit inside the layer's bounds, I'm using kCAGravityResizeAspect and need the transformed contents to fit inside the bounds too.
The reflection filter in particular roughly doubles the height of the media (still image or movie frames).
Using kCAGravityCenter with media larger than the layer crops it.
Keith
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden