Mercurial > libavcodec.hg
comparison avcodec.h @ 2270:21f450be6cb5 libavcodec
lowres width/height cleanup 3rd try
author | michael |
---|---|
date | Mon, 27 Sep 2004 11:50:56 +0000 |
parents | 514949de5d15 |
children | cd43603c46f9 |
comparison
equal
deleted
inserted
replaced
2269:535b7dfee202 | 2270:21f450be6cb5 |
---|---|
15 #include "rational.h" | 15 #include "rational.h" |
16 #include <sys/types.h> /* size_t */ | 16 #include <sys/types.h> /* size_t */ |
17 | 17 |
18 #define FFMPEG_VERSION_INT 0x000409 | 18 #define FFMPEG_VERSION_INT 0x000409 |
19 #define FFMPEG_VERSION "0.4.9-pre1" | 19 #define FFMPEG_VERSION "0.4.9-pre1" |
20 #define LIBAVCODEC_BUILD 4724 | 20 #define LIBAVCODEC_BUILD 4725 |
21 | 21 |
22 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT | 22 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT |
23 #define LIBAVCODEC_VERSION FFMPEG_VERSION | 23 #define LIBAVCODEC_VERSION FFMPEG_VERSION |
24 | 24 |
25 #define AV_STRINGIFY(s) AV_TOSTRING(s) | 25 #define AV_STRINGIFY(s) AV_TOSTRING(s) |
675 * - decoding: set by lavc. 0 or the frame_rate if available | 675 * - decoding: set by lavc. 0 or the frame_rate if available |
676 */ | 676 */ |
677 int frame_rate; | 677 int frame_rate; |
678 | 678 |
679 /** | 679 /** |
680 * width / height. | 680 * picture width / height. |
681 * - encoding: MUST be set by user. | 681 * - encoding: MUST be set by user. |
682 * - decoding: set by user if known, codec should override / dynamically change if needed | 682 * - decoding: set by lavc. |
683 * Note, for compatibility its possible to set this instead of | |
684 * coded_width/height before decoding | |
683 */ | 685 */ |
684 int width, height; | 686 int width, height; |
685 | 687 |
686 #define FF_ASPECT_EXTENDED 15 | 688 #define FF_ASPECT_EXTENDED 15 |
687 | 689 |
1661 * low resolution decoding. 1-> 1/2 size, 2->1/4 size | 1663 * low resolution decoding. 1-> 1/2 size, 2->1/4 size |
1662 * - encoding: unused | 1664 * - encoding: unused |
1663 * - decoding: set by user | 1665 * - decoding: set by user |
1664 */ | 1666 */ |
1665 int lowres; | 1667 int lowres; |
1668 | |
1669 /** | |
1670 * bistream width / height. may be different from width/height if lowres | |
1671 * or other things are used | |
1672 * - encoding: unused | |
1673 * - decoding: set by user before init if known, codec should override / dynamically change if needed | |
1674 */ | |
1675 int coded_width, coded_height; | |
1666 } AVCodecContext; | 1676 } AVCodecContext; |
1667 | 1677 |
1668 | 1678 |
1669 /** | 1679 /** |
1670 * AVOption. | 1680 * AVOption. |
1970 int avpicture_layout(const AVPicture* src, int pix_fmt, int width, int height, | 1980 int avpicture_layout(const AVPicture* src, int pix_fmt, int width, int height, |
1971 unsigned char *dest, int dest_size); | 1981 unsigned char *dest, int dest_size); |
1972 int avpicture_get_size(int pix_fmt, int width, int height); | 1982 int avpicture_get_size(int pix_fmt, int width, int height); |
1973 void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift); | 1983 void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift); |
1974 const char *avcodec_get_pix_fmt_name(int pix_fmt); | 1984 const char *avcodec_get_pix_fmt_name(int pix_fmt); |
1985 void avcodec_set_dimensions(AVCodecContext *s, int width, int height); | |
1975 enum PixelFormat avcodec_get_pix_fmt(const char* name); | 1986 enum PixelFormat avcodec_get_pix_fmt(const char* name); |
1976 | 1987 |
1977 #define FF_LOSS_RESOLUTION 0x0001 /* loss due to resolution change */ | 1988 #define FF_LOSS_RESOLUTION 0x0001 /* loss due to resolution change */ |
1978 #define FF_LOSS_DEPTH 0x0002 /* loss due to color depth change */ | 1989 #define FF_LOSS_DEPTH 0x0002 /* loss due to color depth change */ |
1979 #define FF_LOSS_COLORSPACE 0x0004 /* loss due to color space conversion */ | 1990 #define FF_LOSS_COLORSPACE 0x0004 /* loss due to color space conversion */ |