Lines Matching refs:nframes

1021   uint32_t nframes;
1030 nframes = 0;
1032 while (format_info->frames[nframes].width != 0)
1034 ++nframes;
1037 if (nframes >= FRAME_NUM_MAX || nframes == 0)
1039 PRINT_ERR("%s %d %u \n", __FUNCTION__, __LINE__, nframes);
1047 format_info->frames, (sizeof(struct fuvc_frame_info) * nframes));
1059 format_info->frames, (sizeof(struct fuvc_frame_info) * nframes));
1071 format_info->frames, (sizeof(struct fuvc_frame_info) * nframes));
1088 uint8_t nframes = 0;
1091 while (pformat->frames[nframes].height != 0)
1093 switch (pformat->frames[nframes].height)
1098 g_fuvc_frame_yuv_144p.bFrameIndex = nframes + 1;
1104 g_fuvc_frame_h264_144p.bFrameIndex = nframes + 1;
1110 g_fuvc_frame_mjpg_144p.bFrameIndex = nframes + 1;
1118 g_fuvc_frame_yuv_240p.bFrameIndex = nframes + 1;
1124 g_fuvc_frame_h264_240p.bFrameIndex = nframes + 1;
1130 g_fuvc_frame_mjpg_240p.bFrameIndex = nframes + 1;
1138 g_fuvc_frame_yuv_288p.bFrameIndex = nframes + 1;
1144 g_fuvc_frame_h264_288p.bFrameIndex = nframes + 1;
1150 g_fuvc_frame_mjpg_288p.bFrameIndex = nframes + 1;
1158 g_fuvc_frame_yuv_480p.bFrameIndex = nframes + 1;
1164 g_fuvc_frame_h264_480p.bFrameIndex = nframes + 1;
1170 g_fuvc_frame_mjpg_480p.bFrameIndex = nframes + 1;
1178 g_fuvc_frame_yuv_720p.bFrameIndex = nframes + 1;
1184 g_fuvc_frame_h264_720p.bFrameIndex = nframes + 1;
1190 g_fuvc_frame_mjpg_720p.bFrameIndex = nframes + 1;
1198 g_fuvc_frame_yuv_1080p.bFrameIndex = nframes + 1;
1204 g_fuvc_frame_h264_1080p.bFrameIndex = nframes + 1;
1210 g_fuvc_frame_mjpg_1080p.bFrameIndex = nframes + 1;
1219 nframes++;
1242 uint8_t nframes = 0;
1253 while (pformat->frames[nframes].width != 0)
1255 ++nframes;
1257 g_fuvc_format_yuv.bNumFrameDescriptors = nframes;
1267 nframes = 0;
1269 while (pformat->frames[nframes].width != 0)
1271 ++nframes;
1273 g_fuvc_format_h264.bNumFrameDescriptors = nframes;
1282 nframes = 0;
1284 while (pformat->frames[nframes].width != 0)
1286 ++nframes;
1288 g_fuvc_format_mjpg.bNumFrameDescriptors = nframes;
1485 uint8_t iformat, iframe, nframes;
1520 nframes = 0;
1522 while (pformat->frames[nframes].width != 0)
1524 ++nframes;
1527 iframe = CLAMP((uint32_t)com.bFrameIndex, 1U, (uint32_t)nframes);
1776 uint32_t nframes;
1790 nframes = 0;
1792 while (pformat->frames[nframes].width != 0)
1794 ++nframes;
1799 iframe = nframes + iframe;
1802 if (iframe < 0 || iframe >= (int)nframes)