D | ffplay.c | 961 static void video_image_display(VideoState *is) in video_image_display() argument 967 vp = frame_queue_peek_last(&is->pictq); in video_image_display() 968 if (is->subtitle_st) { in video_image_display() 969 if (frame_queue_nb_remaining(&is->subpq) > 0) { in video_image_display() 970 sp = frame_queue_peek(&is->subpq); in video_image_display() 981 …if (realloc_texture(&is->sub_texture, SDL_PIXELFORMAT_ARGB8888, sp->width, sp->height, SDL_BLENDMO… in video_image_display() 992 is->sub_convert_ctx = sws_getCachedContext(is->sub_convert_ctx, in video_image_display() 996 if (!is->sub_convert_ctx) { in video_image_display() 1000 … if (!SDL_LockTexture(is->sub_texture, (SDL_Rect *)sub_rect, (void **)pixels, pitch)) { in video_image_display() 1001 … sws_scale(is->sub_convert_ctx, (const uint8_t * const *)sub_rect->data, sub_rect->linesize, in video_image_display() [all …]
|