Statistics
| Branch: | Revision:

ffmpeg / libavdevice / v4l2.c @ 9c6b3b97

History | View | Annotate | Download (19.5 KB)

# Date Author Comment
50f85218 05/01/2010 08:24 AM Stefano Sabatini

Make device_open() store the VIDIOC_QUERYCAP ioctl errno, and in case
of failure return the stored value rather than the current errno,
which may be overwritten by a following call to close().

Originally committed as revision 23001 to svn://svn.ffmpeg.org/ffmpeg/trunk

b01dba14 04/28/2010 08:02 AM Luca Abeni

Check the return value of device_try_init() immediately after calling such a
function. Avoids the following warning:
libavdevice/v4l2.c: In function ‘v4l2_read_header’:
libavdevice/v4l2.c:586: warning: ‘codec_id’ may be used uninitialized in this function...

6e25b780 04/27/2010 10:45 PM Stefano Sabatini

Fix weird brace placement.

Originally committed as revision 22982 to svn://svn.ffmpeg.org/ffmpeg/trunk

1ace15f5 04/27/2010 09:33 PM Luca Abeni

Reduce the verbosity of the v4l2 input device

Originally committed as revision 22980 to svn://svn.ffmpeg.org/ffmpeg/trunk

4f54d924 04/27/2010 09:32 PM Luca Abeni

Simplify some output messages in the v4l2 input device

Originally committed as revision 22979 to svn://svn.ffmpeg.org/ffmpeg/trunk

932d775f 04/26/2010 10:07 PM Stefano Sabatini

Implement v4l2 input size autodetection in v4l2_read_header().

Move check on frame size after the device is opened and after
device_try_init() is attempted. If the provided size value is 0x0,
perform a VIDIOC_G_FMT ioctl() on the device, which sets size to the...

c57a8fef 04/26/2010 07:40 PM Stefano Sabatini

Return meaningful error codes, rather than always -1.

Originally committed as revision 22966 to svn://svn.ffmpeg.org/ffmpeg/trunk

18225025 04/25/2010 06:47 PM Stefano Sabatini

Remove unnecessary width and height variables from v4l2_read_header().

Originally committed as revision 22963 to svn://svn.ffmpeg.org/ffmpeg/trunk

72415b2a 03/30/2010 11:30 PM Stefano Sabatini

Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump.

Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk

90d0379f 01/28/2010 03:45 PM Jai Menon

Avoid using deprecated AVFormatParameters::[audio|video]_codec_id field.

Originally committed as revision 21511 to svn://svn.ffmpeg.org/ffmpeg/trunk

8040c3b2 01/03/2010 10:43 AM Reinhard Tartler

Define device_try_init() as static in libavdevice/v4l2.c.
Patch by Reinhard Tartler (siretart AT tauware DOT de).

Originally committed as revision 21004 to svn://svn.ffmpeg.org/ffmpeg/trunk

3db77ccf 12/14/2009 10:34 AM Luca Abeni

Support compressed formats in the V4L2 input device.
Patch by klchxbec AT freenet DOT de.

Originally committed as revision 20858 to svn://svn.ffmpeg.org/ffmpeg/trunk

9eb6e9d9 12/14/2009 10:33 AM Luca Abeni

Add support for V4L2 compressed formats in the table used for converting
between V4L2 formats and ffmpeg's formats/codecs.
Patch by klchxbec AT freenet DOT de.

Originally committed as revision 20857 to svn://svn.ffmpeg.org/ffmpeg/trunk

9202218e 12/14/2009 10:31 AM Luca Abeni

Use the correct type for the V4L2 format.

Originally committed as revision 20856 to svn://svn.ffmpeg.org/ffmpeg/trunk

158aa9f2 12/14/2009 10:30 AM Luca Abeni

Return pkt->size in v4l2_read_packet().
mmap_read_frame() takes care of ensuring that the packet size
is correct.

Originally committed as revision 20855 to svn://svn.ffmpeg.org/ffmpeg/trunk

1c787b10 02/15/2009 02:32 PM Luca Abeni

Cast a __u64 variable to uint64_t so that it can be printed without warnings

Originally committed as revision 17325 to svn://svn.ffmpeg.org/ffmpeg/trunk

5449a787 01/30/2009 12:41 PM Luca Abeni

If AVPacket->data == NULL, the packet does not contain any buffer to
be freed.
This fixes a double free on exit.

Originally committed as revision 16857 to svn://svn.ffmpeg.org/ffmpeg/trunk

406792e7 01/19/2009 03:46 PM Diego Biurrun

cosmetics: Remove pointless period after copyright statement non-sentences.

Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk

b250f9c6 01/13/2009 11:44 PM Aurelien Jacobs

Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.

Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk

e7b987dc 01/07/2009 01:34 PM Luca Abeni

Remove the frame rate from struct video_data, and allow using a variable
frame rate for video4linux2 input

Originally committed as revision 16464 to svn://svn.ffmpeg.org/ffmpeg/trunk

5d91e928 12/28/2008 02:41 PM Stefano Sabatini

Use avcodec_check_dimensions() for checking the frame size validity.
The v4l.c check is moved after the eventual automatic size detection,
so the check in that case is performed on the new set values.

Originally committed as revision 16370 to svn://svn.ffmpeg.org/ffmpeg/trunk

df2a3f27 12/26/2008 11:23 AM Stefano Sabatini

Use more descriptive long_names for Video4Linux input devices.

Originally committed as revision 16322 to svn://svn.ffmpeg.org/ffmpeg/trunk

37d3e066 10/21/2008 09:40 PM Aurelien Jacobs

uses FF_ARRAY_ELEMS() where appropriate

Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk

3d0d9a5e 10/21/2008 07:59 AM Jens Rosenboom

The v4l2 driver can silently change the pixel format in the
VIDIOC_S_FMT ioctl(). In this case, device_init() should fail so that
a different pixel format is tried.
Patch by Jens Rosenboom (jens DOT rosenboom AT eu DOT panasonic DOT com)

Originally committed as revision 15660 to svn://svn.ffmpeg.org/ffmpeg/trunk

1b6e8b73 09/21/2008 10:47 PM Brad

V4L2 support for OpenBSD, patch by Brad, brad comstyle com

Originally committed as revision 15376 to svn://svn.ffmpeg.org/ffmpeg/trunk

92d04e76 09/05/2008 08:40 PM Jean Delvare

Add support for the RGB32 pixel format in video4linux2 devices
Patch by Jean Delvare (khali AT linux-fr DOT org)

Originally committed as revision 15219 to svn://svn.ffmpeg.org/ffmpeg/trunk

97a290ef 09/05/2008 08:36 PM Jean Delvare

Add support for the PIX_FMT_RGB555 and PIX_FMT_RGB565 pixel formats in
video4linux2 devices.
Patch by Jean Delvare (khali AT linux-fr DOT org)

Originally committed as revision 15218 to svn://svn.ffmpeg.org/ffmpeg/trunk

e9d4b8a5 08/19/2008 09:20 PM Michael Niedermayer

Workaround bug in types.h that has typedef u64 under #ifndef __STRICT_ANSI.

Originally committed as revision 14852 to svn://svn.ffmpeg.org/ffmpeg/trunk

ea452b54 08/13/2008 05:22 PM Aurelien Jacobs

strcasecmp() requires #include <strings.h>

Originally committed as revision 14728 to svn://svn.ffmpeg.org/ffmpeg/trunk

3241ec1d 08/08/2008 06:14 PM Stefano Sabatini

Cosmetics: make a v4l2 error message consistent with r14647.

Originally committed as revision 14664 to svn://svn.ffmpeg.org/ffmpeg/trunk

99423fa0 08/06/2008 06:21 PM Stefano Sabatini

Distinguish the error reporting for the cases of wrong size and wrong
timebase in the video4linux2 v4l2_read_header() function.

Originally committed as revision 14647 to svn://svn.ffmpeg.org/ffmpeg/trunk

deaab5fc 07/15/2008 08:45 PM Stefano Sabatini

Make v4l2_read_header() don't free a stream in case of failure when
reading its header. The stream will be freed later in
av_open_input_stream(). Fix a segmentation fault due to a double free
on the same pointer.

Originally committed as revision 14247 to svn://svn.ffmpeg.org/ffmpeg/trunk

bde15e74 06/03/2008 04:20 PM Stefano Sabatini

Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
patch by Stefano Sabatini, stefano.sabatini-lala poste.it
along with some spelling/consistency fixes for the long names by me

Originally committed as revision 13649 to svn://svn.ffmpeg.org/ffmpeg/trunk

eacced45 05/11/2008 10:28 PM Carl Eugen Hoyos

Replace some occurrences of -1 with PIX_FMT_NONE.
Fixes icc warning #188: enumerated type mixed with another type

Originally committed as revision 13130 to svn://svn.ffmpeg.org/ffmpeg/trunk

245976da 05/09/2008 11:56 AM Diego Biurrun

Use full path for #includes from another directory.

Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk

0e58bf67 03/24/2008 10:54 AM Diego Biurrun

Remove #ifdef HAVE_SYS_MMAN_H around sys/mman.h #include.
Without the #include compilation fails.

Originally committed as revision 12568 to svn://svn.ffmpeg.org/ffmpeg/trunk

b0067549 03/20/2008 07:07 PM Diego Biurrun

Only #include sys/mman.h if configure set HAVE_SYS_MMAN_H.

Originally committed as revision 12521 to svn://svn.ffmpeg.org/ffmpeg/trunk

48f7e1ae 01/17/2008 04:27 PM Michel Bardiaux

Clarify the error message when video width, height, or framerate are not
specified.
Patch by Michel Bardiaux (mbardiaux AT mediaxim DOT be)

Originally committed as revision 11551 to svn://svn.ffmpeg.org/ffmpeg/trunk

c721d803 11/22/2007 04:10 PM Luca Abeni

Introduce libavdevice

Originally committed as revision 11077 to svn://svn.ffmpeg.org/ffmpeg/trunk