Lines Matching refs:image
269 // x0, y0 is the top left corner of the image
349 const int linesize[4], opj_image_t *image)
356 const int numcomps = image->numcomps;
359 if (image->comps[compno].w > linesize[0] / numcomps) {
360 av_log(avctx, AV_LOG_ERROR, "Error: frame's linesize is too small for the image\n");
367 image_line = image->comps[compno].data + y * image->comps[compno].w;
373 for (; x < image->comps[compno].w; ++x) {
377 for (; y < image->comps[compno].h; ++y) {
378 image_line = image->comps[compno].data + y * image->comps[compno].w;
379 for (x = 0; x < image->comps[compno].w; ++x) {
380 image_line[x] = image_line[x - (int)image->comps[compno].w];
390 const int linesize[4], opj_image_t *image)
396 const int numcomps = image->numcomps;
400 if (image->comps[compno].w > linesize[0] / numcomps) {
401 av_log(avctx, AV_LOG_ERROR, "Error: frame's linesize is too small for the image\n");
408 image_line = image->comps[compno].data + y * image->comps[compno].w;
414 for (; x < image->comps[compno].w; ++x) {
418 for (; y < image->comps[compno].h; ++y) {
419 image_line = image->comps[compno].data + y * image->comps[compno].w;
420 for (x = 0; x < image->comps[compno].w; ++x) {
421 image_line[x] = image_line[x - (int)image->comps[compno].w];
430 const int linesize[4], opj_image_t *image)
437 const int numcomps = image->numcomps;
441 if (image->comps[compno].w > linesize[0] / numcomps) {
442 av_log(avctx, AV_LOG_ERROR, "Error: frame's linesize is too small for the image\n");
449 image_line = image->comps[compno].data + y * image->comps[compno].w;
455 for (; x < image->comps[compno].w; ++x) {
459 for (; y < image->comps[compno].h; ++y) {
460 image_line = image->comps[compno].data + y * image->comps[compno].w;
461 for (x = 0; x < image->comps[compno].w; ++x) {
462 image_line[x] = image_line[x - (int)image->comps[compno].w];
471 const int linesize[4], opj_image_t *image)
480 const int numcomps = image->numcomps;
483 if (image->comps[compno].w > linesize[compno]) {
484 av_log(avctx, AV_LOG_ERROR, "Error: frame's linesize is too small for the image\n");
490 width = (avctx->width + image->comps[compno].dx - 1) / image->comps[compno].dx;
491 height = (avctx->height + image->comps[compno].dy - 1) / image->comps[compno].dy;
493 image_line = image->comps[compno].data + y * image->comps[compno].w;
497 for (; x < image->comps[compno].w; ++x) {
501 for (; y < image->comps[compno].h; ++y) {
502 image_line = image->comps[compno].data + y * image->comps[compno].w;
503 for (x = 0; x < image->comps[compno].w; ++x) {
504 image_line[x] = image_line[x - (int)image->comps[compno].w];
513 const int linesize[4], opj_image_t *image)
522 const int numcomps = image->numcomps;
525 if (image->comps[compno].w > linesize[compno]) {
526 av_log(avctx, AV_LOG_ERROR, "Error: frame's linesize is too small for the image\n");
533 width = (avctx->width + image->comps[compno].dx - 1) / image->comps[compno].dx;
534 height = (avctx->height + image->comps[compno].dy - 1) / image->comps[compno].dy;
536 image_line = image->comps[compno].data + y * image->comps[compno].w;
540 for (; x < image->comps[compno].w; ++x) {
544 for (; y < image->comps[compno].h; ++y) {
545 image_line = image->comps[compno].data + y * image->comps[compno].w;
546 for (x = 0; x < image->comps[compno].w; ++x) {
547 image_line[x] = image_line[x - (int)image->comps[compno].w];
564 opj_image_t *image = mj2_create_image(avctx, &ctx->enc_params);
569 if (!image) {
570 av_log(avctx, AV_LOG_ERROR, "Error creating the mj2 image\n");
579 cpyresult = libopenjpeg_copy_packed8(avctx, data, linesize, image);
582 cpyresult = libopenjpeg_copy_packed12(avctx, data, linesize, image);
587 cpyresult = libopenjpeg_copy_packed16(avctx, data, linesize, image);
602 cpyresult = libopenjpeg_copy_unpacked8(avctx, data, linesize, image);
604 cpyresult = libopenjpeg_copy_unpacked16(avctx, data, linesize, image);
617 cpyresult = libopenjpeg_copy_unpacked8(avctx, data, linesize, image);
647 cpyresult = libopenjpeg_copy_unpacked16(avctx, data, linesize, image);
660 "Could not copy the frame data to the internal image buffer\n");
683 if (!opj_setup_encoder(compress, &ctx->enc_params, image)) {
702 if (!opj_start_compress(compress, image, stream) ||
718 opj_image_destroy(image);