mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 17:17:16 +09:00
Make image output lossy (use stb image writer), also significantly improves performance for jpeg
This commit is contained in:
@@ -635,9 +635,12 @@ static VADisplay video_codec_context_get_vaapi_display(AVCodecContext *video_cod
|
||||
}
|
||||
|
||||
bool video_codec_context_is_vaapi(AVCodecContext *video_codec_context) {
|
||||
if(!video_codec_context)
|
||||
return false;
|
||||
|
||||
AVBufferRef *hw_frames_ctx = video_codec_context->hw_frames_ctx;
|
||||
if(!hw_frames_ctx)
|
||||
return NULL;
|
||||
return false;
|
||||
|
||||
AVHWFramesContext *hw_frame_context = (AVHWFramesContext*)hw_frames_ctx->data;
|
||||
AVHWDeviceContext *device_context = (AVHWDeviceContext*)hw_frame_context->device_ctx;
|
||||
|
||||
Reference in New Issue
Block a user