16bit CGImage problems

Hello,
I'm working on 2D support for our framework and we're having framerate "issues". The framerate won't go any higher then 30fps on a simple program and it drops fast to 20fps.
At the moment I have a 32bit CGImage on which I draw everything.
To get some perfomance improvements I want to create a 16bit CGImage but I get some errors. I use the following code to create the 16bit CGImage:
CGColorSpaceRef colorspace = CGColorSpaceCreateDeviceRGB();
CGDataProviderRef provider = CGDataProviderCreateWithData(NULL, buffer, yres * lpitch, NULL);
surf = CGImageCreate(xres, yres, 5, 16, lpitch, colorspace, kCGImageAlphaNoneSkipLast, provider, NULL, FALSE, kCGRenderingIntentDefault);
CGColorSpaceRelease(colorspace);
CGDataProviderRelease(provider);
The problems I have are:
- red and green are swapped
- I can only draw the image once to the screen. It's is not possible to draw the image again. It does draw the stuff on the image and it does call the drawRect method where it is drawn to the screen but it isn't updated.
As soon as I change it back to 32bits it works again.
Because OpenGL uses 16bits I assume the colors are internally converted back to 16bits. To avoid this I want to create a 16bits CGImage, hoping for a little performance increasement.

It sounds like you have several issues confused.
EXR allows many depths of data to be embedded in it - but Photoshop uses EXR for HDR data, which needs to be 32 bit floating point.
Also, the most common data depth in EXR is 16 bits/channel floating point -- which is not the same as the 16 bit/channel integer format in Photoshop, and has to be converted up to 32 bit/channel floating point to prevent data loss.
Yes, 32 bit/channel data is always gamma 1.0 in Photoshop (and should be elsewhere) and that changes the values when converting colorspaces for 8 and 16 bit/channel.
A gamma 1.0 profile can be set as a working space profile - but it just isn't a good idea in 8 or 16 bit/channel.

Similar Messages

  • Motion 5, 16bit and Gradients problems

    I got a lot of problems with gradients in my last project.
    I did orange gradient in Motion 5 for background, rendered it to ProRes 4444 and got banding and other gradient problems. Same time rendering to TIFF sequence was fine. Then I imported this TIFFs to Motion 4, change project to 16bit mode, enable float render in rendering preferencres. Rendered to same ProRes 4444 and all things are fine& No any banding.
    In other hand I got information from manual that Motion 5 always work in 16bit mode. But my test show that output is have problems with right wripping 16bit video to any codec.
    Can somebody conform this problems and may be somebody finded any solutions . . .

    I can confirm this problem. I've created FCPX templates that look absolutely perfect in FCPX until they are rendered and there is banding in every version of ProRes. I know this problem is specific to Motion and Final Cut as *other programs* have no problem exporting/rendering flawless gradients in at least ProRes LT.

  • 16BIT Problem

    I am importing footage taken on a friends camera but have been unable to get it into IMovie.
    We are both using DV Cameras, the tapes are even the same brand and I can see and control my camera on the screen EXCEPT playing it through the import function on imovie i.e. I can rewind etc but no footage appears on the normally blue screen when I press play.
    The only differences that I can see are that there is a message saying 16BIT on the screen when I play may friends tape back on my camera and he is using a Japanese camera (problem with NTSC/PAL??).
    Any ideas?

    The image should not be getting lost. If you are really loosing data in the local, then your VI may be corrupted. Try using a different sequence local or copying your code over to a new VI. Also if you are passing data into the next sequence consider relying on the dataflow of LabVIEW rather than a sequence structure to control the execution of your code. I also recommend wiring up your error clusters,using probes and/or indicators, and running the program in highlight execution mode (click on the light bulb on the menu bar on the block diagram) to see exactly where the error occurs.

  • Photoshop 4.0 loading problems on windows vista 16bit vrs 32bit/64bit requirement.

    I am trying to load my Photoshop 4.0 upgraded to 6.0 on my laptop with
    windows vista. The program will not load and it gives a message that the 16bit program needs an 32/64 bit upgrade???
    It wasloaded on windows xp.

    XP and Vista/7 are different OS's.  I don't think anything after XP will run 16 bit apps but you'll have to get a second opinion.

  • 16bits/channel multilayer psd file problem.

    Hi all,
    Did someone already know about 16 bits/channel multilayer psd file parsing is different to that of 8 bits/channel multilayer psd file?
    as far as I try, it seems 8 bits/channel model, image data is saved in RLE model, but it is quite different in 16 bits/channel,
    we could easily find out once we load those two file into memory (with same context, only model changed).
    Anyone who know which algorithm may 16 bits/channel multilayer psd taken for saving the layer image data?
    Many Thanks!
    Jerry Yu

    yes, 16 bit/channel can be ZIP/FLATE compressed. (RLE doesn't work well for anything beyond 8 bit/channel)
    You can find the details in the Photoshop SDK (you'll have to ask specifically for the PSD documentation).

  • How can I convert my 16bit music library to 24bit for better quality?

    I just bought a new stereo system in my room and 16bit music sounds very thin and tingy, so i have been playing vinyl.. 24bit music seems to be a great option, but i don't know how to convert my music to 24bit.. :/
    ps: I don't care about HD space.. i use 1TB HD for my music and I don't have a lot of bands in my itunes library. Thanks

    There won't be any point in convering existing 16-bit music to 24-bit. You won't gain any quality by doing so since the data isn't there in a 16-bit file. You'll have to reimport from vinyl, if that's what you've been doing, as 24-bit, or look for download stores that sell in such an audiophile format.
    Question: do you have 24-bit files now that you can compare directly to 16-bit files? Or are you just presuming that the sample depth is the problem? Do actual CDs (the disks, non-imported) sound OK?
    Regards.

  • How can I convert 16bit greyscale pictures to 24bit color pictures

    Hi,
    I am stuck at coloring 16bit greyscale pictures without losing the
    resolution of 16bit, as it would happen when using the
    WindMapping-thing (which reduces the displayed resolution to 8bit).
    I figured that what I would need is probably an array consisting of
    32536 RGB-color clusters to convert all greyscale values to a color,
    preferrably a rainbow spectrum.
    I tried to create such an array via the HSL-model, where the coding of
    a rainbow spectrum is easier than in RGB, and then converted it to U32
    for obtaining the RGB-colors. The problem here is: Although HSL is
    24bit in IMAQ, I can only get about 200 different colors when using
    constant saturation and luminance. I understand that 24bit is made of
    3x8bit for H,S and L. - However, as the HSL-model describes colors as
    Hue (0-359°); Saturation (0-100%) and Luminance (0-100%) I don't really
    understand, how those 360 Hue-values could possibly be put into
    U8-representation required by the IMAQ ColorToRGB-vi.
    Does anyone have an idea how to obtain a 24bit-rainbow spectrum coded
    in 32536 distinct colors other than manually creating all the entries?
    The reason I need this is to determine whether it will be necessary to
    process the images all the way through using I16 or if can be done with
    U8 as well without losing too much of detail.
    I couldn't figure out any other way to DISPLAY true 16bit other than
    the detour using 24bit pictures. It is only about display, not about
    processing, which can be well done using the IMAQ I16 format...
    Thanks for any input!
    C.

    Thanks for the answer and especially the link, George!
    Unfortunately our relevant grey values are distributed over a wide
    range of about 5000, which I would rather use instead of letting them
    melt down to 256...Of course - being able to distinguish between 5000
    different greyscale values with the human eye is another story!
    However - a co-worker of mine came up with the idea of coding the grey
    values in terms of travelling along the axes of the RGB cube, as shown
    in the attached image.
    Attachments:
    rgb-axis-travel.PNG ‏14 KB

  • How to edit 16bit TIFF image sequence file in FCP?

    Dear all,
    I have a number of 16 bit TIFF image sequence files (2048 x 1024 resolution) - some of them are RED footage, and others came directly from our f/x guy. We are going into a color correction session in a post house and we've been asked to provide a sequential 16 bit TIFF image sequence of the edited time line.
    I need to do a cross dissolve b/w most of the clips I have. I have created image sequence QT movie (reference files) from the TIFF images. Though they play fine in QT player, when I try importing into FCP, I am met with a "general error". I tried both dragging it into QT, as well as File --> Import.
    I am wondering what can I do to get these clips into FCP in order to apply the cross dissolve transitions I need. Is this a problem relating to the 16bit nature of the TIFF files?
    I tried exporting the TIFF image sequence standalone QT movie, and those imported fine. However, I have a feeling that the standalone movie conversion also decrease my bit depth from 16 to 8. (When I do my final TIFF output from FCP after dissolves / transitions had been applied, each TIFF file is now 8 MB instead of 12 MB, hence my suspicion that the bit depth is adjusted).
    Are there any settings I am missing, or does FCP simply don't support 16 bit image sequence reference file. As a test, I had also converted all my TIFF to jpg, and created jpeg image sequence reference file. These reference QT file can be successfully imported to FCP and I can edit them as if they are a clip.
    If FCP is not able to handle these files, what are my other options? After Effects?
    Any help is appreciated.
    Thank you.
    Michael
    <Edited by Moderator>

    As far as I know, both FCP and Color only support up to 10 bit color, which is 1024 levels for each color channel, more than enough for avoiding color banding.
    If you need 16 bit for sure, I believe AE will support 16 bit output. Another 16 bit application would be the extended version of Photoshop, which has some limited time line capability.

  • Could not complete the command because of a problem using the Adobe Color Engine

    Hi all
    This bizarrely started this morning - completely out of the blue - and I've no idea why.
    Setup: Mac 10.8.2 / Creative Suite Premium PhotoShop CS5 extended (patched to 12.04)
    Am working on images exported from LightRoom 4 (16bit A3 Pro Photo RGB PSDs) in PhotoShop CS5.
    As part of my image grading process I have a PhotoShop Action that does the following: copy layer to new document (document respects all of copied layer settings) > Image > Adjustments > HDR toning > apply a certain HDR preset > copy to resultant image back to original doc > set opacity as 40%.
    Totally out of the blue, after having this action for about 2 months, this morning I start getting a warning dialog of "Could not complete the command because of a problem using the Adobe Color Engine" and the action fails. The failure seems to take place at the 'make document' part of the action and seems to somehow be related to the contents of the clipboard.
    I've tried trashing and re-creating the action. It works first time out fine and then - on the next image - errors again.
    At present I can only safely carry out the work 'manually' by completing all the actions myself.
    I can think of no settings that have changed and the OS hasn't been updated in a while.
    I have found one other thread on a similar problem in PhotoShop Elements, but no definitive solution.
    Any help appreciated as I have a shedload of stuff to process.
    Best wishes
    TP

    OK: trash of prefs didn't work. Tried thrice. Re-created orig action. same problem.
    BUT!
    Your 'Image > Duplicate' suggestion does seem to work. If I use that in a new action as the method for creating the HDR version doc (instead of 'Select > Copy > New > Paste), it seems to work.
    Will try that out this afternoon, but for now: WIN!
    Many thanks for the suggestion!
    TP

  • Is anyone else having problems with 5.1 speakers with iTunes 7?

    After i installed iTunes 7, the muscic from my library was only playing in 2.1. Does anyone know how to get sound coming out of all my speakers (mine are 5.1). I have quicktime set at 48khz, 16bit, and 5.1, but i still only get music as though it was set at 2.1. I miss having surround sound so please if anyone knows anything about this i would appreciate it. My soundcard is the soundblaster audigy 2 ZS

    I am having more or less the same problems as you guys. Currently I use a soundblaster audigy 4 with "CMSS 3D" function ... it used to work with itunes but started to get all weird with the 7.0 update. If nobody knows how to fix this I will have to use 6.xx again :/
    I'd be grateful for any advice as well,
    thanks in advance.
    Windows XP

  • How I fixed my noise problems with iTunes 7

    Firstly my system is an AMD X2 3800+ with a Gigabyte GA-K8N Ultra-9 motherboard and a Creative Soundblaster x-fi xtreme music.
    I was having two problems with playback itunes, firstly when the volume control in itunes was anything less than 100% there was distortion, then when itunes was playing with certain other programs using sound there was jumping, popping and fast forwarding, these included world of warcraft, Call of Duty 2 and Windows Media Player playing a video clip (though when I changed the codex for ffdshow to xvid i had no problem with media player)
    To solve the distortion problem i change the audio setting in quicktime form 24bit to 16bit.
    To solve the skipping I ran dxdiag.exe and went into the sound 1 tab, I found I had to pull the hardware acceleration slider to basic acceleration, if I set the slider to no acceleration itunes would refuse to run. After this I still had the occasional popping sound, so I went back to the quicktime audio settings and set the frequency to 44.1.
    I also I found that after each of these changes itunes had to be restarted to for them to come into effect.
    I also made sure i had the latest directx and sound card drivers.

    Hopefully you have posted this info in the iTunes for Windows forums. I am sure it can help your Windows buddies more then the Mac crowd.
    MJ

  • Color Printing Problems after update dec28/07

    Last night I installed the latest updates for PS CS3 on 2 machines and both machines have the exact same color issues while printing with two different Canon printers.
    The Problem:
    Since this last update all images I try in print from 16bit ProPhoto or AdobeRGB 16bit, converted from Canon RAW through ACR look sepia tone, there is virtually no color (images still look as they did before on my monitor). In order to get the color to print I must convert image profiles to 8 or 16 Bit sRGB. I have not changed any settings after the update and confirmed that the update made no changes to the printers set up. sRGB 8bit jpeg images print color as seen on the monitor.
    BOTTOM LINE: I can no longer print ProPhoto or AdobeRGB color space on my 8 color Canon Printer

    Thanks Jeff
    Both computers are PCs, one on XP, one on Vista, and printers are Canon i9900 and Canon ip4000 both are printing exactly the same way. Swoped printers between PCs with same outcome. Only changes made to both PCs was the CS3 update.
    Jeff, I thought the problem may stem from the ACR RAW conversion as regular sRGB jpegs print the color as seen on my monitor. I have also submitted this question to the general PS forum...
    Thanks again for taking the time to reply..

  • 16bit Tiff & PSD previews in Bridge not showing correctly

    Large multi layered Tiff, PSD and PSB files which have alpha channels, masks and layers, etc. do not show appropriate previews in Bridge (nor Windows for that matter). Many of these are very large 2-4GB, but even a typical 30-60MB file with certain alpha channels and masks are also problematic with previews.  I believe the problem appears mostly when the base images ar 16bit since the 8bit version exhibit properly most of the time. 
    Is this an issue which has a remedy?
    Thanks,
    Doug A
    Photoshop CS5, Windows 7, 64bit.

    As Jeff said, this should fix the very large files, but I would recommend to post in the Bridge forum, or on http://feedback.photoshop.com if you still have trouble with 30 -60 Mb files.

  • Problem when exporting audio from Premiere Pro v4.2.1 into wave 5.1 format

    Hello to Adobe experts!
    After installing of last updates for Adobe Premiere Pro (v4.2.1) and for Media Encoder (v4.2.0.006) the was a problem:
    Now I cannot to export audio from adobe sequence into uncompressed wave format with 5.1 channels settings. Source m2ts video files in sequence are with 5.1 audio.
    What I doing:
    1) in Premiere I execute "File\Export\Media"
    2) Export settings are:
    - format: Windows Waveform
    - audio codec: Ucompressed
    - basic audio settings: 44100Hz, Channels: 5.1, Sample Type 16bit
    3) After OK button it opens Adobe Media Encoder.
    4) After pressing Start Queue in Adobe Media Encoder there is a message "Error compiling movie. Unknown error"
    In earlier versions it worked fine.
    Can you help me with this problem?
    Alexander

    Here are the options, from a sequence with 5.1 master track:
    and with Surcode:
    Notice that first one does only give stereo as an option. Nothing more. With Surcode it gives you 5.1 sound.

  • ADVC-100 problems

    I'm off from work for a few weeks. I've been wanting to transfer old vhs tapes to DVD for a long time. Maybe about 3 years or so, I purchased the ADVC-100 to convert analog to digital. Worked like a charm. I also purchased an VHS to DVD direct copy machine. That worked also.
    Time passes and I've since upgrded to a the latest macbook pro. I decided to use it with FCE and do the good dead.
    #1 - the CD player on the VHS/DVD is kaput. Major not happy, hardly used it and it just isn't doing anything. But that's ok, I don't mind the route of digitizing video to my 16TB NAS for manipulation and such with FCE
    #2- My FCE won't recognize the ADVC-100. So frustrating
    I verified under system stuff that the firewire is seeing the FW connection, which it is. I can directly plug the VHS into another tuner and play on the TV. So that takes some frustration away since we can at least watch them. But I would like to start a long process of digitizing them, clipping together themes, cute moments, all that stuff.
    For whatever reason, I cannot get my G5 or Macbook pro to play/work with the ADVC-100. I can go to preferences/sounds and see that there are internal sounds being registered. Can't get them to play in anyway through either computer, but they are registered at the input. Sound works great on a TV
    I've gone to the easy set up and drived DV=NTSC firewire basic, DV-NTSC DV converter, and the DV-NTSC. No luck. Some will actually show the buttons ont he capture screen but there are nothing but colored lines (stationary) When the buttons appear, a message appears below them that says "VTR OK". I've tried to capture clips anyway, but nothing occurs.
    I recall having some of these problems in the past. I kept trying and trying and somehwre it would just magically work. No such luck anymore.
    My switch settings on the ADVC-100 are all set to off position. I have tried various different switch positions as I read many different articles all over the internet.
    Anyone have any ideas or suggestions? For whatever reason, both the new and old mac can detect it is there, can show the internal "in" sound channel registring the sound, but can't play the sound and I cannot get video to show in any configuration.
    Thanks,
    Robert

    Thank you for your input and questions.
    I changed VCR's just to make sure that wasn't a factor as the original one was acting a bit strange. This second VCR is a basic play only VCR. Tape in, verify it is running on the TV fine. Then move it over to the computer area. Use the red/white/yellow (composite or RCA jack?) connectors out from the VCR. Only contains out, no input on the VCR
    Then connect the color coding to the input of the ADVC-100 on the front panel marked input.
    The back panel has the outputs. I used the red/white only and have them plugged into a stereo adapter so that they can be plugged into the back of the powermac G5 audio input.
    I am using a firewire 400 connecting from the back of the ADVC-100 to the back of the G5
    Dip switches on the bottom of the ADVC-100 are set to NTSC, 7.5 IRE, Audio "locked", Audio 48khz 16bits, power on input mode "analog", and input selector mode: manual.
    NOTE: I have carefully turned off the ADVC-100 and tried every possible combination of switch settings. I followed the instructions initially, which are quite simple, but when that didn't work, I decided "what the heck, try 'em all," so I did. No change.
    I've tried quicktime, iMovie, and FCE. They all display a similar pattern.
    iMovie: will show the pop-up screen for importing and shows it is seeing the advc-100 in the bottom left corner of the screen. Screen remains blue despite what I do.
    FCE: set to DV-NTSC under easy settings, shut down program restarted and made a new project (did this multiple times). Under capture, screen pops up as usual. In the center bottom, shows "VTR OK" It shows colored bars. Decided on occasions to go ahead and put "now" and it indicates "waiting for timecode. Device must be in VTR mode when Device Control is enabled (press 'esc' to abort)
    Quicktime pops open a window that remains blue and indicates it is ready to record. Nothing happens though.
    I used to use this set up, maybe 5 years ago to transfer VHS or HI-8 mm tapes to the computer. I don't recall it being such a pain. This is the same computer, same ADVC-100 and so forth.
    ok, did I forget anything?
    Any suggestions?
    I do appreciate your help.
    Robert

Maybe you are looking for

  • Why can't I open forms in reader on my ipad?

    WHy won't reader open interactive PDF forms. I get the please wait message... Your PDF viewer may not be able to display this type of document. im using an ipad with version 11.3.2

  • It's been asked before....

    I've asked this question before but never received any replies, not even it can't be done. Is there any way to write something in Java that can monitor a port to make sure it's still open? Our SNMP Trap Service running on Windows NT uses port 162 and

  • GR qty to match TO qty

    Hello, Please find below process PO - Inbound delivery - HU - TO - GR Inbound delivery qty - 10 Hu1 - 7 nos Hu2 - 3 nos TO is created for for 7 and 3 nos but now when i confirm TO's GR is created for 10 nos But my requirement is to create two GR with

  • The tip of an audio cable broke off and is lodged in the Mac audio port.  Any advice on how to remove?

    The tip of an audio cable broke off and is lodged in the mac lap top audio port.  Any advice on how to remove it?

  • Ical sinks 1 hour back to my iPhone

    When I sync my iPhone to my iCal a certain group of events say they start an hour earlier on my phone when on my computer it says they start at the correct time i.e. MacBook iCal Dinner 6:00; iPhone says 5:00. How can I get it to sync the correct tim