Input to output (pixel by pixel) problems

I'm at the start of creating a simple plugin. My aim is to put everything from input to output but pixel by pixel. I'm using a CCU example for that, but this causes problems.
Here's my code:
    PF_EffectWorld *inputP = &params[0]->u.ld;
    PF_Pixel8 *inputPix = (PF_Pixel8 *)inputP->data;
    PF_Pixel8 *outPix = (PF_Pixel8 *)output->data;
    for (int i=0; i<output->height; i++)
        for (int j=0; j<output->width; j++)   
            *outPix++ = *inputPix++;
My original footage looks like this:
And after using my code it looks like this:
After adding the bold line everything works (why do I have to use that line?):
for (int i=0; i<output->height; i++)
        for (int j=0; j<output->width; j++)   
            *outPix++ = *inputPix++;
        for(int k=0;k<4;k++) inputPix++;
But when I'm trying to use the plugin again on the same footage it looks like this:
Am I missing something? What causes that? When I use the callback funcion everything works fine, but I have to do that using the above way 'cause I have to have access to every pixel of the footage.
Thanks in advance, David

It is called gutter or row padding, each row may contain more pixel than the actual width. You can check for this with the rowBytes value of inputP.
The CCU example already compensates for this, so look there for more information:
in_gutterL        =     (inputP->rowbytes / sizeof(PF_Pixel8)) - inputP->width,
out_gutterL        =    (outputP->rowbytes / sizeof(PF_Pixel8)) - outputP->width;
// At the end of each row, account for the gutter
// (this number can vary by platform and for other reasons)
if (yL >= 0 && yL < inputP->height){
    bop_inP    += in_gutterL;
bop_outP += out_gutterL;

Similar Messages

  • Satellite 5100 - Question about dead pixels. Is it really dead pixel problem?

    Hi,
    I've got Satellite 5100-603. There have been some dead pixels on display. I don't know is it really dead pixel problem or not because the black area seems to be behind the screen. When i move left and right sides, the black area moves left and right sides too (as if the black area is behind the screen pixels)! And i can tell that all pixels are working OK when i look from the right and left sides of the display (because the pixels that seems to be dead, changes at different looking angles).
    Are there really dead pixels or is it some other problem?
    Is there anything that i can do about it?
    For info, i am using my laptop for 2,5 years and there is no warranty of course...
    Thanks for any help..

    Hi
    to answer your question I will try to make a simple description the layout of the TFT display.
    I'll go from the front to the back.
    In the front is a tough plexi-glass like layer to protect the screen from harm and the user from glass in case the TFT should break. It is also prepared in a way that will soften the reflections from behind (that does not go for the newer SuperBright screens).
    Behind that is the 2 layers (at least 1 of glass, probably both) that hold the actual matrix of the pixels.
    Behind theese 2 are a very complex set of layers that take care of the backlight. It consists of various numbers of films that should spread the light from the singel FL-tube evenly across the complete screen. Not a easy task if you ask me!
    Sometimes, physical stress or dirt can make 'blotches' appear on the screen and they are in fact either dirt on the backmost layer or marks on the same. If there is dirt or marks on it, that will 'shadow' the light that comes out from it and show dark spots on the screen. They are quite different from defective pixels.
    The defective pixels do not change with the angle of view for example.
    I think you cannot do anything about this except changing screen. The construction is very complex and sensetive.
    BR Tom

  • Thin white line acroos the top of my screen after software update. Can NPRAM reset help to solve this or is it a permanent pixel problem?

    Sudden thin white line acroos the top of my screen after software update. Can NPRAM reset help to solve or is it permanent pixel problem?

    Try PRAM reset.
    Reset PRAM:   http://support.apple.com/kb/PH14222
    Best.

  • CS2 Pixel Problems when editing

    Hi, I am an amatuer Photoshop user.  I have recently had problems with editing pics either resizing or adjusting levels,  saving then trying to post to a website.  The pictures show up awfully pixeled.  I downloaded the same pics without editing and they look fine.  I have also had pics printed and I dont have the pixel problem.  I assume something is wrong with my PS CS2 software.  Is there a update to fix this problem or do I need to delete and reload my PS CS2 software program?

    Further information on this problem:  It seems to be linked to the condition of the data fields in the Revise HyperTrend window.
    Within this window is a box containing data lines corresponding to the items to be graphed.  The headings are:   Expression    Line Color    Min/Max/Pos/Height.
    There is room in this box for 19 lines of data.  If more than 19 Items are entered, a scroll bar appears to the right.
    It appears that attempting to adjust the widths of any of these fields (to view more of the data in a field, for example) triggers this problem.  It may also be triggered if the width of the data displayed is covered by the scroll bar.
    Can anyone figure out why this is happening and what to do about it?

  • Menu bar weird square square pixels problem

    Hi I have this very weird problem and wonder if it is a software or hardware issue (i couldn't find anyone who have the same issue).
    After using my iMac for a while this weird pixel problem on the menu bar appears.
    The problem (it is small but you can see the magenta areas).
    This is the enlargement of the problem.
    When I change applications/click on the menu bar, it disappears but reappears after a while. This problem started just recently and I'm wondering if any of the Apple updates might have affected it.
    Does anyone know what's happening? Do I need to bring it for repair?
    Thanks.

    They look like Atari Space Invaders "Quick shoot them down"
    Sorry I couldn't help it!
    Try switching to and from Translucent Menu Bar in the Desktop Preference, Disk Utility / Repair Permissions and Restarting your iMac.
    Dennis

  • Pixelation problems occurs in my videos when using adobe flash but using chromes pepper flash no problemes so its definitely adobe problems on my WIndows 8.1

    pixelation problems occurs in my videos when using adobe flash but using chromes pepper flash no problemes so its definitely adobe problems on my WIndows 8.1

    Problem is:
    Flash Player for IE11 (which is the worst browser ever developed - BAR NONE) is a Microsoft product, when it comes right down to it.
    Adobe writes the base code and yes, they do collaborate on updates for it, but the gang in Redmond alter the plug-in and add "proprietary" code before embedding it, and at that point it's "their baby".
    There are two (2) registry keys - 1 for 32 bit IE and the other for 64 bit IE, as well as a KB patch that prevent all but the most experienced Windows users from ever touching the Flash Player plug-in for IE. So there's NO WAY you could have done a clean install of the ActiveX plug-in in Windows 8. Unless you're an uber-geek, you can only update it through Windows Update.
    WIn 8 is an abomination and IE11 made it worse. IE has always been the "problem child" of browsers, failing to handle CSS, Javascript, some PHP and most design "tweaks" that good webmasters can use with other browsers, trouble free.
    I have IE8 on XP, 9 on VIsta, 11 on 7, 10 on 8 and 11 on 8.1... but they're all for testing only. I'd have to be out of my mind to ever think of using IE as my primary browser. ActiveX controls have to be disabled formost stuff and that opens millions of security holes in IE.
    You've got a good video card and a decent sound card. It's a shame to waste them on a pile of garbage like IE, just because it came with Windows.

  • Apple 30" inch Cinema Display pixelation problems

    This is following on from a similar thread which is as yet unresolved the thread was called "30" with edge effects, green pixels?"
    My setup is Mac Pro 3GHz Dual Intel (Brand New)
    Graphics Geforce 7300 GT with a brand new 30" apple cinema display.
    The problems is that pixelation occurs at random times and is only solved by changing the screen resolution down and then back up to its native setting. Is there a away to solve this problem. Someone on the thread mention above thought that it might be a syncing problem between the monitor and the card but the thread was never resolved and it is dated October. By the way I have check whether its plugged into the correct port and it is so any suggestions or bug fixes would be helpful thanks.

    I've had my 30" display for 1 year running on an "old" G5 with an ATI Radeon 9600 Pro card (along with an "older" 20" Apple Cinema Display, the one with the plastic bezel). No problems with the 30".
    A few weeks ago I got a Mac Pro with the ATI Radeon X1900 XT card. That's when I got the green pixelation problem. I thought it must be the card (since the monitor works just fine on lesser cards...), so I took the entire Mac Pro and X1900 to the Apple Store and hooked it up to one of their 30" monitors: no pixelation problems after over an hour of test running it with Aperture, Safari, etc. ****. I began to think that Apple has made some sort of change in the more recent 30" monitors to avoid the problem; either that, or my monitor is old and tired after only 1 year.
    My 30" still runs fine when I put it back on the old 9600 card; it does ok (with only Minor intermittant pixelation lines) on the original (lesser?)card that came as base equipment on my Mac Pro; and it has the MOST pixelation problems with the BEST card (the X1900). Perhaps these 30" monitors can't handle all the data being sent by the more powerful cards? Is that possible?

  • Pixel problem? Lines on the screen

    hello my iMac is 3 1/2 years old. about 6 months ago I started to get lines on the screen, last week one of the lines turned into an 1 1/2 inch white line. From what I'm reading it's a pixel problem. My question is should I have this problem repaired, or is it not worth doing. thank you.

    Are the newer versions less apt to have this problem. and is there a history of this problem with iMacs thanks.
    Tough questions, the problem is that iMacs are sort of All-In-Ones, using basically Laptop components with a Desktop Monitor & Hard Drive, if one thing goes you can't just replace say the Video Card like on a PowerMac or MacPro, because most everything is built into the Logic Board.
    I strongly suggest that anyone getting an iMac or Laptop go for the extended AppleCare.
    As for the new iMacs, they look really sweet, but I myself would not buy one with an nVidia Graphic Card, I'd have to order the more expensive ATI Graphic Card.

  • IPod stuck pixel problems

    Bought a new video iPod at my local Apple store, got home and notcied it had several stuck pixels (white glowing dots- mostly noticable against a black background and in a darker environment). Took it back to the Apple store, the genius tried to give me a line about how the screen "takes a while to burn in". What?? once he realized I was not an idiot, he agreed to exchange it sans the restocking fee.... You guessed it, the replacement has the same problem I am sick and tired of this issue with LCD screens. It is unacceptable for retailers to sell defective screens and claim that they are "normal". There is no clear definitive standard for this pixel problem, and I have had it. Went through 3 PSPs as well and returned them all before finally giving up. I am taking this iPod back, and telling them it is unacceptable. They can open as many as it takes to get me a defect-free screen, or they can refund my money and I'll look elsewhere. It is unbelievable that a company can sell a product meant for viewing video on a 2.5 inch screen and can claim thta glowing white dots are "normal pixel anomalies". My 42 inch plasma doesn't have a single dead or stuck pixel, and I expect the same on all my electronics with an LCD or pixel based screen.

    Have you tried the Pixel Fixer for iPhone?
    I know if you do a Google Search for it there will be an App for the iPhone that will test and attempt to fix stuck pixels.
    Otherwise you may wish to follow the basic article below for iPod Touch Hardware, and then make an appointment at local Apple retail for assistance or contact iPod Touch Support.
    How to verify iPod touch hardware is working correctly
    http://support.apple.com/kb/HT1575

  • Ipad air 32 gb - pixel problem

    Hello everybody,
    I just bought ipad air 32 gb two weeks ago. Everything was great until 1 hour ago.
    Out of thin air my screen has bugged. i think it is a pixel problem. i have a horizontal line across the screen. not all of the screen but a little portion of it has a line.
    its like 4 or 5 cm ( sorry for eu measurement systems : ) )When i restarted the ipad, on opening screen ( black with white apple logo) line is not there, but on main menu and on apps, it is there.
    do u think it is software or hardware?
    What do u suggest?
    here is a picture of the situation. the line is between "garage band" and "halftone" apps logos
    also i uploaded the same pic, so u can see it bigger.
    thanks in advance.
    http://postimg.org/image/wjmow2pjv/

    Your iPad is still under warranty. Make an appointment at an Apple Store to have your device examined by a technician. Or contact Apple Support.

  • My iphone 3gS camera has a dark shadow looking dot on it. I lloked it up and i think maybe its a pixel problem. What can apple do to fix it?

    My iphone 3GS camera has a dark shadow looking dot on it. I lloked it up and i think maybe its a pixel problem. What can apple do to fix it?

    Hmm, then it could be something somehow with the actual camera sensor behind the lens or maybe software issue. But i'd recommend ringing Apples support line and seeing if they can fix it, if it's still in warrantly they should do it free of charge.

  • Aperture 3 RAW conversion and hot pixel problem

    I've used every version of Aperture since release, but I'm not very happy with the RAW conversion in Aperture3.
    My images from earlier versions have no hot pixel problems but if I update to the new processing I can see them.
    Single red or green pixel in the 100% crop image, that didn't show up before and also don't show up in LR.
    The images I'm importing are NEF files from a Nikon D2x.
    Is this a bug in the new RAW conversion for this camera?
    It makes all of my images now unusable through Aperture if I reprocess them?

    I haven't noticed the pixel issues that you mention, but I wasn't looking for that yet. Instead, my images from my Nikon D300 have been stressing A3 out as follows....
    I have been having new issues with A3 now. I bought A3 when it was 1st available and had all of the same issues that plagued some users, I worked through it and until recently have loved A3.
    While editing I noticed that A3 had a large number of my photos, about 30% of 34,000 images, labeled as being processed under an earlier version (A2). I decided to go ahead and re-reprocess the images, even though this step took a couple of weeks and countless crashes when I first purchased A3. Again, just over a week later, the images are now re-reprocessed within A3. And a new problem cropped up.
    My Macbook is...
    [img]http://jasonksepka.smugmug.com/photos/942470326_QzaME-M.png[/img]
    and when I open A3 and begin looking at my images, the program is slow to respond and when it opens an image I get a very unprocessed version of lines for up to 5 seconds before the image finally loads. The image and all edits do load, but the workflow is significantly effected and I would like to know why this is happening now, and how to fix it. Below is an example of what happens with each image.
    [img]http://jasonksepka.smugmug.com/photos/942470341_Q2WUZ-M.png[/img]

  • HT1338 I have no input or output audio devices showing "what do I do to fix this problem"

    Something happened to my mac book air. I now do not have any Audio input or output devices showing on my "Hardware, Sound then to sound effects but there is nothing there ? What can I do? Tks

    You aren't running 10.3 if you have a MacBook.   Go to the Applications -> Utilities -> Audio Midi Setup to configure your audio out.   Go to Apple menu -> About This Mac to find your Mac OS X version for future threads.

  • How can I get my audio input and output devices back? I have no sound and cannot see any of the devices in Audio MIDI Setup..??

    Hi, I tried to set up a new output audio device on my mac that would have multiple outputs (iBox Twist speaker and my internal speaker) but when I went to click onto one of the iBox Twist (there were 2 options available: iBox Twist and iBox Twist Stereo), Audio MIDI Setup crashed and when I finally got that back open, I found that there were no audio input or output devices to be found. My sound is working, as when I turn on my iMac, the starting sound still plays, however the volume control in the menu bar is no longer a black colour, but grey and when I try to change the sound on my keyboard it does not change. This already happened to me once, and after 3 hours I managed to fix it very simply (switching off Mac, unplugging power cord, leaving for 15 seconds, plug power cord back in and switch Mac back on, holding Alt, Cmd, P and R keys until you hear the Starting Up sound twice) however this same technique that fixed it once before is not working this time and I am still stuck without sound. I have tried Repair Permissions, rebooting in Safe Mode, Hardware Test and checking for Software Updates. Has anyone else had this problem and managed to fix it?
    Thanks in advance for any help anyone can give me!

    In case anyone has had the same problem as me, I have just managed to fix this by doing the following:
    Switch off Mac
    Switch back on in Safe Mode (Hit power button, then hold Shift key until a loading bar appears at the bottom of the screen).
    Switch off Mac again
    Remove power cord and wait 15 seconds
    Plug power cord back in and hold down the keys alt, cmd, p, r all at the same time until you hear Starting chime for a second time and hopefully your audio will back.

  • How can I use a different driver for audio input and output?

    I did a search of course, and came up with something about an aggregate. I have no idea what this is, how to do it, or if it would even work for me.
    What I am trying to do is:
    1) Record into Logic Express using my Tascam US-122.
    2) Have playback come out of my computer sound system, not the Tascam.
    If I go over to the Audio setup window, I can only record when the driver is set to Tascam US-122. Likewise, I can only listen to sound when my Built-In Audio is selected. It gets rather annoying going between the two.
    So, would this aggregate thing solve my problem? If so, how do I do it? Thanks for any help!
    -allen

    Yes it should do what you want.
    Go to "Audio Midi Setup", and go to the Audio menu and click "Open Aggregate Device Editor". The interface is pretty simple but if you do get stuck, just use the help function in Audio Midi Setup, as it has a step by step guide.
    Then when you return to logic, go to the Preferences>Audio>Drivers section and select Aggregate Device as the new driver rather than either the built in sound or the tascam. Then the inputs and outputs will apply to BOTH devices.

Maybe you are looking for

  • Problem with user management

    Hi, hope someone helps me... got an application with the Shema LBACSYS ...with this shema i got access with the user htmldb_public_user. now i want to create a user (with the user management page from the sample application) Creating the user works..

  • Aironet 350 Bridge

    Can you configure Bridge to work in a full duplex mode?

  • Restoring iPhone Backup Files Without a iPhone

    Hello, I had a iPhone 5 32GB that I recently lost. Because Sprint didn't have the replacement plan at the time of purchase, I'm out of a phone. I have a backup that contains my photos and videos (more important than the music) before my phone was los

  • Customer exit in CJ02

    Hello friends, I am searching for an enhancement in transaction CJ02 where I can Add my own fields. Thanks in advance, Eitan Illuz.

  • CDD-23564 Error message

    Hi, I am trying to capture the module and application logic design of Oracle Forms fro the file system. However, whenever I click start the following error always appear and the operation is terminated : "CDD-23564: The file "C:\ORANT\BIN\cfr61.dll"