mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-16 00:03:45 +00:00
Disabled chroma subsampling
This commit is contained in:
@@ -98,6 +98,8 @@ int write_JPEG_buffer (JSAMPLE * image_buffer, int image_width, int image_height
|
|||||||
cinfo.dest->init_destination = &init_destination;
|
cinfo.dest->init_destination = &init_destination;
|
||||||
cinfo.dest->empty_output_buffer = &empty_output_buffer;
|
cinfo.dest->empty_output_buffer = &empty_output_buffer;
|
||||||
cinfo.dest->term_destination = &term_destination;
|
cinfo.dest->term_destination = &term_destination;
|
||||||
|
cinfo.comp_info[0].v_samp_factor = 1;
|
||||||
|
cinfo.comp_info[0].h_samp_factor = 1;
|
||||||
|
|
||||||
cinfo.image_width = image_width;
|
cinfo.image_width = image_width;
|
||||||
cinfo.image_height = image_height;
|
cinfo.image_height = image_height;
|
||||||
|
|||||||
Reference in New Issue
Block a user