Transform filter with different input & output media types (crop filter, Delphi)?
- From: Whone NoName <nomail@xxxxxxxxxx>
- Date: Tue, 20 Feb 2007 13:39:57 +0200
(Delphi)
http://koti.mbnet.fi/akini/delphi/dspack/SimpleTransform.pas.txt
http://koti.mbnet.fi/akini/delphi/dspack/SimpleTransform.zip
http://www.progdigy.com/modules.php?name=Forums&file=viewtopic&t=563
I have been trying to create CropFilter in Delphi. So far I managed to
create filter fine but without cropping.
I want to crop right+bottom side of the original video. Zip has example
256x256 video and I want to output it as 246x246 RGB32 video. Pixels are
manipulated along the cropping. Example now draws a opaque gradient colors.
GetMediaType call should return media type of output pin. I copy input
pin format and then change width,height,lSampleSize,biSizeImage attributes.
DecideBufferSize instructs to use a new cropped size for buffers.
Its like .avi videofile or DX resets everything and force pipeline to
use input pin filter.
Problems:
* Input media type and output media type are always identicals even if I
put 10 pixels crop.
Any (delphi) specilists here can help?
.
- Follow-Ups:
- Re: Transform filter with different input & output media types (crop filter, Delphi)?
- From: Whome NoName
- Re: Transform filter with different input & output media types (crop filter, Delphi)?
- From: The March Hare [MVP]
- Re: Transform filter with different input & output media types (crop filter, Delphi)?
- Prev by Date: Re: Interpreting rcSource and rcTarget from Video Renderer!
- Next by Date: Re: Transform filter with different input & output media types (crop filter, Delphi)?
- Previous by thread: Re: Building Directshow baseclass's in Windows Vista SDK V6.0
- Next by thread: Re: Transform filter with different input & output media types (crop filter, Delphi)?
- Index(es):
Relevant Pages
|