Skip to contentSkip to conversation

add support to stateless decoder

PATCH Superseded Dafna Hirschfeld 1 participant 1 message Feb 24, 2019 Media (V4L/DVB)

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v3 cover add support to stateless decoder

main changes from v2:
- fixes according to the review.
- changes in 'copy_cap_to_ref' and to support NV24/42 types
- changes in the codec-fwht.c functions to support reference frame which is not internal so stride and chroma_stride for the refernce frame should be function parameters.
- patches 1,2,3 are from another patchset - add "requires request" they are added so the the kbuild tests won't complian

Dafna Hirschfeld (15):
media: vicodec: selection api should only check signal buffer types
media: v4l2-ctrl: v4l2_ctrl_request_setup returns with error upon
failure
media: vicodec: change variable name for the return value of
v4l2_fwht_encode
media: vicodec: bugfix - call v4l2_m2m_buf_copy_metadata also if
decoding fails
media: vicodec: bugfix: free compressed_frame upon device release
media: vicodec: Move raw frame preparation code to a function
media: vicodec: add field 'buf' to fwht_raw_frame
media: vicodec: keep the ref frame according to the format in decoder
media: vicodec: Validate version dependent header values in a separate
function
media: vicodec: rename v4l2_fwht_default_fmt to v4l2_fwht_find_nth_fmt
media: vicodec: add struct for encoder/decoder instance
media: vicodec: Introducing stateless fwht defs and structs
media: vicodec: Register another node for stateless decoder
media: vicodec: Add support for stateless decoder.
prints

Hans Verkuil (3):
vb2: add requires_requests bit for stateless codecs videodev2.h: add V4L2_BUF_CAP_REQUIRES_REQUESTS
cedrus: set requires_requests

 .../media/uapi/v4l/vidioc-reqbufs.rst         |   4 +
 .../media/common/videobuf2/videobuf2-core.c   |   5 +-
 .../media/common/videobuf2/videobuf2-v4l2.c   |   6 +
 drivers/media/media-request.c                 |   3 +
 drivers/media/platform/vicodec/codec-fwht.c   | 108 ++-
 drivers/media/platform/vicodec/codec-fwht.h   |  14 +-
 .../media/platform/vicodec/codec-v4l2-fwht.c  | 473 ++++-------
 .../media/platform/vicodec/codec-v4l2-fwht.h  |   7 +-
 drivers/media/platform/vicodec/vicodec-core.c | 753 ++++++++++++++----
 drivers/media/v4l2-core/v4l2-ctrls.c          |  69 +-
 .../staging/media/sunxi/cedrus/cedrus_video.c |   1 +
 include/media/fwht-ctrls.h                    |  35 +
 include/media/v4l2-ctrls.h                    |   6 +-
 include/media/videobuf2-core.h                |   3 +
 include/uapi/linux/videodev2.h                |   2 +
 15 files changed, 963 insertions(+), 526 deletions(-)
 create mode 100644 include/media/fwht-ctrls.h
Signature · 1 line
2.17.1