MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_libwebp_error_to_averror

Function ff_libwebp_error_to_averror

libavcodec/libwebpenc_common.c:68–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66};
67
68int ff_libwebp_error_to_averror(int err)
69{
70 switch (err) {
71 case VP8_ENC_ERROR_OUT_OF_MEMORY:
72 case VP8_ENC_ERROR_BITSTREAM_OUT_OF_MEMORY:
73 return AVERROR(ENOMEM);
74 case VP8_ENC_ERROR_NULL_PARAMETER:
75 case VP8_ENC_ERROR_INVALID_CONFIGURATION:
76 case VP8_ENC_ERROR_BAD_DIMENSION:
77 return AVERROR(EINVAL);
78 }
79 return AVERROR_UNKNOWN;
80}
81
82av_cold int ff_libwebp_encode_init_common(AVCodecContext *avctx)
83{

Callers 2

libwebp_encode_frameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected