While I examine the source code of ffmpeg, I see this line:
enum AVDurationEstimationMethod av_fmt_ctx_get_duration_estimation_method
(const AVFormatContext* ctx);
What is the functionality of enum here?
av_fmt_ctx_get_duration_estimation_method is a function which returns an object of enum type AVDurationEstimationMethod .
enum AVDurationEstimationMethodenum AVDurationEstimationMethod together is a type which the function av_fmt_ctx_get_duration_estimation_method returns
The keyword enum, like struct and union, is necessary to represent the type. To omit it, use typedef:
typedef enum AVDurationEstimationMethod sometype;
Then you can use it like:
sometype av_fmt_ctx_get_duration_estimation_method(const AVFormatContext* ctx);