- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I need to create an mpeg file with random frames !! that being the intention .. I started with frames having values (each frame has same values across the pixels)
y = random number from 0 - 255
u = 0
v = 0
seem to give an greenish tinge on playing the created mpeg2 file.
obviously the chroma values that i am setting are wrong.
then i tried doing ..
Ipp8u *yuv; // [3]
yuv = rgb2yuv(random_number);
y = yuv[0];
u = yuv[1];
v = yuv[2];
somewhat seems to work .. well what i see now is grayscale frames .. till now i was setting all the pixels to the same value ..
now i want to set each pixel value in the frame so that i can get a random frame ..
in the video codec example .. it uses 420 chroma format. now for every 4 y values i need to ganerate one u & v value. how to generate that ??
or is there some way for me to load 444 chrom format and use the IPP function to resample it to 420 format. Is there such function available in the IPP library ?? I did check out ippi, but most of them deal with planar conversion ..
i need something like .. YCbCr444toYCbCr420(Ipp8u *pSrc,Ipp8u *pDst)
-madan ankapura
I need to create an mpeg file with random frames !! that being the intention .. I started with frames having values (each frame has same values across the pixels)
y = random number from 0 - 255
u = 0
v = 0
seem to give an greenish tinge on playing the created mpeg2 file.
obviously the chroma values that i am setting are wrong.
then i tried doing ..
Ipp8u *yuv; // [3]
yuv = rgb2yuv(random_number);
y = yuv[0];
u = yuv[1];
v = yuv[2];
somewhat seems to work .. well what i see now is grayscale frames .. till now i was setting all the pixels to the same value ..
now i want to set each pixel value in the frame so that i can get a random frame ..
in the video codec example .. it uses 420 chroma format. now for every 4 y values i need to ganerate one u & v value. how to generate that ??
or is there some way for me to load 444 chrom format and use the IPP function to resample it to 420 format. Is there such function available in the IPP library ?? I did check out ippi, but most of them deal with planar conversion ..
i need something like .. YCbCr444toYCbCr420(Ipp8u *pSrc,Ipp8u *pDst)
-madan ankapura
Message Edited by ankapura@hotmail.com on 03-08-2005 04:42 PM
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I think the best way is to generate set of RGB frames with random pixel's values and after that convert them into YUV, as you did.
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