On Sat, 27 Jul 2019 11:27:43 +0200
Paul Kocialkowski wrote:
> Hi,
>
> On Fri 26 Jul 19, 10:53, Hans Verkuil wrote:
> > On 7/26/19 9:30 AM, Boris Brezillon wrote:
> > > On Fri, 26 Jul 2019 08:28:28 +0200
> > > Boris Brezillon wrote:
> > >
On Sat, 27 Jul 2019 09:52:24 -0300
Ezequiel Garcia wrote:
> > >
> > > That's not my understanding of the Annex B section (quoting the spec
> > > for reference):
> > >
> > > "
> > > The byte stream format consists of a sequence of byte stream NAL unit
> > > syntax structures. Each byte stream N
On Mon, 29 Jul 2019 15:25:21 +0200
Paul Kocialkowski wrote:
> Hi,
>
> On Sat 27 Jul 19, 11:46, Boris Brezillon wrote:
> > On Sat, 27 Jul 2019 11:27:43 +0200
> > Paul Kocialkowski wrote:
> >
> > > Hi,
> > >
> > > On Fri 26 Jul 19, 1
The rockchip vdec block is a stateless decoder that's able to decode
H264, HEVC and VP9 content. This patch only adds H264 support and is
making use of the m2m codec helpers.
Signed-off-by: Boris Brezillon
---
drivers/staging/media/Kconfig | 2 +
drivers/staging/media/Mak
l.org/msg135729.html
Boris Brezillon (2):
media: v4l2: Get rid of ->vidioc_enum_fmt_vid_{cap,out}_mplane
media: v4l2: Extend pixel formats to unify single/multi-planar
handling (and more)
Hans Verkuil (1):
media: v4l2: Add extended buffer operations
drivers/media/pci/intel/ipu3/ipu3
ad.
Signed-off-by: Boris Brezillon
---
drivers/media/pci/intel/ipu3/ipu3-cio2.c | 2 +-
drivers/media/platform/exynos-gsc/gsc-m2m.c | 4 ++--
.../media/platform/exynos4-is/fimc-capture.c | 2 +-
.../platform/exynos4-is/fimc-isp-video.c | 2 +-
drivers/media/platform/exynos4-is/
support the new hooks, and vice versa.
Signed-off-by: Hans Verkuil
Signed-off-by: Boris Brezillon
---
Hans,
I kept initial autorship as this patch is heavily based on your
initial proposal [1]. Please let me know if you want me to change
it.
Regards,
Boris
[1]https://git.linuxtv.org/hverkuil
-off-by: Boris Brezillon
---
drivers/media/v4l2-core/v4l2-common.c | 189 ++
drivers/media/v4l2-core/v4l2-dev.c| 24 +-
drivers/media/v4l2-core/v4l2-ioctl.c | 504 +-
include/media/v4l2-common.h | 6 +
include/media/v4l2-ioctl.h| 27
On Tue, 19 Mar 2019 14:07:32 -0400
Nicolas Dufresne wrote:
> Le mardi 19 mars 2019 à 15:52 +0100, Boris Brezillon a écrit :
> > +/**
> > + * struct v4l2_plane_ext_pix_format - additional, per-plane format
> > definition
> > + * @modifier: modifier applied to
On Tue, 19 Mar 2019 17:37:59 +
Brian Starkey wrote:
> Hi Boris,
>
> On Tue, Mar 19, 2019 at 03:52:42PM +0100, Boris Brezillon wrote:
> > This is part of the multiplanar and singleplanar unification process.
> > v4l2_ext_pix_format is supposed to work for both cases.
>
-by: Boris Brezillon
---
Changes in v2:
- New patch
---
.../media/common/videobuf2/videobuf2-core.c | 2 +
.../media/common/videobuf2/videobuf2-v4l2.c | 534 +++---
include/media/videobuf2-core.h| 6 +-
include/media/videobuf2-v4l2.h| 26 +-
4
Just a new version of v4l2_fill_mbus_format() to deal with the new
v4l2_ext_pix_format struct.
This is needed to convert the VIMC driver to the EXT_FMT/EXT_BUF iocts.
Signed-off-by: Boris Brezillon
---
Changes in v2:
- New patch
---
include/media/v4l2-mediabus.h | 22 ++
1
-off-by: Boris Brezillon
---
Changes in v2:
- Move the modifier in v4l2_ext_format (was formerly placed in
v4l2_ext_plane)
- Fix a few bugs in the converters and add a strict parameter to
allow conversion of uninitialized/mis-initialized objects
---
drivers/media/v4l2-core/v4l2-dev.c | 24
ad.
Signed-off-by: Boris Brezillon
---
Changes in v2:
- None
---
drivers/media/pci/intel/ipu3/ipu3-cio2.c | 2 +-
drivers/media/platform/exynos-gsc/gsc-m2m.c | 4 ++--
.../media/platform/exynos4-is/fimc-capture.c | 2 +-
.../platform/exynos4-is/fimc-isp-video.c | 2 +-
drivers/med
Convert the driver to the _ext_fmt and _ext_buf API.
Signed-off-by: Boris Brezillon
---
Changes in v2:
- New patch
---
drivers/media/platform/vimc/vimc-capture.c | 65 +++---
drivers/media/platform/vimc/vimc-common.c | 4 +-
drivers/media/platform/vimc/vimc-common.h | 2
support the new hooks, and vice versa.
Note that the timecode field is gone, since there doesn't seem to be
in-kernel users, but can be added back in the reserved area if needed.
Signed-off-by: Hans Verkuil
Signed-off-by: Boris Brezillon
---
Changes in v2:
- Add reserved space to v4l2_ext_buff
This should simplify things a bit as we now have a single
implementation instead of the MPLANE and !MPLANE versions.
Signed-off-by: Boris Brezillon
---
Changes in v2:
- New patch
---
drivers/media/platform/vivid/vivid-core.c| 30 ++-
drivers/media/platform/vivid/vivid-vid-cap.c | 171
tps://github.com/bbrezillon/linux/commit/a415216c6aaab2d51f0bd62270b994c8196ddd90
*** BLURB HERE ***
Boris Brezillon (6):
media: v4l2: Get rid of ->vidioc_enum_fmt_vid_{cap,out}_mplane
media: v4l2: Extend pixel formats to unify single/multi-planar
handling (and more)
media: videobuf2: Expos
On Thu, 11 Apr 2019 10:24:16 +0200
Hans Verkuil wrote:
> > static void v4l_print_framebuffer(const void *arg, bool write_only)
> > {
> > const struct v4l2_framebuffer *p = arg;
> > @@ -951,11 +1027,15 @@ static int check_fmt(struct file *file, enum
> > v4l2_buf_type type)
> > switch (
On Thu, 11 Apr 2019 09:59:19 +0200
Hans Verkuil wrote:
> On 4/4/19 10:16 AM, Boris Brezillon wrote:
> > Support for multiplanar and singleplanar formats is mutually exclusive,
> > at least in practice. In our attempt to unify support for support for
> > mplane and !mplane
On Thu, 11 Apr 2019 12:38:06 +0200
Hans Verkuil wrote:
> >>> diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c
> >>> b/drivers/media/v4l2-core/v4l2-ioctl.c
> >>> index f6d663934648..97ba365218fb 100644
> >>> --- a/drivers/media/v4l2-core/v4l2-ioctl.c
> >>> +++ b/drivers/media/v4l2-core/v4l2-ioct
On Fri, 12 Apr 2019 10:25:26 +0200
Boris Brezillon wrote:
> On Thu, 11 Apr 2019 12:38:06 +0200
> Hans Verkuil wrote:
>
> > >>> diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c
> > >>> b/drivers/media/v4l2-core/v4l2-ioctl.c
> > >>> index f
On Thu, 4 Apr 2019 10:16:56 +0200
Boris Brezillon wrote:
> +/**
> + * struct v4l2_ext_buffer - extended video buffer info
> + * @index: id number of the buffer
> + * @type: enum v4l2_buf_type; buffer type. _MPLANE and _OVERLAY formats are
> + * invalid
> + * @flags: bu
ad.
Signed-off-by: Boris Brezillon
---
Changes in v3:
- Send this patch separately (was previously part of the EXT_BUF/FMT
rework)
Changes in v2:
- None
---
drivers/media/pci/intel/ipu3/ipu3-cio2.c | 2 +-
drivers/media/platform/exynos-gsc/gsc-core.c | 2 +-
drivers/media/platform/exy
The fimc-isp-video.c and fimc-lite.c were missing the
V4L2_CAP_VIDEO_CAPTURE_MPLANE flag when reporting device caps.
Signed-off-by: Boris Brezillon
---
Changes in v3:
- New patch
---
drivers/media/platform/exynos4-is/fimc-isp-video.c | 4 +++-
drivers/media/platform/exynos4-is/fimc-lite.c
On Fri, 12 Apr 2019 12:16:42 +0200
Sylwester Nawrocki wrote:
> Hi,
>
> On 4/12/19 11:20, Boris Brezillon wrote:
> > The fimc-isp-video.c and fimc-lite.c were missing the
> > V4L2_CAP_VIDEO_CAPTURE_MPLANE flag when reporting device caps.
>
> Th omission was intent
This is needed if we want the core to be able to check _MPLANE support
without having to call the ->vdioc_querycap() hook.
Signed-off-by: Boris Brezillon
---
Changes in v4:
- Add a hack in fimc-lite and fimc-isp-video ->querycap()
implementation to avoid reporting _MPLANE caps as usersp
ad.
Signed-off-by: Boris Brezillon
---
Changes in v4:
- None
Changes in v3:
- Send this patch separately (was previously part of the EXT_BUF/FMT
rework)
Changes in v2:
- None
---
drivers/media/pci/intel/ipu3/ipu3-cio2.c | 2 +-
drivers/media/platform/exynos-gsc/gsc-core.c | 2 +-
dr
wrongly assigned 0 on the MPEG-2 decoder.
* Addressed comments from Hans and Tomasz on the pixel format
helpers.
Boris Brezillon (5):
rockchip/vpu: Rename rockchip_vpu_common.h into rockchip_vpu_v4l2.h
rockchip/vpu: Remove a useless test
rockchip/vpu: Move encoder logic to a common
From: Ezequiel Garcia
Use the recently introduced v4l2_m2m_buf_copy_metadata helper
and get rid of some code.
Signed-off-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
---
Changes from v2:
- None
---
drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c | 9 +
1 file changed, 1
From: Ezequiel Garcia
Introduce support for the Request API. Although the JPEG encoder
does not mandate using the Request API, it's perfectly possible to
use it, if the application wants to.
Signed-off-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
--
Changes from v2:
* Drop unre
From: Ezequiel Garcia
We need to make the macrobock alignment generic, in order
to support multiple codecs.
Signed-off-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
---
Changes from v2:
- None
---
.../media/rockchip/vpu/rockchip_vpu_enc.c | 20 ---
1 file changed, 8
From: Ezequiel Garcia
Now that we've introduced the pixel format helpers, use them
in vpu driver, and get rid of the internal helpers.
Signed-off-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
---
Changes from v2:
- None
---
.../media/rockchip/vpu/rockchip_vpu_enc.c
vdev is guaranteed to be equal to vpu->vfd_enc thanks a test done a few
lines above. Remove this useless test.
Signed-off-by: Boris Brezillon
---
Changes from v2:
* New patch
---
drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c | 6 ++
1 file changed, 2 insertions(+), 4 deleti
From: Jonas Karlman
Add necessary bits to support MPEG2 decoding on RK3288.
Signed-off-by: Jonas Karlman
Signed-off-by: Boris Brezillon
---
Changes from v2:
* New patch
---
drivers/staging/media/rockchip/vpu/Makefile | 3 +-
.../media/rockchip/vpu/rk3288_vpu_hw.c| 59
From: Ezequiel Garcia
Rework the way controls are registered by the driver,
so it can support non-standard controls, such as those
used by stateless codecs.
Signed-off-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
--
Changes from v2:
* Got rid of unused ctrls related fields.
* Removed
From: Ezequiel Garcia
In preparation to support decoders, using a single memory-to-memory
device, we need to roll our own media controller entities registration.
Signed-off-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
--
Changes from v2:
* Use kvasprintf instead of kmalloc and snprintf
From: Ezequiel Garcia
In order to make the code more generic, introduce a pair of start/stop
codec operations, and use them to allocate and release the JPEG bounce
buffer.
Signed-off-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
---
Changes from v2:
* Reword bounce buffer comment, so
-off-by: Boris Brezillon
--
Changes from v2:
* Use the common vb2/v4l2 implementation
* Use strscpy instead of strlcpy.
* Abstract vidioc v4l2 api implementations into generic code, creating
helpers that can be used by the encoder and the decoder.
* Only prevent S_FMT on the coded format queue
right order: first the coded-format side, then the other,
such that width and height on the raw format side can be taken from
the coded format.
Let's provide a helper that will reset both formats and make sure this
is done in the right order.
Signed-off-by: Boris Brezillon
---
Changes from
drv.c) queue_init() since it will be used
to initialize both type of queues.
The implementation itself will be patched to support the decoding case
when decoder support is added.
Suggested-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
---
Changes from v2:
* New patch
---
drivers/staging/media/roc
From: Ezequiel Garcia
Add MPEG-2 decoding, only on RK3399. Other SoCs
and support for other codecs will be added in the future.
Signed-off-by: Jonas Karlman
Signed-off-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
--
Changes from v2:
* Remove uneeded check from rockchip_vpu_get_ctrl
The code in rockchip_vpu_v4l2 was hardcoded for encoder support.
Modify it more generic to support the decoder case so that we can
re-use the same vb2/v4l2 ops for both devices.
Co-developed-by: Ezequiel Garcia
Signed-off-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
---
Changes from v2
We're about to add prototypes for the vb2/v4l2 helpers shared by the
encoder/decoder logic in this file, so let's pick a name that reflects
that (rockchip_vpu_common.h was a bit to generic).
Suggested-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
---
Changes from v2:
*
On Mon, 22 Apr 2019 14:59:17 +
Jonas Karlman wrote:
> On 2019-04-22 10:08, Boris Brezillon wrote:
> > From: Ezequiel Garcia
>
> Please restore my commit authorship, it seems to have changed in v3.
Oops, sorry about that, it was not intentional.
>
> I would appre
assigned 0 on the MPEG-2 decoder.
* Addressed comments from Hans and Tomasz on the pixel format
helpers.
Boris Brezillon (7):
rockchip/vpu: Remove a useless test
rockchip/vpu: Get vdev from the file arg in vidioc_querycap()
rockchip/vpu: Initialize mdev->bus_info
rockchip/vpu: Ren
vdev is guaranteed to be equal to vpu->vfd_enc thanks a test done a few
lines above. Remove this useless test.
Signed-off-by: Boris Brezillon
---
Changes from v3:
* Move earlier in the series
Changes from v2:
* New patch
---
drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c | 6 ++
From: Ezequiel Garcia
Use the recently introduced v4l2_m2m_buf_copy_metadata helper
and get rid of some code.
Signed-off-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
---
Changes from v3:
* None
Changes from v2:
* None
---
drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c | 9
assed in argument, and passing -1 has the same
effect as passing 0. But let's comply with the API doc and pass -1
here.
Signed-off-by: Jonas Karlman
Signed-off-by: Boris Brezillon
---
Changes from v3:
* New patch
---
drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c | 2 +-
1 file
-off-by: Boris Brezillon
--
Changes from v3:
* Update things according to changes done in the patch introducing
custom media controller support (Boris)
* Move the rk3399 vdpu irq definition in the commit introducing
MPGEG2 support on rk3399
* Fix media controller deregistration code (Jonas
From: Jonas Karlman
Add the necessary bits to support MPEG2 decoding on RK3399.
Signed-off-by: Jonas Karlman
Signed-off-by: Boris Brezillon
---
Changes from v3:
* New patch (was part of another patch before)
---
drivers/staging/media/rockchip/vpu/Makefile | 1 +
.../media/rockchip/vpu
From: Ezequiel Garcia
We need to make the macrobock alignment generic, in order
to support multiple codecs.
Signed-off-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
---
Changes from v3:
* None
Changes from v2:
* None
---
.../media/rockchip/vpu/rockchip_vpu_enc.c | 20
From: Ezequiel Garcia
In order to make the code more generic, introduce a pair of start/stop
codec operations, and use them to allocate and release the JPEG bounce
buffer.
Signed-off-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
---
Changes from v3:
* None
Changes from v2:
* Reword
-by: Boris Brezillon
---
Changes from v3:
* New patch
---
drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c
b/drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c
From: Ezequiel Garcia
Rework the way controls are registered by the driver,
so it can support non-standard controls, such as those
used by stateless codecs.
Signed-off-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
--
Changes from v3:
* None
Changes from v2:
* Got rid of unused ctrls
From: Jonas Karlman
Only adds structs and helpers to allow supporting MPEG-2 decoding on
rockchip SoCs. Support for RK3399 and RK3288 will be added in separate
commits
Signed-off-by: Jonas Karlman
Signed-off-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
--
Changes from v3:
* Coding
From: Ezequiel Garcia
Now that we've introduced the pixel format helpers, use them
in vpu driver, and get rid of the internal helpers.
Signed-off-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
---
Changes from v3:
* None
Changes from v2:
* None
---
.../media/rockchi
From: Jonas Karlman
Those calls are needed to restore a clean PM state when the probe fails
or when the driver is unloaded such that future ->probe() calls can
initialize runtime PM again.
Signed-off-by: Jonas Karlman
Signed-off-by: Boris Brezillon
---
Changes from v3:
* New pa
This makes the function more generic so it can easily be re-used when
adding support for the decoding functionality.
Signed-off-by: Boris Brezillon
---
Changes from v3:
* New patch
---
drivers/staging/media/rockchip/vpu/rockchip_vpu_enc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion
this
vdev to the media device.
Signed-off-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
--
Changes from v3:
* Rework the media controller registration logic (Boris)
* Fix media controller deregistration (Jonas)
Changes from v2:
* Use kvasprintf instead of kmalloc and snprintf.
* Fix missing
From: Ezequiel Garcia
Introduce support for the Request API. Although the JPEG encoder
does not mandate using the Request API, it's perfectly possible to
use it, if the application wants to.
Signed-off-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
--
Changes from v3:
* None
Changes
v4l2-compliance complains that ->bus_info is empty.
Signed-off-by: Boris Brezillon
---
Changes from v3:
* New patch
---
drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c
b/driv
drv.c) queue_init() since it will be used
to initialize both type of queues.
The implementation itself will be patched to support the decoding case
when decoder support is added.
Suggested-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
---
Changes from v3:
* None
Changes from v2:
* New
We're about to add prototypes for the vb2/v4l2 helpers shared by the
encoder/decoder logic in this file, so let's pick a name that reflects
that (rockchip_vpu_common.h was a bit to generic).
Suggested-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
---
Changes from v3:
* None
Ch
From: Jonas Karlman
Add necessary bits to support MPEG2 decoding on RK3288.
Signed-off-by: Jonas Karlman
Signed-off-by: Boris Brezillon
---
Changes from v3:
* Coding style improvements (Jonas)
* Use ALIGN() instead of div+shift (Jonas)
Changes from v2:
* New patch
---
drivers/staging/media
right order: first the coded-format side, then the other,
such that width and height on the raw format side can be taken from
the coded format.
Let's provide a helper that will reset both formats and make sure this
is done in the right order.
Signed-off-by: Boris Brezillon
---
Changes from
The code in rockchip_vpu_v4l2 was hardcoded for encoder support.
Modify it more generic to support the decoder case so that we can
re-use the same vb2/v4l2 ops for both devices.
Co-developed-by: Ezequiel Garcia
Signed-off-by: Ezequiel Garcia
Signed-off-by: Boris Brezillon
---
Changes from v3
On Thu, 25 Apr 2019 09:12:21 +0200
Boris Brezillon wrote:
> This series introduces the decoding infrastructure that will be
> used to add support for other codecs such as VP8, VP9 and H.264.
>
> As explained in the cover letter for the v1 patchset,
> the driver is now exposing t
On Thu, 25 Apr 2019 10:06:28 +0200
Boris Brezillon wrote:
> On Thu, 25 Apr 2019 09:12:21 +0200
> Boris Brezillon wrote:
>
> > This series introduces the decoding infrastructure that will be
> > used to add support for other codecs such as VP8, VP9 and H.264.
> >
&g
On Thu, 25 Apr 2019 10:21:16 +0200
Hans Verkuil wrote:
> On 4/25/19 10:06 AM, Boris Brezillon wrote:
> > On Thu, 25 Apr 2019 09:12:21 +0200
> > Boris Brezillon wrote:
> >
> >> This series introduces the decoding infrastructure that will be
> >> used
On Wed, 04 Apr 2018 21:49:26 +0200
Robert Jarzmik wrote:
> Ulf Hansson writes:
>
> > On 2 April 2018 at 16:26, Robert Jarzmik wrote:
> >> Hi,
> >>
> >> This serie is aimed at removing the dmaengine slave compat use, and
> >> transfer
> >> knowledge of the DMA requestors into architecture co
vb2_request_get_buf() returns the N-th buffer attached to a media
request.
Signed-off-by: Boris Brezillon
---
.../media/common/videobuf2/videobuf2-core.c | 23 +++
include/media/videobuf2-core.h| 11 +
2 files changed, 34 insertions(+)
diff --git a
Most codec drivers do the same thing, let's extract those generic bits
and provide them as m2m_codec helpers.
Each compressed-format will have its own set of sub-helpers.
Signed-off-by: Boris Brezillon
---
drivers/media/v4l2-core/Kconfig |4 +
drivers/media/v4l2-core/Mak
Signed-off-by: Boris Brezillon
---
drivers/media/v4l2-core/Kconfig | 5 +
drivers/media/v4l2-core/Makefile | 1 +
.../media/v4l2-core/v4l2-mem2mem-h264-codec.c | 47
include/media/v4l2-mem2mem-h264-codec.h | 100 ++
4 files changed
objects to the v4l2-mem2mem.o object.
Signed-off-by: Boris Brezillon
---
drivers/media/v4l2-core/Makefile| 1 +
drivers/media/v4l2-core/{v4l2-mem2mem.c => v4l2-mem2mem-core.c} | 0
2 files changed, 1 insertion(+)
rename drivers/media/v4l2-core/{v4l2-mem2me
04013/
[2]https://patchwork.kernel.org/project/linux-media/list/?series=129567
Boris Brezillon (5):
media: vb2: Add a helper to get the vb2 buffer attached to a request
media: v4l2: Prepare things for addition of m2m codec helpers
media: v4l2: Add m2m codec helpers
media: v4l2: Provide h
On Mon, 5 Aug 2019 10:12:53 -0300
Hans Verkuil wrote:
> On 8/5/19 6:48 AM, Boris Brezillon wrote:
> > vb2_request_get_buf() returns the N-th buffer attached to a media
> > request.
> >
> > Signed-off-by: Boris Brezillon
> > ---
> > .../media/c
On Mon, 5 Aug 2019 13:53:20 -0300
Hans Verkuil wrote:
> > +/**
> > + * struct v4l2_m2m_codec_ctx - Codec context
> > + * @fh: file handle
> > + * @coded_fmt: current coded format
> > + * @decoded_fmt: current decoded format
> > + * @coded_fmt_desc: current coded format desc
> > + * @decoded_fmt_d
Step '8.2.4.1 Decoding process for picture numbers' was missing in the
reflist creation logic, leading to invalid P reflists when a
->frame_num wraparound happens.
Fixes: a9471e25629b ("media: hantro: Add core bits to support H264 decoding")
Reported-by: Francois Buergisse
So it matches the code and the spec.
Signed-off-by: Boris Brezillon
---
drivers/staging/media/hantro/hantro_h264.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/media/hantro/hantro_h264.c
b/drivers/staging/media/hantro/hantro_h264.c
index 0d758e0c0f99
And use it for all native type comparisons, even if it's not strictly
required. By doing that we make the code more consistent and prevent
from potential incorrect results in case of overflow or when the the
values being compared are both negative.
Signed-off-by: Boris Brezillon
---
dr
On Mon, 9 Sep 2019 09:28:15 +0200
Boris Brezillon wrote:
> Step '8.2.4.1 Decoding process for picture numbers' was missing in the
> reflist creation logic, leading to invalid P reflists when a
> ->frame_num wraparound happens.
>
> Fixes: a9471e25629b ("media:
On Mon, 23 Sep 2019 13:41:07 +0200
Hans Verkuil wrote:
> Hi Boris,
>
> On 4/4/19 10:16 AM, Boris Brezillon wrote:
> > Hello,
> >
> > This RFC follows the discussion started by Hans [1] a few months back.
> > It does not try to address all the problem report
t;
> All sessions are in room Terreaux VIP Lounge - Level 0.
> There is a maximum of 15 people.
>
> The second session deals with libcamera and is on Wednesday morning
> from 9:00 to 13:00.
>
> Attendees for this session:
>
> Kieran Bingham
> Boris Brezillon
I ha
support the new hooks, and vice versa.
Note that the timecode field is gone, since there doesn't seem to be
in-kernel users, but can be added back in the reserved area if needed.
Signed-off-by: Hans Verkuil
Signed-off-by: Boris Brezillon
---
Changes in v3:
- Rebased on top of media/master (pos
Convert the driver to the _ext_fmt and _ext_buf API.
Signed-off-by: Boris Brezillon
---
Changes in v3:
- Rebased on top of media/master (post 5.4-rc1)
Changes in v2:
- New patch
---
drivers/media/platform/vimc/vimc-capture.c | 65 +++---
drivers/media/platform/vimc/vimc
Just a new version of v4l2_fill_mbus_format() to deal with the new
v4l2_ext_pix_format struct.
This is needed to convert the VIMC driver to the EXT_FMT/EXT_BUF iocts.
Signed-off-by: Boris Brezillon
---
Changes in v3:
- Rebased on top of media/master (post 5.4-rc1)
Changes in v2:
- New patch
-by: Boris Brezillon
---
Changes in v3:
- Rebased on top of media/master (post 5.4-rc1)
Changes in v2:
- New patch
---
.../media/common/videobuf2/videobuf2-core.c | 2 +
.../media/common/videobuf2/videobuf2-v4l2.c | 534 +++---
include/media/videobuf2-core.h| 6
bbrezillon/v4l-utils/commits/master
[3]https://github.com/bbrezillon/linux/commit/4882435f80b05a61827649d55cc0f0cee79680a7
[4]https://github.com/bbrezillon/linux/commit/a415216c6aaab2d51f0bd62270b994c8196ddd90
Boris Brezillon (5):
media: v4l2: Extend pixel formats to unify single/multi-planar
handling (and mo
-off-by: Boris Brezillon
---
Changes in v3:
- Rebased on top of media/master (post 5.4-rc1)
Changes in v2:
- Move the modifier in v4l2_ext_format (was formerly placed in
v4l2_ext_plane)
- Fix a few bugs in the converters and add a strict parameter to
allow conversion of uninitialized/mis
This should simplify things a bit as we now have a single
implementation instead of the MPLANE and !MPLANE versions.
Signed-off-by: Boris Brezillon
---
Changes in v3:
- Rebased on top of media/master (post 5.4-rc1)
Changes in v2:
- New patch
---
drivers/media/platform/vivid/vivid-core.c
On Tue, 8 Oct 2019 11:11:13 +0200
Boris Brezillon wrote:
Oops, forgot to update the subject. Should be:
"[RFC PATCH v3 0/6] media: v4l2: Add extended fmt and buffer ioctls"
> Hello,
>
> This RFC follows the discussion started by Hans [1] a few months back.
> It does
vb2_request_get_buf() returns the N-th buffer attached to a media
request.
Signed-off-by: Boris Brezillon
---
Changes in v2:
* Adjust the kernel doc as suggested by Hans
---
.../media/common/videobuf2/videobuf2-core.c | 23 +++
include/media/videobuf2-core.h
ttps://lkml.org/lkml/2019/9/3/1033
Boris Brezillon (4):
media: vb2: Add a helper to get the vb2 buffer attached to a request
media: dt-bindings: rockchip: Document RK3399 Video Decoder bindings
media: rockchip: Add the rkvdec driver
arm64: dts: rockchip: rk3399: Define the rockchip Video De
RK3399 has a Video decoder, define the node in the dtsi. We also add
the missing power-domain in mmu node and enable the block.
Signed-off-by: Boris Brezillon
---
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 14 +-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/arch
The rockchip vdec block is a stateless decoder that's able to decode
H264, HEVC and VP9 content. This patch only adds H264 support and is
making use of the m2m codec helpers.
Signed-off-by: Boris Brezillon
---
drivers/staging/media/Kconfig |2 +
drivers/staging/
Document the Rockchip RK3399 Video Decoder bindings.
Signed-off-by: Boris Brezillon
---
.../bindings/media/rockchip,vdec.yaml | 71 +++
1 file changed, 71 insertions(+)
create mode 100644 Documentation/devicetree/bindings/media/rockchip,vdec.yaml
diff --git a
vb2_request_get_buf() returns the N-th buffer attached to a media
request.
Signed-off-by: Boris Brezillon
---
Changes in v2:
* Adjust the kernel doc as suggested by Hans
---
.../media/common/videobuf2/videobuf2-core.c | 23 +++
include/media/videobuf2-core.h
Document the Rockchip RK3399 Video Decoder bindings.
Signed-off-by: Boris Brezillon
---
.../bindings/media/rockchip,vdec.yaml | 71 +++
1 file changed, 71 insertions(+)
create mode 100644 Documentation/devicetree/bindings/media/rockchip,vdec.yaml
diff --git a
feeback.
Regards,
Boris
[1]https://patchwork.kernel.org/cover/11125207/
[2]https://lkml.org/lkml/2019/9/3/1033
Boris Brezillon (4):
media: vb2: Add a helper to get the vb2 buffer attached to a request
media: dt-bindings: rockchip: Document RK3399 Video Decoder bindings
media: rockch
101 - 200 of 362 matches
Mail list logo