diff internal.h @ 9033:bcf716c58be4 libavcodec

add ff_find_hwaccel() by Gwenole Beauchesne
author michael
date Tue, 24 Feb 2009 19:04:43 +0000
parents e9d9d946f213
children 2e0b55e4474f
line wrap: on
line diff
--- a/internal.h	Tue Feb 24 18:51:16 2009 +0000
+++ b/internal.h	Tue Feb 24 19:04:43 2009 +0000
@@ -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_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 */