Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - chroma operation increasing CPU hog: (7 Items)
   
chroma operation increasing CPU hog  
Hi,

In application respnsible for displaying video stream the gf_draw_blit2() is called very often.
When I set chroma via gf_context_set_chroma() then the following behavior is observed:
 - increasing CPU hog, 
 - corrupted picture,
 - picture is not displayed in real time.

I need to set chroma keying in order to not display video data on particular color.

Am I doing something wrong or my hardware is too slow for such usage ?

Application is tested with devg-i830.so driver.

Regards,
Jacek
RE: chroma operation increasing CPU hog  
What devg driver are you using?

-----Original Message-----
From: Jacek Rudnicki [mailto:community-noreply@qnx.com] 
Sent: February-03-13 2:54 PM
To: advanced-graphics
Subject: chroma operation increasing CPU hog

Hi,

In application respnsible for displaying video stream the gf_draw_blit2() is called very often.
When I set chroma via gf_context_set_chroma() then the following behavior is observed:
 - increasing CPU hog, 
 - corrupted picture,
 - picture is not displayed in real time.

I need to set chroma keying in order to not display video data on particular color.

Am I doing something wrong or my hardware is too slow for such usage ?

Application is tested with devg-i830.so driver.

Regards,
Jacek



_______________________________________________

Advanced Graphics
http://community.qnx.com/sf/go/post99026
To cancel your subscription to this discussion, please e-mail advanced-graphics-unsubscribe@community.qnx.com
Re: RE: chroma operation increasing CPU hog  
devg-i830
RE: RE: chroma operation increasing CPU hog  
Ok, there is a hw accel for certain chroma operations, but not all, what chroma flags are you setting?

-----Original Message-----
From: Jacek Rudnicki [mailto:community-noreply@qnx.com] 
Sent: February-04-13 11:38 AM
To: advanced-graphics
Subject: Re: RE: chroma operation increasing CPU hog

devg-i830



_______________________________________________

Advanced Graphics
http://community.qnx.com/sf/go/post99041
To cancel your subscription to this discussion, please e-mail advanced-graphics-unsubscribe@community.qnx.com
Re: RE: RE: chroma operation increasing CPU hog  
I set chroma as follows:
   chroma.mode = GF_CHROMA_OP_DST_MATCH | GF_CHROMA_OP_NO_DRAW;

> Ok, there is a hw accel for certain chroma operations, but not all, what 
> chroma flags are you setting?
> 
> -----Original Message-----
> From: Jacek Rudnicki [mailto:community-noreply@qnx.com] 
> Sent: February-04-13 11:38 AM
> To: advanced-graphics
> Subject: Re: RE: chroma operation increasing CPU hog
> 
> devg-i830
> 
> 
> 
> _______________________________________________
> 
> Advanced Graphics
> http://community.qnx.com/sf/go/post99041
> To cancel your subscription to this discussion, please e-mail advanced-
> graphics-unsubscribe@community.qnx.com


Re: RE: RE: chroma operation increasing CPU hog  
> I set chroma as follows:
>    chroma.mode = GF_CHROMA_OP_DST_MATCH | GF_CHROMA_OP_NO_DRAW;

Sorry, but it is unaccelerated. Only SRC_MATCH | NO_DRAW is accelereted.
Re: RE: RE: chroma operation increasing CPU hog  
Ok, so I have to look for the another solution...

> > I set chroma as follows:
> >    chroma.mode = GF_CHROMA_OP_DST_MATCH | GF_CHROMA_OP_NO_DRAW;
> 
> Sorry, but it is unaccelerated. Only SRC_MATCH | NO_DRAW is accelereted.