mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-06 15:00:43 +09:00
More cleanup
This commit is contained in:
@@ -50,7 +50,6 @@ static bool gsr_video_encoder_cuda_setup_context(gsr_video_encoder_cuda *self, A
|
|||||||
hw_frame_context->height = video_codec_context->height;
|
hw_frame_context->height = video_codec_context->height;
|
||||||
hw_frame_context->sw_format = self->params.color_depth == GSR_COLOR_DEPTH_10_BITS ? AV_PIX_FMT_P010LE : AV_PIX_FMT_NV12;
|
hw_frame_context->sw_format = self->params.color_depth == GSR_COLOR_DEPTH_10_BITS ? AV_PIX_FMT_P010LE : AV_PIX_FMT_NV12;
|
||||||
hw_frame_context->format = video_codec_context->pix_fmt;
|
hw_frame_context->format = video_codec_context->pix_fmt;
|
||||||
hw_frame_context->device_ref = self->device_ctx;
|
|
||||||
hw_frame_context->device_ctx = (AVHWDeviceContext*)self->device_ctx->data;
|
hw_frame_context->device_ctx = (AVHWDeviceContext*)self->device_ctx->data;
|
||||||
|
|
||||||
if (av_hwframe_ctx_init(frame_context) < 0) {
|
if (av_hwframe_ctx_init(frame_context) < 0) {
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ static bool gsr_video_encoder_vaapi_setup_context(gsr_video_encoder_vaapi *self,
|
|||||||
hw_frame_context->height = video_codec_context->height;
|
hw_frame_context->height = video_codec_context->height;
|
||||||
hw_frame_context->sw_format = self->params.color_depth == GSR_COLOR_DEPTH_10_BITS ? AV_PIX_FMT_P010LE : AV_PIX_FMT_NV12;
|
hw_frame_context->sw_format = self->params.color_depth == GSR_COLOR_DEPTH_10_BITS ? AV_PIX_FMT_P010LE : AV_PIX_FMT_NV12;
|
||||||
hw_frame_context->format = video_codec_context->pix_fmt;
|
hw_frame_context->format = video_codec_context->pix_fmt;
|
||||||
hw_frame_context->device_ref = self->device_ctx;
|
|
||||||
hw_frame_context->device_ctx = (AVHWDeviceContext*)self->device_ctx->data;
|
hw_frame_context->device_ctx = (AVHWDeviceContext*)self->device_ctx->data;
|
||||||
|
|
||||||
//hw_frame_context->initial_pool_size = 20;
|
//hw_frame_context->initial_pool_size = 20;
|
||||||
|
|||||||
Reference in New Issue
Block a user