[FFmpeg-devel] [PATCH 2/2] avfilter/vf_pixdesctest: Use 32bit read/write
Michael Niedermayer
michael at niedermayer.cc
Fri Oct 26 01:33:01 EEST 2018
This is needed for processing 32bit floats
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavfilter/vf_pixdesctest.c | 10 +++++-----
tests/ref/fate/filter-pixdesc-grayf32be | 2 +-
tests/ref/fate/filter-pixdesc-grayf32le | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/libavfilter/vf_pixdesctest.c b/libavfilter/vf_pixdesctest.c
index 2d0749e20b..680d1a772a 100644
--- a/libavfilter/vf_pixdesctest.c
+++ b/libavfilter/vf_pixdesctest.c
@@ -31,7 +31,7 @@
typedef struct PixdescTestContext {
const AVPixFmtDescriptor *pix_desc;
- uint16_t *line;
+ uint32_t *line;
} PixdescTestContext;
static av_cold void uninit(AVFilterContext *ctx)
@@ -89,17 +89,17 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
const int h1 = c == 1 || c == 2 ? ch : h;
for (i = 0; i < h1; i++) {
- av_read_image_line(priv->line,
+ av_read_image_line2(priv->line,
(void*)in->data,
in->linesize,
priv->pix_desc,
- 0, i, c, w1, 0);
+ 0, i, c, w1, 0, 4);
- av_write_image_line(priv->line,
+ av_write_image_line2(priv->line,
out->data,
out->linesize,
priv->pix_desc,
- 0, i, c, w1);
+ 0, i, c, w1, 4);
}
}
diff --git a/tests/ref/fate/filter-pixdesc-grayf32be b/tests/ref/fate/filter-pixdesc-grayf32be
index 787ca0ca7e..171475483a 100644
--- a/tests/ref/fate/filter-pixdesc-grayf32be
+++ b/tests/ref/fate/filter-pixdesc-grayf32be
@@ -1 +1 @@
-pixdesc-grayf32be 047d17c62f2e712c6547e4227b427303
+pixdesc-grayf32be 9b23c74e8e8ffae5d7c7e82bbf5929da
diff --git a/tests/ref/fate/filter-pixdesc-grayf32le b/tests/ref/fate/filter-pixdesc-grayf32le
index 8de4d4c88d..d598d123b4 100644
--- a/tests/ref/fate/filter-pixdesc-grayf32le
+++ b/tests/ref/fate/filter-pixdesc-grayf32le
@@ -1 +1 @@
-pixdesc-grayf32le cdedfdbaa4e192b9f2c84092f955fb4b
+pixdesc-grayf32le 291f074a24c44799a1f437d1c55556f1
--
2.19.1
More information about the ffmpeg-devel
mailing list