From 80e370c7d8b6541f59d98b6cbfbaae51f7e139da Mon Sep 17 00:00:00 2001 From: thestig Date: Mon, 13 Mar 2017 18:24:52 -0700 Subject: Remove openjpeg write support. Review-Url: https://codereview.chromium.org/2071693002 --- core/fxcodec/codec/codec_int.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'core/fxcodec/codec/codec_int.h') diff --git a/core/fxcodec/codec/codec_int.h b/core/fxcodec/codec/codec_int.h index edd5a67a25..4c451c733d 100644 --- a/core/fxcodec/codec/codec_int.h +++ b/core/fxcodec/codec/codec_int.h @@ -21,10 +21,10 @@ class CPDF_ColorSpace; struct DecodeData { - public: - DecodeData(uint8_t* data, OPJ_SIZE_T size) + DecodeData(const uint8_t* data, OPJ_SIZE_T size) : src_data(data), src_size(size), offset(0) {} - uint8_t* src_data; + + const uint8_t* src_data; OPJ_SIZE_T src_size; OPJ_SIZE_T offset; }; @@ -35,9 +35,6 @@ void sycc420_to_rgb(opj_image_t* img); OPJ_SIZE_T opj_read_from_memory(void* p_buffer, OPJ_SIZE_T nb_bytes, void* p_user_data); -OPJ_SIZE_T opj_write_from_memory(void* p_buffer, - OPJ_SIZE_T nb_bytes, - void* p_user_data); OPJ_OFF_T opj_skip_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data); OPJ_BOOL opj_seek_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data); -- cgit v1.2.3