mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 17:22:29 +00:00
52 lines
1.5 KiB
C
52 lines
1.5 KiB
C
|
/* AV1
|
||
|
* Copyright (C) 2018 Wonchul Lee <chul0812@gmail.com>
|
||
|
*
|
||
|
* This library is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU Library General Public
|
||
|
* License as published by the Free Software Foundation; either
|
||
|
* version 2 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
|
||
|
* Library General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Library General Public
|
||
|
* License along with this library; if not, write to the
|
||
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||
|
* Boston, MA 02110-1301, USA.
|
||
|
*/
|
||
|
|
||
|
#ifdef HAVE_CONFIG_H
|
||
|
#include "config.h"
|
||
|
#endif
|
||
|
|
||
|
#include "gstav1utils.h"
|
||
|
|
||
|
const char *
|
||
|
gst_av1_get_error_name (aom_codec_err_t status)
|
||
|
{
|
||
|
switch (status) {
|
||
|
case AOM_CODEC_OK:
|
||
|
return "OK";
|
||
|
case AOM_CODEC_ERROR:
|
||
|
return "error";
|
||
|
case AOM_CODEC_MEM_ERROR:
|
||
|
return "mem error";
|
||
|
case AOM_CODEC_ABI_MISMATCH:
|
||
|
return "abi mismatch";
|
||
|
case AOM_CODEC_INCAPABLE:
|
||
|
return "incapable";
|
||
|
case AOM_CODEC_UNSUP_BITSTREAM:
|
||
|
return "unsupported bitstream";
|
||
|
case AOM_CODEC_UNSUP_FEATURE:
|
||
|
return "unsupported feature";
|
||
|
case AOM_CODEC_CORRUPT_FRAME:
|
||
|
return "corrupt frame";
|
||
|
case AOM_CODEC_INVALID_PARAM:
|
||
|
return "invalid parameter";
|
||
|
default:
|
||
|
return "unknown";
|
||
|
}
|
||
|
}
|