Home | History | Annotate | Download | only in ui

Lines Matching refs:info

39     PixelFormatInfo info;
40 status_t err = getPixelFormatInfo(format, &info);
41 return (err < 0) ? err : info.bytesPerPixel;
46 PixelFormatInfo info;
47 status_t err = getPixelFormatInfo(format, &info);
48 return (err < 0) ? err : info.bitsPerPixel;
51 status_t getPixelFormatInfo(PixelFormat format, PixelFormatInfo* info)
56 if (info->version != sizeof(PixelFormatInfo))
63 info->bitsPerPixel = 16;
67 info->bitsPerPixel = 12;
69 info->format = format;
70 info->components = COMPONENT_YUV;
71 info->bytesPerPixel = 1;
72 info->h_alpha = 0;
73 info->l_alpha = 0;
74 info->h_red = info->h_green = info->h_blue = 8;
75 info->l_red = info->l_green = info->l_blue = 0;
87 case GGL_##name: info->components = PixelFormatInfo::name; break;
101 info->format = format;
102 info->bytesPerPixel = i->size;
103 info->bitsPerPixel = i->bitsPerPixel;
104 info->h_alpha = i->ah;
105 info->l_alpha = i->al;
106 info->h_red = i->rh;
107 info->l_red = i->rl;
108 info->h_green = i->gh;
109 info->l_green = i->gl;
110 info->h_blue = i->bh;
111 info->l_blue = i->bl;