lot size stride in screen.h?

Hi all

I experienced ForeignWindow and screen.h API. I followed the example of HelloForeignWindow and noticed something weird, I think. The call of this function:

screen_get_buffer_property_iv(mScreenPixelBuffer, SCREEN_PROPERTY_STRIDE, &mStride)

mStride should be 4 * width of the window size. It's ok on Z10 which gives me 3072 = 768 * 4 but I'm on DA C instead of 2880 2944 which is longer for a width of 720px 64 bytes window.

It won't let me use for example memcpy() to write quick of the image data in the buffer.

Is this an issue or is there something else I should consider?

Thanks in advance

There is no rule that says that stride will be 4 * width of the screen.

STRIDE is a dependent of the material and will be at LEAST 4 * width for a format of 4 color channels.

You can still use memcpy(), but you must do this within a loop of line if the progress of buffer source and destination are different.

See you soon,.

Sean

Tags: BlackBerry Developers

Similar Questions

  • Question of the size of the screen whilest games

    I have a lot of computer games from big fish. On my last laptop had no problem with the size of the screen, but since the download on Toshiba laptop a lot of games opens full-width. I managed to overcome this problem, no idea how I did it simply play, but I had to restore the laptop to an earlier point and the display is returned to the 'normal '.

    Can someone help me solve this problem? I tried Control Panel > appearance and personalization > resolution of the screen, but this does not help.

    Thank you lizziep13

    Maybe you should first tell us what model of laptop that you use and which OS is preinstalled on your computer.

    Have you noticed the same problem with all games or only some of them?

  • HP2000Z - 2 00 THE FUNDAMENTAL PROBLEM SEEMS TO BE CRASHING AND THE CHARM BAR. THE SIZE OF THE SCREEN WILL BE

    MY COMPUTER IS A HP 2000Z - 2 00.  8.1 FOR WINDOWS IS THE OPERATING SYSTEM.

    LET ME SAY THAT, AT THIS TIME, THE COMPUTER HAS BEEN RESTORED AT LEAST 5 TIMES. TWICE BY A TECHNICIAN OF HP AND THE REST BY MYSELF. I'M ABOUT TO PUT IT IN THE TRASH CAN.

    THE CHARM BAR CONTROL EVERY TIME I TRY TO DO ANYTHING WITH THE COMPUTER. I LIKE TO PLAY GAMES AND IT IS BY THE WINDOW. THE MOUSE FREEZES AND CAUSES THE CHARM BAR TO TAKE MORE. THEN THE SIZE OF THE SCREEN WILL CHANGE FROM REGULAR TO EXTREMELY LARGE OR IN THE OTHER DIRECTION TO INVISABLE.

    MY PATIENCE IS GROWING THIN. I HAVE DONE EVERYTHING I KNOW TO DO AND TRIED EVERYTHING WHAT THE TECHNICIANS HAVE SUGGESTED I DO. I JUST WANT TO ENJOY MY COMPUTER.

    By Jove, I think you hit on something. Radical change. It's good enough that I'm ' will call fixed it Professor. Thanks a lot, a lot. This thing could be a keeper after. You'll go far there teacher!

  • How to set the size of the screen for sensitive design mode?

    Previously, I was able to select one of several sizes of standard screen for sensitive design mode when you test a Web site, but can now only to select a size. Why and how can I change this?

    The drop to the bottom of the list in the display of delicate design is empty?

    You have a pref devtools.responsiveUI.presets the topic: config page?

    If this is the case, then try to reset this pref to get the built-in default presets.

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

  • page titles have begin showing the size of the screen

    Hello

    Since this morning all my tabs display the size of my screen to the page title. Thus, when normally in Firefox, you would see the page URL title both in the upper part of the browser, as well as on the tab. Now, all I see here is 1263 x 708 [1263 x 484]
    I have no idea where it comes from and no idea who to get rid of him. It is disconcerning for my clients, which I show my work, thinking I would come with those keywords shone in the title, I now can't even show them...

    Can someone help me please?

    Jen

    I don't know if it's relevant, but I noticed that the Responsive Design View tool displays dimensions. For me, the dimensions appear in a border around the page, not in the title of application or on the tab bar.

  • The size of the screen on Toshiba Satellite Pro A60?

    Is it possible to increase the size of the screen beyond 1024 x 768?

    Hello Daniel

    I found some information on this unit. Unfortunately the screen and the graphics card supports only 1024 x 768 resolutions. It's the highest. :(

    Good bye

  • Question about the size of the screen on Satellite M

    The size of my screen is not expanded by clicking on full size, he won't go to full size, but when I run again she returned to the most small can anyone help what should be a simple problem (ps a new pc user)

    Hi John

    Sorry, but I don't know what you're saying. What you mean with full size and when you click on exactly? You are talking about specific applications or what?

    Please explain exactly what you mean under the size of the screen.

  • change the size of the screen

    How can I change the size of the screen in Apple Mail? At the opening of Apple Mail, screen completely fills the screen of the monitor. It is a simple question, but how do I get the screen to go back to a smaller size?

    Point to any corner until you see an arrow in place and move the cursor. Click and hold and drag

  • ADE can't remember the size of the screen

    Hello

    Windows 7 offers the opportunity to maximize windows by dragging the bar of the upper/lower window to the border of the upper and lower screen. It works even for CVI

    If I have the environment option "Hide windows when the application runs" chose, after closing the application and return to the source code window, that it turns out that the CVI don't honor / remembers the size of the screen, i.e. the size of window CVI is not expanded more

    If possible, I would prefer that it be fixed

    Workaround is to not use an automatically magnified window... you are remembered the window manually adjusted sizes.

    Ah, I see. You were referring to the maximization of the window from specific edge (enlarged only horizontally or only vertically).

    You're right, ICB doesn't handle well those States of maximization. For example, if you close the CVI ADE with the window of the workspace in this state that is optimized in terms of edge, even if the window will appear to be the same size when you restart CVI, is more aware that it is being enlarged and so he lost his dimensions of original, not optimized in terms. It is no longer behaves as a maximized window.

    The symptom you described is another manifestation of the same problem.

    I created 437791 car to follow it.

    Luis

  • Change the size of the CVI controls depending on the size of the screen

    Hello

    I'm trying to do something and I don't know if it is possible,

    I have panelMain than my handful of Panel, when I start my program and I show my sign that I'm maximizing the flexible screen up with:

    SetPanelAttribute (panelMain, ATTR_WINDOW_SIZE, VAL_MAXIMIZE) I do so to make this soft generic being for each screen size...

    but when I do so all the buttons go to the left of the screen while leaving me a blank gray surface in the right.

    I want to know is I can do a generic Panel as in desktop software or other software that the buttons change this size according to the size of the screen?

    If you have other solution there will also be grid...

    Thank you

    Well, that is not exactly true: according to the help of this attribute:

    Specifies if the content is put on the scale when the Panel is resized. This applies to programmatically resize, resizing in the User Interface Editor and the resizing by the end user.

    An alternatirve is to set the resolution setting in the editor of the IUR for the Panel to 100%: this should ensure the Panel is resized automatically regardless of screen resolution its original dimensions.

  • Now, the screen moves as the surface is larger than the actual size of the screen. I checked its display options, but how do I disable this screen oversized?

    Hello

    My mother was a member of the family to try to help inrease size but Bobo and now its screen in any program or simply from bottom of screen size is larger than the size of the screen.  She can move the mouse to the left to bring the extreme left veiw and then the same thing right but never have all the screen in veiw now.  How to restore to normal for her.  I tried control - display, but not... help her please help me

    Hi M Carmel,

    Thanks for posting in the Microsoft community.

    I understand that you are facing the issue with the resolution of the screen display.

    I suggest you to see the links and check.

    Change the resolution of your monitor

    http://Windows.Microsoft.com/en-us/Windows-XP/help/Setup/change-monitor-resolution

    Change your screen resolution

    http://Windows.Microsoft.com/en-us/Windows-XP/help/change-screen-resolution

    Please follow these recommended steps, review the additional information provided and after back if you still experience the issue. I will be happy to provide you with additional options available that you can use to get this resolved.

  • How can I reduce the size of the screens viewed on my computer.

    Sometimes, I get a screen which is higher then my computer screen so I can't see or click on the bottom of the screen action buttons, maximize on upper rt button is gray and doesn't fix it.  y at - it a general command to reduce the size of the screen?

    the particular application, the origin of the problem is OpenOffice 3.3 it says file is corrupted, but I can't for the button that says repair it.

    Hi dave22q,

    ·         Did you do changes on the computer before the show?

    Follow these methods.

    Method 1: Follow the steps in the article.

    Resources for troubleshooting problems in Windows XP

    Method 2: Perform a clean boot to see if there is a software conflict as the clean boot helps eliminate software conflicts.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Note: After completing the steps in the clean boot troubleshooting, follow the section How to configure Windows to use a Normal startup state of the link to return the computer to a Normal startupmode.

    After the clean boot used to resolve the problem, you can follow these steps to configure Windows XP to start normally.

    (a) click Start, run.

    (b) type msconfigand click OK.

    (c) the System Configuration Utility dialog box appears.

    (d) click the general tab, click Normal startup - load all services and device drivers and then click OK.

    (e) when you are prompted, click on restart to restart the computer.

  • How can I make my image on the screen is adjusted to match the size of the screen? __

    I want my police right to adapt to the size of the screen to the right

    Malkeleah wrote:
    > Your post is pretty light on details, so I can only give you General
    > advice. Choose what is applicable to your situation or post back with more
    > information on your system and its problems.
    >
    > 1. Make sure you use the correct resolution for your monitor. If
    > you have a monitor LCD (flat screen), using its native resolution. Refer
    > to monitor (or laptop) manual to find out what it is or, if it is a
    a single monitor, Google, using a native keyword like "make and model".
    ' > resolution.
    >
    > Control Panel > display > settings - move the cursor to the right
    > resolution, apply/OK outside.
    >
    > 2. If the resolution is already correct and you have a LCD screen
    > monitor, use the button on the monitor to adjust automatically. If
    > you have an old CRT monitor and the resolution is already
    > properly, use the buttons on the monitor to adjust the screen display
    > area according to the needs.
    >
    > 3. If you have a laptop and #1 and #2 are not applicable, reinstall your
    > video card drivers. Find them in the computer tech support site portable mftr.
    > for your specific model laptop.
    > ------------------------------------------------------------------------
    > MS - MVP - Elephant Boy computers - don't panic!

    Another thing that should be checked is to ensure that the DPI is
    Set 96 instead of another value. Control panel - display-
    Settings, then the button advanced - general tab is where looking for.

    --

    Smith y
    Windows XP Pro SP3

  • Windows 7 need to restore the size of the screen

    I have windows 7 on my dell computer.  It worked fine until a few days ago.  the size of my screen now has a border about 5 inches on each size of window, so that if I go to hotmail or watch a video it's tiny size.  How can I restore it?  my homepage comes in full size.  Thank you...

    Take a look at this tutorial Windows 7. It shows you how to reset your screen resolution. It has a table to show you what resolution you shoud set based on the size of your screen:
    http://www.SevenForums.com/tutorials/255-screen-resolution-display-settings.html

    You can also restore your screen size by doing a system restore. Choose the date where you did NOT have this problem as your restore point.
    http://www.SevenForums.com/tutorials/700-system-restore.html . for the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • The screen is smaller than the size of the screen. Help!

    I hit a button on an accident (CTRL with Shift or CTRL with something else) and the screen went black. Now, the screen size is much much smaller than the size of the screen. There is a good inch margin 2 right and left. How can I return the screen to normal size (to match the screen)?

    Hi Rhamad,

    Thank you for visiting Windows Vista Microsoft answers forum.

    Your monitor settings have been changed, and you must set its value by default. To set the default settings screen, you must use the buttons near the power of the monitor buttons. You can take the help of the manufacturer of your computer to do or if any manual was provided with the computer then you can refer to that as well.

    You also try to open graphics settings and change the display settings.

    To change the display settings, follow the steps below:

    1. the right in the empty space on the desktop and select Properties.

    2. click on the settings tab.

    3. click on advanced.

    4. click on the tab on your computer graphics card.

    5. you will need to make changes in the advanced settings under display settings.

    Alternatively, you can perform a system restore to a date when the display settings were normal.

    To restore the operating system to an earlier point in time, follow these steps:

    1. Click Start, type system restore in the search box, and then click System Restore in the list programs.
    If you are prompted for an administrator password or a confirmation, type your password or click on continue.

    2. in the System Restore dialog box, click on choose a different restore point and then click Next.

    3. in the list of restore points, click a restore point created before you started having the problem, and then click Next.

    4. click on finish.

    You can visit the link to the KB Article for reference:
    http://support.Microsoft.com/kb/936212

    Please let us know if it helps.

    Thank you and best regards,
    David

Maybe you are looking for

  • Starting with HP Officejet 6600 and cannot change the page size

    Hello You have just purchased HP Officejet 6600 all-in-in-one and found that there not a duplexer, which is very very annoying! However, if I can just change the paper size, I can live with the disadvantage to the paper.  I have a Word document that

  • HP OfficeJet Pro 8600 Plus: printer apps

    I can't access my applications from the screen of the printer - I get the message unable to connect to the server, check the internet connections.  Internet connections are very good.  I can print emails to the printer and the apps that I have implem

  • Satellite M30x-165 - rundll 32 exe using 99% CPU

    tasks manager told me that rundll 32 exe using 99% of my CPU. (The computer is a M30 X 165) What does that mean? What I have to change that and how do I do this?Thanks for your help.Anurakta

  • screen does not rotate on stream 7

    Hi, screen has stopped rotating 2 hours after purchase. ? installed office and that's the only thing that I did before that happens... any ideas. I ve left swiped and the screen is unlocked. Thank you

  • Network with DSL and wireless setup problem

    I use two number of script and lan proxy... NW its Internet connects only via script... no more connection with lan numbaer, I checked dsl. the amount of the fine... Help, please... also Give me some advice on, dsl, wireless configuraion in switches