]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libwebpenc_common.h
Merge commit '9b56ac74b170d12027fbc81f581a451a709f1105'
[ffmpeg] / libavcodec / libwebpenc_common.h
index ea2410ceac4d49aa924c71335800785a39418030..e74e57939e763c2ff8dbeed82465ac926a06de4d 100644 (file)
@@ -24,6 +24,9 @@
  * WebP encoder using libwebp: common structs and methods.
  */
 
+#ifndef AVCODEC_LIBWEBPENC_COMMON_H
+#define AVCODEC_LIBWEBPENC_COMMON_H
+
 #include <webp/encode.h>
 
 #include "libavutil/common.h"
@@ -54,8 +57,6 @@ int ff_libwebp_get_frame(AVCodecContext *avctx, LibWebPContextCommon *s,
                          const AVFrame *frame, AVFrame **alt_frame_ptr,
                          WebPPicture **pic_ptr);
 
-int ff_libwebp_encode_close_common(AVCodecContext *avctx);
-
 #define OFFSET(x) offsetof(LibWebPContextCommon, x)
 #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
 static const AVOption options[] = {
@@ -74,16 +75,10 @@ static const AVOption options[] = {
     { NULL },
 };
 
-
-static const AVClass class = {
-    .class_name = "libwebp",
-    .item_name  = av_default_item_name,
-    .option     = options,
-    .version    = LIBAVUTIL_VERSION_INT,
-};
-
 static const AVCodecDefault libwebp_defaults[] = {
     { "compression_level",  "4"  },
     { "global_quality",     "-1" },
     { NULL },
 };
+
+#endif /* AVCODEC_LIBWEBPENC_COMMON_H */