Change the Format of a stream

Hi!
I'm transforming the video stream using some home made effects, but I don't like the standard Format that's used: an array of bytes, where each pixel is formed by three bytes, one for each color channel.
If the byte in Java was unsigned, no problem. But it's not. The code gets pretty ugly because every time we have to chekc if the value in the pixel color channel is negative or notm and then correct it.
I'd like to get data in the format of int array, where each position of the array is a pixel, and the color channels are stored in some bits of the integer (the convetional Format for everyone, I guess).
- How can I do that? Did I have to use another Processor only to change the format before the stream gets into the Processor where I place my Filter Effects?
- What Format class should I use? IndexedColorFormat? Does anyone has an example of how to construct it?
- Where can I set this information? I was thinking about using the setFormat of the TrackControl. But this only tells the track wich will be the input format, isn't it?
- I've being thinking, and one solution would be to constrcut an effect that force this change to me. It gets the format X and spit the format Y. Then I could write my filters in the format that I want. But then the rest of the graph upstream will be able to understand the changed format? Or I'll need to reconvert the stream??
- Can I set the camera source to already produce the stream in the format that I desire?
- Somebody else is working with effect filters? How do you deal with these inconvinience?
Please, any answer is welcome!
RGB

Found the solution!
I must set the Formats in the CODEC to get the Format that I want to play with! I was trying to complicate too much!
The correct format class to is RGBFormat.
RGB

Similar Messages

  • Using Adobe Photoshop CS2 version 9 and have updated it, but when stacking photos, it comes up with PSD, whereas I want Jpeg, and I change the format to Jpeg and the box then comes up with cannot save as there is a program error. Be very grateful for help

    Using Adobe Photoshop CS2 version 9 and have updated it, but when stacking photos, it comes up with PSD, whereas I want Jpeg, and I change the format to Jpeg and the box then comes up with cannot save as there is a program error. Be very grateful for help with this, please.

    jpg does not support Layers.
    Just to make sure, what exactly do you mean by "stacking photos" and what do you want to achieve thereby?

  • How to change the format of a cell in a web report

    Hello experts,
    Is it possible to implement this in a Web Report/BEx query?
    We have a list of products grouped into Company A and Company B. One key figure is for example Net Cost Price.
    We need to highlight the lowest net cost price in every company but with a different colour depending on the company assuming prices are sorted in ascending order.
    We have been recommended to use Web Design Api for Tables but we understand that in order to format a cell content we need to know the axis position of the cell but we don't know how many rows the query will display for every company. Is this kind of requirements only possible with "static" reports where we know exactly the number of rows and columns that are going to be displayed?
    This is an example.
    COMPANY      PRODUCTS    NET COST PRICE
    Company A    Product 1    <b>5€</b>
                 Product 2    10€
    Company B    Product 1    <b>10€</b>
                 Product 2    20€
    Any help would be very much appreciated.
    Thanks in advance,
    Inma

    Hi Inma,
      If you have already not solved your problem , you can try the following solution with table interface class.
    Table interface class generates HTML table row by row so it first process the charecterstics and then KFs .
    You define a  attribute(type public) in class and set that attribute to X (In CHARECTERSTIC menthod)when ever the company code changes.
    Then make use of that flag in DATA method to change the format of cell (Assuming you sorted by Ascending).
    hope this helps.
    Regards
    Madhukar

  • How to change the format in sap script

    Hi,
    I am working on a report which calls a sap script and i have to modify the script i.e. the values which are displaying in it. i had never worked on SAP SCRIPTS ,plzz provide me guidlines how to change the format of the data displayed in it.

    hi,
    this will give you the whole idea about the scripts in SAP the t-code is SE71.
    refer this link::
    [SAP SCRIPTS|http://help.sap.com/saphelp_40b/helpdata/en/d6/0dc169494511d182b70000e829fbfe/applet.htm]
    [WIKI|https://wiki.sdn.sap.com/wiki/display/ABAP/FormPrinting-SAPscript%2CSmartforms]
    regards
    sarves
    Edited by: Sarves Sombhatla on Feb 20, 2009 1:38 PM

  • How can i change the Format of my DATE column?

    I need to change the date format for a whole column. At present i can do MM-DD-YYYY. I need to change this this to DD-MMM-YYYY.
    I know about the to_date function, i tried to apply it to change the format of my whole column by doing the following.....
    CREATE TABLE "IT220_DATEHOLIDAY"
    "DEPARTID" VarChar(2)NOT NULL ENABLE,
    "HOLCODE" VARCHAR2(2)NOT NULL ENABLE,
    "DEPARDATE" DATE,
    to_date('DATE','DD-MMM-YYYY'), <<<change DATE column to DD-MMM-YYYY
    CONSTRAINT "DATEHOLIDAY_PK" PRIMARY KEY ("DEPARTID") ENABLE
    ORA-00902: invalid datatype <<<<This was the error message i received.
    I am aware that the to_date function is supposed to be used to change strings into a certain format. I guess this means you cant do it with columns? Is there anyway i can format the whole column or do i have to do each string of data entered one by one?
    Thanks in advance!

    Hello Jay,
    I'm not sure you hit the right forum, as this doesn't seem to be a problem with APEX.
    Anyway:
    You can't use that function on a table like that, and as you already suggested, the to_date-function expects a string value.
    It seems you also have a misunderstanding of the basic datatypes in the database. DATE is such a datatype and is stored an internal format you don't need to care about. Each time your request the value, the database will give you a string representation according to either your locale or you give a certain formatting mask.
    The same applies to insert or update operations: you hand in either a variable of type DATE or use a function like to_date to create an "object" of type date.
    You may be interested in reading the documentation of the [url http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/toc.htm]Oracle Database Concepts. The section concerning datatype DATE can be found here:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/tablecls.htm#CBBGJHJC
    An overview of formatting options can be found here:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements004.htm#SQLRF00212
    So to answer your question: You would format it as part of your insert operation, taking a string and convert it using to_date.
    -Udo

  • I changed the format to an external drive and lost everything that was on it.

    I changed the format on an external hard drive and lost everything that was on it. Is there a way to recover what was on it?

    1) Partition your hard drive or add an external drive and install Snow Leopard (with the Optional Rosetta) into it and then you can dual-boot (System Preferences:Startup Disk) into Snow Leopard and run FCE 3.5 there.
    2)  Use one of the following methods to install FCE 3.5 into Mavericks:
    a)  Pacifist:  http://www.charlessoft.com/
    b)  Jeremy Johnstone's Terminal method:  http://www.jeremyjohnstone.com/blog/2012-03-11-installing-final-cut-pro-studio-2 -0-on-mac-os-x-10-7-lion.html
    Reports on this forum seem to confirm that Final Cut Studio 2 will continue to operate in Mavericks once it is functionally installed, albeit some plug-ins may fail to function.  FCE 3.5 is the same generation as FCS2, and presumably will continue to operate in Mavericks, as well.

  • How can I use single hard drive for both Mac OS and Windows without changing the formats and reformatting?

    I have a windows PC and a Macbook Air and a 1TB external hard drive. They said in order to transfer large files into the hard drive you have to change the format of your hard drive (which would be from MS-DOS to Mac Os extended) so how can I use my external hard drive on my windows PC without reformatting its files? Please heeeelp 

    Natively Windows can read and write to NTFS, FAT32, and exFAT while the Mac can read and write to FAT32, exFAT, and MacOS Extended.
    Option 1: You can purchase driver software for Windows to allow it to read and write Mac's MacOS Extended or you can purchase a driver to allow the Mac to read and write to NTFS.
    Option 2: you can format the hard drive for exFAT and use it with both Windows and the Mac without purchasing any special drivers. (Obviously the 4GB file size limit is why you don't want to use FAT32)

  • How do i change the format of a single page in pages 09?

    How do i change the format of a single page in pages 09?
    I want a page to be landscape within a portrait-format doc.

    Question asked and answered many times !
    Yvan KOENIG (VALLAURIS, France) jeudi 19 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan
    Please :
    Search for questions similar to your own
    before submitting them to the community

  • Do I have to change the format of my canon video footage in order to import

    the format of some video footage that I recorded is currently .MOD and some are .MOI (I have no clue what that means, but that's what it says.. and I'm assuming it needs to be converted into another file-type)
    my macbook pro can't recognize this format, so is there anyway I can change the format of these videos so I can edit it in imovie?
    [I have a MacBook Pro and the footage is from a Canon FS100]
    Thank you!

    The MOD files are MPEG-2 video formats recorded on tapeless media. Use MPEG Streamclip to convert them to Apple Intermediate Codec for editing in iMovie. The MOI files do not contain video; they are basically information files associated with the video files. MPEG Streamclip is free however you will also need to get the Apple MPEG2 Playback Component ($20 from the apple store) if you don't already have it on your MBP.

  • How do you change the format of glossary terms?

    I have entered a number of terms in my glossary, along with the definitions. When I preview the book on my iPad, the definitions come up when i touch them, but the box has white text on a white background. How do I change the formatting of the definitions?

    Format/Advanced/Define Default Glossary Style.
    See http://www.dummies.com/how-to/content/how-to-set-default-styles-for-objects-in-i books-au.html

  • How to change the format of the video on my Palm Centro

    I have used the video feature on the phone & have played back the videos fine on my phone.  However, when I sync them to the computer, they are in a Real Player format.  When I try to open them through the back up folders (I wanted to delete them off my phone & palm software so I could take more videos & sync easily.  So I'm trying to move the videos to a separate folder on the computer.  They are actually put in a back up folder automatically when I sync, but they are all in Real Player Format.)
    Anyway - they won't play in Real Player.  How can I change the format so that I can play them back in a program other than Palm????
    THANKS!!
    Post relates to: Centro (Verizon)

    Quicktime is available free from apple.com.
    WyreNut
    Post relates to: Centro (AT&T)
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • How to Change the Format of Object.................

    Hi,
    The client is asking us to change the format of the out of th object into another format.
    With The existing format the result is DisplayFare: 4,673.23
    and the formula used is :
    WhilePrintingRecords;
    global currencyvar DisplayFare;
    global currencyvar array PaxFare;
    global numbervar num;
    if {fld.Fld1}= 'IPAX' then
        DisplayFare := PaxFare[num];
    DisplayFare;
    But client want the same in different format DisplayFare:4 673,22.
    For what changes i needs to do...................please do the needful.
    Regards,
    Maheedhar

    Hi Maheedhar,
    The only difference I see if that the required format does not have a thousands separator (Or does it have space as the separator?) and it uses a comma as the decimal separator.
    You can right-click the field > Format Field > Customize > In here you should be able to change the Decimal separator, Thousands separator etc.
    -Abhilash

  • How can I change the format of some of the pages of a PDF-document?

    I use Adobe Acrobat and have a PDF-document with A4 pages and some pages of another format (half of an A4).
    How can I change the format of these pages to A4 (with a lower blanc part)?

    You can increase the page size with the Crop Tool of Acrobat Pro.

  • HT4007 I Just updated Apeture to 3.3.2  Now there are some photos that I receive a message..."Unsupported Image Format"  Are there lost?  can I retrieve them?  can I change the format?  Help...?!?

    I just updates Apeture to version 3.3.2 after installing Mountain Lion.  There are some photos in Apeture that now say, "Umsupported Image Format".  Are these lost?  Can I retrieve them...how?  Can I change the format so that I can see them again?  Help?!?

    Are these images "Raw" images? What is the make of your camera?
    Check the version of the Digital Camera RAW Compatibility Update that is installed.  The version of the raw support is shown in the About panel: from the main menu bar:
         Aperture > About Aperture
    Download the latest Raw Update from here:
    Digital Camera RAW Compatibility Update 3.14
    If you have the latest raw support installed, but Aperture does not recognize the format, try to register the raw support for your camera with the launch services db, see this post by Alan Roseman:
               Re: Aperture 3 preview of raw file greenish
    But also read the following post, that explain how this is supposed to work and to correct the typo in the command
    In short: Quit Aperture, open the terminal, paste the  follwing text in (all in one single line) and hit return; then reboot the system.
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -R /System/Library/CoreServices/CoreTypes.bundle/Contents/Library
    Regards
    Leonie

  • How NOT to change the format

    I have some AVI files and I want simply to edit out a section of one and save it, no change of format. When I try to save it, QuickTime pops up a window for me to choose between "Save as a self-contained movie, Estimated size 661.2MB" or "Save as a reference movie, Estimated size 1.7MB". I choose the first but it automatically changes the format to MOV. I don't want to change the format. Can't QuickTime save a file as AVI? I know I can export a MOV to AVI but the quality suffers quite a lot. The original AVI is excellent quality so I want to keep it like that.

    You are completely mistaken about AVI. It is fully supported by Microsoft:
    http://support.microsoft.com/kb/316992
    Virtually every movie created on all Windows system is AVI. You also misunderstood what I said. I did not mention any degradation in quality from converting AVI to MOV. They are equal. I am talking about needing to keep the original format. I want to keep the AVI format. I only mentioned that using QuickTime Player to convert MOV to AVI results in reduced quality. I need to share the final movie with Windows users who need AVI format as it works perfectly with subtitle files of the most common type (filename.srt) while MOV files often fail to pick up SRT subtitles.
    Now that we have all that made clear, let's solve the problem. What I want is simply an answer to my question. Can you folks drop the Microsoft Versus Apple battle for a while and just try to provide solutions?

Maybe you are looking for