[Mjpeg-users] [PATCH v2 34/76] media: zoran: Rename __fh to fh

2025-08-10 Thread Laurent Pinchart
From: Jacopo Mondi Unless there is a good reason to do so, naming variable with double underscore is generally not a good idea. Rename the (mostly unused) __fh argument to ioctl handlers to fh. Signed-off-by: Jacopo Mondi Signed-off-by: Laurent Pinchart --- drivers/media/pci/zoran

[Mjpeg-users] [PATCH v3 33/76] media: zoran: Remove zoran_fh structure

2025-08-10 Thread Laurent Pinchart
to a void pointer, without being every accessed. Drop it. Fixes: 83f89a8bcbc3 ("media: zoran: convert to vb2") Signed-off-by: Jacopo Mondi Signed-off-by: Laurent Pinchart --- drivers/media/pci/zoran/zoran.h| 6 -- drivers/media/pci/zoran/zoran_driver.c | 3 +-- 2 files change

[Mjpeg-users] [PATCH v3 34/76] media: zoran: Rename __fh to fh

2025-08-10 Thread Laurent Pinchart
From: Jacopo Mondi Unless there is a good reason to do so, naming variable with double underscore is generally not a good idea. Rename the (mostly unused) __fh argument to ioctl handlers to fh. Signed-off-by: Jacopo Mondi Signed-off-by: Laurent Pinchart --- drivers/media/pci/zoran

[Mjpeg-users] [PATCH v2 33/76] media: zoran: Remove zoran_fh structure

2025-08-10 Thread Laurent Pinchart
to a void pointer, without being every accessed. Drop it. Fixes: 83f89a8bcbc3 ("media: zoran: convert to vb2") Signed-off-by: Jacopo Mondi Signed-off-by: Laurent Pinchart --- drivers/media/pci/zoran/zoran.h| 6 -- drivers/media/pci/zoran/zoran_driver.c | 3 +-- 2 files change

[Mjpeg-users] [PATCH v2 00/76] media: Rationalise usage of v4l2_fh

2025-08-10 Thread Laurent Pinchart
From: Laurent Pinchart Hello, This patch series refactors v4l2_fh support to make the API easier to use, simplify drivers, and overall improve consistency through the whole subsystem. In V4L2, drivers that need to store per file handle data allocate their per file handle data structure in the

[Mjpeg-users] [PATCH v3 00/76] media: Rationalise usage of v4l2_fh

2025-08-10 Thread Laurent Pinchart
le media: st: delta: Access v4l2_fh from file media: stm32: dma2d: Access v4l2_fh from file media: omap3isp: Access v4l2_fh from file media: cx18: Access v4l2_fh from file media: ivtv: Access v4l2_fh from file media: usb: hdpvr: Access v4l2_fh from file media: usb: uvc: Access v4l2_fh

Re: [Mjpeg-users] [PATCH 27/65] media: Reset file->private_data to NULL in v4l2_fh_del()

2025-08-08 Thread Laurent Pinchart
On Wed, Aug 06, 2025 at 02:45:14PM +0200, Hans Verkuil wrote: > On 02/08/2025 11:22, Jacopo Mondi wrote: > > From: Laurent Pinchart > > > > Multiple drivers that use v4l2_fh and call v4l2_fh_del() manually reset > > the file->private_data pointer to NULL in their vi

Re: [Mjpeg-users] [PATCH 58/65] media: zoran: Remove access to __fh

2025-08-08 Thread Laurent Pinchart
struct v4l2_format *fmt) > > { > > struct zoran *zr = video_drvdata(file); > > - struct zoran_fh *fh = __fh; > > int i; > > int res = 0; > > > > if (fmt->fmt.pix.pixelformat == V4L2_PIX_FMT_MJPEG) > > -

Re: [Mjpeg-users] [PATCH 11/65] media: Replace file->private_data access with custom functions

2025-08-08 Thread Laurent Pinchart
Hi Hans, On Wed, Aug 06, 2025 at 10:16:37AM +0200, Hans Verkuil wrote: > On 02/08/2025 11:22, Jacopo Mondi wrote: > > From: Laurent Pinchart > > > > Accessing file->private_data manually to retrieve the v4l2_fh pointer is > > error-prone, as the field is

Re: [Mjpeg-users] [PATCH 65/65] media: v4l2-ioctl: Stop passing fh pointer to ioctl handlers

2025-08-08 Thread Laurent Pinchart
Hi Hans, On Thu, Aug 07, 2025 at 09:58:34AM +0200, Hans Verkuil wrote: > On 07/08/2025 09:26, Hans Verkuil wrote: > > On 02/08/2025 11:23, Jacopo Mondi wrote: > >> From: Laurent Pinchart > >> > >> Now that all drivers access the v4l2_fh from the file structu

Re: [Mjpeg-users] [PATCH 64/65] media: staging: ipu7: isys: Don't set V4L2_FL_USES_V4L2_FH manually

2025-08-08 Thread Laurent Pinchart
Hi Sakari, On Thu, Aug 07, 2025 at 09:07:13AM +, Sakari Ailus wrote: > On Sat, Aug 02, 2025 at 11:23:26AM +0200, Jacopo Mondi wrote: > > From: Laurent Pinchart > > > > The V4L2_FL_USES_V4L2_FH flag is set by v4l2_fh_init(). It is not meant > > to be set manually b

Re: [Mjpeg-users] [PATCH 27/65] media: Reset file->private_data to NULL in v4l2_fh_del()

2025-08-08 Thread Laurent Pinchart
On Thu, Aug 07, 2025 at 10:51:27PM +0200, Hans Verkuil wrote: > On 07/08/2025 22:25, Laurent Pinchart wrote: > > On Thu, Aug 07, 2025 at 08:00:06PM +0300, Laurent Pinchart wrote: > >> On Thu, Aug 07, 2025 at 11:50:07AM +0300, Laurent Pinchart wrote: > >>> On Wed, Au

Re: [Mjpeg-users] [PATCH 27/65] media: Reset file->private_data to NULL in v4l2_fh_del()

2025-08-08 Thread Laurent Pinchart
On Thu, Aug 07, 2025 at 11:50:07AM +0300, Laurent Pinchart wrote: > On Wed, Aug 06, 2025 at 02:45:14PM +0200, Hans Verkuil wrote: > > On 02/08/2025 11:22, Jacopo Mondi wrote: > > > From: Laurent Pinchart > > > > > > Multiple drivers that use v4l2_fh a

Re: [Mjpeg-users] [PATCH 27/65] media: Reset file->private_data to NULL in v4l2_fh_del()

2025-08-08 Thread Laurent Pinchart
On Thu, Aug 07, 2025 at 08:00:06PM +0300, Laurent Pinchart wrote: > On Thu, Aug 07, 2025 at 11:50:07AM +0300, Laurent Pinchart wrote: > > On Wed, Aug 06, 2025 at 02:45:14PM +0200, Hans Verkuil wrote: > > > On 02/08/2025 11:22, Jacopo Mondi wrote: > > &g

Re: [Mjpeg-users] [PATCH 65/65] media: v4l2-ioctl: Stop passing fh pointer to ioctl handlers

2025-08-08 Thread Laurent Pinchart
On Thu, Aug 07, 2025 at 10:55:59PM +0200, Hans Verkuil wrote: > On 07/08/2025 22:33, Laurent Pinchart wrote: > > On Thu, Aug 07, 2025 at 09:58:34AM +0200, Hans Verkuil wrote: > >> On 07/08/2025 09:26, Hans Verkuil wrote: > >>> On 02/08/2025 11:23, Jacopo Mondi wrote:

Re: [Mjpeg-users] bringing back media/zoran driver

2019-09-21 Thread Laurent Pinchart
to assume to be the maintainer if needed. That would be great ! I used to own a DC10 a long time ago, and the zoran driver was the first one I tried to hack when I moved to Linux. I'd love to see it getting maintained. Please let us know if you need any help getting st

[Mjpeg-users] Re: [PATCH] video/zoran_device: replace schedule_timeout() with msleep()

2004-07-29 Thread Laurent Pinchart
ng for an event (waitqueue) with a timeout. Laurent Pinchart pgp0TzgKZjy6z.pgp Description: signature

Re: [Mjpeg-users] miro DC20 support ?

2003-12-31 Thread Laurent Pinchart
tile custom logic (I thought all the FPGAs where volatile), and could be used as a base PCI interface to let the driver upload the firmware to the other FPGA. If this is the case, we are probably screwed. Laurent Pinchart --- This SF.net email

Re: [Mjpeg-users] miro DC20 support ?

2003-12-31 Thread Laurent Pinchart
Forgot to add that the output of lspci -v might help to identify the chip. Laurent Pinchart --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free

Re: [Mjpeg-users] miro DC20 support ?

2003-12-31 Thread Laurent Pinchart
so it might be easy to write one (or adapt the existing one) for the 7187. > and one beneath the coolblock, which I couldn't identify ... That will probably be the PCI interface. We need to know what chip it is. Can you remove the coolblock with

Re: [Mjpeg-users] YUV Image type

2003-11-23 Thread Laurent Pinchart
at. For more information about the different YUV formats, have a look at http://www.fourcc.org. Laurent Pinchart --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you c

Re: [Mjpeg-users] can't find on wich /dev my pinnacle dc10+ is

2003-11-06 Thread Laurent Pinchart
> No, RedHat uses the default devfs names. However, due to devfs horror > (that's a pleonasm), /dev/video/ contains other non-v4l video entries, > such as the dxr3 (em8300) Ouch. > Fortunately, devfs is now marked obsolete. What will it be replaced by ? Last time I checked sysfs, I didn't find a

Re: [Mjpeg-users] can't find on wich /dev my pinnacle dc10+ is

2003-11-06 Thread Laurent Pinchart
video). If so, you can tell lavrec where your video device is by setting LAV_VIDEO_DEV: export LAV_VIDEO_DEV=/dev/video/video0 lavrec [options] Laurent Pinchart --- This SF.net email is sponsored by: SF.net Giveback Program. Does Source

Re: [Mjpeg-users] From DVD dumps to YUV

2003-11-03 Thread Laurent Pinchart
(but not impossible I suppose) for that to be the problem. As an > experiment you might try y4mscaler and see if the symptoms are > different - if it does fail it might do so in a different way that > would shed some light on what's going wrong. I'll tr

Re: [Mjpeg-users] From DVD dumps to YUV

2003-11-03 Thread Laurent Pinchart
> My superquick $.02 here: > > I bet some errant printf() in mplayer is writing UI crap to stdout instead > of stderr MPlayer outputs to a file or a named pipe, not to stdout. Laurent Pinchart --- This SF.net email is

Re: [Mjpeg-users] From DVD dumps to YUV

2003-11-02 Thread Laurent Pinchart
> If you really do have a progressive stream it's valid. Otherwise > the interlace tag 'Ip' is wrong. It should be either It (top > field first) or 'Ib' (bottom field first). Most DVDs that I > have looked at are 'It' while DV (from a analog->DV capture) is > alway

[Mjpeg-users] yuvscaler and interlaced material

2003-11-02 Thread Laurent Pinchart
Hi, Could anyone tell me how yuvscaler handles interlaced material ? Does it deinterlace it before applying the scaling ? If so, is there a way to turn that off for progressive input ? And if not, doesn't it have an impact on quality ? Laurent Pin

[Mjpeg-users] MPEG2 encoding performance

2003-11-02 Thread Laurent Pinchart
w if anyone has ever profiled mpeg2enc to find where the performance bottleneck is. I don't expect mpeg2enc to give me real-time encoding performances (quality comes at a cost), but 3fps seems very low compared to 25fps. Laurent Pinchart -

Re: [Mjpeg-users] From DVD dumps to YUV

2003-11-02 Thread Laurent Pinchart
CVS sometimes to see if that was fixed. If not, it should be pretty straightforward. Laurent Pinchart --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you cre

Re: [Mjpeg-users] From DVD dumps to YUV

2003-11-02 Thread Laurent Pinchart
trying with -x mpeg2,null (or even with no -x at all), which was why I had problems. Laurent Pinchart --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better

Re: [Mjpeg-users] From DVD dumps to YUV

2003-11-02 Thread Laurent Pinchart
ber 12 INFO: [yuvscaler] Frame number 13 INFO: [yuvscaler] Frame number 14 INFO: [yuvscaler] Couldn't read FRAME header: bad header magic! **ERROR: [yuvscaler] Couldn't read frame number 15! Laurent Pinchart --- This SF.n

Re: [Mjpeg-users] From DVD dumps to YUV

2003-11-02 Thread Laurent Pinchart
ns about not being able to open VIDEO_TS.IFO. If I copy VTS_03_0.IFO to VIDEO_TS.IFO, MPlayer segfaults. Are you sure that the -dvd-device option can be used to read from a DVD dump ? From the man page it seems that it is used to specify the DVD devi

Re: [Mjpeg-users] From DVD dumps to YUV

2003-11-02 Thread Laurent Pinchart
> > What is the best way to convert the DVD dump ? I can use tccat | mplayer > > | yuvscaler | mpeg2enc, but using programs from 3 different projects > > (transcode, mplayer and mjpegtools) seems a bit complicated to do the > > simple operation I'm trying to achieve. > > > > Any help will be greatl

[Mjpeg-users] From DVD dumps to YUV

2003-11-02 Thread Laurent Pinchart
ls) seems a bit complicated to do the simple operation I'm trying to achieve. Any help will be greatly appreciated. Laurent Pinchart --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productiv

Re: [Mjpeg-users] SVCD subtitles

2003-10-08 Thread Laurent Pinchart
nk it may be an task of the authoring program > to insert subs, isn't it? I'll have a look at dvdauthor too. I just found out that it includes a program called submux that creates DVD, CVD and SVCD streams from a '.sub' file, and multiplexes them with an m

Re: [Mjpeg-users] SVCD subtitles

2003-10-08 Thread Laurent Pinchart
nd CC, are there other ones ?), so any information is welcome. Any help with the mplex code will also be very appreciated. Laurent Pinchart --- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open

[Mjpeg-users] SVCD subtitles

2003-10-06 Thread Laurent Pinchart
be nice to use them, as moving the subtitles off the picture will improve compression, and will allow the user (me :-) to switch them off. Any help would be appreciated. Laurent Pinchart --- This sf.net email is sponsored by:ThinkGeek Welco

Re: [Mjpeg-users] driver-zoran: make error

2003-06-11 Thread Laurent Pinchart
rocfs.c:34: > /usr/src/linux-2.4.21-0.13mdk/include/linux/module.h:300: > parse error before "UTS_RELEASE" [...] It looks like you haven't configured your kernel tree (make config or make menuconfig). You should also ru

Re: [Mjpeg-users] driver-zoran: make error

2003-06-11 Thread Laurent Pinchart
> Redhat 9.0 can be made to work with a DC10+ out of the box. After having > problems compiling the zoran drivers I found that kudzu will find the > DC10+ and then you can modprobe the right modules. I managed to get it to > capture perfectly. Though thinking about it it wasn;t quite out of the box

[Mjpeg-users] MJPEG encoding performances

2003-02-08 Thread Laurent Pinchart
d share his/her experience with me. 2) I get very similar results using libjpeg-mmx and libjpeg on a P3-800 (both optimized for i686). Is this normal ? I would have expected libjpeg-mmx to be faster. Thanks for your help. Laurent Pinchart

Re: Re: [Mjpeg-users] seriously old dc10

2003-01-12 Thread Laurent Pinchart
efined thing), I'll use __FUNCTION__ instead - that always works. Here's a patch which uses __func__ along with %s in the printk's. The debug output in vpx3220.c should probably be rewritten, but as I'm not sure yet which of vpx3220.c and vpx32xx.c will be kept, I won'

RE: Re: [Mjpeg-users] seriously old dc10

2003-01-10 Thread laurent . pinchart
FUNCTION__ the same way as __func__. __func__ is defined by th! e ISO standard C99.\"I thus suggest that we change printk(KERN_INFO \"%s: \" __func__ \" - blabla \", zr->name);toprintk(KERN_INFO \"%s: %s - blabla \", zr->name, __func__ );which would work for b

Re: [Mjpeg-users] seriously old dc10

2003-01-09 Thread Laurent Pinchart
o help out (i.e. develop) with getting the JPEG recording > running (the code is basically there, something is just wrong in the > JPEG codec or VFE settings or so - we don't receive interrupts), please > consider yourself invited! If you plan to just wait, I'd advise to > subscr

Re: [Mjpeg-users] any mpeg2 encoder faster than mpeg2enc?

2002-12-29 Thread Laurent Pinchart
g2enc actually uses MMX, but configures reports that MMX is enabled and HAVE_ASM_MMX is set to 1 in config.h). Laurent Pinchart --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___

[Mjpeg-users] Standalone DVD player drops frames on SVCD playback

2002-12-22 Thread Laurent Pinchart
n "${1%.avi}.mp2" mplex -f 4 dogma.mp2 dogma.m2v -o "${1%.avi}%02d.mpg" Does anyone have any idea about what went wrong with the encoding process ? Thanks for your help. Laurent Pinchart --- This sf.net email is sp

Re: [Mjpeg-users] 1024 or 1000 as a multiplier

2002-12-15 Thread Laurent Pinchart
d with the meaning of the binary prefixes. Most of (*most of*, not *all*) the time the decimal prefix is a binary prefix in the context of memory (RAM, HD, ...), and a true decimal prefix in the context of bandwidth. It would be nice to make use of the binary prefixes in the mjpegtools... L

Re: [Mjpeg-users] Authoring SVCDs or DVDs from an MPEG4 source

2002-12-14 Thread Laurent Pinchart
. Using -f 5 -b 2500 gives me exactly the same results as -f 4. Could anyone help me ? Thanks in advance. Laurent Pinchart --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSD

[Mjpeg-users] Authoring SVCDs or DVDs from an MPEG4 source

2002-12-14 Thread Laurent Pinchart
(about 1.5fps on a P3 933MHz). Could someone tell me if I'm doing something wrong ? Or if there's another way to achieve my goal ? Thanks in advance for your help. Laurent Pinchart --- This sf.net email is sponsored by: Wi