how to change OutPut Pin Size & ColorSpace/Compression of a Video Source Filter in DirectShow
I want to Know whre the Output Pin PropertyPage Datas are stored and how can I Change those Datas By My Code
how to change OutPut Pin Size & ColorSpace/Compression of a Video Source Filter in DirectShow
I want to Know whre the Output Pin PropertyPage Datas are stored and how can I Change those Datas By My Code
You would have to write your own transformation filter. Or you can use a filter like FFDShow that supports image resizing among other video modifications and enhancements.
You can use IPin::EnumMediaTypes on your filter's output pin to get a list of supported media types / video formats.
Afterwards, call IAMStreamConfig::GetFormat to get the current format in an AM_MEDIA_TYPE structure. Modify this structure as you wish (make sure your format is supported by the device), and call IAMStreamConfig::SetFormat with the same structure.