mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
tests: add test for MPEG-4:2 decoding.
This commit is contained in:
parent
1bd5ab4db3
commit
0e5895c318
4 changed files with 1715 additions and 1 deletions
|
@ -56,7 +56,13 @@ TEST_LIBS += \
|
|||
$(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-wayland-@GST_MAJORMINOR@.la
|
||||
endif
|
||||
|
||||
test_codecs_source_c = test-mpeg2.c test-h264.c test-vc1.c test-jpeg.c
|
||||
test_codecs_source_c = \
|
||||
test-h264.c \
|
||||
test-jpeg.c \
|
||||
test-mpeg2.c \
|
||||
test-mpeg4.c \
|
||||
test-vc1.c \
|
||||
$(NULL)
|
||||
test_codecs_source_h = $(test_codecs_source_c:%.c=%.h) test-decode.h
|
||||
|
||||
test_utils_source_c = image.c output.c $(test_codecs_source_c)
|
||||
|
|
|
@ -27,9 +27,11 @@
|
|||
#include <gst/vaapi/gstvaapidecoder_h264.h>
|
||||
#include <gst/vaapi/gstvaapidecoder_jpeg.h>
|
||||
#include <gst/vaapi/gstvaapidecoder_mpeg2.h>
|
||||
#include <gst/vaapi/gstvaapidecoder_mpeg4.h>
|
||||
#include <gst/vaapi/gstvaapidecoder_vc1.h>
|
||||
#include "test-jpeg.h"
|
||||
#include "test-mpeg2.h"
|
||||
#include "test-mpeg4.h"
|
||||
#include "test-h264.h"
|
||||
#include "test-vc1.h"
|
||||
#include "output.h"
|
||||
|
@ -49,6 +51,7 @@ static const CodecDefs g_codec_defs[] = {
|
|||
#define INIT_FUNCS(CODEC) { #CODEC, CODEC##_get_video_info }
|
||||
INIT_FUNCS(jpeg),
|
||||
INIT_FUNCS(mpeg2),
|
||||
INIT_FUNCS(mpeg4),
|
||||
INIT_FUNCS(h264),
|
||||
INIT_FUNCS(vc1),
|
||||
#undef INIT_FUNCS
|
||||
|
@ -150,6 +153,9 @@ main(int argc, char *argv[])
|
|||
case GST_VAAPI_CODEC_MPEG2:
|
||||
decoder = gst_vaapi_decoder_mpeg2_new(display, decoder_caps);
|
||||
break;
|
||||
case GST_VAAPI_CODEC_MPEG4:
|
||||
decoder = gst_vaapi_decoder_mpeg4_new(display, decoder_caps);
|
||||
break;
|
||||
case GST_VAAPI_CODEC_VC1:
|
||||
decoder = gst_vaapi_decoder_vc1_new(display, decoder_caps);
|
||||
break;
|
||||
|
|
1672
tests/test-mpeg4.c
Normal file
1672
tests/test-mpeg4.c
Normal file
File diff suppressed because it is too large
Load diff
30
tests/test-mpeg4.h
Normal file
30
tests/test-mpeg4.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* test-mpeg4.h - MPEG-4 test data
|
||||
*
|
||||
* Copyright (C) 2012 Intel Corporation
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2.1
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef TEST_MPEG4_H
|
||||
#define TEST_MPEG4_H
|
||||
|
||||
#include <glib.h>
|
||||
#include "test-decode.h"
|
||||
|
||||
void mpeg4_get_video_info(VideoDecodeInfo *info);
|
||||
|
||||
#endif /* TEST_MPEG4_H */
|
Loading…
Reference in a new issue