Problem with png and img_lib on some devices

I'm getting reports of some users that png images are distorted on some but not all devices when using img_load_file. I suspect it has something to do with the Qualcomm devices, but can't seem to reproduce the problem on the Simulator or device Dev Alpha. Everyone knows that, or is perhaps something with just a very small subset of devices. Currently, I only had 3 reports, but there are maybe more. Any help would be appreciated or even if someone can replicate the problem. I use the png to blit in a native window. Again, it works on the Simulator and Dev Alpha so it has probably something to do with the Qualcomm devices, but I did not test it with.

Sean is probably right. Maybe on this processor, the stride/overlay screen is different. Just look at the kind of distortion you get resembles a problem of off-by-pixel stride. Stride length of overlap is probably greater than the libimg stride (or less if you have the wrong format configured for your overlay - unlikely because it works in the Simulator)

Try to change this line

memcpy (overlayptr , overlayimg.access.direct.data,overlayimg.w * overlayimg.h * 4);

To copy the image in the line of scan-online scanner, for example something like this (crossing my fingers for no typos):

for (i = 0; i < overlayimg.h; i++) {
  memcpy(overlayptr + (i * overlay_stride), overlayimg.access.direct.data + (i * overlayimg.access.direct.stride), IMG_FMT_BPL(overlayimg.format, overlayimg.w));
}

Note that I make the distinction between overlay_stride, who was the stride that Sean was referring, and the wake libimg, stored in overlayimg.access.direct.stride. It may well be that for ARGB8888, libimg will give you a stride of overlayimg.w * 4, but you should not make this assumption.

Edit: Heck, crossing my fingers even did not help. Re-written the memcpy to make use of the IMG_FMT_BPL found in img.h macro. BPL stands bytes per line, which is the number of words aligned byte pixel data takes each scan line * no * including the stride. Also originally I forgot to update the data source pointer. In all cases, the new post of Sean makes the issue more clear with regard to obtaining the stride of the screen properties, so give a code.

Tags: BlackBerry Developers

Similar Questions

  • I restored my laptop Toshiba because I had some problems with it and now my Windows Vista computer is indicating that it is 'invaild.

    RESTORED FOR LAPTOP, WINDOWS VISTA INVAILD

    Hi I'm new to these fornums

    I restored my laptop Toshiba because I had some problems with it and now my Windows Vista computer is indicating that it is 'invaild...

    I have the product key on a sticker on the bottom of the laptop, but whenever I entered the code, I also get this:

    The product key you entered will not work with this edition of Vista

    I know that most people are trying to say to activate by phone, but this option is not available

    Help, please

    Now that you have found the key and the certificate of authenticity, you must change to the key on the COA sticker - ONLY then it will activate.

  • Problem with IMovie and Quick time

    Hey everybody,

    I am faced with an unexpected problem with Quicktime and I Movie, and I was wondering if someone had already known that:

    I want to create a film based on shots from my personal camera. I started to work with IMovie to create a sequence of opening and added his musical band. I exported the scenes in Quick Time format without any problem. However, when I merge the exported sequence of I film with shots of my video camera, the soundtrack is completely eliminated.

    I checked on the Internet and saw that there might be a problem of "Codecs". To avoid this, I exported the sequence IMovie with Codecs of same as one of my video camera files.

    Now, if I compare the files exported from I Movie and those of my video camera, they have identical characteristics. However, the soundtrack will always disappear when I merge them.

    Could someone please help me solve this problem?

    Thank you very much in advance.

    Concerning

    Could someone please help me solve this problem?

    Not only based on what you already said.

    I want to create a film based on shots from my personal camera. I started to work with IMovie to create a sequence of opening and added his musical band. I exported the scenes in Quick Time format without any problem. However, when I merge the exported sequence of I film with shots of my video camera, the soundtrack is completely eliminated.

    How would you"merge" files? (I.e. a "QuickTime" format is any form of data compatible with the platform of supply and the specific structure of QT incorporated into real employment that is stored in a container of MOV file on any of up to 99 tracks possible). Also, what app do you use for reading the file 'merged '? (For example, some media players ignore secondary audio tracks as a result of some methods of 'fusion' of files so it is important to know how the files are "merged," whether or not the audio data are "scattered" several tracks, and/or if the Media Player supports playback of multiple, sequential audio popular.)

    I checked on the Internet and saw that there might be a problem of "Codecs". To avoid this, I exported the sequence IMovie with Codecs of same as one of my video camera files.

    The specific codecs and settings using the specific version of iMovie? (The current Mac OS X operating systems have two X QT and 'classic' Qt integrated structure so it is important to know what structure is used here and how).

    Now, if I compare the files exported from I Movie and those of my video camera, they have identical characteristics. However, the soundtrack will always disappear when I merge them.

    As a general rule, you should review the file "merged" to determine why it does not play back correctly rather than comparing the characteristics of the source being merged files. The main problem here seems to be in your project workflow. That is, you seem to be when you perform an operation in two steps rather than edit several iMove multimedia files and then export the combined results in a video the video and audio tracks have been flattened and exported in standard compression formats with unified settings, features and the.

  • Is anyone able to run Adobe CS5 with El Capitan now? I've read about problems with Illustrator and photoshop, but these seem to be in 2015 Octobe5. She improved at all? I need to upgrade that I am running an old OS v but I need to run CS5.

    I've read about problems with Illustrator and photoshop on EL Capitan, but these seem to be in October 2015. She improved at all? I need to upgrade that I am running an old OS v but I need to run CS5. Can not afford to go to CC. I have a Macbook Pro.

    CS5 and 10.11 are not supported and will never be supported by Adobe or Apple.

    However it works for some, more actually, but not all. There are sporadic problems with Illustrator, Photoshop seems to be the best. Do not expect an improvement and keep in mind that anyone from Adobe, Apple or anywhere else will fix it.

    Do a clean install

    Make sure you have the Apple Java

    h ttps://support.Apple.com/kb/DL1572?locale=en_US

    Make sure you have your serial number and if you are having problems with the serial number or the serialization however adobe of web server will not support your problem.

    update the application via photoshop.

  • I'm having a lot of problems with firefox and cannot figure out how to get help. It all started when I updated to 13. I get all kinds of advertising popups, I can't play a

    I'm having a lot of problems with firefox and cannot figure out how to get help. It all started when I updated to 13. I get all kinds of advertising popups, I can't play a game on FaceBook called Farm Town at all, and I get a popup of AVG on the cookies that I can't get rid of. These issues are causing me to use Chrome quite often, although I like Fox better. I've searched and searched how to get help and find nothing. How can I get personalized technical help? These problems will not occur in Chrome at all. Thank you.

    Do a check with some malware malware, analysis of programs on the Windows computer.

    You need to scan with all programs, because each program detects a different malicious program.

    Make sure that you update each program to get the latest version of their databases before scanning.

    Alternatively, you can write a check for an infection rootkit TDSSKiller.

    See also:

  • Pavilion Notebook PC 15-079er: problems with sleep and shutdown 15-n079er HP Pavilion Notebook PC.

    Hello world

    I have a huge problem with my Pavilion. I used Windows 8.1 earlier, and I decided to upgrade to Windows 10. I did not like something (can't remember what) and decided to return to Windows 8.1. Almost a year passed, I am again on Windows 10. But if I SLEEP my computer:

    • Screen goes black, everything seems normal.
    • No matter how long wait, fan keeps spinning and power LED, LED Wi - Fi on.
    • Keyboard input does not help. Does not meet what it is.
    • The only thing left to do - stop hard.

    And if I shut down the operating system:

    • Windows normally stops, close all applications, screen goes black.
    • Fan on, led on.

    I did not notice these problems with restarting and the hibernation.

    Two things I've done in this gap of the year:

    • Replacement screen. An old broke. Thanks to my cat...
    • Formatted the drive. I don't think it would do anything diffirent.

    So, any help would be appreciated.

    Thanks in advance,

    Kebab

    Hello

    On some machines, the pilot for 11 series IMEI has been known to cause that kind of question of the judgment, so it may be worth trying an earlier version.

    You can use the following method to install an earlier version of the driver IMEI.

    Download driver IMEI on the link below and save it in your downloads folder.

    http://ftp.HP.com/pub/SoftPaq/sp66001-66500/sp66228.exe

    Disable your wireless card (should be f12 ).

    Open your download folder and run the installer - it warns you that it is an earlier version, but simply continue.

    When finished, restart the laptop.

    If the computer shuts down correctly, turn on your wireless adapter and use the utility on the following link to prevent Windows 10 to update automatically the driver IMEI again.

    https://support.Microsoft.com/en-GB/KB/3073930

    Kind regards

    DP - K

  • Compatibility problem with Vista and iTunes

    I downloaded iTunes 9 on my Tobisha laptop Satellite last night and put about 2.5 GB of music on it. I didn't upload the music from the internet. I used MP3s, I had for a few years.

    When I went to boot up the laptop this morning the loading process took some time, but it never loaded to the login screen. I just see the bottom of MicroSoft. Is there a compatibility problem with Vista and iTunes? Maybe I put too much music on my laptop?

    Boot in safe mode and delete iTunes and all the music I downloaded would solve the problem? Or it is less simple than that?

    Don't know where to direct this question if any help you could provide would be greatly appreciated.

    Thank you.

    Hello

    iTunes is compatible with Vista and there should not be any problem.
    Yesterday, I installed iTunes 9 on my U400 and everything happened correctly.
    If your laptop can not boot Vista correctly, then you should try the repair feature.

    Turn on the computer and press F8. Now you will see the advanced boot menu.
    Now, you have many choices.

    As a first step, you should try the option called: last good known Configuration (Advanced)

    If this will not help and the Vista will not start then try the option called repair your computer. This option displays a list of system recovery tools, you can use to repair startup problems, run diagnostics, or restore your system.

    If that does not help, then you will need to retrieve the unit using the Toshiba recovery disc or HARD drive recovery.

  • Printing problems with XP and Lexmark-documents are just stuck in the print queue

    Original title: printing problems with XP and Lexmark

    Until yesterday, I was able to print OK using Windows XP and a Lexmark Printer series 3500-4500 with wireless capabilities.  Reported network test wireless (on printer) and report indicates that there are no reported problem, also did the diagnostic test and which shows no problem either.  I can't print and documents are just stuck in the print queue - please can someone help, it drives me crazy because it's probably a very simple solution.

    I guess you do not have all of the error messages.

    It is possible that comes to mind that your printer has received a new IP address of your router (this could easily happen if you have several computers and other devices that connect to your wireless network).

    Find the IP address of the printer of his network diagnostic page.
    Click Start > printers and faxes, right-click the printer and select Properties
    Select the Ports tab, then click on the button "Configure Port" (be careful NOT to click anywhere in the list of ports)
    Make sure that the IP address in 'Port settings' is identical to that shown on the diagnosis of your network printer page.

    To avoid this problem in the future, you must configure the printer to have a static IP address.  See your printer User Guide for instructions.

    Choose an appropriate subnet address (i.e., has the first 3 groups of numbers the same as the other addresses in your network) but who is not in the range of addresses assigned by the DHCP server on your router.  See the User Guide of your router for more details.

  • Problems with word and PDF after computer crash. Error "user has access privileges."

    Problems with word and PDF after crash

    My computer crashed and I had to run the recovery disk, the repair option, so he could run again. It does not format my computer but I had to re - install several programs. I reinstalled my copy of office for example.  I have an external hard drive where I put most of my files but since installing the recovery disc, it does not open some Word documents and gives a message error "user has not access privilege." It's the same thing with some pdf files. What can I do?  Please help because I can't open some of my documents from the University.

    Hello world
    I would like to just say thank you for your help and the problem is now solved.  In the end I paid someone to sort it out.  He explained that it was something like permissions for some of my files were owned by my old operating system and after that my computer crashed and I had to put through the recovery disc these permissions have been lost.  He told me that he had a program that looked for the old existing and re-installed.
    Thank you.

  • Video device USB has a driver problem__ __There is a problem with the driver for USB video Device.__Device information __Name: __ID USB video device: USB\VID_05CA & PID_180C & MI_00\6 & 69C3BD0 & 0 & 0000 code __Error: 10 _ _ _

    I hava a dell inspiron 1440 with windows 7 and a a few days ago, my webcam was working just fine but know that it gives me this after troubleshooting

    Has a USB video device driver problem
    Not fixed
    There is a problem with the driver for USB video device. The driver must be reinstalled.
    The device information
    Name: USB video device
    ID: USB\VID_05CA & PID_180C & MI_00\6 & 69C3BD0 & 0 & 0000
    Error code: 10

    Hey laloo.16,

    As the error message states clearly that reinstalling the driver is required, please do the same. You can uninstall the driver that is currently installed from the Device Manager.
    To access Device Manager:
    1. go to start and type Device Manager.
    2. Select Device Manager in the control panel list.
    3. go to your device.
    4. to remove:
    Right-click on it and select Properties.
    5. Select the driver tab and click on uninstall to uninstall the existing driver.
    6. close Device Manager.
    Now go to the link below. Download the Dell WebCam software for your product.

    http://support.Dell.com/support/downloads/DriversList.aspx?OS=W732&CATID=-1&DateID=-1&impid=-1&OSL=en&typeid=-1&FormatID=-1&SERVICETAG=&SystemID=INSPIRON1440&hidos=WLH&hidlang=en&TabIndex =

    Please choose the appropriate version of Windows 7.  Install the driver and see if that brings your webcam to work.

    Kind regards

    Shinmila H - Microsoft Support

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • BlackBerry Z10 Z10, problem with Gmail and BIS

    I just got a new Z10 and had all configured to discover that my primary e-mail service, Gmail, does not work if the only internet access is through the Blackberry Internet Service (BIS).

    When I configured first, I got Wi - Fi active (other than BIS, I don't have a data plan as my main focus is email). As it was my 3 services e-mail (Gmail, Hotmail and my prived ISP service) all the connected without problem. It was only after I turned off WiFi that I discovered that while my other two services work fine, my Gmail account has become "not connected".

    I tried everything I could think of, including delete my Gmail account, do a reboot cold and then try setting up the account to new as well as doing a reset complete, I could start over again. All to nothing does not. Only if the WiFi is on what can I cannect to Gmail and that doesn't help me if I don't have a Wi - Fi service.

    Does anyone have any suggestions as to what I might try?

    BasinGroup wrote:
    Two problems with your comment about BB10 supporting not BIS: 1), a BB subscription service would be nuts not to provide support and 2) my 2 other E-mail accounts work fine with BIS.

    You may be right about Gmail not supporting ActiveSync, but on the device the Z10 was supposed to replace (Torch 9860 running os 7.1.0) no problem with Gmail and BIS, so there must be something unique about BB10 on the Z10.

    BIS is not used on BB10. BB10 access directly servers of e-mail now.

    Have you tried to configure gmail so that the signal from the carrier and not on wifi?

    In Gmail, you enable IMAP access and not use two-factor auth

  • Problem with shorts and arithmetic byte.

    I'm doing some tests involving long, int, short, and byte.

    lT, lS are long

    He, here is are of type int.

    sT, sA, sS are short

    bT, bA, bS are bytes

    Now I have some expressions of the form: xT = xT + xA

    This compiles for long and int, but for the short and byte, I get an error of precision.

    The problem is that arithmetic more small that int is made to int and then converted in byte or short as appropriate.

    int convert to int.

    int converts long and long long turns.

    Thus, there is no problem with int and long.

    However sT = sT + his causes a compilation related to the precision error.

    This seems like a bug to me, because you might same conditions of overflow with long and whole (ints).

    Is this a bug with our J2ME app or a "characteristic". If it's a feature, can someone point me to a link on the web where it says this...?

    Thank you

    -Donald

    The + operator return type is int, unless one of the operands is long, in which case the return type is long. It's like that with JAVA in general, not just the bb or the micro-publishing.

    byte b1 = 1, b2 = 2;
    B1 = (byte) (b1 + b2); needs expressed
    B1 = b2; didn't need casting

    Yes, it's a bit silly. You get used to it after awhile.

    Cheers, Barak.

  • I have a problem with scrolling and typing on the computer.

    Original title: I have problems with scrolling and typinging after a minute or so without the computer trying to go in the background, any help would be great because I will to throw the mouse across the screen very soon

    as noted above, totally tired, I must right click of mouse to wake up on this page, I did it while typing grrrr big time. Help pleeeease

    Hello

    Thanks for posting your question in the Microsoft community.

    I see that you have a hard time to work with the mouse.

    1. What is the brand and model of the mouse?
    2. The problem occurs on any program or when you perform a task in a particular program?

    Try these steps and see if that solves the problem of performance of your mouse.

    Method 1:

    You can check that the mouse buttons are set correct.

    Refer to the section "Change how the mouse buttons works", from following link to learn more about the same:

    Change the settings of the mouse

    http://Windows.Microsoft.com/en-us/Windows7/change-mouse-settings

    Method 2:

    You can uninstall and reinstall the drivers for the mouse on your computer, to do so follow the steps mentioned below.

    a. click Start, click Control Panel , and then click Device Manager. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    b. in the Device Manager, look for the device under the mouse and other pointing devicesand then double-click the device name.
    c. click on the Driver tab, and then click uninstall the driver.

    d. restart the computer and it will automatically re - install the drivers of.

    Note:

    You can also update mouse drivers by visiting the manufacturer's Web site.

    See this link for more information:

    Updated a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    Let us know if you need help on this question or any question about Windows.

  • Problems with clicking and scrolling when you are using the mouse in IE

    Separated from this thread.

    Original title:

    Problems with clicking and scrolling when you are using the mouse

    I have the same problem.  My touchscreen responds but my touchpad and mouse are unable to save a click in IE.  I need to reboot to rectify.  It seems to be more common when the laptop comes out of fashion 'sleep'.   I tried all the steps above, everything is up-to-date.

    Hello Fred,.

    Thanks for the reply.

    I appreciate your efforts to resolve the issue.

    I would suggest trying the following methods and check if it helps.

    Method 1:
    Run the hardware and devices Troubleshooter and check. Please follow these steps:

    a. press Windows + W keys, type Troubleshooting in the search box and press on Enter.
    b. click on 'show all' and then click 'hardware and devices'.
    c. click 'Next' and then follow the on-screen instructions.

    If this does not help, then use method 2.

    Method 2:
    Start your computer in safe mode and check the number.
    Refer to this article:
    Start settings for Windows (including safe mode)
    http://Windows.Microsoft.com/en-us/Windows-8/Windows-startup-settings-including-safe-mode

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • problem with PCI and PCI express

    Hi people

    I have a problem with my VDI.

    some of my needs of clients to access the PCI and PCI Express slots so that they can fix some PCI card on them and program them

    VMware VIEW can send ports to the VDI?

    do I have to use local mode for this scenerio?

    Please help me

    1. No, not that I know of.

    2. you need not any material to make basic 3D rendering, just turn on the pools.

    Check out this blogpost for heavier applications like AutoDesk 3D:

    http://www.simonlong.co.uk/blog/2012/10/25/VMware-view-3D-gaming-experience/

    Linjo

Maybe you are looking for

  • Upgrade memory on Toshiba Satellite L50-B-1NL

    Yesterday, I bought the Toshiba Satellite L50-B-1NL of argos. It came with 4 GB of RAM. I want to upgrade to 8 GB. Does anyone can help with the upgrade process. Will also be empty RAM level warranty. ConcerningSD

  • Firewall was turned off while I installed El Capitan on start-up level

    I deleted my 'Macintosh HD' on start-up level and downloaded and installed El Capitan newly - I'm discontent with the fact that the Firewall while downloading to OS X and the installation has been 'disabled' = off. -This seems uncertain and dangerous

  • Vista - Error Code: 8024002D (cannot install updates)

    Windows tries to install last updated for Windows Vista. When I boot the Windows CD as requested, I get the above error code and the installation stalls.

  • Multimedia audio codec

    I'm currently under Windows XP Home edition. I moved and just got the computer out to use it, and now there is no sound. I went to Device Manager and multimedia audio codec has no drivers. How can I fix?

  • Secutiry error 1025

    I installed a software for my sewing machine and when I try to use it I get a window that says "error 1025; unkown error.  What is - this and how to fix it?  Thanks for the help.