Skip to content
  • Víctor Manuel Jáquez Leal's avatar
    codecs: vp9decoder: Pass parser as new_sequence() parameter. · 5e3c7f20
    Víctor Manuel Jáquez Leal authored and GStreamer Marge Bot's avatar GStreamer Marge Bot committed
    In order to know the chroma format, besides profile, subsampling_x and
    subsampling_y are needed (Spec 7.2.2 Color config semantics). These values are
    in GstVp9Parser but not in  GstVp9Framehdr.
    
    Also, bit_depth is available in parser but not frame header. Evenmore, those
    values are copied to picture structure later.
    
    In case of VA-API, to configure the pipeline, it is require to know the chroma
    format and depth.
    
    It is possible to know chroma and depth through caps coming from vp9parser, but
    it requires string parsing. It would be less error prone to get these values
    through the parser structure at new_sequence() virtual method.
    
    Part-of: <!1700>
    5e3c7f20