~oleavr/oabuild/gst-plugins-bad

Viewing all changes in revision 24.

  • Committer: Ole Andre Vadla Ravnaas
  • Date: 2008-08-16 14:44:45 UTC
  • Revision ID: ole.andre.ravnas@tandberg.com-20080816144445-69l3hbgl5ydz69k1
ksvideosrc improvements
- Use the full buffer size in the call to gst_ks_video_device_read_frame(), and not GstBuffer's size as it might already have been clamped.
- Avoid duplicate caps, prioritize FORMAT_VideoInfo2 when present.
- Fix for choppy capture with some camera drivers.
  * Reset the ReadRequest events before issuing a new request, as there's no guarantee that DeviceIoControl will reset it when starting an overlapped operation. Microsoft's UVC driver does this, but Logitech's doesn't.
  * Added some logging for skipped and dropped frames, and when the clock is ticking backwards. (Which sometimes happens with the GstSystemClock on Windows because of to the underlying implementation.)
- Assume that unknown formats with FourCC SubType GUID are YUV formats.
- Reset OVERLAPPED between each IOCTL_KS_READ_STREAM to safeguard against drivers picking up old state. The driver may keep whatever it needs for internal housekeeping in the OVERLAPPED fields reserved to it (which is basically all of them except the hEvent field), so we should make sure that those are always initialized to zero between each request.
- In the MJPEG frame validation, not only check for SOI (Start Of Image) but also EOI (End Of Image), and strip off any padding (up to 128 bytes).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: