[vlc-devel] [PATCH 2/2] add V4L2 video_output module

Francois Cartegnie fcvlcdev at free.fr
Sat Jan 14 14:36:48 CET 2012


Le 14/01/2012 03:43, Rafaël Carré a écrit :

>> +/* ! from v4l2 access */
> 
> does that mean that the function is defined 2 times?

We have a truncated fallback but want to keep track of the original order.

But yes, some code could be shared with v4l2 access/input.

>> +        vlc_fourcc_t i_fourcc;
>> +        int i_foo;
>> +        b_codec_supported = get_fourcc_by_v4l2pixelformat( &i_fourcc,
>> +                                                           &i_foo,
>> +                                                           &i_foo,
>> +                                                           &i_foo,
>> +                                                           codecs[i].pixelformat );
> 
> you could initialize codecs[i].reserved[0] directly?

Not sure I get your remark.
I use the driver extensions reserved space as storage to avoid declaring
a new struct.

Francois



More information about the vlc-devel mailing list