[FFmpeg-devel] [FFmpeg-cvslog] FATE: Add FITS tests

Michael Niedermayer michael at niedermayer.cc
Fri Sep 8 04:35:39 EEST 2017


On Wed, Aug 30, 2017 at 10:20:32AM +0000, Paras Chadha wrote:
> ffmpeg | branch: master | Paras Chadha <paraschadha18 at gmail.com> | Tue Aug 29 23:24:42 2017 +0530| [9d99f0afbeedf3e170478c3e8c05789bf2eef48f] | committer: Paul B Mahol
> 
> FATE: Add FITS tests
> 
> Signed-off-by: Paras Chadha <paraschadha18 at gmail.com>
> 
> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9d99f0afbeedf3e170478c3e8c05789bf2eef48f
> ---
> 
>  tests/Makefile                          |  1 +
>  tests/fate/avformat.mak                 |  1 +
>  tests/fate/demux.mak                    |  4 +++
>  tests/fate/fits.mak                     | 59 +++++++++++++++++++++++++++++++++
>  tests/lavf-regression.sh                |  9 +++++
>  tests/ref/fate/fits-demux               | 10 ++++++
>  tests/ref/fate/fitsdec-bitpix-32        |  6 ++++
>  tests/ref/fate/fitsdec-bitpix-64        |  6 ++++
>  tests/ref/fate/fitsdec-blank_bitpix32   |  6 ++++
>  tests/ref/fate/fitsdec-ext_data_min_max |  6 ++++
>  tests/ref/fate/fitsdec-gbrap16          |  6 ++++
>  tests/ref/fate/fitsdec-gbrp             |  6 ++++
>  tests/ref/fate/fitsdec-gbrp16           |  6 ++++
>  tests/ref/fate/fitsdec-gray             |  6 ++++
>  tests/ref/fate/fitsdec-multi            | 10 ++++++
>  tests/ref/fate/fitsenc-gbrap            | 10 ++++++
>  tests/ref/fate/fitsenc-gbrap16be        | 10 ++++++
>  tests/ref/fate/fitsenc-gbrp             | 10 ++++++
>  tests/ref/fate/fitsenc-gbrp16be         | 10 ++++++
>  tests/ref/fate/fitsenc-gray             | 10 ++++++
>  tests/ref/fate/fitsenc-gray16be         | 10 ++++++
>  tests/ref/lavf/fits                     | 18 ++++++++++
>  22 files changed, 220 insertions(+)
> 
> diff --git a/tests/Makefile b/tests/Makefile
> index 30f05bec15..18fe9c5b4a 100644
> --- a/tests/Makefile
> +++ b/tests/Makefile
> @@ -131,6 +131,7 @@ include $(SRC_PATH)/tests/fate/fft.mak
>  include $(SRC_PATH)/tests/fate/fifo-muxer.mak
>  include $(SRC_PATH)/tests/fate/filter-audio.mak
>  include $(SRC_PATH)/tests/fate/filter-video.mak
> +include $(SRC_PATH)/tests/fate/fits.mak
>  include $(SRC_PATH)/tests/fate/flac.mak
>  include $(SRC_PATH)/tests/fate/flvenc.mak
>  include $(SRC_PATH)/tests/fate/gapless.mak
> diff --git a/tests/fate/avformat.mak b/tests/fate/avformat.mak
> index 82a531c7a5..c4cf2bc473 100644
> --- a/tests/fate/avformat.mak
> +++ b/tests/fate/avformat.mak
> @@ -10,6 +10,7 @@ FATE_LAVF-$(call ENCDEC,  PCM_S16BE,             CAF)                += caf
>  FATE_LAVF-$(call ENCDEC,  DPX,                   IMAGE2)             += dpx
>  FATE_LAVF-$(call ENCDEC2, DVVIDEO,    PCM_S16LE, AVI)                += dv_fmt
>  FATE_LAVF-$(call ENCDEC2, MPEG1VIDEO, MP2,       FFM)                += ffm
> +FATE_LAVF-$(call ENCDEC,  FITS,                  IMAGE2)             += fits
>  FATE_LAVF-$(call ENCDEC,  RAWVIDEO,              FILMSTRIP)          += flm
>  FATE_LAVF-$(call ENCDEC,  FLV,                   FLV)                += flv_fmt
>  FATE_LAVF-$(call ENCDEC,  GIF,                   IMAGE2)             += gif
> diff --git a/tests/fate/demux.mak b/tests/fate/demux.mak
> index 8a2703fc84..261b004d69 100644
> --- a/tests/fate/demux.mak
> +++ b/tests/fate/demux.mak
> @@ -36,6 +36,10 @@ fate-d-cinema-demux: CMD = framecrc -i $(TARGET_SAMPLES)/d-cinema/THX_Science_FL
>  FATE_SAMPLES_DEMUX-$(CONFIG_EA_DEMUXER) += fate-d-eavp6-demux
>  fate-d-eavp6-demux: CMD = framecrc -i $(TARGET_SAMPLES)/ea-vp6/SmallRing.vp6 -map 0 -vcodec copy
>  
> +FATE_SAMPLES_DEMUX-$(CONFIG_FITS_DEMUXER) += fate-fits-demux
> +fate-fits-demux: tests/data/fits-multi.fits
> +fate-fits-demux: CMD = framecrc -i $(TARGET_PATH)/tests/data/fits-multi.fits -vcodec copy
> +
>  FATE_SAMPLES_DEMUX-$(CONFIG_FLV_DEMUXER) += fate-flv-demux
>  fate-flv-demux: CMD = framecrc -i $(TARGET_SAMPLES)/flv/Enigma_Principles_of_Lust-part.flv -codec copy
>  
> diff --git a/tests/fate/fits.mak b/tests/fate/fits.mak
> new file mode 100644
> index 0000000000..bc1b771a52
> --- /dev/null
> +++ b/tests/fate/fits.mak

> @@ -0,0 +1,59 @@
> +tests/data/fits-multi.fits: TAG = GEN
> +tests/data/fits-multi.fits: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
> +	$(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \
> +        -i $(TARGET_SAMPLES)/gif/m4nb.gif \
> +        -y $(TARGET_PATH)/$(@) 2>/dev/null
> +
> +#mapping of fits file formats to png filenames
> +map.tests/data/lena-gray.fits    := gray8
> +map.tests/data/lena-gbrp.fits    := rgb24
> +map.tests/data/lena-gbrp16.fits  := rgb48
> +map.tests/data/lena-gbrap16.fits := rgba64
> +
> +tests/data/lena%.fits: TAG = GEN
> +tests/data/lena%.fits: NAME = $(map.$(@))

> +tests/data/lena%.fits: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
> +	$(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \
> +        -i $(TARGET_SAMPLES)/png1/lena-$(map.$(@)).png \
> +        -y $(TARGET_PATH)/$(@) 2>/dev/null

This is missing png dependancies or should not use a png file


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170908/ddda0cfb/attachment.sig>


More information about the ffmpeg-devel mailing list