From: Ewald S. <ew...@ra...> - 2002-02-19 20:05:53
|
Hi Guenter, [...] > dest_size_cb: is called by the video out driver to find out what output > size a frame will have when it is displayed. > Not all drivers will call this function, those which > scale when they output the frame (like Xv) will not > call this function. > others, like the xshm output driver, needs to know the > output size when it allocates the frame to set up > the yuv2rgb converter/scaler as the frame is > scaled while it is decoded (slice-wise). > > frame_output_cb is called by all drivers for all frames to inform > the gui about the size of the frame which will be drawn > gui can adapt it's size if necessary. > > Cheers, > > Guenter Thanks for the very detailed explanation. I think I understand the purpos= e of=20 the dest_size_cb callback function now. Maybe it would be a good idea to add some of this information to the=20 video_out_x11.h header file. The part "Not all drivers will call this=20 function ..." can be important if you were planning to use this callback = for=20 frame size detection, which you just explained will not work reliable wit= h=20 the XVideo plugin. Thanks again! bye, ewald |