Commit 2cfbd711 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

thumbnailer: cosmetics

parent 2e2f3330
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "log.h" #include "log.h"
#define THUMBNAIL_POSITION 0.5 #define THUMBNAIL_POSITION 0.5
#define PIXEL_SIZE 4 #define PIXEL_SIZE 4 /* RGBA */
typedef struct typedef struct
{ {
...@@ -62,13 +62,11 @@ static void thumbnailer_unlock(void *opaque, void *picture, void *const *p_pixel ...@@ -62,13 +62,11 @@ static void thumbnailer_unlock(void *opaque, void *picture, void *const *p_pixel
return; return;
} }
/* Else we have received our first thumbnail /* Else we have received our first thumbnail and we can exit. */
and we can exit the thumbnailer. */ const char *p_dataSrc = p_sys->p_frameData + p_sys->i_thumbnailOffset;
unsigned i;
char *p_dataSrc = p_sys->p_frameData + p_sys->i_thumbnailOffset;
char *p_dataDest = p_sys->p_thumbnail; char *p_dataDest = p_sys->p_thumbnail;
/* Copy the thumbnail. */ /* Copy the thumbnail. */
unsigned i;
for (i = 0; i < p_sys->i_nbLines; ++i) for (i = 0; i < p_sys->i_nbLines; ++i)
{ {
memcpy(p_dataDest, p_dataSrc, p_sys->i_lineSize); memcpy(p_dataDest, p_dataSrc, p_sys->i_lineSize);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment