RGB to YUV Convertor

deiong
deiong used Ask the Experts™
on
how do you convert rgb to yuv using amd's mmxasm code this function. RGBtoYUVmmx
void RGBtoYUVmmx(unsigned char *src, unsigned char *desty, unsigned char *destu,
                 unsigned char *destv, int srcrowsize, int destrowsize,
                 int width, int height)
{


thanks ;)
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
ozo
Most Valuable Expert 2014
Top Expert 2015

Commented:
Y =  (0.257 * R) + (0.504 * G) + (0.098 * B) + 16

V =  (0.439 * R) - (0.368 * G) - (0.071 * B) + 128

U = -(0.148 * R) - (0.291 * G) + (0.439 * B) + 128

Commented:
need more info.
What YUV format are you using 4:4:4 / 4:2:2 / 4:2:0 ?
Or what 4cc ( pixel arrangement )?
Are you using AMD's 3dnow functions / MMX or you plan to write it yourself ?

for mmx asm code, i would suggest that you try the assembly topic section. the people there may be in a better position to help you
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

Author

Commented:
thanks CoolBreeze ill try the assembly part and ask the questions

Commented:
This question didn't show any activity for more than 21 days. I will ask Community Support to close it unless you finalize it yourself within 7 days.
You can always request to keep this question open. But remember, experts can only help if you provide feedback to their comments.
Unless there is objection or further activity,  I will suggest to

    "refund the points and delete this question"

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
========
Werner
i have an objection.

Malfalda did provide a solution, namely the link:
http://cedar.intel.com/cgi-bin/ids.dll/content/content.jsp?cntKey=Legacy::irtm_AP548_9996&cntType=IDS_EDITORIAL 

and since he posted it before deiong say he will repost this question elsewhere, i would think that it is only fair that we award the points to Mafalda unless he doesn't mind

Commented:
Well, I did spend some time looking for the information.

on the other hand deiong did post a question in the assembly section http://www.experts-exchange.com/Programming/Programming_Languages/Assembly/Q_20400649.html and accepted an answer there.

If you take a look at the link I posted, my solution is further more complete than the one he accepted and IS IN ASSEMBLY !

I feel that in this particular case I should be awarded the points, although in some other cases I didn't mind not to receive them.
Force accepted

** Mindphaser - Community Support Moderator **

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial