1. 10 Apr, 2019 1 commit
  2. 12 Feb, 2019 1 commit
  3. 09 Jan, 2019 2 commits
  4. 08 Jan, 2019 1 commit
  5. 12 Dec, 2018 1 commit
  6. 24 Jun, 2018 1 commit
  7. 05 Apr, 2018 1 commit
  8. 30 Mar, 2018 1 commit
  9. 08 Mar, 2018 2 commits
    • Hyunjun Ko's avatar
      msdk: manage child sessions on parent GstMsdkContext · c9faf0d6
      Hyunjun Ko authored
      Sometimes parent context is released before its children get released.
      In this case MFXClose of parent session fails.
      To make sure that child sessions are closed before closing a parent
      Parent context needs to manage child sessions and close them first when
      it's released.
    • Hyunjun Ko's avatar
      msdk: manage MSDK surfaces seperately · b08b8dda
      Hyunjun Ko authored
      Currently a gst buffer has one mfxFrameSurface when it's allocated and
      can't be changed.
      This is based on that the life of gst buffer and mfxFrameSurface would
      be same.
      But it's not true. Sometimes even if a gst buffer of a frame is finished
      on downstream,
      mfxFramesurface coupled with the gst buffer is still locked, which means
      it's still being used in the driver.
      So this patch does this.
      Every time a gst buffer is acquired from the pool, it confirms if the
      surface coupled with the buffer is unlocked.
      If not, replace it with new unlocked one.
      In this way, user(decoder or encoder) doesn't need to manage gst buffers
      including locked surface.
      To do that, this patch includes the following:
      1. GstMsdkContext
      - Manages MSDK surfaces available, used, locked respectively as the
        1\ surfaces_avail : surfaces which are free and unused anywhere
        2\ surfaces_used : surfaces coupled with a gst buffer and being used
        3\ surfaces_locked : surfaces still locked even after the gst buffer
      is released.
      - Provide an api to get MSDK surface available.
      - Provide an api to release MSDK surface.
      2. GstMsdkVideoMemory
      - Gets a surface available when it's allocated.
      - Provide an api to get an available surface with new unlocked one.
      - Provide an api to release surface in the msdk video memory.
      3. GstMsdkBufferPool
      - In acquire_buffer, every time a gst buffer is acquired, get new
      available surface from the list.
      - In release_buffer, it confirms if the buffer's surface is unlocked or
        - If unlocked, it is put to the available list.
        - If still locked, it is put to the locked list.
      This also fixes bug #793525.
  10. 13 Feb, 2018 5 commits