本文整理汇总了C++中MPTRACE函数的典型用法代码示例。如果您正苦于以下问题:C++ MPTRACE函数的具体用法?C++ MPTRACE怎么用?C++ MPTRACE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了MPTRACE函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ijkmp_set_max_fps
void ijkmp_set_max_fps(IjkMediaPlayer *mp, int max_fps)
{
assert(mp);
MPTRACE("ijkmp_set_max_fp(%d)\n", max_fps);
pthread_mutex_lock(&mp->mutex);
ffp_set_max_fps(mp->ffplayer, max_fps);
pthread_mutex_unlock(&mp->mutex);
MPTRACE("ijkmp_set_max_fp()=void\n");
}
示例2: ijkmp_set_sws_option
void ijkmp_set_sws_option(IjkMediaPlayer *mp, const char *name, const char *value)
{
assert(mp);
MPTRACE("ijkmp_set_sws_option()\n");
pthread_mutex_lock(&mp->mutex);
ffp_set_sws_option(mp->ffplayer, name, value);
pthread_mutex_unlock(&mp->mutex);
MPTRACE("ijkmp_set_sws_option()=void\n");
}
示例3: ijkmp_set_picture_queue_capicity
void ijkmp_set_picture_queue_capicity(IjkMediaPlayer *mp, int frame_count)
{
assert(mp);
MPTRACE("ijkmp_set_picture_queue_capicity(%d)\n", frame_count);
pthread_mutex_lock(&mp->mutex);
ffp_set_picture_queue_capicity(mp->ffplayer, frame_count);
pthread_mutex_unlock(&mp->mutex);
MPTRACE("ijkmp_set_picture_queue_capicity()=void\n");
}
示例4: ijkmp_set_format_callback
void ijkmp_set_format_callback(IjkMediaPlayer *mp, ijk_format_control_message cb, void *opaque)
{
assert(mp);
MPTRACE("ijkmp_set_format_callback(%p, %p)\n", cb, opaque);
pthread_mutex_lock(&mp->mutex);
ffp_set_format_callback(mp->ffplayer, cb, opaque);
pthread_mutex_unlock(&mp->mutex);
MPTRACE("ijkmp_set_format_callback()=void\n");
}
示例5: ijkmp_seek_to
int ijkmp_seek_to(IjkMediaPlayer *mp, long msec)
{
assert(mp);
MPTRACE("ijkmp_seek_to(%ld)\n", msec);
pthread_mutex_lock(&mp->mutex);
int retval = ijkmp_seek_to_l(mp, msec);
pthread_mutex_unlock(&mp->mutex);
MPTRACE("ijkmp_seek_to(%ld)=%d\n", msec, retval);
return retval;
}
示例6: ijkmp_android_set_surface
void ijkmp_android_set_surface(JNIEnv *env, IjkMediaPlayer *mp, jobject android_surface)
{
if (!mp)
return;
MPTRACE("ijkmp_set_android_surface(surface=%p)", (void*)android_surface);
pthread_mutex_lock(&mp->mutex);
ijkmp_android_set_surface_l(env, mp, android_surface);
pthread_mutex_unlock(&mp->mutex);
MPTRACE("ijkmp_set_android_surface(surface=%p)=void", (void*)android_surface);
}
示例7: ijkmp_get_audio_codec_info
int ijkmp_get_audio_codec_info(IjkMediaPlayer *mp, char **codec_info)
{
assert(mp);
MPTRACE("%s\n", __func__);
pthread_mutex_lock(&mp->mutex);
int ret = ffp_get_audio_codec_info(mp->ffplayer, codec_info);
pthread_mutex_unlock(&mp->mutex);
MPTRACE("%s()=void\n", __func__);
return ret;
}
示例8: ijkmp_set_stream_selected
int ijkmp_set_stream_selected(IjkMediaPlayer *mp, int stream, int selected)
{
assert(mp);
MPTRACE("%s(%d, %d)\n", __func__, stream, selected);
pthread_mutex_lock(&mp->mutex);
int ret = ffp_set_stream_selected(mp->ffplayer, stream, selected);
pthread_mutex_unlock(&mp->mutex);
MPTRACE("%s(%d, %d)=%d\n", __func__, stream, selected, ret);
return ret;
}
示例9: airstashmp_shutdown_l
void airstashmp_shutdown_l(AirStashMediaPlayer *mp)
{
assert(mp);
MPTRACE("airstashmp_shutdown_l()\n");
if (mp->ffplayer) {
ffp_stop_l(mp->ffplayer);
ffp_wait_stop_l(mp->ffplayer);
}
MPTRACE("airstashmp_shutdown_l()=void\n");
}
示例10: airstashmp_seek_to
int airstashmp_seek_to(AirStashMediaPlayer *mp, long msec)
{
assert(mp);
MPTRACE("airstashmp_seek_to(%ld)\n", msec);
pthread_mutex_lock(&mp->mutex);
int retval = airstashmp_seek_to_l(mp, msec);
pthread_mutex_unlock(&mp->mutex);
MPTRACE("airstashmp_seek_to(%ld)=%d\n", msec, retval);
return retval;
}
示例11: ijkmp_set_overlay_format
void ijkmp_set_overlay_format(IjkMediaPlayer *mp, int chroma_fourcc)
{
if (!mp)
return;
MPTRACE("ijkmp_set_overlay_format(%.4s(0x%x))\n", (char*)&chroma_fourcc, chroma_fourcc);
if (mp->ffplayer) {
ffp_set_overlay_format(mp->ffplayer, chroma_fourcc);
}
MPTRACE("ijkmp_set_overlay_format()=void\n");
}
示例12: airstashmp_get_video_codec_info
int airstashmp_get_video_codec_info(AirStashMediaPlayer *mp, char **codec_info)
{
assert(mp);
MPTRACE("%s\n", __func__);
pthread_mutex_lock(&mp->mutex);
int ret = ffp_get_video_codec_info(mp->ffplayer, codec_info);
pthread_mutex_unlock(&mp->mutex);
MPTRACE("%s()=void\n", __func__);
return ret;
}
示例13: ijkmp_shutdown_l
void ijkmp_shutdown_l(IjkMediaPlayer *mp)
{
assert(mp);
MPTRACE("ijkmp_shutdown_l()\n");
if (mp->ffplayer) {
ffp_stop_l(mp->ffplayer);
ffp_wait_stop_l(mp->ffplayer);
}
MPTRACE("ijkmp_shutdown_l()=void\n");
}
示例14: ijkmp_set_data_source
int ijkmp_set_data_source(IjkMediaPlayer *mp, const char *url)
{
assert(mp);
assert(url);
MPTRACE("ijkmp_set_data_source(url=\"%s\")\n", url);
pthread_mutex_lock(&mp->mutex);
int retval = ijkmp_set_data_source_l(mp, url);
pthread_mutex_unlock(&mp->mutex);
MPTRACE("ijkmp_set_data_source(url=\"%s\")=%d\n", url, retval);
return retval;
}
示例15: ksymp_shutdown_l
void ksymp_shutdown_l(KSYMediaPlayer *mp)
{
assert(mp);
MPTRACE("ksymp_shutdown_l()\n");
if (mp->ffplayer) {
ffp_stop_l(mp->ffplayer);
ffp_wait_stop_l(mp->ffplayer);
}
MPTRACE("ksymp_shutdown_l()=void\n");
}