Created
June 29, 2016 09:22
-
-
Save BtbN/79571efbc0e822b98ae48e1347f0f4eb to your computer and use it in GitHub Desktop.
stdin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h | |
index 04bf585..757b81a 100644 | |
--- a/libavfilter/avfilter.h | |
+++ b/libavfilter/avfilter.h | |
@@ -37,6 +37,7 @@ | |
#include "libavutil/attributes.h" | |
#include "libavutil/avutil.h" | |
+#include "libavutil/buffer.h" | |
#include "libavutil/dict.h" | |
#include "libavutil/frame.h" | |
#include "libavutil/log.h" | |
@@ -349,6 +350,15 @@ struct AVFilterContext { | |
void *enable; ///< parsed expression (AVExpr*) | |
double *var_values; ///< variable values for the enable expression | |
int is_disabled; ///< the enabled state from the last expression evaluation | |
+ | |
+ /** | |
+ * For filters which will create hardware frames, sets the device the | |
+ * filter should create them in. All other filters will ignore this field: | |
+ * in particular, a filter which consumes or processes hardware frames will | |
+ * instead use the hw_frames_ctx field in AVFilterLink to carry the | |
+ * hardware context information. | |
+ */ | |
+ AVBufferRef *hw_device_ctx; | |
}; | |
/** | |
@@ -534,6 +544,12 @@ struct AVFilterLink { | |
* cleared when a frame is filtered. | |
*/ | |
int frame_wanted_out; | |
+ | |
+ /** | |
+ * For hwaccel pixel formats, this should be a reference to the | |
+ * AVHWFramesContext describing the frames. | |
+ */ | |
+ AVBufferRef *hw_frames_ctx; | |
}; | |
/** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment