<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">Den 25.10.2024 21:48, skrev Andrew
      Randrianasulu:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+rFky4CM6+OPQ0cj-A89+NJi9to7xNeU=0vSjUJkH7aWSSiXg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">We branching!
        <div dir="auto"><br>
        </div>
        <div dir="auto">I looked at gpu-screen-recorder</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><a
href="https://git.dec05eba.com/gpu-screen-recorder/tree/src/encoder/video/vaapi.c"
            target="_blank" rel="noreferrer" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://git.dec05eba.com/gpu-screen-recorder/tree/src/encoder/video/vaapi.c</a><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">it sets</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">
          <pre><code>AVHWFramesContext *hw_frame_context = (AVHWFramesContext*)frame_context->data;
    hw_frame_context->width = video_codec_context->width;
    hw_frame_context->height = video_codec_context->height;
    hw_frame_context->sw_format = self->params.color_depth == GSR_COLOR_DEPTH_10_BITS ? AV_PIX_FMT_P010LE : AV_PIX_FMT_NV12;
    hw_frame_context->format = video_codec_context->pix_fmt;
    hw_frame_context->device_ctx = (AVHWDeviceContext*)self->device_ctx->data;</code></pre>
          <pre><code>
</code></pre>
          <pre><code>
</code></pre>
          <pre><code>so may be we need to set </code>AV_PIX_FMT_P010LE and not just P010?</pre>
        </div>
      </div>
    </blockquote>
    <br>
    Sorry, It didn't render more than 8bit yuv420p<br>
    <br>
    <br>
    <br>
  </body>
</html>