Re: Conversion of YCbCr (4:2:2) to jpeg
- From: "Remi de Gravelaine" <gravelaine at aton dash sys dot fr>
- Date: Sat, 30 Dec 2006 18:02:37 +0100
Try JpegLib by the Independent JPEG Group. Chances are
the Lib accepts the YUV format.
It actually works after minor adaptation to Windows CE, and takes as input
"video lines" in the YUV format.
I agree with you for the potential loss of quality caused by the "YUV 4:2:2
to RGB back to YUV" conversion, although it can theoretically be harmless: I
am not a mathematician but the formulaes used to convert to and from the two
formats look rather reversible. The main picture degradation (half the
colors going to nirvana) comes from the initial "samples to 4:2:2"
conversion. IMO, the effects of extra conversions should be the loss of a
few other colors close to the white and black areas.
Thus, if quality is not an issue, maybe is it simpler for the OP to make the
first conversion and to let MS code perform the second one.
Also consider that if some on-screen display of the captured data is also
needed, maybe RGB format will be needed too, e.g. if a DirectDraw-compliant
video driver is not available.
Remi
.
- Follow-Ups:
- Re: Conversion of YCbCr (4:2:2) to jpeg
- From: bluesphere
- Re: Conversion of YCbCr (4:2:2) to jpeg
- References:
- Conversion of YCbCr (4:2:2) to jpeg
- From: Anwar
- Re: Conversion of YCbCr (4:2:2) to jpeg
- From: bluesphere
- Conversion of YCbCr (4:2:2) to jpeg
- Prev by Date: Re: first driver project
- Next by Date: Re: Conversion of YCbCr (4:2:2) to jpeg
- Previous by thread: Re: Conversion of YCbCr (4:2:2) to jpeg
- Next by thread: Re: Conversion of YCbCr (4:2:2) to jpeg
- Index(es):
Relevant Pages
|
|