Skip to content

PIP (Picture In Picture)

During preview, recording or playback, a TVideoGrabber component can receive the video of other TVideoGrabber components and display their videos as rectangles in "PIP" (Picture In Picture) mode.

This is set up by invoking Mixer_SetupPIPFromSource and passing as parameters the UniqueID of the TVideoGrabber component used as source, the source rectangle that should be captured, and the destination rectangle where the PIP should be displayed.

The first boolean parameter specifies whether the PIP must be activated or deactivated.

The last boolean parameter specifies whether the PIP must be placed on top (useful only if several PIPs overlap).

Several PIPs can be set up on the same video frame.

E.g., to display the whole VideoGrabber2 video frame as an 80x60 rectangle at the x=10, y=10 location in VideoGrabber1, invoke:

VideoGrabber1.Mixer_SetupPIPFromSource (VideoGrabber2.UniqueID, 0, 0, 0, 0, true, 10, 10, 80, 60, false);

To display a 160x120 rectangle of VideoGrabber2 located at x=40, y=60 as an 80x60 rectangle at the 10, 10 location in VideoGrabber1, invoke:

VideoGrabber1.Mixer_SetupPIPFromSource (VideoGrabber2.UniqueID, 40, 60, 160, 120, true, 10, 10, 80, 60, false);

This function can be invoked again on the fly, several times, e.g. to activate/deactivate the PIP or to modify its location or size.

Audio

Only the video is concerned: the audio of the source component is not received by the destination component.