Skip to content
Snippets Groups Projects
avcodec.h 93.3 KiB
Newer Older
  • Learn to ignore specific revisions
  •  * @param[in,out] frame_rate pointer to the AVRational which will contain the detected
     * frame rate
     */
    int av_parse_video_frame_rate(AVRational *frame_rate, const char *str);
    
    
    Diego Biurrun's avatar
    Diego Biurrun committed
    #define AVERROR(e) (-(e)) /**< Returns a negative error code from a POSIX error code, to return from library functions. */
    #define AVUNERROR(e) (-(e)) /**< Returns a POSIX error code from a library function error return value. */
    
    Diego Biurrun's avatar
    Diego Biurrun committed
    /* Some platforms have E* and errno already negated. */
    
    #define AVERROR(e) (e)
    #define AVUNERROR(e) (e)
    #endif
    #define AVERROR_UNKNOWN     AVERROR(EINVAL)  /**< unknown error */
    
    Diego Biurrun's avatar
    Diego Biurrun committed
    #define AVERROR_IO          AVERROR(EIO)     /**< I/O error */
    #define AVERROR_NUMEXPECTED AVERROR(EDOM)    /**< Number syntax expected in filename. */
    
    #define AVERROR_INVALIDDATA AVERROR(EINVAL)  /**< invalid data found */
    #define AVERROR_NOMEM       AVERROR(ENOMEM)  /**< not enough memory */
    #define AVERROR_NOFMT       AVERROR(EILSEQ)  /**< unknown format */
    
    Diego Biurrun's avatar
    Diego Biurrun committed
    #define AVERROR_NOTSUPP     AVERROR(ENOSYS)  /**< Operation not supported. */
    
    Benoit Fouet's avatar
    Benoit Fouet committed
    #define AVERROR_NOENT       AVERROR(ENOENT)  /**< No such file or directory. */
    
    #define AVERROR_PATCHWELCOME    -MKTAG('P','A','W','E') /**< Not yet implemented in FFmpeg. Patches welcome. */
    
    #endif /* FFMPEG_AVCODEC_H */