please help me about the YUV video

please help me about the YUV video

Post by conquero » Fri, 13 Jul 2007 18:05:40


HIi,everybody

May you help me ? I have a question:
I code a camer driver based on mainstion3/intel pxa270/windows
mboile 5 ppc.I use the uyvy422 package format for the input and
output
format.In camerapdd.h, i change some settings:


#define DEFAULT_VIDEO_WIDTH 320//176
#define DEFAULT_VIDEO_HEIGHT 240//144


#define DEFAULT_STILL_WIDTH 1280
#define DEFAULT_STILL_HEIGHT 1024
#define DEFAULT_CAPTURE_WIDTH 320//176
#define DEFAULT_CAPTURE_HEIGHT 240//144


#define DEFAULT_CAMERA_INPUT_FORMAT
(XLLP_CAMERA_IMAGE_FORMAT_YCBCR422_PACKED )
//#define DEFAULT_CAMERA_OUTPUT_FORMAT
(XLLP_CAMERA_IMAGE_FORMAT_YCBCR422_PLANAR )
#define DEFAULT_CAMERA_OUTPUT_FORMAT
(XLLP_CAMERA_IMAGE_FORMAT_YCBCR422_PACKED )


about still,i have 5 resolutions:qqvga/qvga/vga/xga/sxga.video has 2
resolutions:qqvga/qvga.I always use qvga as the preview
resolution.And
the still pin and capture pin both use the same resolution about
qqvga/
qvga.
Now, i use pimg.exe(include wm5) to test camera driver,The still and
preview functions are ok.However,when chang from preview to
video(clieck the mode menu),it always pop a dialogbox and prompt
"unable complete the requested action. Out of memory".Look out the
debug informations, I find that the video format negotiation fail.
The
client(directshow) useCSPROPERTY_PIN_DATARANGES to get resolutions
and then use CSPROPERTY_PIN_DATAINTERSECTION to send driver format
list to match. Driver find the matched format and send back .But the
direct show always repeat these steps.


Can you help me ? thansk
 
 
 

1. Problem connecting a IAT YUV with video out pin of Mpeg Video decoder.

2. Please help newbie problem with RGB->YUV conversion

Hi,i-ve a problem with converting rgb in yuv.
I must convert a rgb image into a yuv 420P image, the problem is that
after
this conversion only green values is c is converted correctly, blue and
red value are gone,maybe not converted (=my image is all in light
green/dark green).
This is my code:
/* Y */
for(y=0;y<height;y++) {
for(x=0;x<width;x++) {
pict->data[0][y * pict->linesize[0] + x] =
+0.257*imagedata[temp]+0.504*imagedata[1+temp]+0.098*imagedata[2+temp];
temp=temp+3;
}
}
temp=0;
/*U and V*/
for(y=0;y<height/2;y++) {
for(x=0;x<width/2;x++) {
pict->data[1][y * pict->linesize[1] + x] =
(+0.439*imagedata[temp]-0.368*imagedata[1+temp]-0.071*imagedata[2+temp])+128;
pict->data[2][y * pict->linesize[2] + x] =
(-0.148*imagedata[temp]-0.291*imagedata[1+temp]+0.439*imagedata[2+temp])+128;
temp=temp+3;
}
}

imagedata is my rgb value and pict->data is my yuv 420P picture.
Please help, sorry for my english.
Thanks in advance.

3. RGB to YUV and YUV to RGB Questions

4. Flash 5 animation to Quicktime Video for NTSC/Video ??please Help !!!!

5. How to check what video card, video RAM, etc. Please help!

6. Web Cam Live Video to Flash Video Recording - how - please help

7. capture live video in yuv planar format

8. How to make the video source filter generic for YUV,YUY and RGB formats?

9. urgent:: extract circle out of yuv 4:2:2 video frame

10. PSNR and SSIM values of a YUV video

11. YUV video rendering

12. CMediaType - VIDEOINFOHEADER - video renderer not happy with YUV f

13. urgent:: extract circle out of yuv 4:2:2 video frame

14. YUV type video renderers

15. identify video card YUV capabilities