D | ffplay.c | 975 static void video_image_display(VideoState *is) in video_image_display() argument 981 vp = frame_queue_peek_last(&is->pictq); in video_image_display() 982 if (is->subtitle_st) { in video_image_display() 983 if (frame_queue_nb_remaining(&is->subpq) > 0) { in video_image_display() 984 sp = frame_queue_peek(&is->subpq); in video_image_display() 995 …if (realloc_texture(&is->sub_texture, SDL_PIXELFORMAT_ARGB8888, sp->width, sp->height, SDL_BLENDMO… in video_image_display() 1006 is->sub_convert_ctx = sws_getCachedContext(is->sub_convert_ctx, in video_image_display() 1010 if (!is->sub_convert_ctx) { in video_image_display() 1014 … if (!SDL_LockTexture(is->sub_texture, (SDL_Rect *)sub_rect, (void **)pixels, pitch)) { in video_image_display() 1015 … sws_scale(is->sub_convert_ctx, (const uint8_t * const *)sub_rect->data, sub_rect->linesize, in video_image_display() [all …]
|