Lines Matching full: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))
66 info->bitsPerPixel = 16;
75 info->bitsPerPixel = 12;
77 info->format = format;
78 info->components = COMPONENT_YUV;
79 info->bytesPerPixel = 1;
80 info->h_alpha = 0;
81 info->l_alpha = 0;
82 info->h_red = info->h_green = info->h_blue = 8;
83 info->l_red = info->l_green = info->l_blue = 0;
95 case GGL_##name: info->components = PixelFormatInfo::name; break;
109 info->format = format;
110 info->bytesPerPixel = i->size;
111 info->bitsPerPixel = i->bitsPerPixel;
112 info->h_alpha = i->ah;
113 info->l_alpha = i->al;
114 info->h_red = i->rh;
115 info->l_red = i->rl;
116 info->h_green = i->gh;
117 info->l_green = i->gl;
118 info->h_blue = i->bh;
119 info->l_blue = i->bl;