Lines Matching refs:type

146 void VideoFormats::setNativeResolution(ResolutionType type, size_t index) {
147 CHECK_LT(type, kNumResolutionTypes);
148 CHECK(GetConfiguration(type, index, NULL, NULL, NULL, NULL));
150 mNativeType = type;
153 setResolutionEnabled(type, index);
157 ResolutionType *type, size_t *index) const {
158 *type = mNativeType;
182 ResolutionType type, size_t index,
186 if (!GetConfiguration(type, index, &width, &height,
205 ResolutionType type, size_t index, bool enabled) {
206 CHECK_LT(type, kNumResolutionTypes);
207 CHECK(GetConfiguration(type, index, NULL, NULL, NULL, NULL));
210 mResolutionEnabled[type] |= (1ul << index);
211 mConfigs[type][index].profile = (1ul << PROFILE_CBP);
212 mConfigs[type][index].level = (1ul << LEVEL_31);
214 mResolutionEnabled[type] &= ~(1ul << index);
215 mConfigs[type][index].profile = 0;
216 mConfigs[type][index].level = 0;
221 ResolutionType type, size_t index,
223 CHECK_LT(type, kNumResolutionTypes);
224 CHECK(GetConfiguration(type, index, NULL, NULL, NULL, NULL));
226 mConfigs[type][index].profile = (1ul << profile);
227 mConfigs[type][index].level = (1ul << level);
231 ResolutionType type, size_t index,
233 CHECK_LT(type, kNumResolutionTypes);
234 CHECK(GetConfiguration(type, index, NULL, NULL, NULL, NULL));
239 if (mConfigs[type][index].profile & (1ul << i)) {
245 if (mConfigs[type][index].level & (1ul << i)) {
251 ALOGE("Profile or level not set for resolution type %d, index %d",
252 type, index);
262 ResolutionType type, size_t index) const {
263 CHECK_LT(type, kNumResolutionTypes);
264 CHECK(GetConfiguration(type, index, NULL, NULL, NULL, NULL));
266 return mResolutionEnabled[type] & (1ul << index);
271 ResolutionType type,
275 CHECK_LT(type, kNumResolutionTypes);
281 const config_t *config = &mResolutionTable[type][index];
510 ALOGV("type %u, index %u, %u x %u %c%u supported",