AgeCommit message (Collapse)AuthorFilesLines
2014-08-06v4l2-ctl/qv4l2: sync to latest vivid-tpg.cHans Verkuil2-43/+27
Main change: the 16x9 widescreen vertical lines for PAL/NTSC have been corrected. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-08-05qv4l2: keep the "Controls" textHans Verkuil1-2/+0
Don't chop off the "Controls" text in the tab name: it turns out that leaving that off makes it hard to tell the difference between tabs that are setup by qv4l2 and tabs that contain controls from the driver. If someone can come up with a better way of doing this then that would be welcome, but for now this is the best I can come up with. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-08-04qv4l2: Removed bottom layout from capturewinAnton Arbring3-72/+9
The information shown can be seen in the status bar of the main window. The eventfilter that shows the bottom layout can also be percieved as annoying. Signed-off-by: Anton Arbring <aarbring@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-08-04libv4l2: valgrind fixesHans Verkuil1-1/+3
Initialize reserved fields and a v4l2_format struct. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-08-04qv4l2: fix valgrind warningsHans Verkuil5-21/+32
Mostly uninitialized fields, but there was also one inverted get_interval result check. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-30qv4l2: use "ADC Frequency" for SDR instead of just "Frequency"Hans Verkuil1-2/+4
This makes it more obvious what is going on. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-30qv4l2: zero m_tpgLimRGBRange when the device is closedHans Verkuil1-1/+1
The m_tpgLimRGBRange pointer was non-NULL when it shouldn't be. Set it to NULL when the device is closed, that's the correct place since after that it is invalid until a new device is opened. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-28libv4l2: Lazily allocate convert_mmap_bufGregor Jasny2-37/+68
From Hans de Goede: Originally this was not possible, which is why I went with the fixed buffer (IIRC). But later on we started dis-allowing changing various parameters with buffers mapped, because allowing that was just a bad idea. In order to allow dynamic allocation of convert_mmap_buf, we need to make sure that: a) It is not used whenever dest_fmt changes, since it is used to store destination fmt data and should always be at least dest_fmt.fmt.pix.sizeimage bytes. I've just checked and all places which change dest_fmt first call v4l2_check_buffer_change_ok() which ensures that convert_mmap_buf is not used, frees it and marks it as MAP_FAILED. b) It is not allocated before dest_fmt gets set. It is allocated in 2 places: 1) On DQBUF, which only can be done after a stream-on, at which point dest_fmt must be set. 2) on v4l2_mmap, which requires the caller having done a QUERYBUF, and thus a REQBUFS, so dest_fmt must be set at this point. So long story short, yes doing dynamic alloc should work fine. I suggest introducing a v4l2_ensure_convert_mmap_buf function for this which checks if convert_mmap_buf == MAP_FAILED and when it is allocs a buffer of dest_fmt.fmt.pix.sizeimage bytes rounded up to a multiple PAGE_SIZE. If convert_mmap_buf != MAP_FAILED and thus the buffer is already allocated it should simply return success. Signed-off-by: Gregor Jasny <gjasny@googlemail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2014-07-28libv4l-mplane: make it aware of the extended pix_format fieldsHans Verkuil1-2/+40
The v4l2_pix_format struct has been extended with new fields. Let libv4l-mplane make use of that so that the v4l2_pix_format_mplane 'flags' field can be reported in v4l2_pix_format as well. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-28qv4l2: convert the last direct ioctl calls to a cv4l-helper.Hans Verkuil4-3/+29
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-28(c)v4l-helpers: fix broken tests for existence of ioctls.Hans Verkuil3-12/+7
Instead of checking for success, check for a result != ENOTTY. Unfortunately this will fail for kernels older than 3.1 when the default return code for a non-existing ioctl was EINVAL. All I can say is: upgrade your kernel, there is a reason EINVAL was a bad idea... Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-27qv4l2: missed one more place where QLineEdits were disabled.Hans Verkuil1-2/+8
Use setReadOnly instead for QLineEdit widgets. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-27qv4l2: use setResdOnly for disabled QLineEdit controlsHans Verkuil1-3/+12
This allows you to copy-and-paste the text and to scroll through it if the text is longer than the widget. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-27libv4l2rds: DI segment order was swappedHans Verkuil1-5/+5
The segment number of bit 3 of the DI code is 0, increasing to segment number 3 for bit 0. The code assumed segment S matched bit S, but it is bit (3 - S) instead. Very confusing choice in the standard, so I'm not surprised this was broken. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-27rds-ctl: changes in the TA bit weren't detected.Hans Verkuil1-6/+7
If just the TA bit changed, then nothing was printed by rds-ctl. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-27qv4l2: implement cropping and composing for video output.Hans Verkuil5-65/+196
To simplify this work g/s_selection helper functions are added to the helper headers that will fallback to S/G_CROP if necessary. This patch also fixes a bug where the buffer field was never set when generating a FIELD_ALTERNATE video output stream. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-27v4l2-ctl: the field setting of the initially queued buffer is wrong.Hans Verkuil1-6/+6
buf.field was set to the next field instead of the current field. Reordered the code to keep both buf.field and tpg_s_field in sync. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-27v4l2-ctl/qv4l2: init mv_hor/vert_mode correctly.Hans Verkuil1-0/+2
Those fields were initialized to 0 instead of to TPG_MOVE_NONE. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-27v4l2-ctl: --clear-bitmap or --clear-clips didn't actually clear itHans Verkuil1-1/+2
If --clear-bitmap or --clear-clips were combined with --set-fmt-overlay without any other changes, then those options were ignored and VIDIOC_S_FMT was never called. Add a check whether those options were defined to ensure S_FMT is actually called. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-26ir-keytable.1: add XMP protocol at manpageMauro Carvalho Chehab1-1/+1
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-26[v4l-utils] keytable: add support for XMP IR protocolMarcel J.E. Mol1-1/+26
Signed-off-by: Marcel Mol <marcel@mesa.nl> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-26libdvbv5: provide crc32 to c++André Roth1-1/+9
allow C++ apps to use crc32 Signed-off-by: André Roth <neolynx@gmail.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-26[libdvbv5] dvb-sat: add universal Ku band (extended) LNBF defReynaldo H. Verdejo Pinochet1-0/+10
These are quite common and off the shelf, universal Ku band LBNFs. They started been used in Europe after the lunch of the Astra 1E and can be found pretty much everywhere. Signed-off-by: Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-26Prefix exported functions with dvb_Gregor Jasny26-211/+216
Signed-off-by: Gregor Jasny <gjasny@googlemail.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-26Hide parse_string.h content in shared library interfaceGregor Jasny1-0/+8
Signed-off-by: Gregor Jasny <gjasny@googlemail.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-26v4l2grab: Add threaded producer/consumer optionThiago Santos2-44/+219
Adds options to allow the buffer dqbuf to happen on one thread while the qbuf happens on another. This is useful to test concurrency access to the v4l2 features. To enable this, 3 new options were added: t: enable threaded mode (off by default and will use the loop) b: enable blocking io mode (off by default s: how much the consumer thread will sleep after reading a buffer, this is to simulate the time that it takes to process a buffer in a real application (in ms) For example, you can simulate an application that takes 1s to process a buffer with: v4l2grab -t -b -s 1000 Signed-off-by: Thiago Santos <ts.santos@sisa.samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-26descriptors.h: include <arpa/inet.h> for ntohsHans Verkuil1-0/+1
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-26v4l-utils: sync with latest kernel headersHans Verkuil8-201/+235
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-26v4l-utils: libdvbv5: fix compilation issueRob Barker1-1/+0
Removed unnecessary header file to fix issue with some compilers. Signed-off-by: Rob Barker <robert.barker@redembedded.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-25keytable: Mask selected protocols with the supported onesMauro Carvalho Chehab1-0/+6
It should never try to enable a protocol not supported, as the Kernel will give an error and reset to none. That's a problem when -p all option is used. So, mask the protocols to make this option to work. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-25parse_au0828.pl: fix I2C read payloadMauro Carvalho Chehab1-2/+3
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-25dvb-file: fix memory-deallocation bugMauro Carvalho Chehab1-4/+5
channel should be a pointer, as it will be allocated internally, otherwise we'll have a double de-allocation when freeing DVB scan structures. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-25parse_au0828.pl: Add a parser to help with au0828 debugMauro Carvalho Chehab1-0/+154
This parser is not 100%, but it properly handles the I2C registers, making easier to understand the parsed logic. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-25keytable: add support for sharp and mce-kbd protocolsMauro Carvalho Chehab2-2/+36
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-25ir-keytable: add the list of supported protocols at man pageMauro Carvalho Chehab1-1/+1
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-25keytable: add a way to add all protocols on raw decodersMauro Carvalho Chehab1-0/+2
With raw decoders, sometimes it is interesting to be able to select all decoders, as it helps to use a raw driver to test if a given IR is producing scancodes. Add "all" to the list of accepted protocols. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-25qv4l2: add support for output video devicesHans Verkuil7-47/+633
Hook the test pattern generator into qv4l2, allowing it to be used as a generator for video output devices. Careful attention has been given to correct colorspace and RGB quantization handling. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-25parse_usb.pl: fix handling of ./parse_tcpdump_log.pl logsMauro Carvalho Chehab1-10/+13
The regex were not parsing right those logs. Fix it, and add the timestamps to the dumps. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-24v4l2-ctl: fix csc colorbar color pre-calculationHans Verkuil1-3/+14
Colors not belonging to the CSC colorbar should just be accepted as is. The contrast color for the CSC colorbar should be suitable for CSC conversion as well. Signed-off-by: Hans Verkuil <hansverk@cisco.com>
2014-07-23qv4l2: add SDR visualization.Hans Verkuil3-12/+148
Just show a simple waveform of the first 1025 samples of the I and Q samples in each captured buffer. It's simple but remarkably effective. Currently only the CU8 format is supported. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-23v4l2-ctl: upgrade to the latest version of the test pattern generatorHans Verkuil8-103/+198
Very minor changes only, mostly a file rename, but this makes it easier to keep things synchronized. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-23qv4l2: fix layout issues related to stacked widgetsHans Verkuil1-0/+5
I've been digging into why on my laptop the stacked frames in the Input section appear shifted to the right. The reason is that the initial loop in fixWidth() sets the minimumwidth without looking at what the widget is. After some debugging I found out that it was setting the minimumwidth for the wFrameSR widget. So I added checks that it only changes it for comboboxes, spinboxes and sliders. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-23qv4l2: fix querystd and query_dv_timingsHans Verkuil2-2/+21
Error messages in case of a missing signal were not displayed, and the querystd return code check was inverted. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-22qv4l2: support output devicesHans Verkuil4-77/+196
Rework qv4l2 so that output devices (vbi and video out) are supported. Also disable the streaming option for devices that do not support it. This is (for now) also disabled for SDR since I don't know how to show the captured SDR data in a meaningful way. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-22qv4l2: removed redundant set sizeAnton Arbring5-29/+7
The widgets individual minimum sizes are enough and the height calculation causes problems on high dpi screens. Signed-off-by: Anton Arbring <aarbring@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-22v4l2-compliance: add sdr buffersize checkHans Verkuil2-0/+3
Make sure buffersize is set. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-22v4l2-ctl: print new SDR buffersize format field.Hans Verkuil1-0/+1
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-22v4l-utils: sync with latest kernelHans Verkuil3-7/+32
Some more V4L2 API enhancements were merged, so sync with that. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-21qv4l2: bug fix in re-subscribing source change eventsHans Verkuil1-5/+7
The source change event was only subscribed for the first event, not for any of the others. Apparently an 'if-while' construct is legal (?!), but I meant to write 'if () { do {} while() }'. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2014-07-21qv4l2: honor the fullscreen setting when starting capturingHans Verkuil1-3/+0
The resetSize method would always go out of fullscreen mode for no good reason. Since it is called when you start capturing it would also revert the fullscreen setting. So just leave the fullscreen mode alone. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>

Privacy Policy