提交 66767556 编写于 作者: Z Zhang Rui

ijkplayer: review FIXME and TODO

上级 95c09ab7
......@@ -238,7 +238,7 @@ static int ijkmp_prepare_async_l(IjkMediaPlayer *mp)
msg_queue_start(&mp->ffplayer->msg_queue);
ijkmp_inc_ref(mp);
pthread_create(&mp->msg_thread, NULL, mp->msg_loop, mp);
// TODO: 9 release weak_thiz if pthread_create() failed;
// FIXME: 0 release weak_thiz if pthread_create() failed;
int retval = ffp_prepare_async_l(mp->ffplayer, mp->data_source);
if (retval < 0) {
......
......@@ -285,7 +285,7 @@ static void
IjkMediaPlayer_native_finalize(JNIEnv *env, jobject thiz)
{
MPTRACE("IjkMediaPlayer_native_finalize");
// FIXME: 9 implement
// FIXME: 1 implement
IjkMediaPlayer_release(env, thiz);
}
......
......@@ -2020,7 +2020,7 @@ void ffp_global_init()
av_lockmgr_register(lockmgr);
av_log_set_callback(ffp_log_callback_help);
/* FIXME: 9 SDL_Init() */
/* FIXME: 2 SDL_Init() */
av_init_packet(&flush_pkt);
flush_pkt.data = (uint8_t *) &flush_pkt;
......@@ -2040,7 +2040,7 @@ void ffp_global_uninit()
av_freep(&vfilters);
#endif
avformat_network_deinit();
/* FIXME: 9 SDL_Quit(); */
/* FIXME: 2 SDL_Quit(); */
g_ffmpeg_global_inited = false;
}
......
......@@ -258,7 +258,6 @@ SDL_AndroidAudioTrack *sdl_audiotrack_new_from_sdl_spec(JNIEnv *env, SDL_AudioSp
atrack_spec.audio_format = find_android_format(sdl_spec->format);
atrack_spec.buffer_size_in_bytes = sdl_spec->size;
// TODO: 9 consider spec.sample
return sdl_audiotrack_new_from_spec(env, &atrack_spec);
}
......
......@@ -71,7 +71,7 @@ static int android_render_yv12_on_yv12(ANativeWindow_Buffer *out_buffer, const S
// ALOGE("sdl_image_copy_plane %p %p %d", dst_pixels, src_pixels, dst_plane_size);
memcpy(dst_pixels, src_pixels, plane_size);
} else {
// TODO: padding
// TODO: 9 padding
int bytewidth = IJKMIN(dst_line_size, src_line_size);
// ALOGE("av_image_copy_plane %p %d %p %d %d %d", dst_pixels, dst_line_size, src_pixels, src_line_size, bytewidth, min_height);
......@@ -115,7 +115,7 @@ static int android_render_rgb_on_rgb(ANativeWindow_Buffer *out_buffer, const SDL
// ALOGE("android_render_rgb_on_rgb (pix-match) %p %p %d", dst_pixels, src_pixels, plane_size);
memcpy(dst_pixels, src_pixels, plane_size);
} else {
// TODO: padding
// TODO: 9 padding
int bytewidth = IJKMIN(dst_line_size, src_line_size);
// ALOGE("android_render_rgb_on_rgb (pix-mismatch) %p %d %p %d %d %d", dst_pixels, dst_line_size, src_pixels, src_line_size, bytewidth, min_height);
......@@ -259,14 +259,14 @@ int sdl_native_window_display_l(ANativeWindow *native_window, SDL_VoutOverlay *o
native_window,
out_buffer.width, out_buffer.height, (char*)&out_buffer.format, out_buffer.format,
buff_w, buff_h, (char*)&overlay->format, overlay->format);
// FIXME: 9 set all black
// TODO: 8 set all black
ANativeWindow_unlockAndPost(native_window);
return -1;
}
int render_ret = voutDesc->render(&out_buffer, overlay);
if (render_ret < 0) {
// FIXME: 9 set all black
// TODO: 8 set all black
// return after unlock image;
}
......
......@@ -84,7 +84,7 @@ int aout_thread_n(JNIEnv *env, SDL_Aout *aout)
}
sdl_audiotrack_write_byte(env, atrack, buffer, buffer_size);
// FIXME: 9 if callback return -1 or 0
// TODO: 1 if callback return -1 or 0
}
sdl_audiotrack_free(env, atrack);
......
......@@ -39,7 +39,7 @@ static void ijk_i420_rgb16_neon(int width, int height, uint8_t **dst_data, int *
i420_rv16_neon(&out, &in, width, height);
}
// FIXME: need nv12 and nv21 sample
// TODO: 9 need nv12 and nv21 test sample
#if 0
static void ijk_nv21_rgb32_neon(int width, int height, uint8_t **dst_data, int *dst_linesize, const uint8_t **src_data, int *src_linesize)
{
......
......@@ -191,11 +191,11 @@ int SDL_VoutFFmpeg_ConvertPicture(
dst_format = AV_PIX_FMT_YUV420P;
break;
case SDL_FCC_RV32:
// FIXME: android only
// TODO: 9 android only
dst_format = AV_PIX_FMT_0BGR32;
break;
case SDL_FCC_RV16:
// FIXME: android only
// TODO: 9 android only
dst_format = AV_PIX_FMT_RGB565;
break;
default:
......@@ -229,7 +229,6 @@ int SDL_VoutFFmpeg_ConvertPicture(
}
}
// FIXME:
// duplicate_right_border_pixels(vp->bmp);
// TODO: 9 draw black if overlay is larger than screen
return 0;
}
......@@ -28,7 +28,7 @@
#include "../ijksdl_vout.h"
#include "ijksdl_inc_ffmpeg.h"
// TODO: 9 setup overlay stride to speed up memcpy
// TODO: 9 alignment to speed up memcpy when display
SDL_VoutOverlay *SDL_VoutFFmpeg_CreateOverlay(int width, int height, Uint32 format, SDL_Vout *display);
int SDL_VoutFFmpeg_ConvertPicture(
......
......@@ -29,7 +29,6 @@
inline static SDL_Aout *SDL_Aout_CreateInternal(size_t opaque_size)
{
// FIXME: mallocz;
SDL_Aout *aout = (SDL_Aout*) mallocz(sizeof(SDL_Aout));
if (!aout)
return NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册