diff --git a/highgui/src/jpeg_encoder_rk_mpp.cpp b/highgui/src/jpeg_encoder_rk_mpp.cpp index 90ff41f1..0b6e8664 100644 --- a/highgui/src/jpeg_encoder_rk_mpp.cpp +++ b/highgui/src/jpeg_encoder_rk_mpp.cpp @@ -324,9 +324,9 @@ class jpeg_encoder_rk_mpp_impl int init(int width, int height, int quality); - int encode(const unsigned char* rgbdata, std::vector& outdata) const; + int encode(const unsigned char* bgrdata, std::vector& outdata) const; - int encode(const unsigned char* rgbdata, const char* outfilepath) const; + int encode(const unsigned char* bgrdata, const char* outfilepath) const; int deinit(); @@ -571,7 +571,7 @@ static inline void my_memcpy(unsigned char* dst, const unsigned char* src, int s #endif } -int jpeg_encoder_rk_mpp_impl::encode(const unsigned char* rgbdata, std::vector& outdata) const +int jpeg_encoder_rk_mpp_impl::encode(const unsigned char* bgrdata, std::vector& outdata) const { outdata.clear(); @@ -595,7 +595,7 @@ int jpeg_encoder_rk_mpp_impl::encode(const unsigned char* rgbdata, std::vectorinit(width, height, quality); } -int jpeg_encoder_rk_mpp::encode(const unsigned char* rgbdata, std::vector& outdata) const +int jpeg_encoder_rk_mpp::encode(const unsigned char* bgrdata, std::vector& outdata) const { - return d->encode(rgbdata, outdata); + return d->encode(bgrdata, outdata); } -int jpeg_encoder_rk_mpp::encode(const unsigned char* rgbdata, const char* outfilepath) const +int jpeg_encoder_rk_mpp::encode(const unsigned char* bgrdata, const char* outfilepath) const { - return d->encode(rgbdata, outfilepath); + return d->encode(bgrdata, outfilepath); } int jpeg_encoder_rk_mpp::deinit() diff --git a/highgui/src/jpeg_encoder_rk_mpp.h b/highgui/src/jpeg_encoder_rk_mpp.h index 6079fcc7..021c906d 100644 --- a/highgui/src/jpeg_encoder_rk_mpp.h +++ b/highgui/src/jpeg_encoder_rk_mpp.h @@ -30,9 +30,9 @@ class jpeg_encoder_rk_mpp int init(int width, int height, int quality); - int encode(const unsigned char* rgbdata, std::vector& outdata) const; + int encode(const unsigned char* bgrdata, std::vector& outdata) const; - int encode(const unsigned char* rgbdata, const char* outfilepath) const; + int encode(const unsigned char* bgrdata, const char* outfilepath) const; int deinit();