This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: v4l-stream: adapt to latest fwht codec changes
Author:  Hans Verkuil <hverkuil-ci...@xs4all.nl>
Date:    Wed Jan 30 14:18:28 2019 +0100

The merge of the latest fwht codec code required some additional
changes in v4l-stream.c:

1) state->stride now has to be filled in
2) the decoder expects the fwht header in state->header

Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 utils/common/v4l-stream.c | 3 +++
 1 file changed, 3 insertions(+)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=0a739ef88924b2cdbc0d9541d1d9abd112999a7e
diff --git a/utils/common/v4l-stream.c b/utils/common/v4l-stream.c
index a1cabadb6199..ce7cca778ca1 100644
--- a/utils/common/v4l-stream.c
+++ b/utils/common/v4l-stream.c
@@ -193,6 +193,7 @@ struct codec_ctx *fwht_alloc(unsigned pixfmt, unsigned 
visible_width, unsigned v
        ctx->state.coded_height = coded_height;
        ctx->state.visible_width = visible_width;
        ctx->state.visible_height = visible_height;
+       ctx->state.stride = coded_width * info->bytesperline_mult;
        ctx->state.info = info;
        ctx->field = field;
        ctx->state.colorspace = colorspace;
@@ -236,5 +237,7 @@ __u8 *fwht_compress(struct codec_ctx *ctx, __u8 *buf, 
unsigned uncomp_size, unsi
 bool fwht_decompress(struct codec_ctx *ctx, __u8 *p_in, unsigned comp_size,
                     __u8 *p_out, unsigned uncomp_size)
 {
+       memcpy(&ctx->state.header, p_in, sizeof(ctx->state.header));
+       p_in += sizeof(ctx->state.header);
        return !v4l2_fwht_decode(&ctx->state, p_in, p_out);
 }

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to