• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/ffmpeg-0.5.1/vhook/

Lines Matching refs:ci

111     ContextInfo *ci;
112 ci = (ContextInfo *) ctx;
115 sws_freeContext(ci->toRGB_convert_ctx);
122 ContextInfo *ci;
126 ci = (ContextInfo *) *ctxp;
130 ci->dir = av_strdup("/tmp");
131 ci->threshold = 100;
132 ci->file_limit = 100;
133 ci->min_interval = 1000000;
134 ci->inset = 10; /* Percent */
139 dorange(optarg, &ci->dark.h, &ci->bright.h, 360);
142 dorange(optarg, &ci->dark.s, &ci->bright.s, 255);
145 dorange(optarg, &ci->dark.v, &ci->bright.v, 255);
148 ci->zapping = 1;
151 ci->file_limit = atoi(optarg);
154 ci->min_interval = 1000000 * atof(optarg);
157 ci->threshold = atof(optarg) * 1000;
158 if (ci->threshold > 1000 || ci->threshold < 0) {
164 ci->min_width = atoi(optarg);
167 ci->debug++;
170 ci->dir = av_strdup(optarg);
180 ci->dark.h,
181 ci->dark.s,
182 ci->dark.v,
183 ci->bright.h,
184 ci->bright.s,
185 ci->bright.v);
186 av_log(NULL, AV_LOG_INFO, " Threshold is %d%% pixels\n", ci->threshold / 10);
233 ContextInfo *ci = (ContextInfo *) ctx;
238 av_log(NULL, AV_LOG_DEBUG, "pix_fmt = %d, width = %d, pts = %lld, ci->next_pts = %lld\n",
239 pix_fmt, width, pts, ci->next_pts);
242 if (pts < ci->next_pts)
245 if (width < ci->min_width)
248 ci->next_pts = pts + 1000000;
259 h_end = 2 * ((ci->inset * height) / 200);
262 w_end = (ci->inset * width2) / 100;
284 if (ci->debug > 1)
289 if (hsv.h >= ci->dark.h && hsv.h <= ci->bright.h &&
290 hsv.s >= ci->dark.s && hsv.s <= ci->bright.s &&
291 hsv.v >= ci->dark.v && hsv.v <= ci->bright.v) {
293 } else if (ci->zapping) {
309 if (ci->debug)
312 if (inrange * 1000 / pixcnt >= ci->threshold) {
326 d = opendir(ci->dir);
341 if (foundfile < ci->file_limit) {
351 ci->toRGB_convert_ctx = sws_getCachedContext(ci->toRGB_convert_ctx,
355 if (ci->toRGB_convert_ctx == NULL) {
362 sws_scale(ci->toRGB_convert_ctx,
367 snprintf(fname, sizeof(fname), "%s/fishimg%ld_%"PRId64".ppm", ci->dir, (long)(av_gettime() / 1000000), pts);
377 ci->next_pts = pts + ci->min_interval;