/dports/multimedia/mlt7/mlt-7.0.1/src/modules/core/ |
H A D | filter_resize.c | 33 if ( input != NULL && ( iwidth != owidth || iheight != oheight ) && ( owidth > 6 && oheight > 6 ) ) in resize_alpha() 37 int offset_y = ( oheight - iheight ) / 2; in resize_alpha() 40 output = mlt_pool_alloc( owidth * oheight ); in resize_alpha() 41 memset( output, alpha_value, owidth * oheight ); in resize_alpha() 71 int offset_y = ( oheight - iheight ) / 2; in resize_image() 74 int size = owidth * oheight; in resize_image() 150 if ( iwidth < owidth || iheight < oheight ) in frame_resize_image() 204 int oheight = *height; in filter_get_image() local 255 oheight = rint( scaled_height * oheight / normalised_height ); in filter_get_image() 272 if ( iwidth < owidth || iheight < oheight ) in filter_get_image() [all …]
|
H A D | filter_rescale.c | 57 int out_y_range = oheight / 2; in filter_scale() 71 register int scale_height = ( iheight << 16 ) / oheight; in filter_scale() 123 register int oy = ( iheight << 16 ) / oheight; in scale_alpha() 125 output = mlt_pool_alloc( owidth * oheight ); in scale_alpha() 129 for ( i = 0, y = (oy >> 1); i < oheight; i++, y += oy ) in scale_alpha() 174 int oheight = *height; in filter_get_image() local 181 oheight *= factor; in filter_get_image() 213 if ( iheight != oheight && ( strcmp( interps, "nearest" ) || ( iheight % oheight != 0 ) ) ) in filter_get_image() 238 *height = oheight; in filter_get_image() 248 …if ( alpha_size > 0 && alpha_size != ( owidth * oheight ) && alpha_size != ( owidth * ( oheight + … in filter_get_image() [all …]
|
/dports/multimedia/mlt7-qt5/mlt-7.0.1/src/modules/core/ |
H A D | filter_resize.c | 33 if ( input != NULL && ( iwidth != owidth || iheight != oheight ) && ( owidth > 6 && oheight > 6 ) ) in resize_alpha() 37 int offset_y = ( oheight - iheight ) / 2; in resize_alpha() 40 output = mlt_pool_alloc( owidth * oheight ); in resize_alpha() 41 memset( output, alpha_value, owidth * oheight ); in resize_alpha() 71 int offset_y = ( oheight - iheight ) / 2; in resize_image() 74 int size = owidth * oheight; in resize_image() 150 if ( iwidth < owidth || iheight < oheight ) in frame_resize_image() 204 int oheight = *height; in filter_get_image() local 255 oheight = rint( scaled_height * oheight / normalised_height ); in filter_get_image() 272 if ( iwidth < owidth || iheight < oheight ) in filter_get_image() [all …]
|
H A D | filter_rescale.c | 57 int out_y_range = oheight / 2; in filter_scale() 71 register int scale_height = ( iheight << 16 ) / oheight; in filter_scale() 123 register int oy = ( iheight << 16 ) / oheight; in scale_alpha() 125 output = mlt_pool_alloc( owidth * oheight ); in scale_alpha() 129 for ( i = 0, y = (oy >> 1); i < oheight; i++, y += oy ) in scale_alpha() 174 int oheight = *height; in filter_get_image() local 181 oheight *= factor; in filter_get_image() 213 if ( iheight != oheight && ( strcmp( interps, "nearest" ) || ( iheight % oheight != 0 ) ) ) in filter_get_image() 238 *height = oheight; in filter_get_image() 248 …if ( alpha_size > 0 && alpha_size != ( owidth * oheight ) && alpha_size != ( owidth * ( oheight + … in filter_get_image() [all …]
|
/dports/multimedia/mlt6-qt5/mlt-6.26.1/src/modules/core/ |
H A D | filter_resize.c | 33 if ( input != NULL && ( iwidth != owidth || iheight != oheight ) && ( owidth > 6 && oheight > 6 ) ) in resize_alpha() 37 int offset_y = ( oheight - iheight ) / 2; in resize_alpha() 40 output = mlt_pool_alloc( owidth * oheight ); in resize_alpha() 41 memset( output, alpha_value, owidth * oheight ); in resize_alpha() 71 int offset_y = ( oheight - iheight ) / 2; in resize_image() 74 int size = owidth * oheight; in resize_image() 82 else if ( iwidth == owidth && iheight == oheight ) in resize_image() 150 if ( iwidth < owidth || iheight < oheight ) in frame_resize_image() 204 int oheight = *height; in filter_get_image() local 255 oheight = rint( scaled_height * oheight / normalised_height ); in filter_get_image() [all …]
|
H A D | filter_rescale.c | 57 int out_y_range = oheight / 2; in filter_scale() 71 register int scale_height = ( iheight << 16 ) / oheight; in filter_scale() 123 register int oy = ( iheight << 16 ) / oheight; in scale_alpha() 125 output = mlt_pool_alloc( owidth * oheight ); in scale_alpha() 129 for ( i = 0, y = (oy >> 1); i < oheight; i++, y += oy ) in scale_alpha() 174 int oheight = *height; in filter_get_image() local 181 oheight *= factor; in filter_get_image() 213 if ( iheight != oheight && ( strcmp( interps, "nearest" ) || ( iheight % oheight != 0 ) ) ) in filter_get_image() 238 *height = oheight; in filter_get_image() 243 …if ( alpha_size > 0 && alpha_size != ( owidth * oheight ) && alpha_size != ( owidth * ( oheight + … in filter_get_image() [all …]
|
/dports/multimedia/py-mlt6/mlt-6.26.1/src/modules/core/ |
H A D | filter_resize.c | 33 if ( input != NULL && ( iwidth != owidth || iheight != oheight ) && ( owidth > 6 && oheight > 6 ) ) in resize_alpha() 37 int offset_y = ( oheight - iheight ) / 2; in resize_alpha() 40 output = mlt_pool_alloc( owidth * oheight ); in resize_alpha() 41 memset( output, alpha_value, owidth * oheight ); in resize_alpha() 71 int offset_y = ( oheight - iheight ) / 2; in resize_image() 74 int size = owidth * oheight; in resize_image() 82 else if ( iwidth == owidth && iheight == oheight ) in resize_image() 150 if ( iwidth < owidth || iheight < oheight ) in frame_resize_image() 204 int oheight = *height; in filter_get_image() local 255 oheight = rint( scaled_height * oheight / normalised_height ); in filter_get_image() [all …]
|
H A D | filter_rescale.c | 57 int out_y_range = oheight / 2; in filter_scale() 71 register int scale_height = ( iheight << 16 ) / oheight; in filter_scale() 123 register int oy = ( iheight << 16 ) / oheight; in scale_alpha() 125 output = mlt_pool_alloc( owidth * oheight ); in scale_alpha() 129 for ( i = 0, y = (oy >> 1); i < oheight; i++, y += oy ) in scale_alpha() 174 int oheight = *height; in filter_get_image() local 181 oheight *= factor; in filter_get_image() 213 if ( iheight != oheight && ( strcmp( interps, "nearest" ) || ( iheight % oheight != 0 ) ) ) in filter_get_image() 238 *height = oheight; in filter_get_image() 243 …if ( alpha_size > 0 && alpha_size != ( owidth * oheight ) && alpha_size != ( owidth * ( oheight + … in filter_get_image() [all …]
|
/dports/multimedia/mlt6/mlt-6.26.1/src/modules/core/ |
H A D | filter_resize.c | 33 if ( input != NULL && ( iwidth != owidth || iheight != oheight ) && ( owidth > 6 && oheight > 6 ) ) in resize_alpha() 37 int offset_y = ( oheight - iheight ) / 2; in resize_alpha() 40 output = mlt_pool_alloc( owidth * oheight ); in resize_alpha() 41 memset( output, alpha_value, owidth * oheight ); in resize_alpha() 71 int offset_y = ( oheight - iheight ) / 2; in resize_image() 74 int size = owidth * oheight; in resize_image() 82 else if ( iwidth == owidth && iheight == oheight ) in resize_image() 150 if ( iwidth < owidth || iheight < oheight ) in frame_resize_image() 204 int oheight = *height; in filter_get_image() local 255 oheight = rint( scaled_height * oheight / normalised_height ); in filter_get_image() [all …]
|
H A D | filter_rescale.c | 57 int out_y_range = oheight / 2; in filter_scale() 71 register int scale_height = ( iheight << 16 ) / oheight; in filter_scale() 123 register int oy = ( iheight << 16 ) / oheight; in scale_alpha() 125 output = mlt_pool_alloc( owidth * oheight ); in scale_alpha() 129 for ( i = 0, y = (oy >> 1); i < oheight; i++, y += oy ) in scale_alpha() 174 int oheight = *height; in filter_get_image() local 181 oheight *= factor; in filter_get_image() 213 if ( iheight != oheight && ( strcmp( interps, "nearest" ) || ( iheight % oheight != 0 ) ) ) in filter_get_image() 238 *height = oheight; in filter_get_image() 243 …if ( alpha_size > 0 && alpha_size != ( owidth * oheight ) && alpha_size != ( owidth * ( oheight + … in filter_get_image() [all …]
|
/dports/graphics/gimp-app/gimp-2.10.30/plug-ins/script-fu/scripts/ |
H A D | addborder.scm | 40 (define (gen_top_array xsize ysize owidth oheight width height) 55 (define (gen_left_array xsize ysize owidth oheight width height) 62 (aset n_array 5 (+ ysize oheight)) 70 (define (gen_right_array xsize ysize owidth oheight width height) 77 (aset n_array 5 (+ ysize oheight)) 85 (define (gen_bottom_array xsize ysize owidth oheight width height) 90 (aset n_array 3 (+ ysize oheight)) 92 (aset n_array 5 (+ ysize oheight)) 102 (oheight (car (gimp-image-height img))) 104 (height (+ oheight (* 2 ysize))) [all …]
|
/dports/multimedia/mlt7-qt5/mlt-7.0.1/src/modules/movit/ |
H A D | filter_movit_resample.cpp | 49 int oheight = *height * factor; in get_image() local 62 if ( iheight != oheight ) in get_image() 67 mlt_properties_set_int( filter_properties, "_movit.parms.int.height", oheight ); in get_image() 69 bool disable = ( iwidth == owidth && iheight == oheight ); in get_image() 73 *height = oheight; in get_image() 82 if (*width < 1 || *height < 1 || iwidth < 1 || iheight < 1 || owidth < 1 || oheight < 1) { in get_image() 84 *width, *height, iwidth, iheight, owidth, oheight); in get_image() 92 ok |= effect->set_int("height", oheight); in get_image()
|
H A D | filter_movit_resize.cpp | 68 int oheight = *height; in get_image() local 94 oheight = lrintf( rect.h > x ? x : rect.h ); in get_image() 97 oheight = lrintf( rect.h ); in get_image() 125 double output_ar = consumer_aspect * owidth / oheight; in get_image() 140 oheight = lrint( scaled_height * oheight / normalised_height ); in get_image() 144 …real_width, real_height, normalised_width, normalised_height, owidth, oheight, aspect_ratio, input… in get_image() 154 error = mlt_frame_get_image( frame, image, format, &owidth, &oheight, writable ); in get_image() 160 float h = float( rect.h - oheight ); in get_image() 166 float h = float( *height - oheight ); in get_image() 184 bool disable = ( *width == owidth && *height == oheight && rect.x == 0 && rect.y == 0 ); in get_image()
|
/dports/multimedia/mlt6-qt5/mlt-6.26.1/src/modules/opengl/ |
H A D | filter_movit_resample.cpp | 49 int oheight = *height * factor; in get_image() local 62 if ( iheight != oheight ) in get_image() 67 mlt_properties_set_int( filter_properties, "_movit.parms.int.height", oheight ); in get_image() 69 bool disable = ( iwidth == owidth && iheight == oheight ); in get_image() 73 *height = oheight; in get_image() 82 if (*width < 1 || *height < 1 || iwidth < 1 || iheight < 1 || owidth < 1 || oheight < 1) { in get_image() 84 *width, *height, iwidth, iheight, owidth, oheight); in get_image() 92 ok |= effect->set_int("height", oheight); in get_image()
|
H A D | filter_movit_resize.cpp | 68 int oheight = *height; in get_image() local 94 oheight = lrintf( rect.h > x ? x : rect.h ); in get_image() 97 oheight = lrintf( rect.h ); in get_image() 125 double output_ar = consumer_aspect * owidth / oheight; in get_image() 140 oheight = lrint( scaled_height * oheight / normalised_height ); in get_image() 144 …real_width, real_height, normalised_width, normalised_height, owidth, oheight, aspect_ratio, input… in get_image() 154 error = mlt_frame_get_image( frame, image, format, &owidth, &oheight, writable ); in get_image() 160 float h = float( rect.h - oheight ); in get_image() 166 float h = float( *height - oheight ); in get_image() 184 bool disable = ( *width == owidth && *height == oheight && rect.x == 0 && rect.y == 0 ); in get_image()
|
/dports/multimedia/mlt6/mlt-6.26.1/src/modules/opengl/ |
H A D | filter_movit_resample.cpp | 49 int oheight = *height * factor; in get_image() local 62 if ( iheight != oheight ) in get_image() 67 mlt_properties_set_int( filter_properties, "_movit.parms.int.height", oheight ); in get_image() 69 bool disable = ( iwidth == owidth && iheight == oheight ); in get_image() 73 *height = oheight; in get_image() 82 if (*width < 1 || *height < 1 || iwidth < 1 || iheight < 1 || owidth < 1 || oheight < 1) { in get_image() 84 *width, *height, iwidth, iheight, owidth, oheight); in get_image() 92 ok |= effect->set_int("height", oheight); in get_image()
|
H A D | filter_movit_resize.cpp | 68 int oheight = *height; in get_image() local 94 oheight = lrintf( rect.h > x ? x : rect.h ); in get_image() 97 oheight = lrintf( rect.h ); in get_image() 125 double output_ar = consumer_aspect * owidth / oheight; in get_image() 140 oheight = lrint( scaled_height * oheight / normalised_height ); in get_image() 144 …real_width, real_height, normalised_width, normalised_height, owidth, oheight, aspect_ratio, input… in get_image() 154 error = mlt_frame_get_image( frame, image, format, &owidth, &oheight, writable ); in get_image() 160 float h = float( rect.h - oheight ); in get_image() 166 float h = float( *height - oheight ); in get_image() 184 bool disable = ( *width == owidth && *height == oheight && rect.x == 0 && rect.y == 0 ); in get_image()
|
/dports/multimedia/mlt7/mlt-7.0.1/src/modules/movit/ |
H A D | filter_movit_resample.cpp | 49 int oheight = *height * factor; in get_image() local 62 if ( iheight != oheight ) in get_image() 67 mlt_properties_set_int( filter_properties, "_movit.parms.int.height", oheight ); in get_image() 69 bool disable = ( iwidth == owidth && iheight == oheight ); in get_image() 73 *height = oheight; in get_image() 82 if (*width < 1 || *height < 1 || iwidth < 1 || iheight < 1 || owidth < 1 || oheight < 1) { in get_image() 84 *width, *height, iwidth, iheight, owidth, oheight); in get_image() 92 ok |= effect->set_int("height", oheight); in get_image()
|
H A D | filter_movit_resize.cpp | 68 int oheight = *height; in get_image() local 94 oheight = lrintf( rect.h > x ? x : rect.h ); in get_image() 97 oheight = lrintf( rect.h ); in get_image() 125 double output_ar = consumer_aspect * owidth / oheight; in get_image() 140 oheight = lrint( scaled_height * oheight / normalised_height ); in get_image() 144 …real_width, real_height, normalised_width, normalised_height, owidth, oheight, aspect_ratio, input… in get_image() 154 error = mlt_frame_get_image( frame, image, format, &owidth, &oheight, writable ); in get_image() 160 float h = float( rect.h - oheight ); in get_image() 166 float h = float( *height - oheight ); in get_image() 184 bool disable = ( *width == owidth && *height == oheight && rect.x == 0 && rect.y == 0 ); in get_image()
|
/dports/multimedia/py-mlt6/mlt-6.26.1/src/modules/opengl/ |
H A D | filter_movit_resample.cpp | 49 int oheight = *height * factor; in get_image() local 62 if ( iheight != oheight ) in get_image() 67 mlt_properties_set_int( filter_properties, "_movit.parms.int.height", oheight ); in get_image() 69 bool disable = ( iwidth == owidth && iheight == oheight ); in get_image() 73 *height = oheight; in get_image() 82 if (*width < 1 || *height < 1 || iwidth < 1 || iheight < 1 || owidth < 1 || oheight < 1) { in get_image() 84 *width, *height, iwidth, iheight, owidth, oheight); in get_image() 92 ok |= effect->set_int("height", oheight); in get_image()
|
H A D | filter_movit_resize.cpp | 68 int oheight = *height; in get_image() local 94 oheight = lrintf( rect.h > x ? x : rect.h ); in get_image() 97 oheight = lrintf( rect.h ); in get_image() 125 double output_ar = consumer_aspect * owidth / oheight; in get_image() 140 oheight = lrint( scaled_height * oheight / normalised_height ); in get_image() 144 …real_width, real_height, normalised_width, normalised_height, owidth, oheight, aspect_ratio, input… in get_image() 154 error = mlt_frame_get_image( frame, image, format, &owidth, &oheight, writable ); in get_image() 160 float h = float( rect.h - oheight ); in get_image() 166 float h = float( *height - oheight ); in get_image() 184 bool disable = ( *width == owidth && *height == oheight && rect.x == 0 && rect.y == 0 ); in get_image()
|
/dports/multimedia/py-mlt6/mlt-6.26.1/src/modules/avformat/ |
H A D | filter_swscale.c | 63 …rame, uint8_t **image, mlt_image_format *format, int iwidth, int iheight, int owidth, int oheight ) in filter_scale() argument 96 int out_size = mlt_image_format_size( *format, owidth, oheight, NULL ); in filter_scale() 121 av_image_fill_arrays(out_data, out_stride, outbuf, avformat, owidth, oheight, IMAGE_ALIGN); in filter_scale() 124 …struct SwsContext *context = sws_getContext( iwidth, iheight, avformat, owidth, oheight, avformat,… in filter_scale() 140 if ( alpha_size > 0 && alpha_size != ( owidth * oheight ) ) in filter_scale() 147 …struct SwsContext *context = sws_getContext( iwidth, iheight, avformat, owidth, oheight, avformat,… in filter_scale() 148 outbuf = mlt_pool_alloc( owidth * oheight ); in filter_scale() 150 av_image_fill_arrays(out_data, out_stride, outbuf, avformat, owidth, oheight, IMAGE_ALIGN); in filter_scale() 157 mlt_frame_set_alpha( frame, outbuf, owidth * oheight, mlt_pool_release ); in filter_scale()
|
/dports/multimedia/mlt7-qt5/mlt-7.0.1/src/modules/avformat/ |
H A D | filter_swscale.c | 62 …rame, uint8_t **image, mlt_image_format *format, int iwidth, int iheight, int owidth, int oheight ) in filter_scale() argument 95 int out_size = mlt_image_format_size( *format, owidth, oheight, NULL ); in filter_scale() 119 av_image_fill_arrays(out_data, out_stride, outbuf, avformat, owidth, oheight, IMAGE_ALIGN); in filter_scale() 122 …struct SwsContext *context = sws_getContext( iwidth, iheight, avformat, owidth, oheight, avformat,… in filter_scale() 138 if ( alpha_size > 0 && alpha_size != ( owidth * oheight ) ) in filter_scale() 145 …struct SwsContext *context = sws_getContext( iwidth, iheight, avformat, owidth, oheight, avformat,… in filter_scale() 146 outbuf = mlt_pool_alloc( owidth * oheight ); in filter_scale() 148 av_image_fill_arrays(out_data, out_stride, outbuf, avformat, owidth, oheight, IMAGE_ALIGN); in filter_scale() 155 mlt_frame_set_alpha( frame, outbuf, owidth * oheight, mlt_pool_release ); in filter_scale()
|
/dports/multimedia/mlt6/mlt-6.26.1/src/modules/avformat/ |
H A D | filter_swscale.c | 63 …rame, uint8_t **image, mlt_image_format *format, int iwidth, int iheight, int owidth, int oheight ) in filter_scale() argument 96 int out_size = mlt_image_format_size( *format, owidth, oheight, NULL ); in filter_scale() 121 av_image_fill_arrays(out_data, out_stride, outbuf, avformat, owidth, oheight, IMAGE_ALIGN); in filter_scale() 124 …struct SwsContext *context = sws_getContext( iwidth, iheight, avformat, owidth, oheight, avformat,… in filter_scale() 140 if ( alpha_size > 0 && alpha_size != ( owidth * oheight ) ) in filter_scale() 147 …struct SwsContext *context = sws_getContext( iwidth, iheight, avformat, owidth, oheight, avformat,… in filter_scale() 148 outbuf = mlt_pool_alloc( owidth * oheight ); in filter_scale() 150 av_image_fill_arrays(out_data, out_stride, outbuf, avformat, owidth, oheight, IMAGE_ALIGN); in filter_scale() 157 mlt_frame_set_alpha( frame, outbuf, owidth * oheight, mlt_pool_release ); in filter_scale()
|
/dports/multimedia/mlt7/mlt-7.0.1/src/modules/avformat/ |
H A D | filter_swscale.c | 62 …rame, uint8_t **image, mlt_image_format *format, int iwidth, int iheight, int owidth, int oheight ) in filter_scale() argument 95 int out_size = mlt_image_format_size( *format, owidth, oheight, NULL ); in filter_scale() 119 av_image_fill_arrays(out_data, out_stride, outbuf, avformat, owidth, oheight, IMAGE_ALIGN); in filter_scale() 122 …struct SwsContext *context = sws_getContext( iwidth, iheight, avformat, owidth, oheight, avformat,… in filter_scale() 138 if ( alpha_size > 0 && alpha_size != ( owidth * oheight ) ) in filter_scale() 145 …struct SwsContext *context = sws_getContext( iwidth, iheight, avformat, owidth, oheight, avformat,… in filter_scale() 146 outbuf = mlt_pool_alloc( owidth * oheight ); in filter_scale() 148 av_image_fill_arrays(out_data, out_stride, outbuf, avformat, owidth, oheight, IMAGE_ALIGN); in filter_scale() 155 mlt_frame_set_alpha( frame, outbuf, owidth * oheight, mlt_pool_release ); in filter_scale()
|