summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-07-02 11:31:26 +0200
committerJanne Grunau <janne-libav@jannau.net>2012-07-13 19:22:46 +0200
commitf30260d32a92c7e12984dd6fb2238da35d6a4c03 (patch)
tree0c3d18f8c416d1f2cd5b2503650906aad4b4880d /libavcodec/avcodec.h
parentac29054fda1fab73c443b7d6f9dd72a9f25f7aae (diff)
imgconvert: deprecate avcodec_find_best_pix_fmt()
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 9e1aa1c927..71f2e7093f 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -4202,7 +4202,10 @@ unsigned int avcodec_pix_fmt_to_codec_tag(enum PixelFormat pix_fmt);
int avcodec_get_pix_fmt_loss(enum PixelFormat dst_pix_fmt, enum PixelFormat src_pix_fmt,
int has_alpha);
+#if FF_API_FIND_BEST_PIX_FMT
/**
+ * @deprecated use avcodec_find_best_pix_fmt2() instead.
+ *
* Find the best pixel format to convert to given a certain source pixel
* format. When converting from one pixel format to another, information loss
* may occur. For example, when converting from RGB24 to GRAY, the color
@@ -4224,8 +4227,10 @@ int avcodec_get_pix_fmt_loss(enum PixelFormat dst_pix_fmt, enum PixelFormat src_
* @param[out] loss_ptr Combination of flags informing you what kind of losses will occur.
* @return The best pixel format to convert to or -1 if none was found.
*/
+attribute_deprecated
enum PixelFormat avcodec_find_best_pix_fmt(int64_t pix_fmt_mask, enum PixelFormat src_pix_fmt,
int has_alpha, int *loss_ptr);
+#endif /* FF_API_FIND_BEST_PIX_FMT */
/**
* Find the best pixel format to convert to given a certain source pixel