[mythtv] RFC: Expanded playgroup settings

Kevin Kuphal kuphal at dls.net
Thu Dec 6 19:42:21 UTC 2007


On Dec 6, 2007 12:08 PM, Shane <gnome42 at gmail.com> wrote:

> On Dec 3, 2007 2:41 PM, Kevin Kuphal <kuphal at dls.net> wrote:
> > This is a short patch that I'm working on currently that adds the
> > ability to set the Video Scan method in a Playgroup in order to, for
> > example, force interlacing for stations that broadcast a mix of
> > progressive and interlaced frames which throws off the Auto-detector.
> > I'm not thouroughly familiar with the interlacing setup so I'm
> > throwing this out there for comment.  It works for me, but I'm not
> > sure if it is the proper way of handling.  What I basically did is add
> > a method to set a default video scan type, remove the hard-coded
> > setting of detecting if the default type is set, and then call the
> > function to set the scan type once the player is set up.
> >
> > Like I said, it seems to work but I'd like another set of eyes on it
> > before I commit anything.  This patch doesn't include it but you also
> > just need to add an INT field of "interlacing" to the playgroup table.
>
> Hi Kevin, Good idea! It was next on my list. :)
>
> My only suggestion: Would a tinyint be big enough for the 'interlacing'
> field?
>
> Thoughts on expanded playgroup settings:
>
> I have a patch that does the same thing for the commSkip, commNotify
> etc. However, I encountered a problem when implementing my patch,
> and was thinking that the same problem might effect your patch.
>
> The problem is that zero (0) is treated as a special value in the
> playgroups
> table. Zero means 'use the value from the default playgroup', it's a nice
> feature that allows the user to selectively override some settings while
> using defaults for the others.
>
> The problem is that zero is a legitimate comm skip value (CommSkipOff =
> 0),
> and I see that zero equates to kScan_Detect as well.
>
> I reworked things so that negative values mean 'use the default'. This
> works fine for now but will undoubtedly be a problem later on.
>
> So, I was hoping there might be a more robust scheme to achieve this
> functionality.  Not sure if using NULL as the special value is an option?


Well, I think the simple way of handling it is just to use a +1 where
kScan_Detect = 1 instead of zero and just subtract when converting.  The
code really only uses that in one place so it isn't a big change for my
patch.  I'm probably going to be adding another setting for Audio Sync
because my NBC-HD station needs both a hard set interlacer as well as a
-100ms audio delay.

Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20071206/1c82da89/attachment.htm 


More information about the mythtv-dev mailing list