Return-path: Received: from proofpoint-cluster.metrocast.net ([65.175.128.136]:55838 "EHLO proofpoint-cluster.metrocast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751124Ab1GETCf (ORCPT ); Tue, 5 Jul 2011 15:02:35 -0400 References: <1309351877-32444-1-git-send-email-t.stanislaws@samsung.com> <201107050926.38639.hverkuil@xs4all.nl> <4E12FEA3.6010500@redhat.com> <201107051520.17361.hverkuil@xs4all.nl> In-Reply-To: <201107051520.17361.hverkuil@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [RFC] DV timings spec fixes at V4L2 API - was: [PATCH 1/8] v4l: add macro for 1080p59_54 preset From: Andy Walls Date: Tue, 05 Jul 2011 15:02:36 -0400 To: Hans Verkuil , Mauro Carvalho Chehab CC: Tomasz Stanislawski , linux-media@vger.kernel.org, m.szyprowski@samsung.com, kyungmin.park@samsung.com, laurent.pinchart@ideasonboard.com Message-ID: List-ID: Sender: Hans Verkuil wrote: >I can work on the proposal this week for that. The only reason the fps >hasn't been added >yet is that I never had the time to do the research on how to represent >the fps reliably >for all CEA/VESA formats. Hmm, pixelclock / total_framesize should >always work, of course. > >We can add a flags field as well (for interlaced vs progressive and >perhaps others such as >normal vs reduced blanking). > >That leaves the problem with GTF/CVT. I'll get back to that tomorrow. I >have ideas, but >I need to discuss it first. > >Regards, > > Hans >-- >To unsubscribe from this list: send the line "unsubscribe linux-media" >in >the body of a message to majordomo@vger.kernel.org >More majordomo info at http://vger.kernel.org/majordomo-info.html For fps you could use horizontal_line_freq/lines_per_frame. However, all of the non-integer fps numbers I have seen in this email chain all seem to be multiples of 29.97002997 Hz. So maybe you could just use the closest integer rate with a flag labeled "ntsc_bw_timing_hack" to indicate the fractional rates. :) That 29.97 Hz number comes from the NTSC decision in 1953(!) to change the horizontal line freq to 4.5 MHz/286. Note that (4.5 MHz/286)/525 = 30 * (1000/1001) = 29.97002997 Hz It is interesting to see one of the most ingenious analog hacks in TV history (to achieve color and B&W backward compatabilty while staying in the 10% tolerance of the old B&W receivers) being codified in digital standards over 50 years later. It boggles the mind... Regards, Andy