Change false to FALSE and 1 to TRUE, FIX qtwebengine compile
PATCH 1/1 Change false to FALSE and 1 to TRUE, FIX qtwebengine compile
Signed-off-by Cleiton Bueno <[email protected]>
--- src/3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
src/3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc +6 -6
@@ -120,7 +120,7 @@ boolean EmptyOutputBuffer(jpeg_compress_struct* cinfo) { // tell libjpeg where to write the next data cinfo->dest->next_output_byte = &(*state->out)[state->image_buffer_used]; cinfo->dest->free_in_buffer = state->out->size() - state->image_buffer_used; - return 1; + return TRUE; } // Cleans up the JpegEncoderState to prepare for returning in the final form.
@@ -261,7 +261,7 @@ bool JPEGCodec::Encode(const unsigned char* input, ColorFormat format, cinfo.data_precision = 8; jpeg_set_defaults(&cinfo); - jpeg_set_quality(&cinfo, quality, 1); // quality here is 0-100 + jpeg_set_quality(&cinfo, quality, TRUE); // quality here is 0-100 // set up the destination manager jpeg_destination_mgr destmgr;
@@ -273,7 +273,7 @@ bool JPEGCodec::Encode(const unsigned char* input, ColorFormat format, JpegEncoderState state(output); cinfo.client_data = &state; - jpeg_start_compress(&cinfo, 1); + jpeg_start_compress(&cinfo, TRUE); // feed it the rows, doing necessary conversions for the color format #ifdef JCS_EXTENSIONS
@@ -359,7 +359,7 @@ void InitSource(j_decompress_ptr cinfo) { // set to a positive value if TRUE is returned. A FALSE return should only // be used when I/O suspension is desired." boolean FillInputBuffer(j_decompress_ptr cinfo) { - return false; + return FALSE; } // Skip data in the buffer. Since we have all the data at once, this operation
@@ -487,8 +487,8 @@ bool JPEGCodec::Decode(const unsigned char* input, size_t input_size, cinfo.client_data = &state; // fill the file metadata into our buffer - if (jpeg_read_header(&cinfo, true) != JPEG_HEADER_OK) - return false; + if (jpeg_read_header(&cinfo, TRUE) != JPEG_HEADER_OK) + return FALSE; // we want to always get RGB data out switch (cinfo.jpeg_color_space) {
Signature · 1 line
1.8.1.2
Quoted 1 line · Cleiton Bueno
Signed-off-by Cleiton Bueno <[email protected]>
Where do you want this to be applied? If it's for qtwebengine recipe in meta-qt5 then you should send change for meta-qt5 repo (which includes .patch for qtwebengine), not patch for qtwebengine repo.
Quoted 63 lines
--- src/3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)src/3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc +6
-6@@ -120,7 +120,7 @@ boolean EmptyOutputBuffer(jpeg_compress_struct* cinfo) { // tell libjpeg where to write the next data cinfo->dest->next_output_byte = &(*state->out)[state->image_buffer_used]; cinfo->dest->free_in_buffer = state->out->size() - state->image_buffer_used; - return 1; + return TRUE; } // Cleans up the JpegEncoderState to prepare for returning in the final form.@@ -261,7 +261,7 @@ bool JPEGCodec::Encode(const unsigned char* input, ColorFormat format, cinfo.data_precision = 8; jpeg_set_defaults(&cinfo); - jpeg_set_quality(&cinfo, quality, 1); // quality here is 0-100 + jpeg_set_quality(&cinfo, quality, TRUE); // quality here is 0-100 // set up the destination manager jpeg_destination_mgr destmgr;@@ -273,7 +273,7 @@ bool JPEGCodec::Encode(const unsigned char* input, ColorFormat format, JpegEncoderState state(output); cinfo.client_data = &state; - jpeg_start_compress(&cinfo, 1); + jpeg_start_compress(&cinfo, TRUE); // feed it the rows, doing necessary conversions for the color format #ifdef JCS_EXTENSIONS@@ -359,7 +359,7 @@ void InitSource(j_decompress_ptr cinfo) { // set to a positive value if TRUE is returned. A FALSE return should only // be used when I/O suspension is desired." boolean FillInputBuffer(j_decompress_ptr cinfo) { - return false; + return FALSE; } // Skip data in the buffer. Since we have all the data at once, this operation@@ -487,8 +487,8 @@ bool JPEGCodec::Decode(const unsigned char* input, size_t input_size, cinfo.client_data = &state; // fill the file metadata into our buffer - if (jpeg_read_header(&cinfo, true) != JPEG_HEADER_OK) - return false; + if (jpeg_read_header(&cinfo, TRUE) != JPEG_HEADER_OK) + return FALSE; // we want to always get RGB data out switch (cinfo.jpeg_color_space) {Signature · 7 lines
1.8.1.2 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]