Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-12-18 18:42:24 +0300
committerAnton Khirnov <anton@khirnov.net>2017-01-12 18:24:15 +0300
commit019ab88a95cb31b698506d90e8ce56695a7f1cc5 (patch)
tree8c4564aff6be5c1270de110e5709cf101bc8ec31 /libavcodec/internal.h
parent52627248e49e58eb4b78e4fcda90a64f4c476ea3 (diff)
lavc: add an option for exporting cropping information to the caller
Also, add generic code for handling cropping, so the decoders can export just the cropping size and not bother with the rest.
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r--libavcodec/internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 796d45ff6e..5b82504bfb 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -53,6 +53,12 @@
* from the input AVPacket.
*/
#define FF_CODEC_CAP_SETS_PKT_DTS (1 << 2)
+/**
+ * The decoder sets the cropping fields in the output frames manually.
+ * If this cap is set, the generic code will initialize output frame
+ * dimensions to coded rather than display values.
+ */
+#define FF_CODEC_CAP_EXPORTS_CROPPING (1 << 3)
#ifdef DEBUG
# define ff_dlog(ctx, ...) av_log(ctx, AV_LOG_DEBUG, __VA_ARGS__)