Re: Output single jpeg image on a DC10+ - card

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi Markus,

On Fri, 2003-01-17 at 11:09, Markus Nilsson wrote:
> I want to just output one single jpeg image on the TV-out port on my
> Pinnacle DC10+ card. Is that possible? and if so, how?

Well, sure it's possible, assuming you know what you're doing. You'd
need to program it yourself, since no such tool exists, afaik.

However, you need to make sure that:
A) the JPEG image has Huffman/Quantization tables (I think the zoran
chipset requires that)
B) the internal encoding of the JPEG image must be YUY2. RGB24/32 can't
be read by the zoran chipset.
C) if the imageheight  is larger than the max. field height (240 for
NTSC, 288 for PAL), then the image must be interlaced (i.e., two
seperately-encoded JPEG fields sequentially). The zoran chipset can't
read JPEG fields larger than that.

To show the image, just open the device, setup the zoran parameters
(v4l1: MJPIOC_S_PARAMS, v4l2: VIDIOC_S_JPEGCOMP and VIDIOC_S_FMT),
request buffers (v4l1: MJPIOC_REQBUFS, v4l2: VIDIOC_REQBUFS), mmap the
buffers, write your data into the buffer, then queue the buffer, start
playback, sync on the buffer and stop playback (v4l1:
MJPIOC_QBUF_PLAY/autodone/MJPIOC_SYNC/MJPIOC_QBUF_PLAY(framenum=-1),
v4l2: VIDIOC_QBUF/VIDIOC_STREAMON/VIDIOC_DQBUF/VIDIOC_STREAMOFF), then
close the device. That's all.

You can also make a movie of the JPEG image using jpg2yuv | yuv2lav
(both part of mjpegtools) and then use lavplay to display the movie.
However, the way I read your question, that wasn't what you wanted
(though I could be wrong here ;-) ).

Ronald

-- 
Ronald Bultje <rbultje@xxxxxxxxxxxxxxxxxxx>
Linux Video/Multimedia developer





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux