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