Commit Graph

37 Commits

Author SHA1 Message Date
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 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 ad22b93f9e Include config.h to have VA_DRIVER_INIT_FUNC
The VA_DRIVER_INIT_FUNC macro is defined by configure in config.h, if
this header is not included then the init symbol will not be present and
libVA will not be able to load this backend.
2016-08-26 15:42:56 +02:00
Florent Revest f645948921 Add MPEG 4 codec
This patch introduces the support of MPEG4 video decoding. It basically
just copies data from VA's frame/slice headers data structures to v4l's
MPEG4 frame header extended controls data structures.
2016-08-25 16:24:45 +02:00
Florent Revest 728b1b41b9 Add MPEG 2 codec
This patch introduces the support of MPEG2 video decoding. It basically
just copies data from VA's frame/slice headers data structures to v4l's
MPEG2 frame header extended controls data structures.
2016-08-25 16:21:42 +02:00
Florent Revest e263c9542c Adds a sunxi-cedrus-drv-video libVA backend
This VA backend uses v4l2's Frame API proposal to interface with the
"sunxi-cedrus" video driver on Allwinner SoC. Only a few parts of the
code are really dependent on sunxi-cedrus and this VA backend could be
reused for other v4l drivers using the Frame API.
2016-08-25 16:19:34 +02:00