- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi vucetica,
YUV color format conversions standards follows certain mathematical formulas; similar
to YUV color space is the YCbCr color space, if this is the case, IPP covers
YCbCr conversions as well.
Another possibility is the target RGB image, is it RGB24 or RGB32 that your AVI
encoder using? make sure you are calling the IPP function that correctly
produce your target RGB format.
Regards,
Tamer Assad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Vucetica,
Yes, you may tryippiYCbCr420ToBGR_8u_P3C3R and see if there is change.
Tamer, thanks a lot for thesuggestion.
Regards,
Ying
P.s the IPP UMCsample audio-video-codecs\codec\color_space_converter\umc_color_space_conversion.cpp use it as well
switch (srcFormat) {
case YUV420:
switch (dstFormat) {
case RGB24:
status = ippiYCbCr420ToBGR_8u_P3C3R(pSrc, pSrcStep, pDst[0], pDstStep[0], srcSize);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Aleksandar,
Would you post an original YUV photo as well as its converted RGB alias, it
will help visualizing your problem.
Are you passing BGR or RGB to the AVI encoder as it expects?
Regards,
Tamer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
also, are you sure of the source photo format? is it YUV420(iYUV) or is YV12?
I strongly doubt that this is what it is about.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Aleksandar,
If your source is DirectShow MEDIASUBTYPE_YV12, then you just need to change the order or the pSrc[3] plans, by placing the Cb/U plan into pSrc[2], and Cr/V into pSrc[1].
Resolution:
YV12 is just like YUV420, it just differs in the order of U and V plans
YUV420 sequence: Y->U->V
YV12 sequence: Y-V->U
Regards,
Tamer Assad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Aleksandar,
I hope that solution works out for you.
IPP library is pretty well engineered; it has one of the best image and color processing libraries, trust it.
You may want to check the following references:
IPP manual: IPP Image and Video Processing->Image Color Conversion->Color Model Conversion->RGBToYUV
http://en.wikipedia.org/wiki/YCbCr
http://en.wikipedia.org/wiki/YUV
Regards,
Tamer Assad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for sharing the results.
Ying, Many thanks toyou and all the IPP team.
Regards,
Tamer Assad
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page