⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lqt_codecinfo.h

📁 这个库实现了录象功能
💻 H
📖 第 1 页 / 共 2 页
字号:
 *  applications (might become obsolete) ******************************************************//** \ingroup codec_registry * \brief Return the number of installed audio codecs * \returns Number of installed audio codecs * * This function is obsolete, use \ref lqt_query_registry instead */int lqt_get_num_audio_codecs();/** \ingroup codec_registry * \brief Return the number of installed video codecs * \returns Number of installed video codecs * * This function is obsolete, use \ref lqt_query_registry instead */int lqt_get_num_video_codecs();/** \ingroup codec_registry * \brief Return an audio codec * \param index Index of the codec * \returns Pointer to the codec info in the internal database * * This function is obsolete, use \ref lqt_query_registry instead */const lqt_codec_info_t * lqt_get_audio_codec_info(int index);/** \ingroup codec_registry * \brief Return a video codec * \param index Index of the codec * \returns Pointer to the codec info in the internal database * * This function is obsolete, use \ref lqt_query_registry instead */  const lqt_codec_info_t * lqt_get_video_codec_info(int index);/******************************************************************** *  Thread save function for getting codec parameters *  All these functions return a NULL terminated array of local *  copies of the codec data which must be freed using  *  lqt_destroy_codec_info(lqt_codec_info_t ** info) declared below ********************************************************************//** \ingroup codec_registry *  \brief Return an array of any combination of audio/video en/decoders *  \param audio Set this to 1 if you want audio codecs to be returned *  \param video Set this to 1 if you want video codecs to be returned *  \param encode Set this to 1 if you want encoders to be returned *  \param decode Set this to 1 if you want decoders to be returned *  \returns A NULL terminated array of codec infos. * *  This function copies the codec infos. Use \ref lqt_destroy_codec_info *  to free the returned array. */lqt_codec_info_t ** lqt_query_registry(int audio, int video,                                       int encode, int decode);/** \ingroup codec_registry *  \brief Find an audio codec for a given fourcc *  \param fourcc A four character code *  \param encode Set to 1 to return encoders, 0 to return decoders *  \returns A NULL terminated array containing one codec info if the codec was found * *  This function copies the codec info. Use \ref lqt_destroy_codec_info *  to free the returned array. */  lqt_codec_info_t ** lqt_find_audio_codec(char * fourcc, int encode);/** \ingroup codec_registry *  \brief Find an audio codec for a given WAV ID *  \param wav_id A 16 bit audio codec ID as found in WAV and AVI files *  \param encode Set to 1 to return encoders, 0 to return decoders *  \returns A NULL terminated array containing one codec info if the codec was found * *  This function copies the codec info. Use \ref lqt_destroy_codec_info *  to free the returned array. */  lqt_codec_info_t ** lqt_find_audio_codec_by_wav_id(int wav_id, int encode);  /** \ingroup codec_registry *  \brief Find a video codec for a given fourcc *  \param fourcc A four character code *  \param encode Set to 1 to return encoders, 0 to return decoders *  \returns A NULL terminated array containing one codec info if the codec was found * *  This function copies the codec info. Use \ref lqt_destroy_codec_info *  to free the returned array. */lqt_codec_info_t ** lqt_find_video_codec(char * fourcc, int encode);    /** \ingroup codec_registry *  \brief Find an audio codec by its name *  \param name Short name of the codec (see \ref lqt_codec_info_s) *  \returns A NULL terminated array containing one codec info if the codec was found * *  This function copies the codec info. Use \ref lqt_destroy_codec_info *  to free the returned array. */lqt_codec_info_t ** lqt_find_audio_codec_by_name(const char * name);/** \ingroup codec_registry *  \brief Find a video codec by its name *  \param name Short name of the codec (see \ref lqt_codec_info_s) *  \returns A NULL terminated array containing one codec info if the codec was found * *  This function copies the codec info. Use \ref lqt_destroy_codec_info *  to free the returned array. */  lqt_codec_info_t ** lqt_find_video_codec_by_name(const char * name);/** \ingroup codec_registry *  \brief Get an audio codec from an open file. *  \param file A quicktime handle *  \param track Index if the track (starting with 0) *  \returns A NULL terminated array containing one codec info if the codec was found * *  This function copies the codec info. Use \ref lqt_destroy_codec_info *  to free the returned array. */  lqt_codec_info_t ** lqt_audio_codec_from_file(quicktime_t * file, int track);/** \ingroup codec_registry *  \brief Get a video codec from an open file. *  \param file A quicktime handle *  \param track Index if the track (starting with 0) *  \returns A NULL terminated array containing one codec info if the codec was found * *  This function copies the codec info. Use \ref lqt_destroy_codec_info *  to free the returned array. */lqt_codec_info_t ** lqt_video_codec_from_file(quicktime_t * file, int track);  /** \ingroup codec_registry *  \brief Destroy a codec info array *  \param info A NULL terminated array of codec infos returned by one of the query functions. *  *  Destroys a NULL terminared codec info structure returned by *  any of the query functions and frees all associated memory. */void lqt_destroy_codec_info(lqt_codec_info_t ** info);/** \ingroup codec_registry *  \brief Reorder audio codecs *  \param codec_info A NULL terminated array of codec infos * *  The codec order is important if there is more than one codec available *  for a given fourcc. In this case, the first one will be used. *  You can simply call \ref lqt_query_registry for getting audio *  codecs, reorder the returned array and pass this to the functions *  below. */void lqt_reorder_audio_codecs(lqt_codec_info_t ** codec_info);/** \ingroup codec_registry *  \brief Reorder video codecs *  \param codec_info A NULL terminated array of codec infos * *  The codec order is important if there is more than one codec available *  for a given fourcc. In this case, the first one will be used. *  You can simply call \ref lqt_query_registry for getting video *  codecs, reorder the returned array and pass this to the functions *  below. */void lqt_reorder_video_codecs(lqt_codec_info_t ** codec_info);/** \ingroup codec_registry *  \brief Change a default value for a codec parameter *  \param type The type of the codec (audio or video) *  \param encode 1 for encode parameter, 0 for decode parameter *  \param codec_name The short name of the codec *  \param parameter_name The short name of the parameter to change *  \param val The new value for the parameter * *  This stores a new default parameter value in the codec registry. *  It will become the new default for all files, you open after. *  This will also be saved in $HOME/.libquicktime_config. */void lqt_set_default_parameter(lqt_codec_type type, int encode,                               const char * codec_name,                               const char * parameter_name,                               lqt_parameter_value_t * val);/** \ingroup codec_registry *  \brief Restore a default parameter from the codec module *  \param codec_info A codec info referring to the codec *  \param encode Set this to 1 to restore encoding parameters, 0 else *  \param decode Set this to 1 to restore decoding parameters, 0 else * *  This will revert previous calls to \ref lqt_set_default_parameter by *  loading the module and getting the hardcoded values. */void lqt_restore_default_parameters(lqt_codec_info_t * codec_info,                                    int encode, int decode);                                          /** \ingroup codec_registry *  \brief Dump a codec info to stderr *  \param info A codec info * *  Dump a human readable description of the codec info to stderr. For testing and *  debugging only. */void lqt_dump_codec_info(const lqt_codec_info_t * info);#ifdef __cplusplus}#endif /* __cplusplus */#pragma GCC visibility pop#endif /* _LQT_CODEC_INFO_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -