| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Various utilities for command line tools | 2  * Various utilities for command line tools | 
| 3  * copyright (c) 2003 Fabrice Bellard | 3  * copyright (c) 2003 Fabrice Bellard | 
| 4  * | 4  * | 
| 5  * This file is part of FFmpeg. | 5  * This file is part of FFmpeg. | 
| 6  * | 6  * | 
| 7  * FFmpeg is free software; you can redistribute it and/or | 7  * FFmpeg is free software; you can redistribute it and/or | 
| 8  * modify it under the terms of the GNU Lesser General Public | 8  * modify it under the terms of the GNU Lesser General Public | 
| 9  * License as published by the Free Software Foundation; either | 9  * License as published by the Free Software Foundation; either | 
| 10  * version 2.1 of the License, or (at your option) any later version. | 10  * version 2.1 of the License, or (at your option) any later version. | 
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 254  * which might have incorrect times. Input timestamps may wrap around, in | 254  * which might have incorrect times. Input timestamps may wrap around, in | 
| 255  * which case the output will as well. | 255  * which case the output will as well. | 
| 256  * | 256  * | 
| 257  * @param pts the pts field of the decoded AVPacket, as passed through | 257  * @param pts the pts field of the decoded AVPacket, as passed through | 
| 258  * AVCodecContext.reordered_opaque | 258  * AVCodecContext.reordered_opaque | 
| 259  * @param dts the dts field of the decoded AVPacket | 259  * @param dts the dts field of the decoded AVPacket | 
| 260  * @return one of the input values, may be AV_NOPTS_VALUE | 260  * @return one of the input values, may be AV_NOPTS_VALUE | 
| 261  */ | 261  */ | 
| 262 int64_t guess_correct_pts(PtsCorrectionContext *ctx, int64_t pts, int64_t dts); | 262 int64_t guess_correct_pts(PtsCorrectionContext *ctx, int64_t pts, int64_t dts); | 
| 263 | 263 | 
|  | 264 #if CONFIG_AVFILTER | 
|  | 265 #include "libavfilter/avfilter.h" | 
|  | 266 | 
|  | 267 typedef struct { | 
|  | 268     enum PixelFormat pix_fmt; | 
|  | 269 } FFSinkContext; | 
|  | 270 | 
|  | 271 extern AVFilter ffsink; | 
|  | 272 | 
|  | 273 /** | 
|  | 274  * Extract a frame from sink. | 
|  | 275  * | 
|  | 276  * @return a negative error in case of failure, 1 if one frame has | 
|  | 277  * been extracted successfully. | 
|  | 278  */ | 
|  | 279 int get_filtered_video_frame(AVFilterContext *sink, AVFrame *frame, | 
|  | 280                              AVFilterBufferRef **picref, AVRational *pts_tb); | 
|  | 281 | 
|  | 282 #endif /* CONFIG_AVFILTER */ | 
|  | 283 | 
| 264 #endif /* FFMPEG_CMDUTILS_H */ | 284 #endif /* FFMPEG_CMDUTILS_H */ | 
| OLD | NEW | 
|---|