kopia lustrzana https://gitlab.com/sane-project/backends
v4l: Prefer C99 standard type over asm __u32. Re #291
rodzic
9e1acea497
commit
95b4369166
|
@ -72,7 +72,6 @@
|
|||
#include "../include/sane/saneopts.h"
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <asm/types.h> /* XXX glibc */
|
||||
|
||||
#define BACKEND_NAME v4l
|
||||
#include "../include/sane/sanei_backend.h"
|
||||
|
@ -1046,7 +1045,7 @@ sane_start (SANE_Handle handle)
|
|||
/* v4l1 actually returns BGR when we ask for RGB, so convert it */
|
||||
if (s->pict.palette == VIDEO_PALETTE_RGB24)
|
||||
{
|
||||
__u32 loop;
|
||||
uint32_t loop;
|
||||
DBG (3, "sane_start: converting from BGR to RGB\n");
|
||||
for (loop = 0; loop < (s->window.width * s->window.height * 3); loop += 3)
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue