Re: Conversion of YCbCr (4:2:2) to jpeg
- From: "bluesphere" <ads_bx@xxxxxxxxxxx>
- Date: Sat, 30 Dec 2006 23:50:04 +0100
The lib itself was @ http://www.pocketpcdn.com/
Even though the formula is reversible when you
convert from RGB to YUV you discard samples
and when you convert from YUV to RGB the
missing samples are interpolated.
Happy new year, Remi
"Remi de Gravelaine" <gravelaine at aton dash sys dot fr> wrote in message
news:ejA6WRDLHHA.4384@xxxxxxxxxxxxxxxxxxxxxxx
4:2:2Try 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
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 thetwo
formats look rather reversible. The main picture degradation (half thethe
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
first conversion and to let MS code perform the second one.DirectDraw-compliant
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
video driver is not available.
Remi
.
- References:
- Conversion of YCbCr (4:2:2) to jpeg
- From: Anwar
- Re: Conversion of YCbCr (4:2:2) to jpeg
- From: bluesphere
- Re: Conversion of YCbCr (4:2:2) to jpeg
- From: Remi de Gravelaine
- Conversion of YCbCr (4:2:2) to jpeg
- Prev by Date: Re: Conversion of YCbCr (4:2:2) to jpeg
- Next by Date: Mount as Root
- Previous by thread: Re: Conversion of YCbCr (4:2:2) to jpeg
- Next by thread: No debug message on CEPC for WinCE 5.0
- Index(es):
Relevant Pages
|
|