Changeset 4054
- Timestamp:
- 10/12/07 17:45:23 (1 year ago)
- Files:
-
- ivtv/branches/0.10/driver/ivtv-ioctl.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
ivtv/branches/0.10/driver/ivtv-ioctl.c
r3973 r4054 465 465 // set window size 466 466 if (fmt->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) { 467 struct cx2341x_mpeg_params *p = &itv->params; 467 468 int w = fmt->fmt.pix.width; 468 469 int h = fmt->fmt.pix.height; … … 476 477 fmt->fmt.pix.height = h; 477 478 #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 18) 478 if ( itv->params.width != 720 || itv->params.height != (itv->is_50hz ? 576 : 480))479 itv->params.video_temporal_filter = 0;479 if (p->width != 720 || p->height != (itv->is_50hz ? 576 : 480)) 480 p->video_temporal_filter = 0; 480 481 else 481 itv->params.video_temporal_filter = 8;482 p->video_temporal_filter = 8; 482 483 #endif 483 484 484 if (!set_fmt || ( itv->params.width == w && itv->params.height == h))485 if (!set_fmt || (p->width == w && p->height == h)) 485 486 return 0; 486 487 if (atomic_read(&itv->capturing) > 0) 487 488 return -EBUSY; 488 489 489 itv->params.width = w;490 itv->params.height = h;490 p->width = w; 491 p->height = h; 491 492 if (w != 720 || h != (itv->is_50hz ? 576 : 480)) 492 itv->params.video_temporal_filter = 0;493 p->video_temporal_filter = 0; 493 494 else 494 itv->params.video_temporal_filter = 8; 495 p->video_temporal_filter = 8; 496 if (p->video_encoding == V4L2_MPEG_VIDEO_ENCODING_MPEG_1) 497 fmt->fmt.pix.width /= 2; 495 498 itv->video_dec_func(itv, VIDIOC_S_FMT, fmt); 496 499 return ivtv_get_fmt(itv, streamtype, fmt);
