[MPlayer-dev-eng] [PATCH] vo_kva

Diego Biurrun diego at biurrun.de
Sun Mar 1 12:50:23 CET 2009


On Sun, Mar 01, 2009 at 08:19:35PM +0900, KO Myung-Hun wrote:
>
> KO Myung-Hun wrote:
>>
>> Diego Biurrun wrote:
>>   
>>> On Thu, Feb 26, 2009 at 12:00:23AM +0900, KO Myung-Hun wrote:
>>>       
>>>> This patch adds a vo_kva for OS/2 video system.
>>>>
>>>> --- libvo/vo_kva.c	(revision 0)
>>>> +++ libvo/vo_kva.c	(revision 0)
>>>> @@ -0,0 +1,1194 @@
>>>> +            //if (ustflags & (TF_LEFT | TF_RIGHT | TF_TOP | TF_BOTTOM | TF_SETPOINTERPOS))
>>>> +            {
>>>> +            #if 0
>>>> +                pti->rclBoundary.xLeft   = 0;
>>>> +                pti->rclBoundary.yBottom = 0;
>>>> +                pti->rclBoundary.xRight  = vo_screenwidth;
>>>> +                pti->rclBoundary.yTop    = vo_screenheight;
>>>> +            #endif
>>>>           
>>> What is this disabled code good for?  If it's good for nothing, get rid
>>> of it.
>>
>> It is for tracking boundary. If it's set, movie window does not go out  
>> of screen. If possible, I want to preserve it. If needed, I'll add  
>> comments for it.

At least add a comment.  But I disagree that it should be preserved.
If you intend to add functionality based on it, add that hunk along
with the patch that implements the functionality.  Right now it's just
cruft and should be left out.

> I attach the updated patch.
>
> --- libvo/vo_kva.c	(revision 0)
> +++ libvo/vo_kva.c	(revision 0)
> @@ -0,0 +1,1202 @@
> +    switch (m_int.iImageFormat) {
> +        case IMGFMT_YV12 :
> +            size += size / 2;
> +            n = 2;
> +            break;

K&R places the case at the same depth as the switch.

> --- configure	(revision 28767)
> +++ configure	(working copy)
> @@ -5091,6 +5099,30 @@
> 
> +  _vosrc="$_vosrc vo_kva.c"

_vosrc is long gone.

> --- DOCS/man/en/mplayer.1	(revision 28767)
> +++ DOCS/man/en/mplayer.1	(working copy)
> @@ -3573,6 +3585,22 @@
>  .
> +.IPs (no)t23
> +Enable/disable workaround for T23 laptop (default: \-not23).

?

Diego



More information about the MPlayer-dev-eng mailing list