summaryrefslogtreecommitdiff
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-02-24 19:04:43 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-02-24 19:04:43 +0000
commita05aa821b67d48a008e0f470fd2f9656603d40f5 (patch)
tree408bffd48850ee9ff0b6e02150829ebf93835d3b /libavcodec/internal.h
parent6059f13cad4a0a980def65f3c185ce8ee7e7e0b9 (diff)
add ff_find_hwaccel() by Gwenole Beauchesne
Originally committed as revision 17569 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r--libavcodec/internal.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index a8bed35f2d..9f40538db5 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -24,6 +24,9 @@
#ifndef AVCODEC_INTERNAL_H
#define AVCODEC_INTERNAL_H
+#include <stdint.h>
+#include "avcodec.h"
+
/**
* Logs a generic warning message about a missing feature.
* @param[in] avc a pointer to an arbitrary struct of which the first field is
@@ -44,4 +47,14 @@ void ff_log_missing_feature(void *avc, const char *feature, int want_sample);
*/
void ff_log_ask_for_sample(void *avc, const char *msg);
+/**
+ * Returns the hardware accelerated codec for codec \p codec_id and
+ * pixel format \p pix_fmt.
+ *
+ * @param codec_id the codec to match
+ * @param pix_fmt the pixel format to match
+ * @return the hardware accelerated codec, or NULL if none was found.
+ */
+AVHWAccel *ff_find_hwaccel(enum CodecID codec_id, enum PixelFormat pix_fmt);
+
#endif /* AVCODEC_INTERNAL_H */