Browse Source

avfilter/vf_pixdesctest: Use 32bit read/write

This is needed for processing 32bit floats

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.1
Michael Niedermayer 6 years ago
parent
commit
cd34c6a57e
3 changed files with 7 additions and 7 deletions
  1. +5
    -5
      libavfilter/vf_pixdesctest.c
  2. +1
    -1
      tests/ref/fate/filter-pixdesc-grayf32be
  3. +1
    -1
      tests/ref/fate/filter-pixdesc-grayf32le

+ 5
- 5
libavfilter/vf_pixdesctest.c View File

@@ -31,7 +31,7 @@


typedef struct PixdescTestContext { typedef struct PixdescTestContext {
const AVPixFmtDescriptor *pix_desc; const AVPixFmtDescriptor *pix_desc;
uint16_t *line;
uint32_t *line;
} PixdescTestContext; } PixdescTestContext;


static av_cold void uninit(AVFilterContext *ctx) 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; const int h1 = c == 1 || c == 2 ? ch : h;


for (i = 0; i < h1; i++) { for (i = 0; i < h1; i++) {
av_read_image_line(priv->line,
av_read_image_line2(priv->line,
(void*)in->data, (void*)in->data,
in->linesize, in->linesize,
priv->pix_desc, 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->data,
out->linesize, out->linesize,
priv->pix_desc, priv->pix_desc,
0, i, c, w1);
0, i, c, w1, 4);
} }
} }




+ 1
- 1
tests/ref/fate/filter-pixdesc-grayf32be View File

@@ -1 +1 @@
pixdesc-grayf32be 047d17c62f2e712c6547e4227b427303
pixdesc-grayf32be 9b23c74e8e8ffae5d7c7e82bbf5929da

+ 1
- 1
tests/ref/fate/filter-pixdesc-grayf32le View File

@@ -1 +1 @@
pixdesc-grayf32le cdedfdbaa4e192b9f2c84092f955fb4b
pixdesc-grayf32le 291f074a24c44799a1f437d1c55556f1

Loading…
Cancel
Save