All of lore.kernel.org
 help / color / mirror / Atom feed
* How to implement a EGL or DRM display in VA-API driver
@ 2016-10-24  7:59 Randy Li
  2016-10-27 15:03 ` Xiang, Haihao
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Li @ 2016-10-24  7:59 UTC (permalink / raw)
  To: libva-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
  Cc: gwenole.beauchesne-ral2JQCrhuEAvxtiuMwx3w,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	victorx.jaquez-ral2JQCrhuEAvxtiuMwx3w, eddie.cai,
	林金发,
	herman.chen-TNX95d0MmH7DzftRWevZcw,
	vjaquez-wEGTBA9jqPzQT0dZR+AlfA

Hello:
   I am going to implement a EGL and DRM display for Rockchip VA-API 
driver. We do have a EGL implementation in Rockchip VA-API driver, but 
it is implemented in the standard way, we did that as a X11 display.
   I didn't see the usage of struct VADriverVTableEGL in gstreamer, and 
I have no idea about where should I implement something functions like 
eglExportDRMImageMESA().
   The DRM seems more complex, the reason I want to use the DRM is that, 
GPU would not work with the 4K video rendering, so the DRM means that 
directly output the video into video controller in our platform. But 
still have no idea what kind of thing I should implement in the VA-API 
driver. It seems that the VA-API base library would open a DRM instance 
for the driver, but leaving those configure for connector, encoder, 
planes to VA-API driver?
   Could you guys give me same sample code or example of those kind of 
display in VA-API or the documents would help(I would not image there is 
a VA-API documents)

-- 
Randy Li
The third produce department

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: How to implement a EGL or DRM display in VA-API driver
  2016-10-24  7:59 How to implement a EGL or DRM display in VA-API driver Randy Li
@ 2016-10-27 15:03 ` Xiang, Haihao
  2016-10-28  2:05   ` Randy Li
  0 siblings, 1 reply; 3+ messages in thread
From: Xiang, Haihao @ 2016-10-27 15:03 UTC (permalink / raw)
  To: Randy Li, libva
  Cc: gwenole.beauchesne, dri-devel, Jaquez, VictorX, linux-rockchip,
	eddie.cai, ???,
	herman.chen, vjaquez

>-----Original Message-----
>From: dri-devel [mailto:dri-devel-bounces@lists.freedesktop.org] On Behalf
>Of Randy Li
>Sent: Monday, October 24, 2016 3:59 PM
>To: libva@lists.freedesktop.org
>Cc: gwenole.beauchesne@intel.com; dri-devel@lists.freedesktop.org; linux-
>rockchip@lists.infradead.org; Jaquez, VictorX <victorx.jaquez@intel.com>;
>eddie.cai <eddie.cai@rock-chips.com>; 林金发 <alpha.lin@rock-chips.com>;
>herman.chen@rock-chips.com; vjaquez@igalia.com
>Subject: How to implement a EGL or DRM display in VA-API driver
>
>Hello:
>   I am going to implement a EGL and DRM display for Rockchip VA-API driver.
>We do have a EGL implementation in Rockchip VA-API driver, but it is
>implemented in the standard way, we did that as a X11 display.
>   I didn't see the usage of struct VADriverVTableEGL in gstreamer, and I have
>no idea about where should I implement something functions like
>eglExportDRMImageMESA().

VADriverVTableEGL is deprecated in libva, we has a more efficient way to use vaapi and egl.
You can refer to the examples in libyami-utils (https://github.com/01org/libyami-utils.git) for 
how to use vaapi and egl.

>   The DRM seems more complex, the reason I want to use the DRM is that,
>GPU would not work with the 4K video rendering, so the DRM means that
>directly output the video into video controller in our platform. But still have no
>idea what kind of thing I should implement in the VA-API driver. It seems that
>the VA-API base library would open a DRM instance for the driver, but leaving
>those configure for connector, encoder, planes to VA-API driver?

configure for connector, encoder, planes aren't a part of va-api driver.  You should check libdrm and drm/i915.
You can refer to the test case of modetest in libdrm (git.freedesktop.org/git/mesa/drm)


>   Could you guys give me same sample code or example of those kind of
>display in VA-API or the documents would help(I would not image there is a
>VA-API documents)
>
>--
>Randy Li
>The third produce department
>
>_______________________________________________
>dri-devel mailing list
>dri-devel@lists.freedesktop.org
>https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to implement a EGL or DRM display in VA-API driver
  2016-10-27 15:03 ` Xiang, Haihao
@ 2016-10-28  2:05   ` Randy Li
  0 siblings, 0 replies; 3+ messages in thread
From: Randy Li @ 2016-10-28  2:05 UTC (permalink / raw)
  To: Xiang, Haihao, libva
  Cc: gwenole.beauchesne, dri-devel, Jaquez, VictorX, linux-rockchip,
	eddie.cai, ???,
	herman.chen, vjaquez



On 10/27/2016 11:03 PM, Xiang, Haihao wrote:
>> -----Original Message-----
>> From: dri-devel [mailto:dri-devel-bounces@lists.freedesktop.org] On Behalf
>> Of Randy Li
>> Sent: Monday, October 24, 2016 3:59 PM
>> To: libva@lists.freedesktop.org
>> Cc: gwenole.beauchesne@intel.com; dri-devel@lists.freedesktop.org; linux-
>> rockchip@lists.infradead.org; Jaquez, VictorX <victorx.jaquez@intel.com>;
>> eddie.cai <eddie.cai@rock-chips.com>; 林金发 <alpha.lin@rock-chips.com>;
>> herman.chen@rock-chips.com; vjaquez@igalia.com
>> Subject: How to implement a EGL or DRM display in VA-API driver
>>
>> Hello:
>>   I am going to implement a EGL and DRM display for Rockchip VA-API driver.
>> We do have a EGL implementation in Rockchip VA-API driver, but it is
>> implemented in the standard way, we did that as a X11 display.
>>   I didn't see the usage of struct VADriverVTableEGL in gstreamer, and I have
>> no idea about where should I implement something functions like
>> eglExportDRMImageMESA().
>
> VADriverVTableEGL is deprecated in libva, we has a more efficient way to use vaapi and egl.
> You can refer to the examples in libyami-utils (https://github.com/01org/libyami-utils.git) for
> how to use vaapi and egl.
I see, thank you.
>
>>   The DRM seems more complex, the reason I want to use the DRM is that,
>> GPU would not work with the 4K video rendering, so the DRM means that
>> directly output the video into video controller in our platform. But still have no
>> idea what kind of thing I should implement in the VA-API driver. It seems that
>> the VA-API base library would open a DRM instance for the driver, but leaving
>> those configure for connector, encoder, planes to VA-API driver?
About the DRM, I have implemented a version which pretends a X output, I 
would like to know a better way.
>
> configure for connector, encoder, planes aren't a part of va-api driver.  You should check libdrm and drm/i915.
> You can refer to the test case of modetest in libdrm (git.freedesktop.org/git/mesa/drm)
>
>
>>   Could you guys give me same sample code or example of those kind of
>> display in VA-API or the documents would help(I would not image there is a
>> VA-API documents)
>>
>> --
>> Randy Li
>> The third produce department
>>
>> _______________________________________________
>> dri-devel mailing list
>> dri-devel@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/dri-devel
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
>

-- 
Randy Li
The third produce department
===========================================================================
This email message, including any attachments, is for the sole
use of the intended recipient(s) and may contain confidential and
privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message. [Fuzhou Rockchip Electronics, INC. China mainland]
===========================================================================

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-10-28  2:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-24  7:59 How to implement a EGL or DRM display in VA-API driver Randy Li
2016-10-27 15:03 ` Xiang, Haihao
2016-10-28  2:05   ` Randy Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.