aliakseis / FFmpegPlayer

Simple FFmpeg video player
MIT License
151 stars 44 forks source link

HwAccel Decode Issues #14

Open w136111526 opened 5 years ago

w136111526 commented 5 years ago

Hello,I have some questions I 'd like to ask you,

  1. After hard decoding, why is the Surface image data only yuv420, and nv12, can you set RGB? 2, D3d Surface after hard decoding, can it be displayed directly to the SDL window without data conversion?
aliakseis commented 5 years ago

It looks like RGB format is not decoder friendly. For now, IFrameDecoder::SetFrameFormat(IFrameDecoder::PIX_FMT_RGB24, false) can be invoked to set up RGB output. Hardware decoding will still be used.