]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/imgconvert.h
Move av_fast_{m,re}alloc from lavc to lavu.
[ffmpeg] / libavcodec / imgconvert.h
index c99e58790675da790241ebb64b6d0f4ee1bfdf54..91e9f912445f540d9adee82ca513a15242529bd1 100644 (file)
@@ -1,9 +1,4 @@
 /*
- * Misc image conversion routines
- * most functionality is exported to the public API, see avcodec.h
- *
- * Copyright (c) 2008 Vitor Sessak
- *
  * This file is part of Libav.
  *
  * Libav is free software; you can redistribute it and/or
 #define AVCODEC_IMGCONVERT_H
 
 #include <stdint.h>
-#include "avcodec.h"
-
-#if LIBAVCODEC_VERSION_MAJOR < 53
-attribute_deprecated
-int ff_fill_linesize(AVPicture *picture, enum PixelFormat pix_fmt, int width);
-
-attribute_deprecated
-int ff_fill_pointer(AVPicture *picture, uint8_t *ptr, enum PixelFormat pix_fmt, int height);
-
-attribute_deprecated
-int ff_get_plane_bytewidth(enum PixelFormat pix_fmt, int width, int plane);
 
-attribute_deprecated
-int ff_set_systematic_pal(uint32_t pal[256], enum PixelFormat pix_fmt);
-#endif
+/* 1/2^n downscaling functions */
+void ff_shrink22(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height);
+void ff_shrink44(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height);
+void ff_shrink88(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height);
 
 #endif /* AVCODEC_IMGCONVERT_H */