| 1 | libavcodec/libopenjpegdec.c: In function ‘libopenjpeg_guess_pix_fmt’:
|
|---|
| 2 | libavcodec/libopenjpegdec.c:113:10: error: ‘CLRSPC_SRGB’ undeclared (first use in this function)
|
|---|
| 3 | case CLRSPC_SRGB:
|
|---|
| 4 | ^
|
|---|
| 5 | libavcodec/libopenjpegdec.c:113:10: note: each undeclared identifier is reported only once for each function it appears in
|
|---|
| 6 | libavcodec/libopenjpegdec.c:117:10: error: ‘CLRSPC_GRAY’ undeclared (first use in this function)
|
|---|
| 7 | case CLRSPC_GRAY:
|
|---|
| 8 | ^
|
|---|
| 9 | libavcodec/libopenjpegdec.c:121:10: error: ‘CLRSPC_SYCC’ undeclared (first use in this function)
|
|---|
| 10 | case CLRSPC_SYCC:
|
|---|
| 11 | ^
|
|---|
| 12 | libavcodec/libopenjpegdec.c: In function ‘libopenjpeg_decode_frame’:
|
|---|
| 13 | libavcodec/libopenjpegdec.c:241:5: error: unknown type name ‘opj_dinfo_t’
|
|---|
| 14 | opj_dinfo_t *dec;
|
|---|
| 15 | ^
|
|---|
| 16 | libavcodec/libopenjpegdec.c:242:5: error: unknown type name ‘opj_cio_t’
|
|---|
| 17 | opj_cio_t *stream;
|
|---|
| 18 | ^
|
|---|
| 19 | libavcodec/libopenjpegdec.c:255:37: error: ‘CODEC_JP2’ undeclared (first use in this function)
|
|---|
| 20 | dec = opj_create_decompress(CODEC_JP2);
|
|---|
| 21 | ^
|
|---|
| 22 | libavcodec/libopenjpegdec.c:261:37: error: ‘CODEC_J2K’ undeclared (first use in this function)
|
|---|
| 23 | dec = opj_create_decompress(CODEC_J2K);
|
|---|
| 24 | ^
|
|---|
| 25 | libavcodec/libopenjpegdec.c:268:5: error: implicit declaration of function ‘opj_set_event_mgr’ [-Werror=implicit-function-declaration]
|
|---|
| 26 | opj_set_event_mgr((opj_common_ptr)dec, NULL, NULL);
|
|---|
| 27 | ^
|
|---|
| 28 | libavcodec/libopenjpegdec.c:268:24: error: ‘opj_common_ptr’ undeclared (first use in this function)
|
|---|
| 29 | opj_set_event_mgr((opj_common_ptr)dec, NULL, NULL);
|
|---|
| 30 | ^
|
|---|
| 31 | libavcodec/libopenjpegdec.c:268:39: error: expected ‘)’ before ‘dec’
|
|---|
| 32 | opj_set_event_mgr((opj_common_ptr)dec, NULL, NULL);
|
|---|
| 33 | ^
|
|---|
| 34 | libavcodec/libopenjpegdec.c:269:20: error: ‘opj_dparameters_t’ has no member named ‘cp_limit_decoding’
|
|---|
| 35 | ctx->dec_params.cp_limit_decoding = LIMIT_TO_MAIN_HEADER;
|
|---|
| 36 | ^
|
|---|
| 37 | libavcodec/libopenjpegdec.c:269:41: error: ‘LIMIT_TO_MAIN_HEADER’ undeclared (first use in this function)
|
|---|
| 38 | ctx->dec_params.cp_limit_decoding = LIMIT_TO_MAIN_HEADER;
|
|---|
| 39 | ^
|
|---|
| 40 | libavcodec/libopenjpegdec.c:272:5: warning: passing argument 1 of ‘opj_setup_decoder’ from incompatible pointer type [enabled by default]
|
|---|
| 41 | opj_setup_decoder(dec, &ctx->dec_params);
|
|---|
| 42 | ^
|
|---|
| 43 | In file included from libavcodec/libopenjpegdec.c:38:0:
|
|---|
| 44 | /usr/include/openjpeg-2.0/openjpeg.h:1140:31: note: expected ‘void **’ but argument is of type ‘int *’
|
|---|
| 45 | OPJ_API OPJ_BOOL OPJ_CALLCONV opj_setup_decoder(opj_codec_t *p_codec,
|
|---|
| 46 | ^
|
|---|
| 47 | libavcodec/libopenjpegdec.c:273:5: error: implicit declaration of function ‘opj_cio_open’ [-Werror=implicit-function-declaration]
|
|---|
| 48 | stream = opj_cio_open((opj_common_ptr)dec, buf, buf_size);
|
|---|
| 49 | ^
|
|---|
| 50 | libavcodec/libopenjpegdec.c:273:43: error: expected ‘)’ before ‘dec’
|
|---|
| 51 | stream = opj_cio_open((opj_common_ptr)dec, buf, buf_size);
|
|---|
| 52 | ^
|
|---|
| 53 | libavcodec/libopenjpegdec.c:278:9: error: implicit declaration of function ‘opj_destroy_decompress’ [-Werror=implicit-function-declaration]
|
|---|
| 54 | opj_destroy_decompress(dec);
|
|---|
| 55 | ^
|
|---|
| 56 | libavcodec/libopenjpegdec.c:283:5: error: implicit declaration of function ‘opj_decode_with_info’ [-Werror=implicit-function-declaration]
|
|---|
| 57 | image = opj_decode_with_info(dec, stream, NULL);
|
|---|
| 58 | ^
|
|---|
| 59 | libavcodec/libopenjpegdec.c:283:11: warning: assignment makes pointer from integer without a cast [enabled by default]
|
|---|
| 60 | image = opj_decode_with_info(dec, stream, NULL);
|
|---|
| 61 | ^
|
|---|
| 62 | libavcodec/libopenjpegdec.c:284:5: error: implicit declaration of function ‘opj_cio_close’ [-Werror=implicit-function-declaration]
|
|---|
| 63 | opj_cio_close(stream);
|
|---|
| 64 | ^
|
|---|
| 65 | libavcodec/libopenjpegdec.c:321:20: error: ‘opj_dparameters_t’ has no member named ‘cp_limit_decoding’
|
|---|
| 66 | ctx->dec_params.cp_limit_decoding = NO_LIMITATION;
|
|---|
| 67 | ^
|
|---|
| 68 | libavcodec/libopenjpegdec.c:321:41: error: ‘NO_LIMITATION’ undeclared (first use in this function)
|
|---|
| 69 | ctx->dec_params.cp_limit_decoding = NO_LIMITATION;
|
|---|
| 70 | ^
|
|---|
| 71 | libavcodec/libopenjpegdec.c:324:5: warning: passing argument 1 of ‘opj_setup_decoder’ from incompatible pointer type [enabled by default]
|
|---|
| 72 | opj_setup_decoder(dec, &ctx->dec_params);
|
|---|
| 73 | ^
|
|---|
| 74 | In file included from libavcodec/libopenjpegdec.c:38:0:
|
|---|
| 75 | /usr/include/openjpeg-2.0/openjpeg.h:1140:31: note: expected ‘void **’ but argument is of type ‘int *’
|
|---|
| 76 | OPJ_API OPJ_BOOL OPJ_CALLCONV opj_setup_decoder(opj_codec_t *p_codec,
|
|---|
| 77 | ^
|
|---|
| 78 | libavcodec/libopenjpegdec.c:325:43: error: expected ‘)’ before ‘dec’
|
|---|
| 79 | stream = opj_cio_open((opj_common_ptr)dec, buf, buf_size);
|
|---|
| 80 | ^
|
|---|
| 81 | libavcodec/libopenjpegdec.c:334:11: warning: assignment makes pointer from integer without a cast [enabled by default]
|
|---|
| 82 | image = opj_decode_with_info(dec, stream, NULL);
|
|---|
| 83 | ^
|
|---|
| 84 | libavcodec/libopenjpegenc.c:47:5: error: unknown type name ‘opj_cinfo_t’
|
|---|
| 85 | opj_cinfo_t *compress;
|
|---|
| 86 | ^
|
|---|
| 87 | libavcodec/libopenjpegenc.c:48:5: error: unknown type name ‘opj_event_mgr_t’
|
|---|
| 88 | opj_event_mgr_t event_mgr;
|
|---|
| 89 | ^
|
|---|
| 90 | libavcodec/libopenjpegenc.c: In function ‘mj2_create_image’:
|
|---|
| 91 | libavcodec/libopenjpegenc.c:84:35: error: ‘CLRSPC_UNKNOWN’ undeclared (first use in this function)
|
|---|
| 92 | OPJ_COLOR_SPACE color_space = CLRSPC_UNKNOWN;
|
|---|
| 93 | ^
|
|---|
| 94 | libavcodec/libopenjpegenc.c:84:35: note: each undeclared identifier is reported only once for each function it appears in
|
|---|
| 95 | libavcodec/libopenjpegenc.c:97:23: error: ‘CLRSPC_GRAY’ undeclared (first use in this function)
|
|---|
| 96 | color_space = CLRSPC_GRAY;
|
|---|
| 97 | ^
|
|---|
| 98 | libavcodec/libopenjpegenc.c:109:23: error: ‘CLRSPC_SRGB’ undeclared (first use in this function)
|
|---|
| 99 | color_space = CLRSPC_SRGB;
|
|---|
| 100 | ^
|
|---|
| 101 | libavcodec/libopenjpegenc.c:144:23: error: ‘CLRSPC_SYCC’ undeclared (first use in this function)
|
|---|
| 102 | color_space = CLRSPC_SYCC;
|
|---|
| 103 | ^
|
|---|
| 104 | libavcodec/libopenjpegenc.c: In function ‘libopenjpeg_encode_init’:
|
|---|
| 105 | libavcodec/libopenjpegenc.c:212:43: error: ‘CPRL’ undeclared (first use in this function)
|
|---|
| 106 | if (ctx->enc_params.prog_order != CPRL) {
|
|---|
| 107 | ^
|
|---|
| 108 | libavcodec/libopenjpegenc.c:220:19: warning: assignment from incompatible pointer type [enabled by default]
|
|---|
| 109 | ctx->compress = opj_create_compress(ctx->format);
|
|---|
| 110 | ^
|
|---|
| 111 | libavcodec/libopenjpegenc.c:239:39: error: ‘opj_event_mgr_t’ undeclared (first use in this function)
|
|---|
| 112 | memset(&ctx->event_mgr, 0, sizeof(opj_event_mgr_t));
|
|---|
| 113 | ^
|
|---|
| 114 | libavcodec/libopenjpegenc.c:240:19: error: request for member ‘info_handler’ in something not a structure or union
|
|---|
| 115 | ctx->event_mgr.info_handler = info_callback;
|
|---|
| 116 | ^
|
|---|
| 117 | libavcodec/libopenjpegenc.c:241:19: error: request for member ‘error_handler’ in something not a structure or union
|
|---|
| 118 | ctx->event_mgr.error_handler = error_callback;
|
|---|
| 119 | ^
|
|---|
| 120 | libavcodec/libopenjpegenc.c:242:19: error: request for member ‘warning_handler’ in something not a structure or union
|
|---|
| 121 | ctx->event_mgr.warning_handler = warning_callback;
|
|---|
| 122 | ^
|
|---|
| 123 | libavcodec/libopenjpegenc.c:243:5: error: implicit declaration of function ‘opj_set_event_mgr’ [-Werror=implicit-function-declaration]
|
|---|
| 124 | opj_set_event_mgr((opj_common_ptr)ctx->compress, &ctx->event_mgr, avctx);
|
|---|
| 125 | ^
|
|---|
| 126 | libavcodec/libopenjpegenc.c:243:24: error: ‘opj_common_ptr’ undeclared (first use in this function)
|
|---|
| 127 | opj_set_event_mgr((opj_common_ptr)ctx->compress, &ctx->event_mgr, avctx);
|
|---|
| 128 | ^
|
|---|
| 129 | libavcodec/libopenjpegenc.c:243:39: error: expected ‘)’ before ‘ctx’
|
|---|
| 130 | opj_set_event_mgr((opj_common_ptr)ctx->compress, &ctx->event_mgr, avctx);
|
|---|
| 131 | ^
|
|---|
| 132 | libavcodec/libopenjpegenc.c: In function ‘libopenjpeg_encode_frame’:
|
|---|
| 133 | libavcodec/libopenjpegenc.c:384:5: error: unknown type name ‘opj_cinfo_t’
|
|---|
| 134 | opj_cinfo_t *compress = ctx->compress;
|
|---|
| 135 | ^
|
|---|
| 136 | libavcodec/libopenjpegenc.c:386:5: error: unknown type name ‘opj_cio_t’
|
|---|
| 137 | opj_cio_t *stream;
|
|---|
| 138 | ^
|
|---|
| 139 | cc1: some warnings being treated as errors
|
|---|
| 140 | libavcodec/libopenjpegenc.c:480:5: warning: passing argument 1 of ‘opj_setup_encoder’ from incompatible pointer type [enabled by default]
|
|---|
| 141 | opj_setup_encoder(compress, &ctx->enc_params, image);
|
|---|
| 142 | ^
|
|---|
| 143 | In file included from libavcodec/libopenjpegenc.c:38:0:
|
|---|
| 144 | /usr/include/openjpeg-2.0/openjpeg.h:1312:31: note: expected ‘void **’ but argument is of type ‘int *’
|
|---|
| 145 | OPJ_API OPJ_BOOL OPJ_CALLCONV opj_setup_encoder(opj_codec_t *p_codec,
|
|---|
| 146 | ^
|
|---|
| 147 | libavcodec/libopenjpegenc.c:481:5: error: implicit declaration of function ‘opj_cio_open’ [-Werror=implicit-function-declaration]
|
|---|
| 148 | stream = opj_cio_open((opj_common_ptr)compress, NULL, 0);
|
|---|
| 149 | ^
|
|---|
| 150 | libavcodec/libopenjpegenc.c:481:28: error: ‘opj_common_ptr’ undeclared (first use in this function)
|
|---|
| 151 | stream = opj_cio_open((opj_common_ptr)compress, NULL, 0);
|
|---|
| 152 | ^
|
|---|
| 153 | libavcodec/libopenjpegenc.c:481:43: error: expected ‘)’ before ‘compress’
|
|---|
| 154 | stream = opj_cio_open((opj_common_ptr)compress, NULL, 0);
|
|---|
| 155 | ^
|
|---|
| 156 | libavcodec/libopenjpegenc.c:487:5: warning: passing argument 1 of ‘opj_encode’ from incompatible pointer type [enabled by default]
|
|---|
| 157 | if (!opj_encode(compress, stream, image, NULL)) {
|
|---|
| 158 | ^
|
|---|
| 159 | In file included from libavcodec/libopenjpegenc.c:38:0:
|
|---|
| 160 | /usr/include/openjpeg-2.0/openjpeg.h:1341:31: note: expected ‘void **’ but argument is of type ‘int *’
|
|---|
| 161 | OPJ_API OPJ_BOOL OPJ_CALLCONV opj_encode(opj_codec_t *p_codec,
|
|---|
| 162 | ^
|
|---|
| 163 | libavcodec/libopenjpegenc.c:487:5: warning: passing argument 2 of ‘opj_encode’ from incompatible pointer type [enabled by default]
|
|---|
| 164 | if (!opj_encode(compress, stream, image, NULL)) {
|
|---|
| 165 | ^
|
|---|
| 166 | In file included from libavcodec/libopenjpegenc.c:38:0:
|
|---|
| 167 | /usr/include/openjpeg-2.0/openjpeg.h:1341:31: note: expected ‘void **’ but argument is of type ‘int *’
|
|---|
| 168 | OPJ_API OPJ_BOOL OPJ_CALLCONV opj_encode(opj_codec_t *p_codec,
|
|---|
| 169 | ^
|
|---|
| 170 | libavcodec/libopenjpegenc.c:487:5: error: too many arguments to function ‘opj_encode’
|
|---|
| 171 | if (!opj_encode(compress, stream, image, NULL)) {
|
|---|
| 172 | ^
|
|---|
| 173 | In file included from libavcodec/libopenjpegenc.c:38:0:
|
|---|
| 174 | /usr/include/openjpeg-2.0/openjpeg.h:1341:31: note: declared here
|
|---|
| 175 | OPJ_API OPJ_BOOL OPJ_CALLCONV opj_encode(opj_codec_t *p_codec,
|
|---|
| 176 | ^
|
|---|
| 177 | common.mak:48: recipe for target 'libavcodec/libopenjpegdec.o' failed
|
|---|
| 178 | make: *** [libavcodec/libopenjpegdec.o] Error 1
|
|---|
| 179 | libavcodec/libopenjpegenc.c:488:9: error: implicit declaration of function ‘opj_cio_close’ [-Werror=implicit-function-declaration]
|
|---|
| 180 | opj_cio_close(stream);
|
|---|
| 181 | ^
|
|---|
| 182 | make: *** Waiting for unfinished jobs....
|
|---|
| 183 | libavcodec/libopenjpegenc.c:493:5: error: implicit declaration of function ‘cio_tell’ [-Werror=implicit-function-declaration]
|
|---|
| 184 | len = cio_tell(stream);
|
|---|
| 185 | ^
|
|---|
| 186 | libavcodec/libopenjpegenc.c:499:29: error: request for member ‘buffer’ in something not a structure or union
|
|---|
| 187 | memcpy(pkt->data, stream->buffer, len);
|
|---|
| 188 | ^
|
|---|
| 189 | libavcodec/libopenjpegenc.c: In function ‘libopenjpeg_encode_close’:
|
|---|
| 190 | libavcodec/libopenjpegenc.c:510:5: error: implicit declaration of function ‘opj_destroy_compress’ [-Werror=implicit-function-declaration]
|
|---|
| 191 | opj_destroy_compress(ctx->compress);
|
|---|
| 192 | ^
|
|---|
| 193 | libavcodec/libopenjpegenc.c: At top level:
|
|---|
| 194 | libavcodec/libopenjpegenc.c:519:96: error: ‘CODEC_JP2’ undeclared here (not in a function)
|
|---|
| 195 | { "format", "Codec Format", OFFSET(format), AV_OPT_TYPE_INT, { .i64 = CODEC_JP2 }, CODEC_J2K, CODEC_JP2, VE, "format" },
|
|---|
| 196 | ^
|
|---|
| 197 | libavcodec/libopenjpegenc.c:519:111: error: ‘CODEC_J2K’ undeclared here (not in a function)
|
|---|
| 198 | { "format", "Codec Format", OFFSET(format), AV_OPT_TYPE_INT, { .i64 = CODEC_JP2 }, CODEC_J2K, CODEC_JP2, VE, "format" },
|
|---|
| 199 | ^
|
|---|
| 200 | libavcodec/libopenjpegenc.c:522:96: error: ‘STD_RSIZ’ undeclared here (not in a function)
|
|---|
| 201 | { "profile", NULL, OFFSET(profile), AV_OPT_TYPE_INT, { .i64 = STD_RSIZ }, STD_RSIZ, CINEMA4K, VE, "profile" },
|
|---|
| 202 | ^
|
|---|
| 203 | libavcodec/libopenjpegenc.c:522:122: error: ‘CINEMA4K’ undeclared here (not in a function)
|
|---|
| 204 | { "profile", NULL, OFFSET(profile), AV_OPT_TYPE_INT, { .i64 = STD_RSIZ }, STD_RSIZ, CINEMA4K, VE, "profile" },
|
|---|
| 205 | ^
|
|---|
| 206 | libavcodec/libopenjpegenc.c:524:96: error: ‘CINEMA2K’ undeclared here (not in a function)
|
|---|
| 207 | { "cinema2k", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = CINEMA2K }, 0, 0, VE, "profile" },
|
|---|
| 208 | ^
|
|---|
| 209 | libavcodec/libopenjpegenc.c:526:96: error: ‘OFF’ undeclared here (not in a function)
|
|---|
| 210 | { "cinema_mode", "Digital Cinema", OFFSET(cinema_mode), AV_OPT_TYPE_INT, { .i64 = OFF }, OFF, CINEMA4K_24, VE, "cinema_mode" },
|
|---|
| 211 | ^
|
|---|
| 212 | libavcodec/libopenjpegenc.c:526:122: error: ‘CINEMA4K_24’ undeclared here (not in a function)
|
|---|
| 213 | { "cinema_mode", "Digital Cinema", OFFSET(cinema_mode), AV_OPT_TYPE_INT, { .i64 = OFF }, OFF, CINEMA4K_24, VE, "cinema_mode" },
|
|---|
| 214 | ^
|
|---|
| 215 | libavcodec/libopenjpegenc.c:528:96: error: ‘CINEMA2K_24’ undeclared here (not in a function)
|
|---|
| 216 | { "2k_24", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = CINEMA2K_24 }, 0, 0, VE, "cinema_mode" },
|
|---|
| 217 | ^
|
|---|
| 218 | libavcodec/libopenjpegenc.c:529:96: error: ‘CINEMA2K_48’ undeclared here (not in a function)
|
|---|
| 219 | { "2k_48", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = CINEMA2K_48 }, 0, 0, VE, "cinema_mode" },
|
|---|
| 220 | ^
|
|---|
| 221 | libavcodec/libopenjpegenc.c:531:96: error: ‘LRCP’ undeclared here (not in a function)
|
|---|
| 222 | { "prog_order", "Progression Order", OFFSET(prog_order), AV_OPT_TYPE_INT, { .i64 = LRCP }, LRCP, CPRL, VE, "prog_order" },
|
|---|
| 223 | ^
|
|---|
| 224 | libavcodec/libopenjpegenc.c:531:122: error: ‘CPRL’ undeclared here (not in a function)
|
|---|
| 225 | { "prog_order", "Progression Order", OFFSET(prog_order), AV_OPT_TYPE_INT, { .i64 = LRCP }, LRCP, CPRL, VE, "prog_order" },
|
|---|
| 226 | ^
|
|---|
| 227 | libavcodec/libopenjpegenc.c:533:96: error: ‘RLCP’ undeclared here (not in a function)
|
|---|
| 228 | { "rlcp", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = RLCP }, 0, 0, VE, "prog_order" },
|
|---|
| 229 | ^
|
|---|
| 230 | libavcodec/libopenjpegenc.c:534:96: error: ‘RPCL’ undeclared here (not in a function)
|
|---|
| 231 | { "rpcl", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = RPCL }, 0, 0, VE, "prog_order" },
|
|---|
| 232 | ^
|
|---|
| 233 | libavcodec/libopenjpegenc.c:535:96: error: ‘PCRL’ undeclared here (not in a function)
|
|---|
| 234 | { "pcrl", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = PCRL }, 0, 0, VE, "prog_order" },
|
|---|
| 235 | ^
|
|---|
| 236 | cc1: some warnings being treated as errors
|
|---|
| 237 | common.mak:48: recipe for target 'libavcodec/libopenjpegenc.o' failed
|
|---|
| 238 | make: *** [libavcodec/libopenjpegenc.o] Error 1
|
|---|
| 239 |
|
|---|