Skip to content
Snippets Groups Projects

va: caps: Make the template raw video caps classified by features.

Merged He Junyan requested to merge He_Junyan/gst-plugins-bad:together_caps_by_feature into master
All threads resolved!

The current output of raw video caps is not good. When we have multi profiles and each profile support different formats, the output of gst-inspect may like:

 SRC template: 'src'
 Availability: Always
 Capabilities:
   video/x-raw(memory:VAMemory)
         width: [ 1, 16384 ]
         height: [ 1, 16384 ]
         format: NV12
   video/x-raw
         width: [ 1, 16384 ]
         height: [ 1, 16384 ]
         format: NV12
   video/x-raw(memory:VAMemory)
         width: [ 1, 16384 ]
         height: [ 1, 16384 ]
         format: P010_10LE
   video/x-raw
         width: [ 1, 16384 ]
         height: [ 1, 16384 ]
         format: P010_10LE
   video/x-raw(memory:VAMemory)
         width: [ 1, 16384 ]
         height: [ 1, 16384 ]
         format: P012_LE
   video/x-raw
         width: [ 1, 16384 ]
         height: [ 1, 16384 ]
         format: P012_LE

The gst_caps_simplify does not classify the caps by same features, but just leave them interweaved. We need to handle them manually here, the result should be:

  SRC template: 'src'
  Availability: Always
  Capabilities:
    video/x-raw
          width: [ 1, 16384 ]
          height: [ 1, 16384 ]
          format: { (string)P010_10LE, (string)P012_LE, (string)NV12 }
    video/x-raw(memory:VAMemory)
          width: [ 1, 16384 ]
          height: [ 1, 16384 ]
          format: { (string)P010_10LE, (string)P012_LE, (string)NV12 }
Edited by Víctor Manuel Jáquez Leal

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • He Junyan added 1 commit

    added 1 commit

    • a421287c - va: caps: Make the template raw video caps classified by features.

    Compare with previous version

  • He Junyan resolved all threads

    resolved all threads

  • added 13 commits

    • a421287c...f20b3b81 - 12 commits from branch gstreamer:master
    • e44f9180 - va: caps: Make the template raw video caps classified by features.

    Compare with previous version

  • added 1 commit

    • 2505ab17 - va: caps: Make the template raw video caps classified by features.

    Compare with previous version

  • I couldn't merge this branch: CI failed!

  • He Junyan resolved all threads

    resolved all threads

  • changed milestone to %1.19.2

  • Please register or sign in to reply
    Loading