msdk: context: add job type to figure out if joining session is necessary
According to the driver's instruction, if there are two or more encoders or decoders in a process, the session should be joined by MFXJoinSession. To achieve this successfully by GstContext, this patch adds job type specified if it's encoder, decoder or vpp. If a msdk element gets to know if joining session is needed by the shared context, it should create another instance of GstContext with joined session, which is not shared. https://bugzilla.gnome.org/show_bug.cgi?id=790752
- sys/msdk/gstmsdkcontext.c 65 additions, 3 deletionssys/msdk/gstmsdkcontext.c
- sys/msdk/gstmsdkcontext.h 14 additions, 1 deletionsys/msdk/gstmsdkcontext.h
- sys/msdk/gstmsdkcontextutil.c 3 additions, 2 deletionssys/msdk/gstmsdkcontextutil.c
- sys/msdk/gstmsdkcontextutil.h 1 addition, 1 deletionsys/msdk/gstmsdkcontextutil.h
- sys/msdk/gstmsdkdec.c 1 addition, 1 deletionsys/msdk/gstmsdkdec.c
- sys/msdk/gstmsdkenc.c 1 addition, 1 deletionsys/msdk/gstmsdkenc.c