27 #include <vlc_fourcc.h>
48 #define AUDIO_REPLAY_GAIN_MAX (2)
49 #define AUDIO_REPLAY_GAIN_TRACK (0)
50 #define AUDIO_REPLAY_GAIN_ALBUM (1)
74 uint16_t i_physical_channels;
78 uint32_t i_original_channels;
82 unsigned int i_bytes_per_frame;
85 unsigned int i_frame_length;
93 unsigned i_bitspersample;
94 unsigned i_blockalign;
99 #define AOUT_CHAN_CENTER 0x1
100 #define AOUT_CHAN_LEFT 0x2
101 #define AOUT_CHAN_RIGHT 0x4
102 #define AOUT_CHAN_REARCENTER 0x10
103 #define AOUT_CHAN_REARLEFT 0x20
104 #define AOUT_CHAN_REARRIGHT 0x40
105 #define AOUT_CHAN_MIDDLELEFT 0x100
106 #define AOUT_CHAN_MIDDLERIGHT 0x200
107 #define AOUT_CHAN_LFE 0x1000
109 #define AOUT_CHANS_FRONT (AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT)
110 #define AOUT_CHANS_MIDDLE (AOUT_CHAN_MIDDLELEFT | AOUT_CHAN_MIDDLERIGHT)
111 #define AOUT_CHANS_REAR (AOUT_CHAN_REARLEFT | AOUT_CHAN_REARRIGHT)
112 #define AOUT_CHANS_CENTER (AOUT_CHAN_CENTER | AOUT_CHAN_REARCENTER)
114 #define AOUT_CHANS_STEREO AOUT_CHANS_2_0
115 #define AOUT_CHANS_2_0 (AOUT_CHANS_FRONT)
116 #define AOUT_CHANS_2_1 (AOUT_CHANS_FRONT | AOUT_CHAN_LFE)
117 #define AOUT_CHANS_3_0 (AOUT_CHANS_FRONT | AOUT_CHAN_CENTER)
118 #define AOUT_CHANS_3_1 (AOUT_CHANS_3_0 | AOUT_CHAN_LFE)
119 #define AOUT_CHANS_4_0 (AOUT_CHANS_FRONT | AOUT_CHANS_REAR)
120 #define AOUT_CHANS_4_1 (AOUT_CHANS_4_0 | AOUT_CHAN_LFE)
121 #define AOUT_CHANS_5_0 (AOUT_CHANS_4_0 | AOUT_CHAN_CENTER)
122 #define AOUT_CHANS_5_1 (AOUT_CHANS_5_0 | AOUT_CHAN_LFE)
123 #define AOUT_CHANS_6_0 (AOUT_CHANS_4_0 | AOUT_CHANS_MIDDLE)
124 #define AOUT_CHANS_7_0 (AOUT_CHANS_6_0 | AOUT_CHAN_CENTER)
125 #define AOUT_CHANS_7_1 (AOUT_CHANS_5_1 | AOUT_CHANS_MIDDLE)
126 #define AOUT_CHANS_8_1 (AOUT_CHANS_7_1 | AOUT_CHAN_REARCENTER)
128 #define AOUT_CHANS_4_0_MIDDLE (AOUT_CHANS_FRONT | AOUT_CHANS_MIDDLE)
129 #define AOUT_CHANS_4_CENTER_REAR (AOUT_CHANS_FRONT | AOUT_CHANS_CENTER)
130 #define AOUT_CHANS_5_0_MIDDLE (AOUT_CHANS_4_0_MIDDLE | AOUT_CHAN_CENTER)
131 #define AOUT_CHANS_6_1_MIDDLE (AOUT_CHANS_5_0_MIDDLE | AOUT_CHAN_REARCENTER | AOUT_CHAN_LFE)
134 #define AOUT_CHAN_DOLBYSTEREO 0x10000
135 #define AOUT_CHAN_DUALMONO 0x20000
136 #define AOUT_CHAN_REVERSESTEREO 0x40000
138 #define AOUT_CHAN_PHYSMASK 0xFFFF
139 #define AOUT_CHAN_MAX 9
163 #define ORIENT_FROM_EXIF(exif) ((0x01324675U >> (4 * ((exif) - 1))) & 7)
165 #define ORIENT_TO_EXIF(orient) ((0x12435867U >> (4 * (orient))) & 15)
167 #define ORIENT_IS_MIRROR(orient) parity(orient)
169 #define ORIENT_IS_SWAP(orient) (((orient) & 4) != 0)
171 #define ORIENT_HFLIP(orient) ((orient) ^ 1)
173 #define ORIENT_VFLIP(orient) ((orient) ^ 2)
175 #define ORIENT_ROTATE_180(orient) ((orient) ^ 3)
194 unsigned int i_sar_den;
200 int i_rrshift, i_lrshift;
201 int i_rgshift, i_lgshift;
202 int i_rbshift, i_lbshift;
227 memcpy( p_dst, p_src,
sizeof( *p_dst ) );
292 uint32_t palette[16+1];
295 int i_original_frame_width;
297 int i_original_frame_height;
317 char *psz_description;
#define AUDIO_REPLAY_GAIN_MAX
Definition: vlc_es.h:48
video_orientation_t
Definition: vlc_es.h:144
VLC_API bool es_format_IsSimilar(const es_format_t *, const es_format_t *)
VLC_API void video_format_CopyCrop(video_format_t *, const video_format_t *)
VLC_API void video_format_Setup(video_format_t *, vlc_fourcc_t i_chroma, int i_width, int i_height, int i_sar_num, int i_sar_den)
VLC_API void video_format_ScaleCropAr(video_format_t *, const video_format_t *)
int i_entries
Definition: vlc_es.h:41
VLC_API void es_format_InitFromVideo(es_format_t *, const video_format_t *)
es_format_category_e
Definition: vlc_es.h:363
VLC_API void es_format_Init(es_format_t *, int i_cat, vlc_fourcc_t i_codec)
uint8_t palette[256][4]
Definition: vlc_es.h:42
struct extra_languages_t extra_languages_t
VLC_API bool video_format_IsSimilar(const video_format_t *, const video_format_t *)
#define VLC_SUCCESS
Definition: vlc_common.h:373
VLC_API int es_format_Copy(es_format_t *p_dst, const es_format_t *p_src)
#define VLC_ENOMEM
Definition: vlc_common.h:375
VLC_API void video_format_Print(vlc_object_t *, const char *, const video_format_t *)
uint32_t vlc_fourcc_t
Definition: vlc_common.h:160
VLC_API void video_format_FixRgb(video_format_t *)
VLC_API void es_format_Clean(es_format_t *fmt)
Definition: vlc_objects.h:42