Lines Matching refs:cap

227                               const CapPixelformat *cap,  in encodePixelformatCap()  argument
235 if ( ( NULL == buffer ) || ( NULL == cap ) ) { in encodePixelformatCap()
241 if ( format == cap[i].pixelformat ) { in encodePixelformatCap()
242 strncat(buffer, cap[i].param, bufferSize - 1); in encodePixelformatCap()
254 const CapFramerate *cap, in encodeFramerateCap() argument
265 if ( ( NULL == buffer ) || ( NULL == cap ) ) { in encodeFramerateCap()
271 if ( (framerateMax >= cap[i].num) && (framerateMin <= cap[i].num) ) { in encodeFramerateCap()
272 strncat(buffer, cap[i].param, bufferSize - 1); in encodeFramerateCap()
275 if ( cap[i].num == framerateMin ) { in encodeFramerateCap()
279 if ( cap[i].num == framerateMax ) { in encodeFramerateCap()
306 const CapU32Pair *cap, in encodeVFramerateCap() argument
317 if ( (NULL == buffer) || (NULL == cap) ) { in encodeVFramerateCap()
336 if ((maxVFR >= cap[i].num1) && (minVFR <= cap[i].num2)) { in encodeVFramerateCap()
340 strncat(buffer, cap[i].param, bufferSize - 1); in encodeVFramerateCap()
343 if (cap[i].num1 != cap[i].num2) { in encodeVFramerateCap()
360 cap[default_index].num2 * CameraHal::VFR_SCALE, in encodeVFramerateCap()
361 cap[default_index].num1 * CameraHal::VFR_SCALE); in encodeVFramerateCap()
373 const CapZoom *cap, in encodeZoomCap() argument
382 if ( (NULL == buffer) || (NULL == cap) ) { in encodeZoomCap()
389 if ( cap[i].num <= maxZoom ) { in encodeZoomCap()
390 strncat(buffer, cap[i].param, bufferSize - 1); in encodeZoomCap()
403 const CapISO *cap, in encodeISOCap() argument
411 if ( (NULL == buffer) || (NULL == cap) ) { in encodeISOCap()
417 if ( cap[i].num <= maxISO) { in encodeISOCap()
418 strncat(buffer, cap[i].param, bufferSize - 1); in encodeISOCap()
430 const CapResolution *cap, in encodeSizeCap() argument
438 if ( (NULL == buffer) || (NULL == cap) ) { in encodeSizeCap()
444 if ( (cap[i].width <= res.nWidthMax) && in encodeSizeCap()
445 (cap[i].height <= res.nHeightMax) && in encodeSizeCap()
446 (cap[i].width >= res.nWidthMin) && in encodeSizeCap()
447 (cap[i].height >= res.nHeightMin) ) { in encodeSizeCap()
448 strncat(buffer, cap[i].param, bufferSize -1); in encodeSizeCap()