comparison 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
comparison
equal deleted inserted replaced
1207:162be12df86a 1208:0f37976aa436
13 13
14 #include "common.h" 14 #include "common.h"
15 15
16 #define LIBAVCODEC_VERSION_INT 0x000406 16 #define LIBAVCODEC_VERSION_INT 0x000406
17 #define LIBAVCODEC_VERSION "0.4.6" 17 #define LIBAVCODEC_VERSION "0.4.6"
18 #define LIBAVCODEC_BUILD 4665 18 #define LIBAVCODEC_BUILD 4666
19 #define LIBAVCODEC_BUILD_STR "4665" 19 #define LIBAVCODEC_BUILD_STR "4666"
20 20
21 #define LIBAVCODEC_IDENT "FFmpeg" LIBAVCODEC_VERSION "b" LIBAVCODEC_BUILD_STR 21 #define LIBAVCODEC_IDENT "FFmpeg" LIBAVCODEC_VERSION "b" LIBAVCODEC_BUILD_STR
22 22
23 enum CodecID { 23 enum CodecID {
24 CODEC_ID_NONE, 24 CODEC_ID_NONE,
1274 int avcodec_get_pix_fmt_loss(int dst_pix_fmt, int src_pix_fmt, 1274 int avcodec_get_pix_fmt_loss(int dst_pix_fmt, int src_pix_fmt,
1275 int has_alpha); 1275 int has_alpha);
1276 int avcodec_find_best_pix_fmt(int pix_fmt_mask, int src_pix_fmt, 1276 int avcodec_find_best_pix_fmt(int pix_fmt_mask, int src_pix_fmt,
1277 int has_alpha, int *loss_ptr); 1277 int has_alpha, int *loss_ptr);
1278 1278
1279 #define FF_ALPHA_TRANSP 0x0001 /* image has some totally transparent pixels */
1280 #define FF_ALPHA_SEMI_TRANSP 0x0002 /* image has some transparent pixels */
1281 int img_get_alpha_info(AVPicture *src, int pix_fmt, int width, int height);
1282
1279 /* convert among pixel formats */ 1283 /* convert among pixel formats */
1280 int img_convert(AVPicture *dst, int dst_pix_fmt, 1284 int img_convert(AVPicture *dst, int dst_pix_fmt,
1281 AVPicture *src, int pix_fmt, 1285 AVPicture *src, int pix_fmt,
1282 int width, int height); 1286 int width, int height);
1283 1287