Xsync after overclock (and reset), dont set colorspace data
This commit is contained in:
parent
8c6e526318
commit
162eac8c2f
@ -375,10 +375,10 @@ static AVCodecContext *create_video_codec_context(AVPixelFormat pix_fmt,
|
|||||||
}
|
}
|
||||||
codec_context->max_b_frames = 0;
|
codec_context->max_b_frames = 0;
|
||||||
codec_context->pix_fmt = pix_fmt;
|
codec_context->pix_fmt = pix_fmt;
|
||||||
codec_context->color_range = AVCOL_RANGE_JPEG;
|
//codec_context->color_range = AVCOL_RANGE_MPEG;
|
||||||
codec_context->color_primaries = AVCOL_PRI_BT709;
|
//codec_context->color_primaries = AVCOL_PRI_BT709;
|
||||||
codec_context->color_trc = AVCOL_TRC_BT709;
|
//codec_context->color_trc = AVCOL_TRC_BT709;
|
||||||
codec_context->colorspace = AVCOL_SPC_BT709;
|
//codec_context->colorspace = AVCOL_SPC_BT709;
|
||||||
//codec_context->chroma_sample_location = AVCHROMA_LOC_CENTER;
|
//codec_context->chroma_sample_location = AVCHROMA_LOC_CENTER;
|
||||||
if(codec->id == AV_CODEC_ID_HEVC)
|
if(codec->id == AV_CODEC_ID_HEVC)
|
||||||
codec_context->codec_tag = MKTAG('h', 'v', 'c', '1');
|
codec_context->codec_tag = MKTAG('h', 'v', 'c', '1');
|
||||||
|
@ -262,10 +262,12 @@ bool gsr_overclock_start(gsr_overclock *self) {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
XSync(self->xnvctrl.display, False);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void gsr_overclock_stop(gsr_overclock *self) {
|
void gsr_overclock_stop(gsr_overclock *self) {
|
||||||
xnvctrl_set_attribute_offset(&self->xnvctrl, self->num_performance_levels, 0, NVCTRL_ATTRIB_GPU_MEM_TRANSFER_RATE);
|
xnvctrl_set_attribute_offset(&self->xnvctrl, self->num_performance_levels, 0, NVCTRL_ATTRIB_GPU_MEM_TRANSFER_RATE);
|
||||||
//xnvctrl_set_attribute_offset(&self->xnvctrl, self->num_performance_levels, 0, NVCTRL_GPU_NVCLOCK);
|
//xnvctrl_set_attribute_offset(&self->xnvctrl, self->num_performance_levels, 0, NVCTRL_GPU_NVCLOCK);
|
||||||
|
XSync(self->xnvctrl.display, False);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user