• Home
  • Raw
  • Download

Lines Matching defs:SwsContext

280 typedef struct SwsContext {  struct
284 const AVClass *av_class;
290 SwsFunc swscale;
291 int srcW; ///< Width of source luma/alpha planes.
292 int srcH; ///< Height of source luma/alpha planes.
293 int dstH; ///< Height of destination luma/alpha planes.
317 struct SwsContext *cascaded_context[3]; argument
318 int cascaded_tmpStride[4];
319 uint8_t *cascaded_tmp[4];
320 int cascaded1_tmpStride[4];
321 uint8_t *cascaded1_tmp[4];
322 int cascaded_mainindex;
324 double gamma_value;
325 int gamma_flag;
326 int is_internal_gamma;
327 uint16_t *gamma;
328 uint16_t *inv_gamma;
330 int numDesc;
331 int descIndex[2];
332 int numSlice;
333 struct SwsSlice *slice;
334 struct SwsFilterDescriptor *desc;
336 uint32_t pal_yuv[256];
337 uint32_t pal_rgb[256];
339 float uint2float_lut[256];
351 …stInLumBuf; ///< Last scaled horizontal luma/alpha line from source in the ring buffer.
352 …stInChrBuf; ///< Last scaled horizontal chroma line from source in the ring buffer.
355 uint8_t *formatConvBuffer;
356 int needAlpha;
372 … int16_t *hLumFilter; ///< Array of horizontal filter coefficients for luma/alpha planes.
373 … int16_t *hChrFilter; ///< Array of horizontal filter coefficients for chroma planes.
374 … int16_t *vLumFilter; ///< Array of vertical filter coefficients for luma/alpha planes.
375 … int16_t *vChrFilter; ///< Array of vertical filter coefficients for chroma planes.
376 …os; ///< Array of horizontal filter starting positions for each dst[i] for luma/alpha planes.
377 …os; ///< Array of horizontal filter starting positions for each dst[i] for chroma planes.
378 …os; ///< Array of vertical filter starting positions for each dst[i] for luma/alpha planes.
379 …os; ///< Array of vertical filter starting positions for each dst[i] for chroma planes.
380 int hLumFilterSize; ///< Horizontal filter size for luma/alpha pixels.
381 int hChrFilterSize; ///< Horizontal filter size for chroma pixels.
382 int vLumFilterSize; ///< Vertical filter size for luma/alpha pixels.
383 int vChrFilterSize; ///< Vertical filter size for chroma pixels.
386 …ze; ///< Runtime-generated MMXEXT horizontal fast bilinear scaler code size for luma/alpha planes.
387 …deSize; ///< Runtime-generated MMXEXT horizontal fast bilinear scaler code size for chroma planes.
388 …lterCode; ///< Runtime-generated MMXEXT horizontal fast bilinear scaler code for luma/alpha planes.
389 …xtFilterCode; ///< Runtime-generated MMXEXT horizontal fast bilinear scaler code for chroma planes.
391 int canMMXEXTBeUsed;
392 int warned_unuseable_bilinear;
394 int dstY; ///< Last destination vertical line output from last slice.
395 … ///< Flags passed by the user to select scaler algorithm, optimizations, subsampling, etc...
396 void *yuvTable; // pointer to the yuv->rgb table start so it can be freed()
399 DECLARE_ALIGNED(16, int, table_gV)[256 + 2*YUVRGB_TABLE_HEADROOM];
400 uint8_t *table_rV[256 + 2*YUVRGB_TABLE_HEADROOM];
401 uint8_t *table_gU[256 + 2*YUVRGB_TABLE_HEADROOM];
402 uint8_t *table_bU[256 + 2*YUVRGB_TABLE_HEADROOM];
403 …his table can contain both C and SIMD formatted values, the C vales are always at the XY_IDX points
415 int *dither_error[4];
418 int contrast, brightness, saturation; // for sws_getColorspaceDetails
419 int srcColorspaceTable[4];
420 int dstColorspaceTable[4];
421 int srcRange; ///< 0 = MPG YUV range, 1 = JPG YUV range (source image).
422 int dstRange; ///< 0 = MPG YUV range, 1 = JPG YUV range (destination image).
423 int src0Alpha;
424 int dst0Alpha;
425 int srcXYZ;
426 int dstXYZ;
427 int src_h_chr_pos;
428 int dst_h_chr_pos;
429 int src_v_chr_pos;
430 int dst_v_chr_pos;
431 int yuv2rgb_y_offset;
432 int yuv2rgb_y_coeff;
433 int yuv2rgb_v2r_coeff;
434 int yuv2rgb_v2g_coeff;
435 int yuv2rgb_u2g_coeff;
436 int yuv2rgb_u2b_coeff;
476 int32_t lumMmxFilter[4 * MAX_FILTER_SIZE];
477 int32_t chrMmxFilter[4 * MAX_FILTER_SIZE];
478 int dstW; ///< Width of destination luma/alpha planes.
484 int32_t alpMmxFilter[4 * MAX_FILTER_SIZE];
490 DECLARE_ALIGNED(8, uint16_t, dither16)[8];
491 DECLARE_ALIGNED(8, uint32_t, dither32)[8];
493 const uint8_t *chrDither8, *lumDither8;
496 vector signed short CY;
497 vector signed short CRV;
498 vector signed short CBU;
499 vector signed short CGU;
500 vector signed short CGV;
501 vector signed short OY;
502 vector unsigned short CSHIFT;
503 vector signed short *vYCoeffsBank, *vCCoeffsBank;
506 int use_mmx_vfilter;
511 int16_t *xyzgamma;
512 int16_t *rgbgamma;
513 int16_t *xyzgammainv;
514 int16_t *rgbgammainv;
515 int16_t xyz2rgb_matrix[3][4];
516 int16_t rgb2xyz_matrix[3][4];
519 yuv2planar1_fn yuv2plane1;
520 yuv2planarX_fn yuv2planeX;
521 yuv2interleavedX_fn yuv2nv12cX;
522 yuv2packed1_fn yuv2packed1;
523 yuv2packed2_fn yuv2packed2;
524 yuv2packedX_fn yuv2packedX;
525 yuv2anyX_fn yuv2anyX;
551 * to produce one line of output data. Compared to SwsContext->hScale(), argument
568 void (*hyscale_fast)(struct SwsContext *c, argument
571 void (*hcscale_fast)(struct SwsContext *c, argument
608 void (*hyScale)(struct SwsContext *c, int16_t *dst, int dstW, argument
611 void (*hcScale)(struct SwsContext *c, int16_t *dst, int dstW, argument
626 } SwsContext; argument