<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/'>
<channel>
  <title>screen</title>
  <lastBuildDate>Wed, 16 Oct 2013 02:02:38 GMT</lastBuildDate>
  <generator>LiveJournal / SAPO Campus Blogs</generator>
<item>
  <guid isPermaLink='true'>http://buffer2screen.blogs.ua.sapo.pt/487.html</guid>
  <pubDate>Wed, 16 Oct 2013 02:02:38 GMT</pubDate>
  <title> The challenge is as follows:</title>
  <author>fxsf</author>  <link>http://buffer2screen.blogs.ua.sapo.pt/487.html</link>
  <description>&lt;p style=&quot;text-align: justify;&quot;&gt;There is a generic system (most likely an embedded one) that has a buffer of images (frames of a video), attached to a screen (resolution of [640 x 480] on both screen and buffer):&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://fotos.ua.sapo.pt/DH17sAwpefMRRoZvTWbK&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://fotos.ua.sapo.pt/DH17sAwpefMRRoZvTWbK/500x250&quot; width=&quot;500&quot; height=&quot;250&quot; border=&quot;0&quot; style=&quot;border-color:black;&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;The buffer is a 2D set of pixels, and the first pixel is the top-left most of the image. Each pixel has &lt;b&gt;16 Bits&lt;/b&gt; and it is stored as follows:&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img src=&quot;http://fotos.ua.sapo.pt/BLiJiGlZQm5cmVqj9DcN/400x249&quot; width=&quot;800&quot; height=&quot;500&quot; border=&quot;0&quot; style=&quot;border-color:black;&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;[&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;&lt;b&gt;Red&lt;/b&gt;&lt;/span&gt;&lt;b&gt; | &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;Green&lt;/span&gt; | &lt;/b&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;&lt;b&gt;Blue&lt;/b&gt;&lt;/span&gt;]&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;00000&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: justify; color: rgb(255, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;text-align: justify; color: rgb(0, 153, 0);&quot;&gt;000000  &lt;/span&gt;&lt;span style=&quot;text-align: justify; color: rgb(0, 0, 255);&quot;&gt;00000&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;&lt;b&gt;Red&lt;/b&gt;&lt;/span&gt;&lt;b&gt; &lt;/b&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;has &lt;b&gt;5 Bits&lt;/b&gt;, &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;b style=&quot;font-size: 12px;&quot;&gt;Green&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt; has &lt;b&gt;6 Bits&lt;/b&gt;, and &lt;/span&gt;&lt;b style=&quot;font-size: 12px; color: rgb(0, 0, 255);&quot;&gt;Blue&lt;/b&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt; has &lt;b&gt;5 Bits&lt;/b&gt;. This&lt;/span&gt; is how a single pixel stores the 3 colors (right part is least significant). The objective is to overlay another image on the buffer (like the subtitles of a movie, or a mouse cursor on top of a background image). This image is a [32 x 32] pixels, and it will be put on a given coordinate (X,Y) of the buffer. A slight drawback is that this smaller image has its pixels stored with &lt;b&gt;32 Bits&lt;/b&gt; as follows, so you will have to have this fact taken into account later:&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img src=&quot;http://fotos.ua.sapo.pt/dzoUIzi4hSFzbuoFGktz/450x400&quot; width=&quot;450&quot; height=&quot;400&quot; border=&quot;0&quot; style=&quot;border-color:black;&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;[&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;&lt;b&gt;Red    &lt;/b&gt;&lt;/span&gt;&lt;b&gt;   |     &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;Green&lt;/span&gt;    |     &lt;/b&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;&lt;b&gt;Blue     &lt;/b&gt;&lt;/span&gt;&lt;b&gt; |     Alpha&lt;/b&gt;]&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;text-align: justify; color: rgb(204, 0, 0);&quot;&gt;00000000    &lt;/span&gt;&lt;span style=&quot;text-align: justify; color: rgb(0, 153, 0);&quot;&gt;00000000     &lt;/span&gt;&lt;span style=&quot;text-align: justify; color: rgb(0, 0, 255);&quot;&gt;00000000    &lt;/span&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;00000000   &lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;E&lt;b&gt;very&lt;/b&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt; channel has &lt;b&gt;8 Bits&lt;/b&gt; this time. This&lt;/span&gt; is how a single pixel stores the 3 colors (right part is the least significant). The Alpha is the opacity of the pixel. Will Alpha be used in this problem? Yes. How? If Alpha is 100%, the pixel of the smaller image will be completely opaque; if it is 0%, the color will be fully transparent (values in between will fade the color accordingly). The solution would be:&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img src=&quot;http://fotos.ua.sapo.pt/1dzLKbyqaBLtOKdAcHDd/450x143&quot; width=&quot;800&quot; height=&quot;250&quot; border=&quot;0&quot; style=&quot;border-color:black;&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;This is a challenge to be accomplished with any programming language and any type of implementation (that is, how you structure it, which data types you choose, totaly up to you as long as you do the task in an efficient way).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Function signature:&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b&gt;overlayImageBuffer&lt;/b&gt; (&lt;b&gt;[IN/OUT] &lt;/b&gt;buffer, &lt;b&gt;[IN]&lt;/b&gt; img2Mix, &lt;b&gt;[IN]&lt;/b&gt;  xCoord, &lt;b&gt;[IN]&lt;/b&gt;  yCoord)&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt; &lt;/p&gt;&lt;h1&gt;Solution: &lt;a href=&quot;http://o6f.rh.sl.pt&quot; title=&quot;Ficheiro http://o6f.rh.sl.pt&quot; style=&quot;font-size: 12px;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;overlayImageInBuffer.cpp&lt;/span&gt;&lt;/a&gt;&lt;/h1&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;I coded my interpretation of the solution in C++. I used 2D buffer arrays of type char (because C does not provide native data types of neither 16 nor 32 Bits). There is a point that, because the [32 x 32] image has pixels of 32 Bits and not just 16 Bits, I had to choose how to fit those 8 Bit [R|G|B] values into &lt;span style=&quot;font-size: 12px;&quot;&gt;[R|G|B]&lt;/span&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;of 5 and 6 Bits. I chose to use the least significant digits, hence making it an implementation choice.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Anyhow, above is the complete code. &lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt; &lt;/p&gt;</description>
</item>
<item>
  <guid isPermaLink='true'>http://jobfindermobile.blogs.ua.sapo.pt/6694.html</guid>
  <pubDate>Wed, 18 Apr 2012 23:45:24 GMT</pubDate>
  <title>#estudo_android</title>
  <author>jose-la-salete</author>  <link>http://jobfindermobile.blogs.ua.sapo.pt/6694.html</link>
  <description>&lt;p style=&quot;text-align: justify; &quot;&gt;Após conversarmos com o nosso orientador, chegamos à conclusão que o nosso projecto carece de alguma fundamentação e consolidação na escolha do leque de dispositivos móveis mais indicados para os quais estamos a trabalhar.&lt;/p&gt; &lt;p style=&quot;text-align: justify; &quot;&gt;Cedo decidimos que iríamos trabalhar para dispositivos Android que possuam versões entre 2.2 e 2.3.7. Tal escolha é justificada pelo simples facto de que (segundo estatísticas presentes no website Android Developers) este intervalo representa 86,8% dos utilizadores de Android, por isso logo à partida, estaremos a trabalhar para um leque de mercado extremamente abrangente, havendo assim mais possibilidades de adesão à aplicação.&lt;/p&gt;&lt;p style=&quot;text-align: center; &quot;&gt;&lt;a href=&quot;http://fotos.ua.sapo.pt/TuaFLwLLq1GoivLGF6dr&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://fotos.ua.sapo.pt/TuaFLwLLq1GoivLGF6dr/s320x240&quot; border=&quot;0&quot; style=&quot;border-color:black;&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; &quot;&gt;Figura 1. Tabela que mostra a distribuição dos utilizadores Android.&lt;/p&gt;&lt;p style=&quot;text-align: center; &quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: center; &quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: center; &quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: left; &quot;&gt; &lt;/p&gt; &lt;p style=&quot;text-align: justify; &quot;&gt;No entanto não é suficiente apenas nos centrarmos na versão do sistema operativo do dispositivo. Outra característica fundamental e que pode comprometer o desempenho da aplicação é a resolução do dispositivo para a qual estamos a desenvolver a WIP. Uma vez que um dos elementos possui um dispositivo Android recente (Samsung Galaxy S2), pareceu-nos sensato desenvolver para este dispositivo, mas tomar esta decisão sem um pouco mais de fundamentos poderá trazer algumas consequências. Assim, decidimos investigar um pouco mais sobre esta questão.&lt;/p&gt;&lt;p style=&quot;text-align: center; &quot;&gt;&lt;a href=&quot;http://fotos.ua.sapo.pt/pVIEZyPdrGCP4dYa69oZ&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://fotos.ua.sapo.pt/pVIEZyPdrGCP4dYa69oZ/s320x240&quot; border=&quot;0&quot; style=&quot;border-color:black;&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; &quot;&gt;Figura 2. Tabela que mostra as diferentes categorias dos dispositivos Android relativamente aos seus ecrãs.&lt;/p&gt;&lt;p style=&quot;text-align: center; &quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: center; &quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: center; &quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: center; &quot;&gt; &lt;/p&gt; &lt;p style=&quot;text-align: justify; &quot;&gt;O Samsung Galaxy S2 tem um ecrã de alta densidade (240 HDPI), com uma resolução de 480x800 DP&amp;rsquo;s. Tal como é possível reter, este dispositivo é colocado no grupo dos HDPI, e dos quatro grupos existentes (LDPI, MDPI, HGDPI e XHDPI), os HDPI são os que detêm a maior percentagem de utilizadores, com cerca de 65%.&lt;/p&gt;&lt;p style=&quot;text-align: center; &quot;&gt;&lt;a href=&quot;http://fotos.ua.sapo.pt/ZTZRlMfZu7oVK9Vts0JZ&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://fotos.ua.sapo.pt/ZTZRlMfZu7oVK9Vts0JZ/s320x240&quot; border=&quot;0&quot; style=&quot;border-color:black;&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; &quot;&gt;Figura 3. Gráfico representativo do número de utilizadores Android de acordo com os ecrãs dos seus dispositivos.&lt;/p&gt;&lt;p style=&quot;text-align: center; &quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: center; &quot;&gt; &lt;/p&gt;&lt;p style=&quot;text-align: center; &quot;&gt; &lt;/p&gt; &lt;p style=&quot;text-align: justify; &quot;&gt;Podemos concluir então que esta é uma escolha feliz, pois desta forma estamos a trabalhar para o grupo de dispositivos que tem o maior número de utilizadores Android, potenciando assim o impacto da nossa aplicação e alargando o seu raio de incidência.&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;Referências: &lt;a href=&quot;http://developer.android.com/resources/dashboard/platform-versions.html&quot;&gt;http://developer.android.com/resources/d&lt;wbr /&gt;ashboard/platform-versions.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;</description>
</item>
<item>
  <guid isPermaLink='true'>http://mobiduz.blogs.ua.sapo.pt/546.html</guid>
  <pubDate>Wed, 19 Oct 2011 13:08:57 GMT</pubDate>
  <title>Onde está o Wally?</title>
  <author>henriquemacedo</author>  <link>http://mobiduz.blogs.ua.sapo.pt/546.html</link>
  <description>&lt;p style=&quot;text-align: left; &quot;&gt; &lt;a target=&quot;_blank&quot; href=&quot;http://fotos.ua.sapo.pt/ya6TSWtGqZwzcpqMjCsV&quot;&gt;&lt;img border=&quot;0&quot; style=&quot;border-color:black;&quot; alt=&quot;&quot; src=&quot;http://fotos.ua.sapo.pt/ya6TSWtGqZwzcpqMjCsV/s320x240&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description>
</item>
<item>
  <guid isPermaLink='true'>http://ymt.blogs.ua.sapo.pt/5091.html</guid>
  <pubDate>Fri, 07 May 2010 23:07:02 GMT</pubDate>
  <title>Estrutura da aplicação</title>
  <author>renato-costa</author>  <link>http://ymt.blogs.ua.sapo.pt/5091.html</link>
  <description>&lt;p&gt;Boa noite.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Conseguimos ter a estrutura de todos os ecrãs principais devidamente adaptada ao ecrã do simulador, como mostramos nos screens mais abaixo. Esse objectivo foi atingido e o grupo está agora a implementar a funcionalidade propriamente dita da aplicação, nomeadamente os conteúdos audiovisuais (após selecção de um determinado mood), através de streaming a partir do servidor, e também a melhorar a navegação através do focus do simulador.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;img border=&quot;0&quot; style=&quot;border-color:black;&quot; alt=&quot;&quot; src=&quot;http://renatomscosta.no.sapo.pt/entrega5ymt/screenshots_sim/screens_ymt.jpg&quot; /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;#39;Trebuchet MS&amp;#39;, Arial, Helvetica, sans-serif; font-size: 13px; color: rgb(102, 102, 102); &quot;&gt;Este post é em nome de todos os elementos do grupo&lt;br /&gt;&lt;br /&gt;João Elvas | Martim Santos | Renato Costa | Ricardo Carvalho | Tiago Figueiredo&lt;/span&gt;&lt;/p&gt;</description>
</item>
</channel>
</rss>
