VLC 4.0.0-dev
|
Functions | |
static int | fourcc_cmp (const void *key, const void *ent) |
static vlc_fourcc_t | Lookup (vlc_fourcc_t fourcc, const char **restrict dsc, const struct fourcc_mapping *mapv, size_t mapc, const struct fourcc_desc *dscv, size_t dscc) |
static vlc_fourcc_t | LookupVideo (vlc_fourcc_t fourcc, const char **restrict dsc) |
static vlc_fourcc_t | LookupAudio (vlc_fourcc_t fourcc, const char **restrict dsc) |
static vlc_fourcc_t | LookupSpu (vlc_fourcc_t fourcc, const char **restrict dsc) |
static vlc_fourcc_t | LookupCat (vlc_fourcc_t fourcc, const char **restrict dsc, int cat) |
vlc_fourcc_t | vlc_fourcc_GetCodec (int cat, vlc_fourcc_t fourcc) |
It returns the codec associated to a fourcc within an ES category. | |
vlc_fourcc_t | vlc_fourcc_GetCodecFromString (int i_cat, const char *psz_fourcc) |
It returns the codec associated to a fourcc stored in a zero terminated string. | |
vlc_fourcc_t | vlc_fourcc_GetCodecAudio (vlc_fourcc_t i_fourcc, int i_bits) |
It converts the given fourcc to an audio codec when possible. | |
const char * | vlc_fourcc_GetDescription (int cat, vlc_fourcc_t fourcc) |
It returns the description of the given fourcc or NULL if not found. | |
static const vlc_fourcc_t * | GetFallback (vlc_fourcc_t i_fourcc, const vlc_fourcc_t *const *pp_fallback, const vlc_fourcc_t p_list[]) |
const vlc_fourcc_t * | vlc_fourcc_GetYUVFallback (vlc_fourcc_t i_fourcc) |
It returns a list (terminated with the value 0) of YUV fourccs in decreasing priority order for the given chroma. | |
const vlc_fourcc_t * | vlc_fourcc_GetRGBFallback (vlc_fourcc_t i_fourcc) |
It returns a list (terminated with the value 0) of RGB fourccs in decreasing priority order for the given chroma. | |
const vlc_fourcc_t * | vlc_fourcc_GetFallback (vlc_fourcc_t i_fourcc) |
It returns a list (terminated with the value 0) of fourccs in decreasing priority order for the given chroma. | |
bool | vlc_fourcc_IsYUV (vlc_fourcc_t fcc) |
It returns true if the given fourcc is YUV and false otherwise. | |
const vlc_chroma_description_t * | vlc_fourcc_GetChromaDescription (vlc_fourcc_t i_fourcc) |
It returns a vlc_chroma_description_t describing the requested fourcc or NULL if not found. | |
#define FAKE_FMT | ( | ) |
#define PACKED_FMT | ( | size, | |
bits | |||
) |
#define PLANAR | ( | n, | |
w_den, | |||
h_den, | |||
bits | |||
) |
#define PLANAR_16 | ( | n, | |
w_den, | |||
h_den, | |||
bits | |||
) | PLANAR(n, w_den, h_den, bits) |
#define PLANAR_8 | ( | n, | |
w_den, | |||
h_den | |||
) | PLANAR(n, w_den, h_den, 8) |
#define SEMIPLANAR | ( | w_den, | |
h_den, | |||
bits | |||
) |
#define VLC_CODEC_FALLBACK_420 |
#define VLC_CODEC_FALLBACK_420_16 VLC_CODEC_I420, VLC_CODEC_YV12, VLC_CODEC_FALLBACK_420 |
#define VLC_CODEC_FALLBACK_422 |
#define VLC_CODEC_FALLBACK_422_16 VLC_CODEC_I422, VLC_CODEC_FALLBACK_422 |
#define VLC_CODEC_FALLBACK_444 |
#define VLC_CODEC_FALLBACK_444_16 VLC_CODEC_I444, VLC_CODEC_FALLBACK_444 |
#define VLC_CODEC_FALLBACK_PACKED |
#define VLC_CODEC_YUV_PACKED |
#define VLC_CODEC_YUV_PLANAR_420 VLC_CODEC_I420, VLC_CODEC_YV12 |
#define VLC_CODEC_YUV_PLANAR_420_16 VLC_CODEC_I420_16L, VLC_CODEC_I420_16B, VLC_CODEC_I420_12L, VLC_CODEC_I420_12B, VLC_CODEC_I420_10L, VLC_CODEC_I420_10B, VLC_CODEC_I420_9L, VLC_CODEC_I420_9B |
#define VLC_CODEC_YUV_PLANAR_422_16 VLC_CODEC_I422_12L, VLC_CODEC_I422_12B, VLC_CODEC_I422_10L, VLC_CODEC_I422_10B, VLC_CODEC_I422_9L, VLC_CODEC_I422_9B |
#define VLC_CODEC_YUV_PLANAR_444_16 |
#define VLC_CODEC_YUV_PLANAR_444_ALPHA VLC_CODEC_YUVA, VLC_CODEC_YUVA_444_10L, VLC_CODEC_YUVA_444_10B, VLC_CODEC_YUVA_444_12L, VLC_CODEC_YUVA_444_12B |
#define VLC_CODEC_YUV_SEMIPLANAR_420 VLC_CODEC_NV12, VLC_CODEC_NV21 |
#define VLC_CODEC_YUV_SEMIPLANAR_420_16 VLC_CODEC_P010, VLC_CODEC_P016 |
#define VLC_CODEC_YUV_SEMIPLANAR_422 VLC_CODEC_NV16, VLC_CODEC_NV61 |
#define VLC_CODEC_YUV_SEMIPLANAR_444 VLC_CODEC_NV24, VLC_CODEC_NV42 |
|
static |
Referenced by Lookup().
|
static |
References i_fourcc.
Referenced by vlc_fourcc_GetRGBFallback(), and vlc_fourcc_GetYUVFallback().
|
static |
References fourcc_cmp().
Referenced by LookupAudio(), LookupSpu(), and LookupVideo().
|
static |
References ARRAY_SIZE, and Lookup().
Referenced by LookupCat().
|
static |
References AUDIO_ES, LookupAudio(), LookupSpu(), LookupVideo(), SPU_ES, and VIDEO_ES.
Referenced by vlc_fourcc_GetCodec(), and vlc_fourcc_GetDescription().
|
static |
References ARRAY_SIZE, and Lookup().
Referenced by LookupCat().
|
static |
References ARRAY_SIZE, and Lookup().
Referenced by LookupCat().
const vlc_chroma_description_t * vlc_fourcc_GetChromaDescription | ( | vlc_fourcc_t | i_fourcc | ) |
It returns a vlc_chroma_description_t describing the requested fourcc or NULL if not found.
References ARRAY_SIZE, i_fourcc, and p_list_chroma_description.
Referenced by decoder_UpdateVideoOutput(), picture_Setup(), and vlc_fourcc_GetChromaBPP().
vlc_fourcc_t vlc_fourcc_GetCodec | ( | int | i_cat, |
vlc_fourcc_t | i_fourcc | ||
) |
It returns the codec associated to a fourcc within an ES category.
If not found, it will return the given fourcc. If found, it will always be one of the VLC_CODEC_ defined above.
You may use UNKNOWN_ES for the ES category if you don't have the information.
References LookupCat().
Referenced by aout_BitsPerSample(), es_format_IsSimilar(), es_format_LogDifferences(), EsOutFillEsFmt(), video_format_Setup(), vlc_fourcc_GetCodecAudio(), vlc_fourcc_GetCodecFromString(), and VoutFixFormat().
vlc_fourcc_t vlc_fourcc_GetCodecAudio | ( | vlc_fourcc_t | i_fourcc, |
int | i_bits | ||
) |
It converts the given fourcc to an audio codec when possible.
The fourccs converted are aflt, araw/pcm , twos, sowt. When an incompatible i_bits is detected, 0 is returned. The other fourccs go through vlc_fourcc_GetCodec and i_bits is not checked.
References AUDIO_ES, i_fourcc, VLC_CODEC_FL32, VLC_CODEC_FL64, VLC_CODEC_S16B, VLC_CODEC_S16L, VLC_CODEC_S24B, VLC_CODEC_S24L, VLC_CODEC_S32B, VLC_CODEC_S32L, VLC_CODEC_S8, VLC_CODEC_U8, VLC_FOURCC, and vlc_fourcc_GetCodec().
Referenced by EsOutFillEsFmt().
vlc_fourcc_t vlc_fourcc_GetCodecFromString | ( | int | i_cat, |
const char * | psz_fourcc | ||
) |
It returns the codec associated to a fourcc stored in a zero terminated string.
If the string is NULL or has more than 4 characters or doesn't correspond to a string associated with a VLC_CODEC_, it will return 0, otherwise it will one of the VLC_CODEC_ defined above.
You may use UNKNOWN_ES for the ES category if you don't have the information.
Provided for convenience.
References VLC_FOURCC, and vlc_fourcc_GetCodec().
const char * vlc_fourcc_GetDescription | ( | int | i_cat, |
vlc_fourcc_t | i_fourcc | ||
) |
It returns the description of the given fourcc or NULL if not found.
You may use UNKNOWN_ES for the ES category if you don't have the information.
References LookupCat().
Referenced by DecoderUnsupportedCodec(), and EsOutUpdateInfo().
const vlc_fourcc_t * vlc_fourcc_GetFallback | ( | vlc_fourcc_t | i_fourcc | ) |
It returns a list (terminated with the value 0) of fourccs in decreasing priority order for the given chroma.
It will return either YUV or RGB fallbacks depending on whether or not the fourcc given is YUV.
It will always return a non NULL pointer that must not be freed.
References i_fourcc, vlc_fourcc_GetRGBFallback(), vlc_fourcc_GetYUVFallback(), and vlc_fourcc_IsYUV().
const vlc_fourcc_t * vlc_fourcc_GetRGBFallback | ( | vlc_fourcc_t | i_fourcc | ) |
It returns a list (terminated with the value 0) of RGB fourccs in decreasing priority order for the given chroma.
It will always return a non NULL pointer that must not be freed.
References GetFallback(), i_fourcc, p_RGB32_fallback, and pp_RGB_fallback.
Referenced by vlc_fourcc_GetFallback().
const vlc_fourcc_t * vlc_fourcc_GetYUVFallback | ( | vlc_fourcc_t | i_fourcc | ) |
It returns a list (terminated with the value 0) of YUV fourccs in decreasing priority order for the given chroma.
It will always return a non NULL pointer that must not be freed.
References GetFallback(), i_fourcc, p_list_YUV, and pp_YUV_fallback.
Referenced by vlc_fourcc_GetFallback().
bool vlc_fourcc_IsYUV | ( | vlc_fourcc_t | fcc | ) |
It returns true if the given fourcc is YUV and false otherwise.
References p_list_YUV.
Referenced by decoder_UpdateVideoOutput(), spu_Render(), video_format_AdjustColorSpace(), and vlc_fourcc_GetFallback().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Referenced by vlc_fourcc_GetChromaDescription().
|
static |
Referenced by vlc_fourcc_GetYUVFallback(), and vlc_fourcc_IsYUV().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Referenced by vlc_fourcc_GetRGBFallback().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Referenced by vlc_fourcc_GetRGBFallback().
|
static |
Referenced by vlc_fourcc_GetYUVFallback().