Skip to content

Add Profiles in encode'src template dynamically.

We now report a lot of verbose profiles in encode's src caps, such as:

  SRC template: 'src'
    Availability: Always
    Capabilities:
      video/x-h265
          stream-format: { (string)hvc1, (string)byte-stream }
              alignment: au
                profile: { (string)main, (string)main-10, (string)main-444, (string)main-444-10, (string)main-422-10 }

On that platform, it only supports main profile, other profiles are not supported, the result of:

  SRC template: 'src'
    Availability: Always
    Capabilities:
      video/x-h265
          stream-format: { (string)hvc1, (string)byte-stream }
              alignment: au
                profile: main

should be much better.

Just use the same manner of !315 (merged), we can know the supported profiles when display is ready. So, generating profiles string dynamically in caps is possible.

Merge request reports