diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-26 06:19:42 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-04-27 10:43:04 -0300 |
commit | d947464ad41ea634ab19f8d631bfc035e4a902c1 (patch) | |
tree | 9ca8597da6dfcf71f9bebb6ae4a9bf9aae80a800 /libavcodec/tests | |
parent | af581cf79d317e798482a095faae781142633f49 (diff) | |
download | ffmpeg-d947464ad41ea634ab19f8d631bfc035e4a902c1.tar.gz |
avcodec: Remove deprecated AVPicture API
Deprecated in a17a7661906ba295d67afd80ac0770422e1b02b3.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/tests')
-rw-r--r-- | libavcodec/tests/.gitignore | 1 | ||||
-rw-r--r-- | libavcodec/tests/imgconvert.c | 46 |
2 files changed, 0 insertions, 47 deletions
diff --git a/libavcodec/tests/.gitignore b/libavcodec/tests/.gitignore index 92aab1b73c..69bf891f44 100644 --- a/libavcodec/tests/.gitignore +++ b/libavcodec/tests/.gitignore @@ -11,7 +11,6 @@ /h265_levels /htmlsubtitles /iirfilter -/imgconvert /jpeg2000dwt /mathops /mjpegenc_huffman diff --git a/libavcodec/tests/imgconvert.c b/libavcodec/tests/imgconvert.c deleted file mode 100644 index aefc324bf5..0000000000 --- a/libavcodec/tests/imgconvert.c +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Misc image conversion routines - * Copyright (c) 2001, 2002, 2003 Fabrice Bellard - * - * This file is part of FFmpeg. - * - * FFmpeg 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. - * - * FFmpeg 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 FFmpeg; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include "libavcodec/imgconvert.c" - -#if FF_API_AVPICTURE -FF_DISABLE_DEPRECATION_WARNINGS -int main(void){ - int i; - int err=0; - int skip = 0; - - for (i=0; i<AV_PIX_FMT_NB*2; i++) { - const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(i); - if(!desc || !desc->name) { - skip ++; - continue; - } - if (skip) { - av_log(NULL, AV_LOG_INFO, "%3d unused pixel format values\n", skip); - skip = 0; - } - av_log(NULL, AV_LOG_INFO, "pix fmt %s yuv_plan:%d avg_bpp:%d\n", desc->name, is_yuv_planar(desc), av_get_padded_bits_per_pixel(desc)); - } - return err; -} -FF_ENABLE_DEPRECATION_WARNINGS -#endif /* FF_API_AVPICTURE */ |