Results 1 to 13 of 13

Thread: is5_PushImage

  1. #1
    Join Date
    Jul 2006
    Posts
    46

    Default is5_PushImage

    I'm using.

    if (_is5_PushImage((BYTE *)image.pIPLSrcRGBA, image.w, image.h, 4, image.w * 4, (BYTE *)image.pIPLDstRGBA, 0, 0, &pFrom, &pTo, 0))
    {
    }

    I was using the version 3 Push Image with no problem here and converted to using v5 and now it appears to be failing. Any ideas?

    Thanks,
    Ken

  2. #2
    Join Date
    Mar 2006
    Location
    Raleigh, NC
    Posts
    1,356

    Default Re: is5_PushImage

    what does is5_GetLastError say ?
    Chris Losinger
    Smaller Animals Software, Inc

  3. #3
    Join Date
    Jul 2006
    Posts
    46

    Default Re: is5_PushImage

    5 - IS_ERR_BADPARAM

    I guess I'm doing something wrong.

    Ken

  4. #4
    Join Date
    Mar 2006
    Location
    Raleigh, NC
    Posts
    1,356

    Default Re: is5_PushImage

    what are the values of the parameters you're passing ?
    Chris Losinger
    Smaller Animals Software, Inc

  5. #5
    Join Date
    Jul 2006
    Posts
    46

    Default Re: is5_PushImage

    pFrom.x = 644;
    pFrom.y = 81;
    pTo.x = 648;
    pTo.y = 77;
    if (_is5_PushImage((BYTE *)image.pIPLSrcRGBA, 800,600, 4,800 * 4, (BYTE *)image.pIPLDstRGBA, 0, 0, &pFrom, &pTo, 0))
    {
    }

    Source and Dest pointers are valid and work with the IS3 version.

    Thanks,
    Ken

  6. #6
    Join Date
    Mar 2006
    Location
    Raleigh, NC
    Posts
    1,356

    Default Re: is5_PushImage

    i'll take a look at the code and get back to you ASAP. (don't have the source with me at the moment)
    Chris Losinger
    Smaller Animals Software, Inc

  7. #7
    Join Date
    Mar 2006
    Posts
    805

    Default Re: is5_PushImage

    the problem is that '4'. is5_PushImage doesn't work with RGBA images.

  8. #8
    Join Date
    Jul 2006
    Posts
    46

    Default Re: is5_PushImage

    That's too bad. :-(

    V3 (_ISE3PushImage) accepted RGBA images (sort of). Are there other ISE effects that don't accept RGBA buffers anymore?

    I say sort of because I can see in my code that I handled v3 by adjusting the RGB values in my RGBA buffer by the alpha amount and in post filter reversing the adjustment so that I can successfully use these functions on RGBA buffers with the correct adjustment to the alpha channel in a indirect way. (yes there is some loss of color resolution with this approach)

    Ken

  9. #9
    Join Date
    Mar 2006
    Posts
    805

    Default Re: is5_PushImage

    yeah, "sort of" is right

    i'll make it work with RGBA, no problem.
    Last edited by Chris; 03-16-2010 at 09:01 AM.

  10. #10
    Join Date
    Jul 2006
    Posts
    46

    Default Re: is5_PushImage

    My vote is yes let them be accepted even if they don't process the alpha channel.

    Thanks!
    Ken

  11. #11
    Join Date
    Jul 2006
    Posts
    46

    Default Re: is5_PushImage

    FYI: Here is a quick ScreenCast of the v3 PushImage working with RGBA buffers.

    http://www.screencast.com/t/NjY3NTJhZjA

    Ken

  12. #12
    Join Date
    Mar 2006
    Location
    Raleigh, NC
    Posts
    1,356

    Default Re: is5_PushImage

    that's really cool

    would it be OK if i linked to that from the ImgSource front page ?
    Last edited by Chris; 03-16-2010 at 09:02 AM.
    Chris Losinger
    Smaller Animals Software, Inc

  13. #13
    Join Date
    Jul 2006
    Posts
    46

    Default Re: is5_PushImage

    Sure, no problem regarding the screencast. I've also set it to enable downloading the .mp4 file in case you decide you want to host it locally on your site.

    Thanks for new release, will be grabbing it shortly!

    Ken

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •