diff options
author | Stefano Sabatini | 2012-12-09 18:40:22 +0100 |
---|---|---|
committer | Stefano Sabatini | 2013-01-27 16:56:47 +0100 |
commit | 43af18ef8bd97123b85c02877aa22a0f4ea56ab5 (patch) | |
tree | ccbcc4e8983811a36a4fe0fba35ad7457e4fb751 /ffmpeg.h | |
parent | 2b14344ab36efca915475a91feb744f8f4101cd5 (diff) |
ffmpeg: implement -force_key_frames expression evalution
Diffstat (limited to 'ffmpeg.h')
-rw-r--r-- | ffmpeg.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -41,6 +41,7 @@ #include "libavutil/avutil.h" #include "libavutil/dict.h" +#include "libavutil/eval.h" #include "libavutil/fifo.h" #include "libavutil/pixfmt.h" #include "libavutil/rational.h" @@ -289,6 +290,17 @@ typedef struct InputFile { #endif } InputFile; +enum forced_keyframes_const { + FKF_N, + FKF_N_FORCED, + FKF_PREV_FORCED_N, + FKF_PREV_FORCED_T, + FKF_T, + FKF_NB +}; + +extern const char *const forced_keyframes_const_names[]; + typedef struct OutputStream { int file_index; /* file index */ int index; /* stream index in the output file */ @@ -320,6 +332,8 @@ typedef struct OutputStream { int forced_kf_count; int forced_kf_index; char *forced_keyframes; + AVExpr *forced_keyframes_pexpr; + double forced_keyframes_expr_const_values[FKF_NB]; /* audio only */ int audio_channels_map[SWR_CH_MAX]; /* list of the channels id to pick from the source stream */ |