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.
* Input media type and output media type are always identicals even if I
put 10 pixels crop.
Any (delphi) specilists here can help?