FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions
avlanguage.h File Reference

Go to the source code of this file.

Enumerations

enum  AVLangCodespace { AV_LANG_ISO639_2_BIBL, AV_LANG_ISO639_2_TERM, AV_LANG_ISO639_1 }
 Known language codespaces. More...
 

Functions

const char * av_convert_lang_to (const char *lang, enum AVLangCodespace target_codespace)
 Convert a language code to a target codespace.
 

Enumeration Type Documentation

Known language codespaces.

Enumerator:
AV_LANG_ISO639_2_BIBL 
AV_LANG_ISO639_2_TERM 

3-char bibliographic language codes as per ISO-IEC 639-2

AV_LANG_ISO639_1 

3-char terminologic language codes as per ISO-IEC 639-2

2-char code of language as per ISO/IEC 639-1

Definition at line 27 of file avlanguage.h.

Function Documentation

const char* av_convert_lang_to ( const char *  lang,
enum AVLangCodespace  target_codespace 
)

Convert a language code to a target codespace.

The source codespace is guessed.

Returns
NULL if the provided lang is null or invalid.

Definition at line 736 of file avlanguage.c.

Referenced by asf_read_header(), av_convert_lang_to(), avi_write_header(), and mkv_write_simpletag().