comparison avformat.h @ 1258:558c75bd81a0 libavformat

attribute_deprecated
author michael
date Sun, 20 Aug 2006 10:42:11 +0000
parents d06e5cb7fb52
children f40d75601106
comparison
equal deleted inserted replaced
1257:6c654821b0ae 1258:558c75bd81a0
77 77
78 /* the exact value of the fractional number is: 'val + num / den'. num 78 /* the exact value of the fractional number is: 'val + num / den'. num
79 is assumed to be such as 0 <= num < den */ 79 is assumed to be such as 0 <= num < den */
80 typedef struct AVFrac { 80 typedef struct AVFrac {
81 int64_t val, num, den; 81 int64_t val, num, den;
82 } AVFrac; 82 } AVFrac attribute_deprecated;
83 83
84 /*************************************************/ 84 /*************************************************/
85 /* input/output formats */ 85 /* input/output formats */
86 86
87 struct AVFormatContext; 87 struct AVFormatContext;
349 349
350 extern AVInputFormat *first_iformat; 350 extern AVInputFormat *first_iformat;
351 extern AVOutputFormat *first_oformat; 351 extern AVOutputFormat *first_oformat;
352 352
353 /* still image support */ 353 /* still image support */
354 struct AVInputImageContext; 354 struct AVInputImageContext attribute_deprecated;
355 typedef struct AVInputImageContext AVInputImageContext; 355 typedef struct AVInputImageContext AVInputImageContext attribute_deprecated;
356 356
357 typedef struct AVImageInfo { 357 typedef struct AVImageInfo {
358 enum PixelFormat pix_fmt; /* requested pixel format */ 358 enum PixelFormat pix_fmt; /* requested pixel format */
359 int width; /* requested width */ 359 int width; /* requested width */
360 int height; /* requested height */ 360 int height; /* requested height */
361 int interleaved; /* image is interleaved (e.g. interleaved GIF) */ 361 int interleaved; /* image is interleaved (e.g. interleaved GIF) */
362 AVPicture pict; /* returned allocated image */ 362 AVPicture pict; /* returned allocated image */
363 } AVImageInfo; 363 } AVImageInfo attribute_deprecated;
364 364
365 /* AVImageFormat.flags field constants */ 365 /* AVImageFormat.flags field constants */
366 #define AVIMAGE_INTERLEAVED 0x0001 /* image format support interleaved output */ 366 #define AVIMAGE_INTERLEAVED 0x0001 /* image format support interleaved output */
367 367
368 typedef struct AVImageFormat { 368 typedef struct AVImageFormat {
379 /* write the image */ 379 /* write the image */
380 int supported_pixel_formats; /* mask of supported formats for output */ 380 int supported_pixel_formats; /* mask of supported formats for output */
381 int (*img_write)(ByteIOContext *, AVImageInfo *); 381 int (*img_write)(ByteIOContext *, AVImageInfo *);
382 int flags; 382 int flags;
383 struct AVImageFormat *next; 383 struct AVImageFormat *next;
384 } AVImageFormat; 384 } AVImageFormat attribute_deprecated;
385 385
386 void av_register_image_format(AVImageFormat *img_fmt); 386 void av_register_image_format(AVImageFormat *img_fmt) attribute_deprecated;
387 AVImageFormat *av_probe_image_format(AVProbeData *pd); 387 AVImageFormat *av_probe_image_format(AVProbeData *pd) attribute_deprecated;
388 AVImageFormat *guess_image_format(const char *filename); 388 AVImageFormat *guess_image_format(const char *filename) attribute_deprecated;
389 enum CodecID av_guess_image2_codec(const char *filename); 389 enum CodecID av_guess_image2_codec(const char *filename);
390 int av_read_image(ByteIOContext *pb, const char *filename, 390 int av_read_image(ByteIOContext *pb, const char *filename,
391 AVImageFormat *fmt, 391 AVImageFormat *fmt,
392 int (*alloc_cb)(void *, AVImageInfo *info), void *opaque); 392 int (*alloc_cb)(void *, AVImageInfo *info), void *opaque) attribute_deprecated;
393 int av_write_image(ByteIOContext *pb, AVImageFormat *fmt, AVImageInfo *img); 393 int av_write_image(ByteIOContext *pb, AVImageFormat *fmt, AVImageInfo *img) attribute_deprecated;
394 394
395 extern AVImageFormat *first_image_format; 395 extern AVImageFormat *first_image_format attribute_deprecated;
396 396
397 /* XXX: use automatic init with either ELF sections or C file parser */ 397 /* XXX: use automatic init with either ELF sections or C file parser */
398 /* modules */ 398 /* modules */
399 399
400 #include "rtp.h" 400 #include "rtp.h"