- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Intel Gurus,
I am having trouble to save YUV420 data as a bitmap.
Let’s say I have a pointer to the data – pData
My code:
Const Ipp8u* (pYUV[3]) = {0,0,0};
pYUV[0] = pData;
pYUV[1] = pYUV[0] + 1920*1080;
pYUV[2] = pYUV[1] + 1920*1080/4
int YUVStep[3] = {1920,960,960};
Int step;
IppiSize roi = {1920,1080};
Ipp8u* pBuf = ippiMalloc_8u_C3(1920,1080, &step);
ippiYUV420ToBGR_8u_P3C3R(pYUV, YUVStep, pBuf, step, roi};
CIppImage src(1920,1080,3,8,0);
src.Attach(1920,1080,3,8, pBuf, 0);
src.Color(IC_BGR);
src.Sampling(IS_411);
src.ComponentOrder(0);
src.Format(IF_UNSIGNED);
// No I am trying to use function from picnic bmp sample
PARAMS_BITMAP params;
err = SaveImageBMP(src, params, fileout);
File has been saved but the result is three identical overlapped pictures. Color looks OK.
When I tried to save the same data using win32 BITMAPINFO & BITMAPFILEHEADER the content is fine.
I tried to modify SaveImageBMP replacing geometry.SetEnumSampling(S444) by geometry.SetEnumSampling(S411) but in this caseencoder.AttachImage(imageCn) fails
Any suggestions?
Thank you in advance
Sergey Tsybikov
Smith&Nephew Endoscopy
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page