[Ffmpeg-devel] [patch] *BSD bktr grab support
Michael Niedermayer
michaelni
Sun May 22 11:04:13 CEST 2005
Hi
On Thursday 19 May 2005 05:42, Jacob Meuser wrote:
> here is the cleaned up patch for gab support for the bktr driver
> found on *BSD systems.
>
> the license is now LGPL, I changed the tabs to 4 spaces, added a
> couple comments, and took out an #if 0 block and a CVS Id
> that were accidently left in the last version.
> --- libavformat/grab.c 30 Apr 2005 21:43:58 -0000 1.34
> +++ libavformat/grab.c 19 May 2005 03:37:10 -0000
> @@ -364,7 +364,7 @@
> }
>
> static AVInputFormat video_grab_device_format = {
> - "video4linux",
> + "video_device",
is it theoretically impossible for v4l and bktr to coexist on the same
machine?
> +uint8_t *video_buf;
> +volatile sig_atomic_t nsignals = 0;
[...]
> + static u_int64_t last_frame_time = 0;
non constant globals
> + printf ("\nSLEPT NO signals - %d microseconds late\n",
> + (int) (av_gettime() - last_frame_time -
per_frame));
printf -> av_log
> +void bf_memcpy (char *dest, char *src, int size)
> +{
> + while (size -= 2)
> + {
> + dest[0] = src[1];
> + dest[1] = src[0];
> + dest += 2;
> + src += 2;
> + }
> +}
colorspace conversation is not allowed in codecs, (de)muxers, video grab
code, ...
--
Michael
More information about the ffmpeg-devel
mailing list