// JP opened flex table

Click to See Complete Forum and Search --> : Directshow One input/several Output samples in CTransform


otosigo
January 7th, 2004, 06:49 AM
I'm working on a RTP packetizer/depacketizer. For the moment both filters inherit from 'CTransformFilter'.
In the packetizer I receive one sample, divide it into packets, add to each packet a header and put all the packets in the destination sample:
Source sample: XXXXX
Dest sample: HXHXHXHXHX
(H is for header, and X is for data).

The thing is that I would like to send each packet (with the header) in different samples. Is there an easy way to achieve this using CTransformFilter, or do I have to inherit from CBaseFilter?

In the depacketizer filter I have the opposite problem: send one sample after receiving n samples. I have thought to have a member buffer where i store data until last packet is received, then deliver the sample. Until this last packet arrives, the transfrom method returns S_FALSE ("Do not deliver this sample" according to directx documentation). Any comments/suggestions about this solution?

otosigo
January 12th, 2004, 09:23 AM
Just in case someone has the same problem, to deliver several samples override CTrasnformFilter::Receive(ImeadiaSample );

//JP added flex table