#include <swscale_internal.h>
The pointers to the allocated buffers for each line are duplicated in sequence in the ring buffer to simplify indexing and avoid wrapping around between lines inside the vertical scaler code. The wrapping is done before the vertical scaler is called.
for (i = 0; i < width; i++) { dst[i] = 0; for (j = 0; j < filterSize; j++) dst[i] += src[ filterPos[i] + j ] * filter[ filterSize * i + j ]; dst[i] >>= FRAC_BITS; // The actual implementation is fixed-point. }
Definition at line 225 of file swscale_internal.h.
Ring buffer for scaled horizontal alpha plane lines to be fed to the vertical scaler.
Definition at line 274 of file swscale_internal.h.
Referenced by ff_sws_init_input_funcs(), ff_sws_init_swScale_altivec(), ff_sws_init_swScale_mmx(), sws_freeContext(), sws_init_context(), and swScale().
Unscaled conversion of alpha plane to YV12 for horizontal scaler.
Referenced by ff_sws_init_input_funcs(), ff_sws_init_swScale_mmx(), and hyscale().
info on struct for av_log
Definition at line 229 of file swscale_internal.h.
Referenced by sws_alloc_context().
Definition at line 370 of file swscale_internal.h.
Definition at line 329 of file swscale_internal.h.
Referenced by sws_getColorspaceDetails(), and sws_setColorspaceDetails().
Index in ring buffer of the last scaled horizontal chroma line from source.
Definition at line 280 of file swscale_internal.h.
Referenced by swScale().
Color range conversion function for chroma planes if needed.
Referenced by hcscale(), and sws_init_swScale_c().
Height of destination chroma planes.
Definition at line 242 of file swscale_internal.h.
Referenced by sws_init_context().
Binary logarithm of horizontal subsampling factor between luma/alpha and chroma planes in destination image.
Definition at line 252 of file swscale_internal.h.
Referenced by ff_get_unscaled_swscale(), planarCopyWrapper(), and sws_init_context().
Binary logarithm of vertical subsampling factor between luma/alpha and chroma planes in destination image.
Definition at line 253 of file swscale_internal.h.
Referenced by ff_get_unscaled_swscale(), planarCopyWrapper(), sws_init_context(), sws_scale(), and swScale().
Width of destination chroma planes.
Definition at line 241 of file swscale_internal.h.
Referenced by sws_init_context(), and swScale().
Runtime-generated MMX2 horizontal fast bilinear scaler code for chroma planes.
Definition at line 316 of file swscale_internal.h.
Referenced by sws_freeContext(), and sws_init_context().
Runtime-generated MMX2 horizontal fast bilinear scaler code size for chroma planes.
Definition at line 314 of file swscale_internal.h.
Referenced by sws_freeContext(), and sws_init_context().
Height of source chroma planes.
Definition at line 240 of file swscale_internal.h.
Referenced by sws_init_context(), and swScale().
Binary logarithm of horizontal subsampling factor between luma/alpha and chroma planes in source image.
Definition at line 250 of file swscale_internal.h.
Referenced by ff_get_unscaled_swscale(), ff_sws_init_input_funcs(), and sws_init_context().
Binary logarithm of vertical subsampling factor between luma/alpha and chroma planes in source image.
Definition at line 251 of file swscale_internal.h.
Referenced by ff_get_unscaled_swscale(), sws_init_context(), sws_scale(), and swScale().
Width of source chroma planes.
Definition at line 239 of file swscale_internal.h.
Referenced by sws_init_context(), swScale(), and yvu9ToYv12Wrapper().
Unscaled conversion of chroma planes to YV12 for horizontal scaler.
Referenced by ff_sws_init_input_funcs(), ff_sws_init_swScale_mmx(), and hcscale().
Ring buffer for scaled horizontal chroma plane lines to be fed to the vertical scaler.
Definition at line 272 of file swscale_internal.h.
Referenced by sws_freeContext(), sws_init_context(), and swScale().
Ring buffer for scaled horizontal chroma plane lines to be fed to the vertical scaler.
Definition at line 273 of file swscale_internal.h.
Referenced by sws_freeContext(), sws_init_context(), and swScale().
Definition at line 329 of file swscale_internal.h.
Referenced by sws_getColorspaceDetails(), and sws_setColorspaceDetails().
Definition at line 394 of file swscale_internal.h.
Definition at line 395 of file swscale_internal.h.
Definition at line 335 of file swscale_internal.h.
Referenced by sws_getCachedContext(), sws_getContext(), and sws_scale().
Definition at line 249 of file swscale_internal.h.
Referenced by ff_sws_init_swScale_altivec(), ff_sws_init_swScale_mmx(), sws_init_context(), and sws_init_swScale_c().
Definition at line 331 of file swscale_internal.h.
Referenced by sws_getColorspaceDetails(), and sws_setColorspaceDetails().
Destination pixel format.
Definition at line 245 of file swscale_internal.h.
Referenced by ff_bfin_get_unscaled_swscale(), ff_get_unscaled_swscale(), ff_sws_init_swScale_altivec(), ff_sws_init_swScale_mmx(), ff_swscale_get_unscaled_altivec(), ff_yuv2packedX_altivec(), ff_yuv2rgb_c_init_tables(), ff_yuv2rgb_get_func_ptr_bfin(), ff_yuv2rgb_init_altivec(), ff_yuv2rgb_init_mmx(), ff_yuv2rgb_init_vis(), findRgbConvFn(), palToRgbWrapper(), planarCopyWrapper(), planarRgbToRgbWrapper(), planarToNv12Wrapper(), rgbToRgbWrapper(), selfTest(), sws_getCachedContext(), sws_getColorspaceDetails(), sws_getContext(), sws_init_context(), sws_init_swScale_c(), sws_scale(), sws_setColorspaceDetails(), swScale(), and yuv2nv12cX_c().
Number of bits per pixel of the destination pixel format.
Definition at line 247 of file swscale_internal.h.
Referenced by ff_get_unscaled_swscale(), ff_yuv2rgb_c_init_tables(), findRgbConvFn(), rgbToRgbWrapper(), sws_init_context(), and sws_setColorspaceDetails().
Height of destination luma/alpha planes.
Definition at line 238 of file swscale_internal.h.
Referenced by ff_get_unscaled_swscale(), selfTest(), sws_getCachedContext(), sws_getContext(), sws_init_context(), sws_scale(), and swScale().
0 = MPG YUV range, 1 = JPG YUV range (destination image).
Definition at line 333 of file swscale_internal.h.
Referenced by sws_getCachedContext(), sws_getColorspaceDetails(), sws_getContext(), sws_init_context(), sws_init_swScale_c(), and sws_setColorspaceDetails().
Width of destination luma/alpha planes.
Definition at line 382 of file swscale_internal.h.
Referenced by ff_yuv2rgb_init_vis(), selfTest(), sws_getCachedContext(), sws_getContext(), sws_init_context(), swScale(), vis_420P_ARGB32(), vis_422P_ARGB32(), yuv2bgr24_X_ar_TMPL(), yuv2bgr24_X_TMPL(), yuv2rgb32_X_ar_TMPL(), yuv2rgb32_X_TMPL(), yuv2rgb555_X_ar_TMPL(), yuv2rgb555_X_TMPL(), yuv2rgb565_X_ar_TMPL(), yuv2rgb565_X_TMPL(), yuv2yuvX_TMPL(), yuv2yuyv422_X_ar_TMPL(), and yuv2yuyv422_X_TMPL().
Last destination vertical line output from last slice.
Definition at line 320 of file swscale_internal.h.
Referenced by swScale().
Definition at line 383 of file swscale_internal.h.
Flags passed by the user to select scaler algorithm, optimizations, subsampling, etc...
Definition at line 321 of file swscale_internal.h.
Referenced by ff_get_unscaled_swscale(), ff_sws_init_swScale_altivec(), ff_sws_init_swScale_mmx(), ff_swscale_get_unscaled_altivec(), sws_getCachedContext(), sws_getContext(), sws_init_context(), sws_init_swScale_c(), and swScale().
Definition at line 283 of file swscale_internal.h.
Referenced by rgbToRgbWrapper(), sws_freeContext(), sws_init_context(), and swScale().
Definition at line 369 of file swscale_internal.h.
Array of horizontal filter coefficients for chroma planes.
Definition at line 300 of file swscale_internal.h.
Referenced by sws_freeContext(), sws_init_context(), and swScale().
Array of horizontal filter starting positions for each dst[i] for chroma planes.
Definition at line 304 of file swscale_internal.h.
Referenced by sws_freeContext(), sws_init_context(), and swScale().
Horizontal filter size for chroma pixels.
Definition at line 308 of file swscale_internal.h.
Referenced by ff_sws_init_swScale_mmx(), sws_init_context(), and swScale().
Referenced by ff_sws_init_swScale_altivec(), ff_sws_init_swScale_mmx(), hcscale(), and sws_init_swScale_c().
Referenced by hcscale(), and sws_init_swScale_c().
Array of horizontal filter coefficients for luma/alpha planes.
Definition at line 299 of file swscale_internal.h.
Referenced by sws_freeContext(), sws_init_context(), and swScale().
Array of horizontal filter starting positions for each dst[i] for luma/alpha planes.
Definition at line 303 of file swscale_internal.h.
Referenced by sws_freeContext(), sws_init_context(), and swScale().
Horizontal filter size for luma/alpha pixels.
Definition at line 307 of file swscale_internal.h.
Referenced by ff_sws_init_swScale_mmx(), sws_init_context(), and swScale().
Scale one horizontal line of input data using a filter over the input lines, to produce one (differently sized) line of output data.
Referenced by ff_sws_init_swScale_altivec(), ff_sws_init_swScale_mmx(), hyscale(), and sws_init_swScale_c().
Scale one horizontal line of input data using a bilinear filter to produce one line of output data.
Compared to SwsContext->hScale(), please take note of the following caveats when using these:
Referenced by hyscale(), and sws_init_swScale_c().
Last scaled horizontal chroma line from source in the ring buffer.
Definition at line 278 of file swscale_internal.h.
Referenced by swScale().
Last scaled horizontal luma/alpha line from source in the ring buffer.
Definition at line 277 of file swscale_internal.h.
Referenced by swScale().
Index in ring buffer of the last scaled horizontal luma/alpha line from source.
Definition at line 279 of file swscale_internal.h.
Referenced by swScale().
Color range conversion function for luma plane if needed.
Referenced by hyscale(), and sws_init_swScale_c().
Runtime-generated MMX2 horizontal fast bilinear scaler code for luma/alpha planes.
Definition at line 315 of file swscale_internal.h.
Referenced by sws_freeContext(), and sws_init_context().
Runtime-generated MMX2 horizontal fast bilinear scaler code size for luma/alpha planes.
Definition at line 313 of file swscale_internal.h.
Referenced by sws_freeContext(), and sws_init_context().
Ring buffer for scaled horizontal luma plane lines to be fed to the vertical scaler.
Definition at line 271 of file swscale_internal.h.
Referenced by sws_freeContext(), sws_init_context(), and swScale().
Unscaled conversion of luma plane to YV12 for horizontal scaler.
Referenced by ff_sws_init_input_funcs(), ff_sws_init_swScale_mmx(), and hyscale().
Set if there are chroma planes to be converted.
Definition at line 530 of file swscale_internal.h.
Referenced by sws_init_swScale_c(), and swScale().
Definition at line 259 of file swscale_internal.h.
Referenced by palToRgbWrapper(), and sws_scale().
Input parameters for scaling algorithms that need them.
Definition at line 256 of file swscale_internal.h.
Referenced by sws_getCachedContext(), sws_getContext(), and sws_init_context().
Referenced by ff_sws_init_input_funcs(), and hcscale().
Functions to read planar input, such as planar RGB, and convert internally to Y/UV.
Referenced by ff_sws_init_input_funcs(), and hyscale().
Definition at line 368 of file swscale_internal.h.
Definition at line 329 of file swscale_internal.h.
Referenced by sws_getColorspaceDetails(), and sws_setColorspaceDetails().
Direction that slices are fed to the scaler (1 = top-to-bottom, -1 = bottom-to-top).
Definition at line 255 of file swscale_internal.h.
Referenced by sws_scale().
Definition at line 334 of file swscale_internal.h.
Referenced by sws_getCachedContext(), sws_getContext(), and sws_scale().
Definition at line 249 of file swscale_internal.h.
Referenced by ff_sws_init_swScale_altivec(), sws_init_context(), and sws_init_swScale_c().
Definition at line 330 of file swscale_internal.h.
Referenced by sws_getColorspaceDetails(), and sws_setColorspaceDetails().
Source pixel format.
Definition at line 246 of file swscale_internal.h.
Referenced by ff_bfin_get_unscaled_swscale(), ff_get_unscaled_swscale(), ff_sws_init_input_funcs(), ff_sws_init_swScale_mmx(), ff_swscale_get_unscaled_altivec(), ff_yuv2rgb_c_init_tables(), ff_yuv2rgb_init_altivec(), ff_yuv2rgb_init_mmx(), ff_yuv2rgb_init_vis(), findRgbConvFn(), hScale16To15_c(), hScale16To19_c(), palToRgbWrapper(), planarCopyWrapper(), planarRgbToRgbWrapper(), rgbToRgbWrapper(), selfTest(), sws_getCachedContext(), sws_getContext(), sws_init_context(), sws_init_swScale_c(), sws_scale(), sws_setColorspaceDetails(), and swScale().
Number of bits per pixel of the source pixel format.
Definition at line 248 of file swscale_internal.h.
Referenced by ff_get_unscaled_swscale(), findRgbConvFn(), rgbToRgbWrapper(), sws_init_context(), and sws_setColorspaceDetails().
Height of source luma/alpha planes.
Definition at line 237 of file swscale_internal.h.
Referenced by ff_yuv2rgb_init_altivec(), selfTest(), sws_getCachedContext(), sws_getContext(), sws_init_context(), sws_scale(), and swScale().
0 = MPG YUV range, 1 = JPG YUV range (source image).
Definition at line 332 of file swscale_internal.h.
Referenced by planarCopyWrapper(), sws_getCachedContext(), sws_getColorspaceDetails(), sws_getContext(), sws_init_context(), sws_init_swScale_c(), and sws_setColorspaceDetails().
Width of source luma/alpha planes.
Definition at line 236 of file swscale_internal.h.
Referenced by altivec_uyvy_rgb32(), bgr24ToYv12Wrapper(), ff_swscale_get_unscaled_altivec(), ff_yuv2rgb_init_altivec(), packedCopyWrapper(), palToRgbWrapper(), planarCopyWrapper(), planarRgbToRgbWrapper(), planarToNv12Wrapper(), planarToUyvyWrapper(), planarToYuy2Wrapper(), rgbToRgbWrapper(), selfTest(), sws_getCachedContext(), sws_getContext(), sws_init_context(), sws_scale(), swScale(), uyvyToYuv420Wrapper(), uyvyToYuv422Wrapper(), yuv422pToUyvyWrapper(), yuv422pToYuy2Wrapper(), yuyvToYuv420Wrapper(), yuyvToYuv422Wrapper(), yv12touyvy_unscaled_altivec(), yv12toyuy2_unscaled_altivec(), and yvu9ToYv12Wrapper().
Note that src, dst, srcStride, dstStride will be copied in the sws_scale() wrapper so they can be freely modified here.
Definition at line 235 of file swscale_internal.h.
Referenced by ff_bfin_get_unscaled_swscale(), ff_get_unscaled_swscale(), ff_swscale_get_unscaled_altivec(), sws_init_context(), and sws_scale().
Definition at line 326 of file swscale_internal.h.
Referenced by ff_yuv2rgb_c_init_tables(), yuv2rgb_1_c_template(), yuv2rgb_2_c_template(), and yuv2rgb_X_c_template().
Definition at line 324 of file swscale_internal.h.
Referenced by ff_yuv2rgb_c_init_tables(), yuv2rgb_1_c_template(), yuv2rgb_2_c_template(), and yuv2rgb_X_c_template().
Definition at line 325 of file swscale_internal.h.
Referenced by ff_yuv2rgb_c_init_tables(), yuv2rgb_1_c_template(), yuv2rgb_2_c_template(), and yuv2rgb_X_c_template().
Definition at line 323 of file swscale_internal.h.
Referenced by ff_yuv2rgb_c_init_tables(), yuv2rgb_1_c_template(), yuv2rgb_2_c_template(), and yuv2rgb_X_c_template().
Definition at line 385 of file swscale_internal.h.
Definition at line 374 of file swscale_internal.h.
Referenced by bfin_prepare_coefficients(), ff_yuv2rgb_c_init_tables(), and ff_yuv2rgb_init_vis().
Definition at line 376 of file swscale_internal.h.
Referenced by bfin_prepare_coefficients(), ff_yuv2rgb_c_init_tables(), and ff_yuv2rgb_init_vis().
Definition at line 378 of file swscale_internal.h.
Referenced by ff_yuv2rgb_c_init_tables(), and ff_yuv2rgb_init_vis().
Definition at line 427 of file swscale_internal.h.
Referenced by ff_sws_init_swScale_mmx(), and swScale().
offset (in pixels) between u and v planes
Definition at line 392 of file swscale_internal.h.
Referenced by sws_init_context(), yuv2bgr24_X_ar_TMPL(), yuv2bgr24_X_TMPL(), yuv2rgb32_X_ar_TMPL(), yuv2rgb32_X_TMPL(), yuv2rgb555_X_ar_TMPL(), yuv2rgb555_X_TMPL(), yuv2rgb565_X_ar_TMPL(), yuv2rgb565_X_TMPL(), yuv2yuyv422_X_ar_TMPL(), and yuv2yuyv422_X_TMPL().
offset (in bytes) between u and v planes
Definition at line 393 of file swscale_internal.h.
Referenced by sws_init_context(), and swScale().
Definition at line 386 of file swscale_internal.h.
Number of vertical chroma lines allocated in the ring buffer.
Definition at line 276 of file swscale_internal.h.
Referenced by sws_freeContext(), sws_init_context(), and swScale().
Binary logarithm of extra vertical subsampling factor in source image chroma planes specified by user.
Definition at line 254 of file swscale_internal.h.
Referenced by sws_init_context(), and swScale().
Array of vertical filter coefficients for chroma planes.
Definition at line 302 of file swscale_internal.h.
Referenced by sws_freeContext(), sws_init_context(), and swScale().
Array of vertical filter starting positions for each dst[i] for chroma planes.
Definition at line 306 of file swscale_internal.h.
Referenced by sws_freeContext(), sws_init_context(), and swScale().
Vertical filter size for chroma pixels.
Definition at line 310 of file swscale_internal.h.
Referenced by sws_init_context(), and swScale().
Definition at line 375 of file swscale_internal.h.
Referenced by bfin_prepare_coefficients(), ff_yuv2rgb_c_init_tables(), and ff_yuv2rgb_init_vis().
Number of vertical luma/alpha lines allocated in the ring buffer.
Definition at line 275 of file swscale_internal.h.
Referenced by sws_freeContext(), sws_init_context(), and swScale().
Array of vertical filter coefficients for luma/alpha planes.
Definition at line 301 of file swscale_internal.h.
Referenced by sws_freeContext(), sws_init_context(), and swScale().
Array of vertical filter starting positions for each dst[i] for luma/alpha planes.
Definition at line 305 of file swscale_internal.h.
Referenced by sws_freeContext(), sws_init_context(), and swScale().
Vertical filter size for luma/alpha pixels.
Definition at line 309 of file swscale_internal.h.
Referenced by sws_init_context(), and swScale().
Definition at line 379 of file swscale_internal.h.
Referenced by ff_yuv2rgb_c_init_tables(), and ff_yuv2rgb_init_vis().
Definition at line 373 of file swscale_internal.h.
Referenced by bfin_prepare_coefficients(), ff_yuv2rgb_c_init_tables(), and ff_yuv2rgb_init_vis().
Definition at line 387 of file swscale_internal.h.
Definition at line 372 of file swscale_internal.h.
Referenced by bfin_prepare_coefficients(), ff_yuv2rgb_c_init_tables(), and ff_yuv2rgb_init_vis().
Definition at line 377 of file swscale_internal.h.
Referenced by bfin_prepare_coefficients(), ff_yuv2rgb_c_init_tables(), and ff_yuv2rgb_init_vis().
Definition at line 432 of file swscale_internal.h.
Referenced by sws_init_swScale_c(), and swScale().
Definition at line 433 of file swscale_internal.h.
Referenced by sws_init_swScale_c(), and swScale().
Definition at line 434 of file swscale_internal.h.
Referenced by sws_init_swScale_c(), and swScale().
Definition at line 435 of file swscale_internal.h.
Referenced by ff_sws_init_swScale_altivec(), sws_init_swScale_c(), and swScale().
Definition at line 430 of file swscale_internal.h.
Referenced by ff_sws_init_swScale_mmx(), sws_init_swScale_c(), and swScale().
Definition at line 431 of file swscale_internal.h.
Referenced by ff_sws_init_swScale_altivec(), ff_sws_init_swScale_mmx(), sws_init_swScale_c(), and swScale().
Definition at line 341 of file swscale_internal.h.
Referenced by ff_yuv2rgb_c_init_tables(), yuv2rgb48_1_c_template(), yuv2rgb48_2_c_template(), and yuv2rgb48_X_c_template().
Definition at line 340 of file swscale_internal.h.
Referenced by ff_yuv2rgb_c_init_tables(), yuv2rgb48_1_c_template(), yuv2rgb48_2_c_template(), and yuv2rgb48_X_c_template().
Definition at line 339 of file swscale_internal.h.
Referenced by ff_yuv2rgb_c_init_tables(), yuv2rgb48_1_c_template(), yuv2rgb48_2_c_template(), and yuv2rgb48_X_c_template().
Definition at line 338 of file swscale_internal.h.
Referenced by ff_yuv2rgb_c_init_tables(), yuv2rgb48_1_c_template(), yuv2rgb48_2_c_template(), and yuv2rgb48_X_c_template().
Definition at line 337 of file swscale_internal.h.
Referenced by ff_yuv2rgb_c_init_tables(), yuv2rgb48_1_c_template(), yuv2rgb48_2_c_template(), and yuv2rgb48_X_c_template().
Definition at line 336 of file swscale_internal.h.
Referenced by ff_yuv2rgb_c_init_tables(), yuv2rgb48_1_c_template(), yuv2rgb48_2_c_template(), and yuv2rgb48_X_c_template().
Definition at line 322 of file swscale_internal.h.
Referenced by ff_yuv2rgb_c_init_tables(), and sws_freeContext().