Paul Kocialkowski
d8a51f0cd4
Use libVA naming style for public API functions
...
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com >
2018-04-23 11:23:10 +02:00
Paul Kocialkowski
b0a8023644
Remove INIT_DRIVER_DATA and replace it with explicit definition
...
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com >
2018-04-23 11:22:49 +02:00
Paul Kocialkowski
4354922570
Drop the _drv_video suffix from sunxi_cedrus files for conciseness
...
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com >
2018-04-23 10:56:11 +02:00
Paul Kocialkowski
36b7bba14f
config: Use object config structure directly instead of abstract type
...
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com >
2018-04-23 10:56:11 +02:00
Paul Kocialkowski
0bd492f0d3
image: Use object image structure directly instead of abstract type
...
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com >
2018-04-23 10:56:11 +02:00
Paul Kocialkowski
97950176ad
surface: Use object surface structure directly instead of abstract type
...
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com >
2018-04-23 10:56:00 +02:00
Paul Kocialkowski
6a06b4570b
context: Use object context structure directly instead of abstract type
...
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com >
2018-04-23 10:04:58 +02:00
Paul Kocialkowski
5c26862913
buffer: Use object buffer structure directly instead of abstract type
...
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com >
2018-04-23 09:59:08 +02:00
Maxime Ripard
60b782ba51
image: call SyncSurface from DeriveImage
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 11:36:30 +02:00
Maxime Ripard
4ff25e2450
image: cosmetic change
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 11:36:00 +02:00
Maxime Ripard
bbf6cb5ef4
drv: Add LIBVA_CEDRUS_DEV env variable to retrieve our device
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 11:26:08 +02:00
Maxime Ripard
5e82668680
buffer: Return an error on unmap if buffer is null
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 11:23:38 +02:00
Maxime Ripard
d758a0d425
Rework buffer and slice handling
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 11:23:14 +02:00
Maxime Ripard
70bbd56770
surface: Amend timeout
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 11:14:51 +02:00
Maxime Ripard
f42ead5a00
surface: select cannot return 0 if there's no timeout
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 11:14:15 +02:00
Maxime Ripard
4328b65621
cedrus: close request FD on terminate
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 11:11:08 +02:00
Maxime Ripard
37b083ebcd
surface: Don't timeout on select anymore
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 11:09:30 +02:00
Maxime Ripard
62c48837c0
surface: Add weird comment
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 11:08:09 +02:00
Maxime Ripard
4c3ab6caba
surface: Fix surfaceID type
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 11:07:46 +02:00
Maxime Ripard
14c9443f80
surface: Set surface status after dequeueing the buffer
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 11:07:08 +02:00
Maxime Ripard
287d898a22
picture: Move calls to request reinit from EndPicture to SyncSurface
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 11:06:06 +02:00
Maxime Ripard
22c6a01a93
picture: Move request submit from EndPicture to SyncSurface
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 11:03:40 +02:00
Maxime Ripard
115b0d39b1
picture: rework the test for the media request fd a bit
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:45:10 +02:00
Maxime Ripard
b5fe51b608
picture: remove an assert for a more dynamic approach
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:44:07 +02:00
Maxime Ripard
63617797b4
picture: fix typo in controls type
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:40:20 +02:00
Maxime Ripard
d347d12168
fixup! context: call streamoff when destroying the context
2018-04-20 10:39:38 +02:00
Maxime Ripard
27d2b6c955
heap: don't set next_free anymore
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:37:44 +02:00
Maxime Ripard
31533a061d
picture: return SyncSurface error code on error
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:34:56 +02:00
Maxime Ripard
056d24d20f
buffer: don't cast the pointer anymore
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:33:39 +02:00
Maxime Ripard
f638dcce4c
mpeg2: don't populate the frame anymore
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:29:56 +02:00
Maxime Ripard
3f9054e95d
mpeg2: remove output mplane querybuf
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:28:26 +02:00
Maxime Ripard
51ac90481a
buffer: cosmetic change
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:24:41 +02:00
Maxime Ripard
b9efb89633
image: free our heap allocated object when destroying the image
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:23:10 +02:00
Maxime Ripard
c271437f4e
image: add comment
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:22:15 +02:00
Maxime Ripard
fdf8c591e0
context: call streamoff when destroying the context
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:21:54 +02:00
Maxime Ripard
9e3f597112
image: memset the VAImage
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:20:29 +02:00
Maxime Ripard
30154c81c5
context: Increase v4l2 sizeimage to take the buffer numbers into account
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:19:42 +02:00
Maxime Ripard
ef3ad9a96e
context: Increase the number of pre-allocated buffers
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:12:29 +02:00
Maxime Ripard
4b52cb488f
mpeg2: cosmetic change
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:10:29 +02:00
Maxime Ripard
35a7aa906f
image: cosmetic change
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:09:26 +02:00
Maxime Ripard
4d0a5d8178
context: cosmetic change
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:08:47 +02:00
Maxime Ripard
073baf070a
buffer: cosmetic change
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:05:54 +02:00
Maxime Ripard
4624e95b1b
buffer: cosmetic change
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:05:43 +02:00
Maxime Ripard
d988545672
buffer: cosmetic change
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:05:31 +02:00
Maxime Ripard
d10aec071b
buffer: remove intermediate vaStatus variable
...
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com >
2018-04-20 10:05:15 +02:00
Paul Kocialkowski
923a001e50
libva: Catch up with the latest version of the media request API
...
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com >
2018-03-09 14:28:27 +01:00
Florent Revest
c8e187aed5
Always clear v4l2_plane before sending them to the kernel
2016-08-29 17:44:23 +02:00
Florent Revest
5412e2676b
configure.ac don't check for an useless tool
...
This code remained from another configure.ac I based my work on but it
is not needed...
2016-08-26 15:43:33 +02:00
Florent Revest
6d7050cc7b
Picture: Explains the role of EndPicture
...
EndPicture and RenderPicture might be confusing to get so this commit
adds a comment making that a bit clearer.
2016-08-26 15:43:12 +02:00
Florent Revest
f53e579944
Clarify licenses text
...
The majority of the code included in sunxi-cedrus-drv-video is licensed
under the MIT but tiled_yuv is licensed under LGPLv2.1 so this COPYING
makes it clearer.
2016-08-26 15:43:09 +02:00