Home | History | Annotate | Download | only in ui

Lines Matching defs:info

26 struct Info {
42 static Info const sPixelFormatInfos[] = {
57 static const Info* gGetPixelFormatTable(size_t* numEntries) {
59 *numEntries = sizeof(sPixelFormatInfos)/sizeof(Info);
80 PixelFormatInfo info;
81 status_t err = getPixelFormatInfo(format, &info);
82 return (err < 0) ? err : info.bytesPerPixel;
87 PixelFormatInfo info;
88 status_t err = getPixelFormatInfo(format, &info);
89 return (err < 0) ? err : info.bitsPerPixel;
92 status_t getPixelFormatInfo(PixelFormat format, PixelFormatInfo* info)
97 if (info->version != sizeof(PixelFormatInfo))
104 info->bitsPerPixel = 16;
108 info->bitsPerPixel = 12;
110 info->format = format;
111 info->components = COMPONENT_YUV;
112 info->bytesPerPixel = 1;
113 info->h_alpha = 0;
114 info->l_alpha = 0;
115 info->h_red = info->h_green = info->h_blue = 8;
116 info->l_red = info->l_green = info->l_blue = 0;
121 const Info *i = gGetPixelFormatTable(&numEntries) + format;
127 info->format = format;
128 info->bytesPerPixel = i->size;
129 info->bitsPerPixel = i->bitsPerPixel;
130 info->h_alpha = i->ah;
131 info->l_alpha = i->al;
132 info->h_red = i->rh;
133 info->l_red = i->rl;
134 info->h_green = i->gh;
135 info->l_green = i->gl;
136 info->h_blue = i->bh;
137 info->l_blue = i->bl;
138 info->components = i->components;