iPhoneã§ã®ã¤ã³ã©ã¤ã³ã¢ã»ã³ãã©ã®ä½¿ãæ¹ãç°¡åã«èª¬æãã¦ãã¾ãããæå¾ã¨ãªã第ï¼åã§ã¯å®ç¨çãªãµã³ãã«ã¨ãã¦ãç»åã®ã°ã¬ã¼ã¹ã±ã¼ã«åãã®è§£èª¬ããã¾ãã ãµã³ãã«ã®ã¤ã³ã©ã¤ã³ã¢ã»ã³ãã©ã®é¨åã¯ãã®æ§ã«ãªãã¾ãã static __inline__ void asmGrayscale(unsigned char *bitmap, int bitmapSize){ int div3 = 21845; // 16:16ã®åºå®å°æ°ã§ã® 1/3 ã®å¤ __asm__ volatile ( "1: \n\t" // ã¡ã¢ãªãããã¼ã "ldrb r0, [%[src_bitmap]], #1 \n\t" // r0 = Rå¤ "ldrb r1, [%[src_bitmap]], #1 \n\t" // r1 = Gå¤ "ldrb r2, [%[src_bitmap]], #2 \n\t" // r2
{{#tags}}- {{label}}
{{/tags}}