Better still, pass integers and make sure you return the PSNR as a fixed point number which you can then interpret as a floating point value in your application code. This should be straightforward as your PSNR will be well bounded. -- Satyajeet.
This electronic message transmission contains information from ObjectVideo, Inc. that may be confidential, proprietary or privileged. It is not intended for transmission to, or receipt by, any unauthorized persons. If you are not the intended recipient of this message, please (i) do not read it, (ii) reply to or otherwise notify the sender immediately that you received the message in error, and (iii) erase or destroy the message. If you have received this electronic transmission in error, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bhavin Kharadi Sent: Wednesday, December 12, 2007 1:09 AM To: 'Sandip Ray'; [email protected] Subject: RE: floating point variables in extended structure of xDM Hi Sandip, There might be a problem of memory. Make sure he has assigned proper value in size field of IVIDENCOutArgs.size field in application. Mpeg2_outArgs.IVIDENCOutArgs.size = sizeof(VIDENC_MPEG2_OutArgs); If he had done this properly, than there might be problem with xdas framework. There is a file named "Xdas.h" contains all datatypes for xdas framework, but it does not contain float variables. So define them as void(or any other datatype) in extended structure and than typecast them to float. Regards, Bhavin ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sandip Ray Sent: Tuesday, December 11, 2007 12:25 PM To: [email protected] Subject: floating point variables in extended structure of xDM Hi, I need to extend encoderOutArgs structure for MPEG 2 Encoder in xDM. I added 3 float variables for Y-U-V PSNR like as follows. typedef struct VIDENC_MPEG2_OutArgs { IVIDENC_OutArgs IVIDENCOutArgs; float Y_PSNR; float U_PSNR; float V_PSNR; } VIDENC_MPEG2_OutArgs; It is not working. When I add integer variables it is working fine. Does it allow to add floating point variables in extended structure ? Thanks and Regards, Sandip -- eInfochips Business Disclaimer: This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose,distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated.Nothing contained in this message shall be construed as an offer or acceptance of any offer by eInfochips Limited and/or eInfochips Inc("eInfochips") unless sent with that express intent and with due authority of eInfochips.EInfochips has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. -- eInfochips Business Disclaimer: This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose,distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated.Nothing contained in this message shall be construed as an offer or acceptance of any offer by eInfochips Limited and/or eInfochips Inc("eInfochips") unless sent with that express intent and with due authority of eInfochips.EInfochips has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. - This message has been scanned for viruses, spam and dangerous content and is believed to be clean.
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
