Quick way to enter the scene to capture screen/framebuffer

Hey, I work in the video coding ANE - everything works fine on iOS, except a HUGE bottleneck.

Forfeitures 1 framework composed of MovieClips/layers etc is super slow, because the only way that I know that use BitmapData.draw, which traces of course everything including the effects etc., which is really slow for example on the iPad 3.

In my case, grabbing the frame ASAP is super important because I'm doing video encoding in real time. On the side of the DONKEY everything is optimized, using AVFoundation with pixel buffer pools etc but AIR he kills with the draw method.


When fooling around in DONKEY, I made a list of views that AERIAL use on iOS and saw that the entire application is running in view GL. Could AIR provide a method to capture view GL somehow? I tried hacking around it the donkey (glReadPixels, who I know is slow, but still does not work because the framebuffer is empty at the moment where Im calling it DONKEY). Theres also a way to fix the framebuffer texture I think and I have the content always ready, that would be great - I'm not sure I can bind this texture to the framebuffer to AIR well (this didn't not test yet, but seems unlikely).

I even managed to catch a screen of DONKEY, there is a new iOS7 method that can catch all UIViews, but this is unfortunately still slower than AIR.


+ I'm newb OpenGL. It would be cool if AIR took advantage of the race in the GL layer and provided a method to access the memory location with a texture/GL image that could be used as a capture of screen/film etc.



Answering myself, I managed to solve this problem after reading tons of tutorials and SO questions and answers

Basically, you need to create your own FBO backed texture inside the DONKEY. Inside the donkey, you have context of OpenGL in AIR which is a good start.

Whenever you want to capture pictures directly from AIR, you must intercept made air - you call the donkey on event ENTER_FRAME, bind your FBO backed texture. Let the rendered in AIR (fortunately AIR rebinding it is own FBO if you make an FBO at least once, I don't know why exactly). So AIR makes you happy in your FBO backed texture, next Frame you can only access data with glReadPixels or doing things even funkier if you must.

It is also possible to make this texture return to the screen to 'emulate' AIR made because you lose it for a while, during the capture. You must make a quad with this texture. It is also good to remember the ID FBO of AIR (until you link your own) and when done with capture liaison AIR FBO back so he can resume his normal rendering.

It is much faster to rely on BitmapData.draw and deliver pixels in your DONKEY in general, especially for me as I am also with texture caches so I don't even call glReadPixels which, in itself, is not the fastest method around...

Tags: Adobe

Similar Questions

  • Is there a quick way to show the pixels per inch for lots of images?

    Each year, I need to send a bunch of pictures to a printer, and I want to ensure that all have a resolution of 300 pixels per inch. Check each picture one by one in Photoshop by Image = > Image size is a bit tedious. Are there quicker ways to display the setting ppp for a large number of images?

    David

    Not sure if you are on Windows or Mac, but if you use a Windows machine in Explorer details you can view the resolution.

    Just do a right click upward in the row that contains the column headings (name, Date, Type, etc.) from here if you go down to more it gives you a list of huuuuge of what it can display for you right there in Windows Explorer.

    I hope this helps, unfortunately, if you are on a Mac I can't help you =)

  • Help! Object enter the scene, stop for a second, then go. How?

    Hello world

    I am a beginner in AE and I'm trying to animate a bus I made using illustrator. This bus is suppose to enter the scene, stop in the middle of it, than to start over and leave, simulating a bus stop.

    Now, I realized to get into the scene and get to the point where I want, but how can I do stay there for a second or two and then start again, because if I add a keyframe after a second it does not block and it continue. I'll add a screenshot of my calendar to show you!

    Schermata 2014-10-08 alle 12.31.05.png

    The first key frame is where the departure of the bus, and the second is where he suppose to stop and where my red line is I want to do it over again, so the time between the second keyframe and the red line is where I want the bus stop!

    Thank you

    Use a hold keyframe.

    Using After Effects | Interpolation keyframes

    Start here learn After Effects:

    http://Adobe.LY/AE_basics

  • Is there a quick way to view the pages in Safari, Firefox, Opera (not Live Preview)?

    Is there a quick way to view the pages in Safari, Firefox, Opera (not Live Preview)?

    Currently no, but we have an element in our backlog in this research.

    Randy

  • Quick way to assign the IDs table header cells to data?

    Acrobat X (10.1.9)

    For the accessibility of tables with complex headers, is there a quick way to assign the ID of the header cells to data associated with them?  I have not found a way faster than go to one cell at a time.

    All tags already have an ID, this question is how quickly assign the ID of header cells to all data cells in a row or a column.

    Better yet, is there a function or plugin that looks like to a table column and line and automatically assigns the headers for all data cells?

    I used the Table Inspector in Acrobat and several years of the CommonLook plug-in version. Both allow you to set several properties for all the cells in a selection. And they act as if they fortunately put header IDs for multiple cells, but after clicking OK and watch the cell properties, TI is not set for any of them, and CL only sets it to the first cell that has been selected.

    I prepare a PDF file of scientific reports for Section 508 compliance. Often, they are hundreds of pages long and got the results of large tables. Some clients insist on complex headers. Cell by cell is surprisingly long.

    I am running the latest version of CommonLook and manages to assign very well identification tags.  You can select multiple cells and assign them to a header.  You can also select the same cells and assign them to another heading using "Append". This will add the new header, without deleting the header already assigned.  In earlier versions Append has not worked for me.   That's what you need, if you have complex tables for a long time.  If you get the latest version and this isn't the case call Technical Support, as the plugin does not work correctly.  The Touch Up reading order tool does not.

    I sometimes create a white/hidden text for the header text that spans several columns and then create individual to keep them, but I wouldn't rely on it for long tables or use it as my main method. It's a pretty quick solution in some cases - or if your author likes to let in line 1, column 1 white, you can create your own invisible header for the screen reader.  But it is too difficult to verify, and not the best route to follow. Also the hidden text is considered a no-no by some as it is supposed to be a drop out / drop behind or mistake to layout.

  • What is the right way to enter the extension as a batch of PS data?

    • What is the right way to enter the extension in the form of batch PS data? I'm changing the output to jpg in the new file and the software will not accept in ways I've tried.

    Try to use the image processor, set the jpg file format is just a click away.

  • Quick way to change the appearance of hyperlinks

    Hi guys,.

    I am looking for a quick way to change the hyperlinks have a rectangle invisible around recangle visible with blue color clear. I have 20 links it will take me five minutes to do it by hand, but nevertheless is a tedious task and if the number of links that will be more times in the future.

    I did a search and found some sort of a Script in Indesign Secrets, but I don't know if there are 20 links (I have little idea of manufacture and adaptation of scripts, in addition to the light blue color, I want) it's worth the time. What do you think? Is there a quick way without using the script. I have ID CS4.

    Thanks for all the ideas.

    SEBS

    If you want visible rectangles of reader by default, just select all the links in the links Panel and change "hyperlink... options. "(retractable menu) from the invisible to the visible (do not change any other field).

  • Is there a way to exhaust the touch player full screen as well as 2 pages?

    Is there a way to exhaust the touch player full screen as well as 2 pages? I have a manual for the instructor with pages of the instructor in front of student pages

    Thank you

    Hey Lionel,.

    Adobe Reader supports the display of 2 pages already on tablets (> 8-inch screen) because smaller devices do not have a satisfactory experience when the 2 pages are displayed at the same time. Click here for more details.

    The function "full screen" is coming soon to the next update.

    Thank you

    Luz

  • Quick way to find the number of terms not zero in a matrix or an image

    I try to use the standard deviation PtbyPt Vi.  It takes a series of points, can be reset when you start the calculation.  There is also an entry for the sample size.  I am calculating some statistics on a table... and would only include as items not null in the sample.

    Is there a quick way to look at a picture and find many items not anywhere?

    Thank you.

    Hi Hummer,

    test the table for "unequal to 0", convert the table of Boolean resulting in numbers and summary table. Just three primitives of LabView.

    Do not forget:

    -for large bays you need an additional step of conversion before summing up the table of numbers I32

    -for big tables, this can lead to 'out of memory' problems due to the creation of copies of data

  • Is there a quick way to encapsulate the informal in the tags [Para] text?

    I'm trying my new framework 12 trying to produce an ebook in several formats. I use the out-of-copyright Agatha Christie A MYSTERIOUS AFFAIR at STYLES.

    Is there a quick way to wrap each paragraph with a [Para] tag?

    Thanks in advance.

    TdeV1,

    With your extended description, I know now exactly what you mean. I am facing similar situations frequently, where I have several paragraphs that I need to paste it into a single element, then divide each paragraph in its own element.

    Unfortunately, FM has no native functionality to automate this process, despite the way it must be pretty common need. In my case, I'm a developer FDK and hacked together a small plugin it does. ExtendScript could also be used. If you don't want to do programming, then the other option is a conversion table. You will need to paste the content in a document completely unstructured, run the conversion process to structure, then copy the items newly covered in your DITA topic. You cannot run the conversion process on a document that currently has any structure.

    So to summarize, you must make some scripts/programs or learn how to build a conversion table. If this interests you, find conversion tables in the Structure Developer's Guide. In this case, it would be an exceptionally simple conversion table, perhaps even just a single line. If you have to do this process several times, I think it would be worth your time to study.

    Russ

  • A quick way to add the button "print" on several pages?

    This forum has been very useful as I climb the learning curve of the design interactive pdf. Thanks in advance.

    Several other positions of reading and looking around, it would appear that the addition of the function 'print' button must be done in Acrobat. I was able to do, but I wonder if someone found an elegant way to cut and paste the revised on several pages in the final PDF button. There is no option 'Paste in Place' and it becomes very tedious to do alignment specific buttons on every page.

    Thank you!

    Tim

    Yes you can do it too: create the button with action print page:

    in the Panel forms/fields, right-click on the button (not the button on the screen) you have created, click on duplicate, then enter the pages you want to duplicate on and the button will be on all the pages you wanted in the exact position.

    G

  • Quick way to name the html files?

    The web application for which I develop assistance calls Help file names like "list_help". I feel I'm missing something looking through all information on RoboHelp. When I rename the topic, I have to do it again the updating of the reference to framemaker. Is there a way to map the appropriate files "list_help" that the application calls my topic names? This change manually and redo each time we update the only way to manage this?

    What output type do you use (e.g., CHM, webhelp)? The way forward depends on the answer.

  • Quick way to import the web colors

    Hi guys,.

    Sometimes I see a site that I really like his color palette. Mozilla Firefox has a nice add on Colorzilla named analyzing all colors and even save the palette.

    colors.png

    Nevertheless I found so far is impossible to import or save it as a. The ASE file. I just did as 12 RGB color is manually by much too tedious when you have 30 colors.

    Any idea of a request or in a way that might do the trick?

    Thank you

    S

    Paste the image into Illustrator. Live Trace. Open Options to set the color mode and expand the number of colors for tracing. Expand the vectorization. Swatches Panel flyout menu > add selected colors.

  • Quick way to chaning the spacing between multiple images?

    IM design of a site of the gallery which has photos and each thumbnail image has the same spacing around it, he distancing from the following image. At the time using x im and is coordinated in the property inspector to space out the images correctly.

    Assuming that I did but then wanted to change the amount of spacing, what would be the best way to do this? The result would be if I had just changed the value of the margin for images in CSS and they were all in the same division
    Thank you

    I don't know what it is you are trying to do? You want space, but you want that they touch?

    Auto spacing/digitally is available in the Aligner CS4 Panel but now in CS3.

    A few things you can do.
    -View > grid > edit grid. Display grid / magnet on the grid, and then set it to the w/h of your thumbnails.

    Then position your thumb/placeholders within the grid - they should align and 'touch' the other.

    Yes you can convert your thumb/placeholder graphic symbol, duplicate the symbol instance, double click on anyone of the sybol instance to modify, then edit > transform > digital transformation to the new size. Then done.
    The only drwaback there are, you will need to realign.

    h

  • quick way to define the family first name

    It is possible to select all the contacts whose first name first and change their surname first?

    This option is grayed out when I select more than one contact.

    A kind of macro, maybe?

    Thankd

    b

    If you go to Contacts > Preferences > general, you do not see this option?

    MtD

Maybe you are looking for

  • ID blocked apple iPhone

    Hello! My Iphone 4S icloud address is blocked. ************ I remember my icloud password before ********** After reset of that my password is ************* Please unlock my icloud account to use my phone I have attached my passport id and phone box

  • Equium A300D - question about light mouse pad

    Hello If someone could help, it is not so much a problem, but I recently bought the Equium A300D and there is a band of light above the mouse pad that are turned over.I don't know if I turned it off in some way or how to turn it on, just kind of hopi

  • How can I disable the toucnpad while typing?

    Aspire Acer 5742 laptop

  • How do I open the wba files

    Downloaded vista themes vista themes.com and could not open install.

  • Video down load to a flash drive.

    To the bottom of the video loaded Camara, Vista-based computer, click the flash command (memory stick). It is not possible to use this information in Windows XP Home Edition. When I plug the flash drive in my Windows XP, I can't see my video. Can tel