Porting PixelBender to iOS using ANE...

Hi,
I've been reading around, trying to find a resolution to the problem of PixelBender not being compiled / available for iOS. It looks to me that it should be possible to provide the filter definitions in a different way - the maths will be the same - for example, CoreImage seems to provide all kinds of useful gizmos that would more than do what I need. The relatively simple (but non-standard) manipulations that I need to do can be easily rewritten to use the CoreImage language.
I was wondering whether anybody had either:
a) Found an ANE that would allow me to use CoreImage with custom filter definitions
b) Any really straightforward links / tutorials on how to go about integrating / building an ANE
(Please note, I'm a Window's developer and somewhat reluctant to buy a Mac, primarily because working on one drives me nuts [the way everything is hidden to make it more "friendly"] and makes me dizzy [the way everything spins about and disappears the moment you move anything at all] or just irritates me [the way that the standard, small keyboard aliases the button for every core function that I rely on to some stupid function I would never in a million years want to use]. So if there is a solution that I can build using Windows with Flash Builder / Eclipse that would be _really_, _really_ nice too!)
Thanks,
Gaius

Now that's interesting...
I was comparing Android (which allows PixelBender) with iOS that doesn't and was able to get better performance using an ActionScript based loop over a vector than the equivalent using PixelBender... I mean, OK, it sucks having functions that are pages long so as to avoid the comparatively costly looping versus the cheap bitwise operations, but it is fast, flexible and simple (conceptually). Whereas, the PixelBender transform (as well as being blocked by iOS) felt quite sluggish.
Weird.
G

Similar Messages

  • How to open epub file in iBooks using ANE(iOS) ?

    hello,
    I tried to open epub file in iBooks using Native Extensions.
    But, AIR app has crashed when calling ANE method (following: OpenEpub).
    Have problems with how to access the epub file?
    Or another problem?
    MacOS:10.6.8
    Xcode:4.2
    FlashBulder:4.6
    FlexSDK:4.6.0(default bundle version)
    TestDevice:1st iPad (OS 5.0.1)
    iOSNativeCode(this code works on native iOS app):
    #import <UIKit/UIKit.h>
    FREObject OpenEpub(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[]){
        id delegate = [[UIApplication sharedApplication] delegate];
        UIWindow* window = [delegate window];
        UIButton* uiBtn = [[[UIButton alloc] init] retain];
        [window addSubview:uiBtn];
        NSString *fileToOpen = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"epub"];
        NSURL *url = [NSURL fileURLWithPath:fileToOpen];
        UIDocumentInteractionController *docController = [UIDocumentInteractionController interactionControllerWithURL:url];
        [docController presentOpenInMenuFromRect:CGRectZero inView:uiBtn animated:true];
        [docController retain];
         const char *str = "Success";
         FREObject retStr;
         FRENewObjectFromUTF8(strlen(str)+1, (const uint8_t *)str, &retStr);
         return retStr;
    ANE packaging directory:
    ane/
         extension.xml
         key.p12
         platform/
              iOS/
                   iOSNativeCode.a
                   library.swf
                   test.epub
    extension.xml
    <extension xmlns="http://ns.adobe.com/air/extension/3.1">
    ~~~~
    Thanks!

    hi, i can open epub in iBooks using ANE !
        UIWindow *keyWindow= [[UIApplication sharedApplication] keyWindow];
        UIViewController *mainController = [keyWindow rootViewController];
        NSString *epubFileName= [[NSBundle mainBundle] pathForResource:@"test01" ofType:@"epub"];
        [epubFileName retain];
        NSURL *url = [NSURL fileURLWithPath:epubFileName];
        [url retain];
        UIDocumentInteractionController *docController = [UIDocumentInteractionController interactionControllerWithURL:url];
        [docController retain];
        CGRect rectDocC = CGRectMake(800, 0, 0, 0);
        [docController presentOptionsMenuFromRect:rectDocC inView:mainController.view animated:YES];
    thanks!

  • Xpath query using ANE with AIR3.9 for iOS app

    we are building an app for iOS using AIR 3.9 where we have to load and parse the xml document so that we can read the images path and download the stuff on iOS device. To fix this issue we have found a solution using XCode via ANE where by using XPath Query classes such as "PerformXPathQuery", "PerformXMLXPathQuery", "xmlReadMemory" etc. The code is running well when build on simulator itself on mac machine. But when we are packaging the ANE with AIR 3.9, it gives us the error which says that:-
    Error occurred while packaging the application:
    Undefined symbols for architecture armv7:
      "_xmlReadMemory", referenced from:
          _PerformXMLXPathQuery in libnet.example.download.a(ExampleLib.o)
    ld: symbol(s) not found for architecture armv7
    Compilation failed while executing : ld64
    I have tried linking binary with libraries like "libxml2.dylib", "libxml2.2.dylib" and libz.dylib + added the libXML header files to the header search path in the build properties, but got no help.
    our AIR 3.9 platform xml looks like:-
    <platform xmlns="http://ns.adobe.com/air/extension/3.9">
        <sdkVersion>4.0.0</sdkVersion>
        <linkerOptions>
            <option>-ios_version_min 4.2</option>
            <option>-framework UIKit</option>
            <option>-framework Foundation</option>
            <option>-framework CoreText</option>
        </linkerOptions>
    </platform>
    can anyone suggest where we are going wrong!
    thanks in advance

    Found the solution, i was missing the framework related to xPath library in platform.xml
    follow the instuctions from the below link:-
    http://forums.adobe.com/thread/1037904
    thanks adobe team

  • Create a Multiplayer game for Android/iOS using flash?

    Hi guys,
    We're creating a flash - turn based game for iphone and android using flash builider (flex) and actionscript 3. We've built the game and have a working Ai and are now trying to figure out how we can provide multiplayer support on iOS and Android.
    As far as Im aware there are the following options:
    - Serversocket (although apparently this doesnt work with mobiles.
    - p2p with native air plugin (although I understand that this requires a database as well as the build of a front end connect to players)
    - apparently there is a new way with html - whereby two players can exchange data over a website without the need for a server.
    - Third party package like appwarp?
    This is driving me crazy as I understand the principle - i.e. send data from one mobile to a database - database fires message to opposing player - updates state of game on both mobile and on the server.
    All we want is a turn based game that sends a simple string of code with the moves between two devices. Is there any way of doing this for mobile (Android and ios) using flash and actionscript 3, or flash builder - without using a database?
    Can anyone recommend a straight forward way to do this? 
    If not - Im actually thinking of taking the finished game to a company and asking them to host the servers and port the game to android and ios for a cut of the royalties. Any thoughts on this?
    Thanks for you help on advance,
    T.

    Hi Aaron,
    Thanks for you kind response.
    Do you know how to use air 3.8 to create multiplayer for iOS android? It's frustrating, it's a basic turn based game so all we really need is to send 1 line of code containing a move between two devices which then changes the graphics. I've done something like this before using a MySQL server.
    I have a MySQL service on my hosting package for my domain, not sure whether I could use this?
    As far as I'm aware theres now an option in HTML 5 to do thus kind of thing without a server and swap data directly through a web address.
    Do you know roughly how much a small server costs to run?
    We're basically trying to get this on ios, android and desktop mac and pc. We also want to launch it through steam nd allow people to play each other via the steam network. Do you know or know anyone that knows about this kind of stuff?
    Thanks again, for your email. Where are you based?
    Tom.

  • Tracking Memory usage on iOS using the Stats class

    I've been checking memory usage on an app I'm developing for iOS using the Stats class https://github.com/mrdoob/Hi-ReS-Stats ( http://help.adobe.com/en_US/as3/mobile/WS4bebcd66a74275c3-315cd077124319488fd-7fff.html#WS 948100b6829bd5a61637f0a412623fd0543-8000).
    I added the Stats class to my project and redeployed and, yikes, memory usage reported in Stats creeps up (pretty slowly) even when there's nothing happening in the app (just showing a loaded bitmap).
    To try and track down the issue I created a project with a test class that extends Sprite with just this single call in the constructor :-
    addChild( new Stats() );
    I deployed it to the device to check that it didn't gobble any memory.
    But I was Suprised to watch the memory usage creep up and up (to approx 5) before some garbage collection kicked in and takes memory back down. I left it running and then it crept up again to over 7.5 this time before being kicked back down to just below 3.
    So 2 related questions that I'd appreciate any feedback/observations/thoughts on :-
    1 - Is this normal (i.e. memory creeping up when there's nothing other than Stats in the project) ?
    2 - What is the best way to monitor memory usage within an app ? Is Stats good enough - is Stats itself causing the memory usage ?
    All the best guys !

    Also see thread (http://forums.adobe.com/message/4280020#4280020)
    My conclusions are :-
    - If you run an app and leave it idle, memory usage gradually creeps up (presumably as memory is being used to perform calcs/refresh the display etc)
    - Periodically the garbage collection kicks in and memory is brought back down
    - This cycle could be in excess of 5 mins
    Run with your real app and memory will increase and be released much more rapidly/regularly.
    - It's probably worth performing initial checks by running on your desktop to iron out any initial problems

  • I have a Macbook Pro 13.3 i5 w/ no hdmi port. How can I connect my Mac to TV to watch video, photo ?  Is the Thunderbolt port a mini display port where I can use a mini display port to HDMI cable? If not, what are my options??

    I have a Macbook pro 13.3 w/ i5 that has no hdmi port. I want to be able to connect the Mac to my TV set to watch Video, Photos and files from Mac to TV.
    Is the Thunderbolt port similar to a display port or mini display port? Can I use thunderbolt port to connect thru a mini displayport to HDMI cable or converter?
    Been trying to locate a USB to HDMI cable or converter (at a reasonable price) but all I found is a displayport or mini displayport to HDMI cable/converter.
    What other options are available ?
    Thanks a lot for your assistance.

    Thunderbolt uses a Mini DisplayPort adapter to send video and audio to HDMI. Here's some on Amazon http://www.amazon.com/s/ref=nb_sb_ss_c_2_8?url=search-alias%3Dcomputers&field-ke   ywords=mini+displayport+to+hdmi&sprefix=mini+dis%2Caps%2C249#/ref=nb_sb_noss?ur l  =search-alias%3Dcomputers&field-keywords=mini+displayport+to+hdmi+with+audio&rh =  n%3A172282%2Cn%3A!493964%2Cn%3A541966%2Ck%3Amini+displayport+to+hdmi+with+audio

  • Error while starting the Wily : A socket port was already in use

    Hello,
    When I strat the Wily intro scope  I am getting following error.
    Kindly help me resolving this issue.
    er3esu31:p43adm 4> nohup ./runem.nohup.sh &
    [1] 20549
    er3esu31:p43adm 5> Running Enterprise Manager with IHOME=.
    Running Enterprise Manager with JAVAPATH=/usr/sap/ccms/wilyintroscope/jre
    java version "1.5.0.03"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0.03-_13_feb_2006_16_39)
    Java HotSpot(TM) Server VM (build 1.5.0.03 jinteg:02.13.06-21:25 IA64, mixed mode)
    log4j:ERROR Failed to flush writer,
    java.io.InterruptedIOException:
            at java.io.FileOutputStream.writeBytes(Native Method)
            at java.io.FileOutputStream.write(FileOutputStream.java:260)
            at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
            at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
            at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:408)
            at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
            at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
            at com.wily.org.apache.log4j.helpers.QuietWriter.flush(Unknown Source)
            at com.wily.org.apache.log4j.WriterAppender.subAppend(Unknown Source)
            at com.wily.org.apache.log4j.RollingFileAppender.subAppend(Unknown Source)
            at com.wily.org.apache.log4j.WriterAppender.append(Unknown Source)
            at com.wily.org.apache.log4j.AppenderSkeleton.doAppend(Unknown Source)
            at com.wily.org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Unknown Source)
            at com.wily.org.apache.log4j.Category.callAppenders(Unknown Source)
            at com.wily.org.apache.log4j.Category.forcedLog(Unknown Source)
            at com.wily.org.apache.log4j.Category.log(Unknown Source)
            at com.wily.util.feedback.backend.log4j.Log4JBackend.log(Log4JBackend.java:139)
            at com.wily.util.feedback.ADefaultModuleFeedbackChannel.doLog(ADefaultModuleFeedbackChannel.java:545)
            at com.wily.util.feedback.ADefaultModuleFeedbackChannel.logbottleneck(ADefaultModuleFeedbackChannel.java:524)
            at com.wily.util.feedback.ADefaultModuleFeedbackChannel.log(ADefaultModuleFeedbackChannel.java:479)
            at com.wily.util.feedback.ADefaultModuleFeedbackChannel.error(ADefaultModuleFeedbackChannel.java:313)
            at com.wily.util.event.ListenerTracker.sendEventToOneListener(ListenerTracker.java:148)
            at com.wily.util.event.EventPump.immediateDeliverEventIfListenerNotDead(EventPump.java:152)
            at com.wily.util.event.EventPump.immediateDeliverBroadcastEventAsync(EventPump.java:123)
            at com.wily.util.event.EventPump.access$300(EventPump.java:23)
            at com.wily.util.event.EventPump$Posting.deliver(EventPump.java:512)
            at com.wily.util.event.EventPump$EventPumpThread.run(EventPump.java:760)
    Introscope Enterprise Manager failed to start because:
    A socket port was already in use (see the log for the port number)
    Press 'Enter' to acknowledge....
    [1]  +Stopped (tty input)  ./runem.nohup.sh
    Thanks & Regards
    Girish

    Hi
    Check whether introscope is already running. if it is then kill that process manually and start willy again.
    You use the following command to check whether any other program is using the same port
    netstat -an | grep -i listen | grep 80

  • Why does my screen turn blue and freeze every time i try to plug in my 'mini display to hdmi' cable into my thunderbolt port in order to use an external monitor?

    why does my screen turn blue and freeze every time i try to plug in my 'mini display to hdmi' cable into my thunderbolt port in order to use an external monitor? it only works if i turn the computer on with it already plugged in.

    Do you have gfxCardStatus installed?  Is your monitor set to "Integrated" or "Discrete".  You want it set to Discrete to drive the external HDMI display.
    Try resetting the PRAM and SMC
    <About NVRAM and PRAM>
    <Intel-based Macs: Resetting the System Management Controller (SMC)>
    Are you sure you have a good miniDisplayPort to HDMI cable?
    Do you have another HDMI display you can test against (your neighbor's HDMI capable TV).
    Do you have friend that can test the cable using their Mac and maybe their TV or a monitor that has HDMI input.

  • I have a Comcast system and am going through a Bose amp for sound.  The comcast box has an HDMI port which I've used for the Apple TV connection.  Nothing works! Help.

    have a Comcast system and am going through a Bose amp for sound.  The comcast box has an HDMI port which I've used for the Apple TV connection.  Nothing works! Help.

    Thanks.  Thought that would be the solution but for my wall mounted TV it's going to be a problem but many thanks for your reply.....

  • Hi, I have a Catalyst 6500 with X6K-SUP2-2ge, the IOS and bootlader image been wiped out, it starts in ROMmon SP mod end can't switch to RP to start download the IOS using Xmodem, though it shouldn't work in ROMmon SP omde but the xmodem is not gving the

    Hi, I have a Catalyst 6500 with X6K-SUP2-2ge, the IOS and bootlader image been wiped out, it starts in ROMmon SP modw and I can't switch to RP to start download the IOS using Xmodem, though Xmodem shouldn't work in ROMmon SP mode but the it's not gving the
    not executable message, the slot0: and disk0: are not accessable can't see the files inside, when I try the dir slot0: or dir disk0: it says it can't be opened and when I try to boot from them there's noting as well, what can I do to load an IOS image to the booflash: or slot0: ,each time I load the image using Xmodem at the end it gives me *** System received a Software forced crash ***
    signal=0x17, code=0x5, context=0x0
    When I run the command:
    rommom1> boot bootflash:
    boot: cannot determine first file name on deice "bootflash:"
    rommon2> boot slot0:
    boot: cannot open "slot0:"
    boot: cannot dtermine first file name on device "slot0:"
    BTW  System Bootstrap, version 7.1
    I''m looking to format the PCMCIA using a PC and format it to FAT16 and copy the boot image into it and then try to load from the PCMCIA afterward if it works I'll format it using the Supervisor engine 2.
    Any one have another new idea I can use, thanks in advance

    This is a potentially complex issue.
    Is this SUP configured to run as IOS native or CatOS Hybrid?
    While in ROMMON can you do the 'dev' command and see whad drives are recognized. Then 'dir' the drives that the SUP recognizes.
    Can you provide the screen captures as it boots?
    You would be bette served by hacing a TAC case.

  • How can ftp service on non-standard port be load balanced using Cisco ACE.

    How can ftp service on non-standard port be load balanced using Cisco ACE.For example ftp service required on tcp 2000 port

    Hi Samarjit,
    you can do this by specifying the port number in the class map that you create . Please find the below mentioend config guide where you can specify the tcp/udp port , range or ports or even the wild card to match the port.
    http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/v3.00_A1/configuration/administration/guide/mapolcy.html#wp1318826
    Regards
    Abijith

  • TS4001 Transferring Google Chrome bookmarks to iOS using iCloud

    I want to transfer my Google Chrome bookmarks to iOS using iCloud. How do I do it? My iCloud control panel does not have an 'options' button for bookmarks and it says 'Bookmarks with Internet Explorer'.

    You could export the chrome bookmarks (as an html file) from your macbook, move the html file over to your new macbook pro, and import that html file into chrome there.
    In chrome, Bookmarks menu, select Bookmark Manager.  A new tab will open with all your bookmarks.
    Near the top of the bookmarks list is a toolbar that says "Bookmark Manager" and "Organize".  Left click the "Organize" and a menu will come up under it where the last two items are for exporting and importing.  Use them to create (export) the bookmark html file and to import that file on your new machine.

  • Can I update iOs using itunes without internet connection?

    I am using an ipad mini 2, second generation. I plugged it in to itunes and there was an update avaible for ios 8. Can I update iOs using itunes without internet connection? Thank you

    iTunes needs an internet connection to download the update if it has not already. Then it needs to verify the update with Apple servers prior to installation.
    So in short, no, you do need at least some form of internet access to update.

  • What smtp port configuration should I use?

    All of a sudden, I can't get my mail to go out. What port configuration should I use?  What else can be the problem?
    Bob

    You have to use DHCP.. there is no other option that will work because the modem is not a router.. Unfortunately apple hide any more sophisticated controls so there is nothing much you can do other than power cycle the TC when it gets lost.

  • I just purchased a Samsung DVD player with a USB port; says you can use a PC or player to play music; I tried to use my iPhone but it doesn't recognize it. Can you use an iPhone as a player, or would it have to be an iPod

    I just purchased a Samsung DVD player with a USB port; Samsung says you can use a PC or player to play music using the USB port; I tried to use my iPhone but it doesn't recognize it. Can you use an iPhone as a player, or would it have to be an iPod?  Or is there some ap?

    Skip the DVD player use an HDMI connection to your system.
    Use this http://store.apple.com/us/product/MD098ZM/A/apple-digital-av-adapter?fnode=3a&fs =s%3Dalpha
    or for just Audio use the 3.5 MM jack.

Maybe you are looking for

  • INSANELY SUPER SLOW conversion times for MP4 to Quicktime Movie..HELP!!!!!!

    Hi folks... I am frustrated. I am a student in a Film Editing class. I have an assignment where I have to take a classic film and create a movie trailer for it using the original film and editing in FinalCut Pro. I started off by using Handbrake to c

  • Lightroom not an option?

    I just downloaded Lightroom 5.2 and it isn't showing up as an option to open pictures with. Does anyone know how to fix this? I know you can import them but on the trial version I could put in my jump drive and it would pop up asking what I wanted to

  • How do you deal with browser incompatibilities?

    I have set up a modest private voluntary organisation website very successfully with CS5 and it shows perfectly on Internet Explorer, but not on Safari. The central section (table) of each page on Safari is offset to the right. Why is this and how ca

  • Eliminate Leading Zeros in Portal

    Hi! I have a problem with Leading Zeros. I have customer details in the master table which has Telephone number and Fax number as attributes to ZCUSTOMER. I am running a report on this Object as a provider. When I see the report from BEx or Query Des

  • Adding actions to Illustrator

    I'm trying to add "masking actions" to Illustrator but it won't copy. I'm using the 30-day trial version of illustrator. Could that me why I'm not able to add actions?