Mercurial > libavcodec.hg
diff avcodec.h @ 1208:0f37976aa436 libavcodec
added img_get_alpha_info()
author | bellard |
---|---|
date | Mon, 21 Apr 2003 21:20:46 +0000 |
parents | b448d7c17215 |
children | ede882dd601f |
line wrap: on
line diff
--- a/avcodec.h Mon Apr 21 15:15:59 2003 +0000 +++ b/avcodec.h Mon Apr 21 21:20:46 2003 +0000 @@ -15,8 +15,8 @@ #define LIBAVCODEC_VERSION_INT 0x000406 #define LIBAVCODEC_VERSION "0.4.6" -#define LIBAVCODEC_BUILD 4665 -#define LIBAVCODEC_BUILD_STR "4665" +#define LIBAVCODEC_BUILD 4666 +#define LIBAVCODEC_BUILD_STR "4666" #define LIBAVCODEC_IDENT "FFmpeg" LIBAVCODEC_VERSION "b" LIBAVCODEC_BUILD_STR @@ -1276,6 +1276,10 @@ int avcodec_find_best_pix_fmt(int pix_fmt_mask, int src_pix_fmt, int has_alpha, int *loss_ptr); +#define FF_ALPHA_TRANSP 0x0001 /* image has some totally transparent pixels */ +#define FF_ALPHA_SEMI_TRANSP 0x0002 /* image has some transparent pixels */ +int img_get_alpha_info(AVPicture *src, int pix_fmt, int width, int height); + /* convert among pixel formats */ int img_convert(AVPicture *dst, int dst_pix_fmt, AVPicture *src, int pix_fmt,