<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [HSW/BYT/BDW sprite planes] Color error while playing video by 'mplayer -vo xv:adapter=1'"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=72220#c32">Comment # 32</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [HSW/BYT/BDW sprite planes] Color error while playing video by 'mplayer -vo xv:adapter=1'"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=72220">bug 72220</a>
              from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
        <pre>mplayer asks what the best size is for a particular video frame - we obviously
report no scaling and so expect mplayer to fill the entire output. Maybe this

static int sna_video_sprite_best_size(ClientPtr client,
                                      XvPortPtr port,
                                      CARD8 motion,
                                      CARD16 vid_w, CARD16 vid_h,
                                      CARD16 drw_w, CARD16 drw_h,
                                      unsigned int *p_w,
                                      unsigned int *p_h)
{
        struct sna_video *video = port->devPriv.ptr;
        struct sna *sna = video->sna;

        if (sna->kgem.gen >= 075) {
                *p_w = vid_w;
                *p_h = vid_h;
        } else {
                *p_w = drw_w;
                *p_h = drw_h;
        }

        return Success;
}

is garbage?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>