Convert UIImage from NSData

When you get image information, is coded as below.
CGImageRef spriteImage = [UIImage imageNamed:fileName].CGImage;
But that does not support the type of image file i want to get the information. So, i coded as below.
NSData* fileData = [NSData dataWithContentsOfFile:filePath];   
UIImage* imageData = [UIImage imageWithData:fileData];
Also, this method is not. UIImage is supports the supported formats.(png, jpeg, gif...).
I would like to get information image file of YUV format. And the image should be display screen.
I think as below step.
1. load YUV image file.
2. using texture data.
3. YUV to RGB through fragment shader.
4. display screen.
Is that wrong? I don't know what should i do. Could you advice to me, please.

May be you should have a look at some cross plateform libraries just like this one :
http://www.synesis.com.au/software/b64.html
I didn't test this but according to the site, it is OS independent and should be easy to adapt.
Regards
iPhil_good

Similar Messages

  • Need to convert  Date from calendar to String in the format dd-mom-yyyy

    Need to convert Date from calendar to String in the format dd-mom-yyyy+..
    This is absolutely necessary... any help plz..
    Rgds
    Arwinder

    Look up the SimpleDateFormat class: http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
    Arwinder wrote:
    This is absolutely necessary... any help plz..For you maybe, not others. Please refrain from trying to urge others to answer your queries. They'll do it at their own pace ( if at all ).
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • How can I convert Pdf from RGB to CMYK, keeping font color 100% K while working in Illustrator?

    How can I convert Pdf from RGB to CMYK, keeping font color 100% K while working in Illustrator?
    When I try to open the document in Illustrator and I convert to CMYK the black font converts to rich black, but to set up for Offset printintg I need the text to be only in Black (100%K).
    The original source of the document is a Microsoft Word file, I have converted the Word file to Pdf in order to setup for OFfset Printing.
    Thanks

    I have tried that way, but the downside is that the fonts are set in gray not in a 100%K, also I have to deal with other fonts that are composites and meant to stay Full Color. I could select text by text and convert to gray but, its a 64 page document and I wouldn't want to make a expensive mistake.

  • Error when starting a converted VM (from vmware server edition)

    Hi, i am trying to start a converted VM from VMWARE SERVER. I think i have followed steps to import an VMWARE machine (using resources >> virtual machines images) and it does not return errors when converting VM but then, when trying to start it, it returns
    failed:<OVSException: no server selected to run vm('/OVS/running_pool/SIR_xxx') memory=512> StackTrace: File "/opt/ovs-agent-2.2/OVSSiteVM.py", line 77, in start_vm raise e
    I have also checked that there is enough memory.
    This is the contect for vm.cfg
    acpi = 1
    apic = 1
    builder = 'hvm'
    device_model = '/usr/lib/xen/bin/qemu-dm'
    disk = ['file:/OVS/running_pool/SIR_xxx/SIR_xxx.img,hda,w',
    'file:/OVS/running_pool/SIR_consulnor/SIR_xxx (2).img,hdb,w',
    ',hdc:cdrom,r',
    kernel = '/usr/lib/xen/boot/hvmloader'
    memory = '512'
    name = 'SIR_xxx'
    on_crash = 'restart'
    on_reboot = 'restart'
    pae = 1
    serial = 'pty'
    timer_mode = '1'
    uuid = 'e23767cc-dc3d-0255-a7ac-65f111b589d7'
    vcpus = 1
    vif = ['bridge=xenbr0,mac=00:16:3E:71:AF:B1,type=ioemu']
    vif_other_config = []
    vnc = 1
    vncconsole = 1
    vnclisten = '0.0.0.0'
    vncpasswd = 'xxx'
    vncunused = 1
    Thanks for your help

    user559432 wrote:
    failed:<OVSException: no server selected to run vm('/OVS/running_pool/SIR_xxx') memory=512> StackTrace: File "/opt/ovs-agent-2.2/OVSSiteVM.py", line 77, in start_vm raise eDo your servers have Hardware/Full Virtualization enabled? You can check on the console and ensure the console says that Hardware Virtualization is enabled. If not, check in your BIOS that the processor hardware virtualization is enabled. If you don't have an option, your PC may not have the Intel VT-x or AMD-v extensions required to support hardware virtualization.
    You can check to see if your processor supports this extension by using:
    Intel processor:
    # cat /proc/cpuinfo | grep vmxAMD processor:
    # cat /proc/cpuinfo | grep svmIf you see a result, it means the processor has that support. You still need to ensure that it is enabled in the BIOS.

  • How to convert date from "yyyymmdd" to "MM/DD/YYYY" format

    1. I have one BLDAT field in my internal table.
       its getting updated from input file.
    2. The value in the input file is like yyyymmdd.
       So the internal table field is filled like this
       "YYYYMMDD".
    3. After this,I have to compare this internal table  
       field with BSAD table.
    4. The BLDAT field in BSAD table is in the format of 
       "MM/DD/YYYY".
    5. the BLDAT field is having diff format in internal  table and BSAD table.So I am unable to check this value.
    How to convert it as like the BSAD table format."MM/DD/YYYY" format.
    Thanks in advance!!

    Using the WRITE statement
      data: gd_date(10).  "field to store output date
    * Converts date from 20020901 to 09.01.2002
      write sy-datum to gd_date mm/dd/yyyy.
    OR u can
    CONCATENATE gd_date+4(2) gd_date+6(2) gd_date+0(4)
    into gd_date seperated by '/' .
    Hope this helps.
    Kindly reward points and close the thread for the
    answer which helped u OR get back with queries.

  • How to I convert data from oracle database into excel sheet

    how to I convert data from oracle database into excel sheet.
    I need to import columns and there datas from oracle database to microsoft excel sheet.
    Please let me know the different ways for doing this.
    Thanks.

    asktom.oracle.com has an excellent article on writing a PL/SQL procedure that dumps data to an Excel spreadsheet-- search for 'Excel' and it'll come up.
    You can also use your favorite connection protocol (ODBC, OLE DB, etc) to connect from Excel to Oracle and pull the data out that way.
    Justin

  • Convert report from SAP to Excel

    Hi All,
    How to convert report from SAP to Excel.Here now taking default text(.txt) format.But we want defualt taking (.xls) format only.
    Regards
    Usha

    hi usha
    u can even export the text in txt format and later right click and open with excel , u wont be able to directly import it into excel as it is not giving u any option to upload in excel directly
    Regards,
    Manish

  • Error while converting schema from oracle to SQL server

    Hello,
    I am getting following error while converting schema from oracle to SQL server using SSMA.
    I get Errors 1-3 while migrating procedures and error 4 while migrating a table.
    1- O2SS0050: Conversion of identifier 'SYSDATE' is not supported.
    2- O2SS0050: Conversion of identifier 'to_date(VARCHAR2, CHAR)' is not supported.
    3- O2SS0050: Conversion of identifier 'regexp_replace(VARCHAR2, CHAR)' is not supported.
    4- O2SS0486: <Primary key name> constraint is disabled in Oracle and cannot be converted because SQL Server does not support disabling of primary or unique constraint.
    Please suggest.
    Thanks.

    The exact statement in oracle side which causing this error (O2SS0050:
    Conversion of identifier 'to_date(VARCHAR2, CHAR)' is not supported.) is below:
    dStartDate:= to_date(sStartDate,'MON-YYYY');
    Statement causing error O2SS0050:
    Conversion of identifier 'regexp_replace(VARCHAR2, CHAR)' is not supported is below.
    nCount2:= length(regexp_replace(sDataRow,'[^,]'));
    So there is no statement which is using to_date(VARCHAR2,
    CHAR) and regexp_replace(VARCHAR2, CHAR) in as such. 'MON-YYYY'  and '[^,]'
    are CHAR values hence SSMA is unable to convert it from varchar2 to char.
    Regarding SYSDATE issue, you mean to put below code in target(SQL) side in SSMA ?
    dDate date := sysdate;
    Thanks.

  • Any idea why my saved documents are unable to be read? "convert file from" box pops up, applications are listed to use but if any are chosen, the file then opens but is in symbols

    When attempting to open saved documents for viewing a box pops up "convert file from" with applications that can be chosen from to use. When any of the options are chosen the document then opens but is in symbols and is unreadable. This is happening with all saved documents.  Can you offer any help with this?

    Hi,
    If you don't find any clue, you can send your file to me (guillaume.rouyreATgcosiDOTcom, replace cap) so I can give a try.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Can I convert a from from Adobe Forms Central to a PDF Form?

    Can I convert a from from Adobe Forms Central to a PDF Form?

    Yes, you can save a FormsCentral form as a PDF form. In FormsCentral, the menu item when in design view is: File > Save as PDF Form

  • Problem with converted PDF from OTF

    Hello,
    im having a problem with character interpretation in PDF document when i convert it from OTF.
    At the moment im using Arial true type font in my smartform, im using function module CONVERT_OTF to convert OTF to PDF.
    When i open PDF document with Adobe reader it looks fine, but the problem is when im trying to convert PDF file to other format for example PNG, or trying to copy and paste text from PDF document.
    im getting Klaipìda instead of Klaipėda, it seems that baltic symbol "ė" is interpreted like "ì", other baltic symbols are interpreted as they should, there is problem only with character "ė".
    have anyone faced that kindof problem? or maybe anyone know the solution for this problem? if so please tell me.
    Best regards,
    Rimantas Sebeckis.

    Hi Rimantus,
    Did you check the fonts installed in your system,,,
    As PDF is a unchangeable format, it doesnt depend upon the installed fonts in the system,,
    but when you copy, you need some fonts in system,, if not you will get the same problem,,,
    Thanks & regards,
    Dileep.C

  • How do I save the file after I have converted it from pdf to word

    HOW DO I SAVE A FILE AFTER I HAVE CONVERTED IT FROM PDF TO WORD

    Hi,
    After converting your file a box will appear on top of the window showing 'Download' option.
    When click on that your file will be downloaded and it will show the notification at the bottom.
    Click on arrow -> 'Show In Folder'.
    It will direct you to the location where your file has saved.
    Regards,
    Florence

  • Adobe Reader X Not Converting To / From PDF ?

    I have a licensed copy of Adobe Reader X Version 10.1.08 which was purchased a couple of years ago & registered. I cannot now convert to / from PDF without being redirected to an obligatory online subscription. Why is this so ?

    You probably had Adobe Acrobat, not Reader, which is indeed a paid product with the ability to convert to/from PDF files.
    If you also installed Reader you can remove it and go back to using Acrobat, which has all the functionalities that Reader has, and more.

  • How to convert value from exp. value to double/float???

    Hi all,
    I am fetching values from database, which is of type double / float.
    eg. values will be like -22,777,548 will be stored in database.
    NOw if i use
    float a= rs.getFloat(1);
    out.println("a="+a);
    I get output as a= -2.2777548E7
    I want to remove "E" from out put value and display as it was given in DB.
    How to solve this problem?
    Please Help!
    Regards
    Ashvini

    What do you mean - 'how does it work' ? All format classes (MessageFormat, DecimalFormat , SimpleDateFormat etc) are used to convert data from one form to other. Go through the java.text.* api. They work based on some pattern searches, pattern matches etc - dont know in detail :)
    As for the other things, thanks :)
    cheers,
    ram.

  • HT5409 can i convert movies from iPad to mac laptop

    Ihave  download a movie from ipad but it will not play on my mac air laptop with quicktime installed..??

    Ihave  download a movie from ipad but it will not play on my mac air laptop with quicktime installed..??
    Are you going to give us any additional clues as to what you are really asking here?
    1) The "HT5409" in your subject title reference implies you are dealing with AVCHD content. If true, then how did you transfer them to your iPad and how did you transfer them from your iPad to your your MacBook Air platform? As the HT409 topic clearly stated, this can be very important. In addition, how are the files stored? For instance , have you extracted the MPEG-4 AVC content as transport streams or is the content still in the device recorded file form? Are you trying to edit the content or convert it to M4V, MP4, or MOV files directly?
    2) The "can i convert movies from iPad to mac laptop" part of your subject title is confusing. Yes, AVCHD files can be converted to simpler MPEG-4 AVC content that is compatible with all current and most older Mac computers and Apple mobile devices in MOV, MP4, and/or M4V file formats. However, how you do this will depend on the current form of the data and the target settings you wish to employ to ensure compatibility with the various target device possibilities. Further, non-AVCHD content (e.g., HD iPad video recordings) can also be downconverted to simpler settings in a similar manner if needed or required if that is your questing.
    3) Depending on your operating system, both AVCHD and MPEG-4 AVC content should already be compatible with QT X v10.2 and v10.3 players if properly transferred to your laptop from the recording device. And, even if improperly transferred, may still be converted to useable/compatible formats as long as the file itself has not been corrupted by your, as yet, unspecified workflow.
    4) What does "will not play on my mac air laptop with quicktime installed" mean here? Are you trying to play an AVCHD movie in the QT 7 player or one of the QT X players? If the latter, which one? Are you getting any error message? If so, what are they? If not playing in your main user account on the computer, does it play useing a different account? Do the files play in other, third-party multimedia players?
    Basically, your question is the equivalent of my saying my car won't start but failing to mention whether or not I am out of gas, my battery is dead, or that I have removoed the distributor cap, wires, or spark plugs from the engine. To properly solve the issue we need all possible information that you can provide describing exactly what you are doing, how you are doing it, what is not working as your expect it should, and what your goals are. In cases where you cannot answer such questions, it is often helpful to simply post/upload a sample "problem" file and let other users here examine it to determine the problem and/or suggest a specific solution for your particular system/configuration combination.

Maybe you are looking for