- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can I encode an 8-bits Gray, YUV422, YUV411image to jpeg by using IJL without converting it to 24-bits RGB image ?
I learn that there a IJL_G type used for 8 bits Gray image but when I use it :
Jcprops.DIBChannels = 1;
Jcprops.DIBColor = IJL_G;
Jcprops.JPGChannels = 1;
Jcprops.JPGColor = IJL_G;
Jcprops.DIBSubsampling = IJL_NONE;
Jcprops.JPGSubsampling = IJL_422;
Jcprops.DIBColor = IJL_G;
Jcprops.JPGChannels = 1;
Jcprops.JPGColor = IJL_G;
Jcprops.DIBSubsampling = IJL_NONE;
Jcprops.JPGSubsampling = IJL_422;
an error : IJL_UNSUPPORTED_SUBSAMPLING display
Maybe IJL supports only for 24-bit color image (Jcprops.JPGChannels = 3).
Maybe IJL supports only for 24-bit color image (Jcprops.JPGChannels = 3).
Is it right ?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Sampling is not applicable to one channel image, because sampling by definition is changing of size of one image component related to other and can be applyed only to multi-channel images. You should use IJL_NONE for JPGSubsampling to encode one channel image.
Regards,
Vladimir
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page