Re: YUYV capture

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



On Wed, Dec 11, 2002 at 02:02:51PM -0000, Georgios Kapetanakis wrote:
> Hi,
> 
> Thanks for the replys guys (useful sites, Franz). What I'm trying to do is
> figure out how YUYV (YCbCr 4:2:2) is encoded in the picture as an array of
> unsigned chars. My aim is to "crop" the image just after it is captured (as
> VIDEO_PALETTE_YUYV). I have already computed the coordinates necessary:
> 
> from pixel (x,y)=(72,56) crop a rectangle of (width,height)=(660,382).

For copying you can simply divide x and width by two and and treat the
image as if it was using 32 bit pixels.

-- 
Ville Syrjälä
syrjala@xxxxxx
http://www.sci.fi/~syrjala/





[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