| 66 | }; |
| 67 | |
| 68 | int 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 | |
| 82 | av_cold int ff_libwebp_encode_init_common(AVCodecContext *avctx) |
| 83 | { |
no outgoing calls
no test coverage detected