/third_party/ffmpeg/libavresample/ |
D | audio_mix_matrix.c | 94 double matrix[64][64] = {{0}}; in avresample_build_matrix() local 123 matrix[i][i] = 1.0; in avresample_build_matrix() 130 matrix[FRONT_LEFT ][FRONT_CENTER] += center_mix_level; in avresample_build_matrix() 131 matrix[FRONT_RIGHT][FRONT_CENTER] += center_mix_level; in avresample_build_matrix() 133 matrix[FRONT_LEFT ][FRONT_CENTER] += M_SQRT1_2; in avresample_build_matrix() 134 matrix[FRONT_RIGHT][FRONT_CENTER] += M_SQRT1_2; in avresample_build_matrix() 142 matrix[FRONT_CENTER][FRONT_LEFT ] += M_SQRT1_2; in avresample_build_matrix() 143 matrix[FRONT_CENTER][FRONT_RIGHT] += M_SQRT1_2; in avresample_build_matrix() 146 matrix[FRONT_CENTER][FRONT_CENTER] = center_mix_level * M_SQRT2; in avresample_build_matrix() 153 matrix[BACK_LEFT ][BACK_CENTER] += M_SQRT1_2; in avresample_build_matrix() [all …]
|
/third_party/weston/libweston/ |
D | trace.h | 49 #define LOG_MATRIX(matrix) \ argument 50 LOG_INFO(#matrix ": {"); \ 51 …LOG_INFO(#matrix " %f, %f, %f, %f", (matrix)->d[0], (matrix)->d[4], (matrix)->d[8], (matrix)->d… 52 …LOG_INFO(#matrix " %f, %f, %f, %f", (matrix)->d[1], (matrix)->d[5], (matrix)->d[9], (matrix)->d… 53 …LOG_INFO(#matrix " %f, %f, %f, %f", (matrix)->d[2], (matrix)->d[6], (matrix)->d[10], (matrix)->… 54 …LOG_INFO(#matrix " %f, %f, %f, %f", (matrix)->d[3], (matrix)->d[7], (matrix)->d[11], (matrix)->… 55 LOG_INFO(#matrix "}")
|
/third_party/flutter/skia/docs/examples/ |
D | Matrix_TypeMask.cpp | 7 auto debugster = [](const char* prefix, const SkMatrix& matrix) -> void { in draw() argument 9 typeMask += SkMatrix::kIdentity_Mask == matrix.getType() ? "kIdentity_Mask " : ""; in draw() 10 typeMask += SkMatrix::kTranslate_Mask & matrix.getType() ? "kTranslate_Mask " : ""; in draw() 11 typeMask += SkMatrix::kScale_Mask & matrix.getType() ? "kScale_Mask " : ""; in draw() 12 typeMask += SkMatrix::kAffine_Mask & matrix.getType() ? "kAffine_Mask " : ""; in draw() 13 typeMask += SkMatrix::kPerspective_Mask & matrix.getType() ? "kPerspective_Mask" : ""; in draw() 16 SkMatrix matrix; in draw() local 17 matrix.reset(); in draw() 18 debugster("reset", matrix); in draw() 19 matrix.postTranslate(1, 0); in draw() [all …]
|
/third_party/skia/docs/examples/ |
D | Matrix_TypeMask.cpp | 7 auto debugster = [](const char* prefix, const SkMatrix& matrix) -> void { in draw() argument 9 typeMask += SkMatrix::kIdentity_Mask == matrix.getType() ? "kIdentity_Mask " : ""; in draw() 10 typeMask += SkMatrix::kTranslate_Mask & matrix.getType() ? "kTranslate_Mask " : ""; in draw() 11 typeMask += SkMatrix::kScale_Mask & matrix.getType() ? "kScale_Mask " : ""; in draw() 12 typeMask += SkMatrix::kAffine_Mask & matrix.getType() ? "kAffine_Mask " : ""; in draw() 13 typeMask += SkMatrix::kPerspective_Mask & matrix.getType() ? "kPerspective_Mask" : ""; in draw() 16 SkMatrix matrix; in draw() local 17 matrix.reset(); in draw() 18 debugster("reset", matrix); in draw() 19 matrix.postTranslate(1, 0); in draw() [all …]
|
/third_party/ffmpeg/libavutil/tests/ |
D | display.c | 23 static void print_matrix(int32_t matrix[9]) in print_matrix() 29 printf("%d ", matrix[i*3 + j]); in print_matrix() 31 printf("%d\n", matrix[i*3 + j]); in print_matrix() 37 int32_t matrix[9]; in main() local 40 av_display_rotation_set(matrix, 90); in main() 41 print_matrix(matrix); in main() 42 printf("degrees: %f\n", av_display_rotation_get(matrix)); in main() 45 av_display_rotation_set(matrix, -45); in main() 46 print_matrix(matrix); in main() 47 printf("degrees: %f\n", av_display_rotation_get(matrix)); in main() [all …]
|
/third_party/ffmpeg/libswresample/ |
D | rematrix.c | 64 int swr_set_matrix(struct SwrContext *s, const double *matrix, int stride) in swr_set_matrix() argument 70 memset(s->matrix, 0, sizeof(s->matrix)); in swr_set_matrix() 78 s->matrix_flt[out][in] = s->matrix[out][in] = matrix[in]; in swr_set_matrix() 79 matrix += stride; in swr_set_matrix() 126 double matrix[NUM_NAMED_CHANNELS][NUM_NAMED_CHANNELS]={{0}}; in swr_build_matrix() local 156 for(i=0; i<FF_ARRAY_ELEMS(matrix); i++){ in swr_build_matrix() 158 matrix[i][i]= 1.0; in swr_build_matrix() 170 matrix[ FRONT_LEFT][FRONT_CENTER]+= center_mix_level; in swr_build_matrix() 171 matrix[FRONT_RIGHT][FRONT_CENTER]+= center_mix_level; in swr_build_matrix() 173 matrix[ FRONT_LEFT][FRONT_CENTER]+= M_SQRT1_2; in swr_build_matrix() [all …]
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/audio/ |
D | audio-channel-mixer.c | 67 gfloat **matrix; member 89 g_free (mix->matrix[i]); in gst_audio_channel_mixer_free() 90 g_free (mix->matrix); in gst_audio_channel_mixer_free() 91 mix->matrix = NULL; in gst_audio_channel_mixer_free() 108 gst_audio_channel_mixer_fill_identical (gfloat ** matrix, in gst_audio_channel_mixer_fill_identical() argument 123 matrix[ci][co] = ci == co ? 1.0 : 0.0; in gst_audio_channel_mixer_fill_identical() 125 matrix[ci][co] = 1.0; in gst_audio_channel_mixer_fill_identical() 138 gst_audio_channel_mixer_fill_compatible (gfloat ** matrix, gint in_channels, in gst_audio_channel_mixer_fill_compatible() argument 196 matrix[pos1_0][pos2_2] = 1.0; in gst_audio_channel_mixer_fill_compatible() 198 matrix[pos1_0][pos2_2] = 0.5; in gst_audio_channel_mixer_fill_compatible() [all …]
|
/third_party/flutter/skia/src/gpu/effects/generated/ |
D | GrColorMatrixFragmentProcessor.h | 47 static std::unique_ptr<GrFragmentProcessor> Make(const float matrix[20], bool unpremulInput, in Make() 50 m44.set4x4(matrix[0], matrix[5], matrix[10], matrix[15], matrix[1], matrix[6], matrix[11], in Make() 51 matrix[16], matrix[2], matrix[7], matrix[12], matrix[17], matrix[3], matrix[8], in Make() 52 matrix[13], matrix[18]); in Make() 53 auto v4 = SkVector4(matrix[4], matrix[9], matrix[14], matrix[19]); in Make()
|
/third_party/ffmpeg/libavutil/ |
D | display.c | 34 double av_display_rotation_get(const int32_t matrix[9]) in av_display_rotation_get() 38 scale[0] = hypot(CONV_FP(matrix[0]), CONV_FP(matrix[3])); in av_display_rotation_get() 39 scale[1] = hypot(CONV_FP(matrix[1]), CONV_FP(matrix[4])); in av_display_rotation_get() 44 rotation = atan2(CONV_FP(matrix[1]) / scale[1], in av_display_rotation_get() 45 CONV_FP(matrix[0]) / scale[0]) * 180 / M_PI; in av_display_rotation_get() 50 void av_display_rotation_set(int32_t matrix[9], double angle) in av_display_rotation_set() 56 memset(matrix, 0, 9 * sizeof(int32_t)); in av_display_rotation_set() 58 matrix[0] = CONV_DB(c); in av_display_rotation_set() 59 matrix[1] = CONV_DB(-s); in av_display_rotation_set() 60 matrix[3] = CONV_DB(s); in av_display_rotation_set() [all …]
|
/third_party/flutter/engine/flutter/flow/ |
D | matrix_decomposition.cc | 28 MatrixDecomposition::MatrixDecomposition(const SkMatrix& matrix) in MatrixDecomposition() argument 29 : MatrixDecomposition(SkMatrix44{matrix}) {} in MatrixDecomposition() 40 MatrixDecomposition::MatrixDecomposition(SkMatrix44 matrix) : valid_(false) { in MatrixDecomposition() argument 41 if (matrix.get(3, 3) == 0) { in MatrixDecomposition() 47 matrix.set(j, i, matrix.get(j, i) / matrix.get(3, 3)); in MatrixDecomposition() 51 SkMatrix44 perpective_matrix = matrix; in MatrixDecomposition() 62 if (matrix.get(3, 0) != 0.0 || matrix.get(3, 1) != 0.0 || in MatrixDecomposition() 63 matrix.get(3, 2) != 0.0) { in MatrixDecomposition() 64 const SkVector4 right_hand_side(matrix.get(3, 0), matrix.get(3, 1), in MatrixDecomposition() 65 matrix.get(3, 2), matrix.get(3, 3)); in MatrixDecomposition() [all …]
|
/third_party/boost/libs/hana/example/cppcon_2014/ |
D | comparable.cpp | 16 matrix(row(1, 2)), in main() 17 matrix(row(1, 2)) in main() 20 matrix(row(1, 2)), in main() 21 matrix(row(1, 5)) in main() 25 matrix(row(1, 2), in main() 27 matrix(row(1, 2), in main() 31 matrix(row(1, 2), in main() 33 matrix(row(1, 2), in main() 37 matrix(row(1, 2), in main() 39 matrix(row(0, 2), in main() [all …]
|
/third_party/flutter/skia/gm/ |
D | colormatrix.cpp | 31 static void set_color_matrix(SkPaint* paint, const SkColorMatrix& matrix) { in set_color_matrix() argument 32 paint->setColorFilter(SkColorFilters::Matrix(matrix)); in set_color_matrix() 93 SkColorMatrix matrix; in onDraw() local 99 matrix.setIdentity(); in onDraw() 100 set_color_matrix(&paint, matrix); in onDraw() 103 matrix.setRotate(SkColorMatrix::kR_Axis, 90); in onDraw() 104 set_color_matrix(&paint, matrix); in onDraw() 107 matrix.setRotate(SkColorMatrix::kG_Axis, 90); in onDraw() 108 set_color_matrix(&paint, matrix); in onDraw() 111 matrix.setRotate(SkColorMatrix::kB_Axis, 90); in onDraw() [all …]
|
/third_party/gstreamer/gstplugins_good/gst/alpha/ |
D | gstalphacolor.c | 202 transform_##name##_ayuv (GstVideoFrame * frame, const gint *matrix) \ 214 memcpy (yc, matrix, 4 * sizeof (gint)); \ 215 memcpy (uc, matrix + 4, 4 * sizeof (gint)); \ 216 memcpy (vc, matrix + 8, 4 * sizeof (gint)); \ 234 transform_ayuv_##name (GstVideoFrame * frame, const gint *matrix) \ 246 memcpy (rc, matrix, 4 * sizeof (gint)); \ 247 memcpy (gc, matrix + 4, 4 * sizeof (gint)); \ 248 memcpy (bc, matrix + 8, 4 * sizeof (gint)); \ 271 transform_ayuv_ayuv (GstVideoFrame * frame, const gint * matrix) in transform_ayuv_ayuv() argument 280 if (matrix == NULL) in transform_ayuv_ayuv() [all …]
|
/third_party/flutter/skia/src/gpu/glsl/ |
D | GrGLSLProgramDataManager.cpp | 13 void GrGLSLProgramDataManager::setSkMatrix(UniformHandle u, const SkMatrix& matrix) const { in setSkMatrix() 15 matrix.get(SkMatrix::kMScaleX), in setSkMatrix() 16 matrix.get(SkMatrix::kMSkewY), in setSkMatrix() 17 matrix.get(SkMatrix::kMPersp0), in setSkMatrix() 18 matrix.get(SkMatrix::kMSkewX), in setSkMatrix() 19 matrix.get(SkMatrix::kMScaleY), in setSkMatrix() 20 matrix.get(SkMatrix::kMPersp1), in setSkMatrix() 21 matrix.get(SkMatrix::kMTransX), in setSkMatrix() 22 matrix.get(SkMatrix::kMTransY), in setSkMatrix() 23 matrix.get(SkMatrix::kMPersp2), in setSkMatrix() [all …]
|
/third_party/skia/src/gpu/glsl/ |
D | GrGLSLProgramDataManager.cpp | 14 void GrGLSLProgramDataManager::setSkMatrix(UniformHandle u, const SkMatrix& matrix) const { in setSkMatrix() 16 matrix.get(SkMatrix::kMScaleX), in setSkMatrix() 17 matrix.get(SkMatrix::kMSkewY), in setSkMatrix() 18 matrix.get(SkMatrix::kMPersp0), in setSkMatrix() 19 matrix.get(SkMatrix::kMSkewX), in setSkMatrix() 20 matrix.get(SkMatrix::kMScaleY), in setSkMatrix() 21 matrix.get(SkMatrix::kMPersp1), in setSkMatrix() 22 matrix.get(SkMatrix::kMTransX), in setSkMatrix() 23 matrix.get(SkMatrix::kMTransY), in setSkMatrix() 24 matrix.get(SkMatrix::kMPersp2), in setSkMatrix() [all …]
|
/third_party/boost/libs/python/src/numpy/ |
D | matrix.cpp | 26 PyTypeObject const * object_manager_traits<numpy::matrix>::get_pytype() in get_pytype() 36 object matrix::construct(object const & obj, dtype const & dt, bool copy) in construct() 41 object matrix::construct(object const & obj, bool copy) in construct() 46 matrix matrix::view(dtype const & dt) const in view() 48 return matrix(python::detail::new_reference in view() 52 matrix matrix::copy() const in copy() 54 return matrix(python::detail::new_reference in copy() 58 matrix matrix::transpose() const in transpose() 60 return matrix(extract<matrix>(ndarray::transpose())); in transpose()
|
/third_party/flutter/skia/bench/ |
D | ColorFilterBench.cpp | 15 float matrix[20]; in make_grayscale() local 16 memset(matrix, 0, 20 * sizeof(float)); in make_grayscale() 17 matrix[0] = matrix[5] = matrix[10] = 0.2126f; in make_grayscale() 18 matrix[1] = matrix[6] = matrix[11] = 0.7152f; in make_grayscale() 19 matrix[2] = matrix[7] = matrix[12] = 0.0722f; in make_grayscale() 20 matrix[18] = 1.0f; in make_grayscale() 21 return SkColorFilters::Matrix(matrix); in make_grayscale()
|
D | ImageFilterCollapse.cpp | 101 SkScalar matrix[20] = { 1, 0, 0, 0, amount, in make_brightness() local 105 return SkColorFilters::Matrix(matrix); in make_brightness() 109 float matrix[20]; in make_grayscale() local 110 memset(matrix, 0, 20 * sizeof(float)); in make_grayscale() 111 matrix[0] = matrix[5] = matrix[10] = 0.2126f; in make_grayscale() 112 matrix[1] = matrix[6] = matrix[11] = 0.7152f; in make_grayscale() 113 matrix[2] = matrix[7] = matrix[12] = 0.0722f; in make_grayscale() 114 matrix[18] = 1.0f; in make_grayscale() 115 return SkColorFilters::Matrix(matrix); in make_grayscale()
|
/third_party/boost/libs/yap/example/ |
D | self_evaluation.cpp | 20 struct matrix struct 22 matrix() : values_(), rows_(0), cols_(0) {} in matrix() function 24 matrix(int rows, int cols) : values_(rows * cols), rows_(rows), cols_(cols) in matrix() argument 44 matrix operator*(matrix const & lhs, double x) in operator *() argument 46 matrix retval = lhs; in operator *() 54 matrix operator*(double x, matrix const & lhs) { return lhs * x; } in operator *() 56 matrix operator+(matrix const & lhs, matrix const & rhs) in operator +() 60 matrix retval = lhs; in operator +() 73 matrix & daxpy(double a, matrix const & x, matrix & y) in daxpy() 130 matrix & m) in operator ()() [all …]
|
/third_party/flutter/skia/src/gpu/effects/ |
D | GrColorMatrixFragmentProcessor.fp | 68 …static std::unique_ptr<GrFragmentProcessor> Make(const float matrix[20], bool unpremulInput, bool … 71 matrix[0], matrix[5], matrix[10], matrix[15], 72 matrix[1], matrix[6], matrix[11], matrix[16], 73 matrix[2], matrix[7], matrix[12], matrix[17], 74 matrix[3], matrix[8], matrix[13], matrix[18] 76 auto v4 = SkVector4(matrix[4], matrix[9], matrix[14], matrix[19]);
|
/third_party/flutter/skia/src/effects/ |
D | SkHighContrastFilter.cpp | 81 float* matrix = alloc->makeArray<float>(12); in onAppendStages() local 82 matrix[0] = matrix[1] = matrix[2] = r; in onAppendStages() 83 matrix[3] = matrix[4] = matrix[5] = g; in onAppendStages() 84 matrix[6] = matrix[7] = matrix[8] = b; in onAppendStages() 85 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages() 89 float* matrix = alloc->makeArray<float>(12); in onAppendStages() local 90 matrix[0] = matrix[4] = matrix[8] = -1; in onAppendStages() 91 matrix[9] = matrix[10] = matrix[11] = 1; in onAppendStages() 92 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages() 95 float* matrix = alloc->makeArray<float>(12); in onAppendStages() local [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | ac3dsp.c | 216 static void ac3_downmix_5_to_2_symmetric_c(float **samples, float **matrix, in ac3_downmix_5_to_2_symmetric_c() argument 221 float front_mix = matrix[0][0]; in ac3_downmix_5_to_2_symmetric_c() 222 float center_mix = matrix[0][1]; in ac3_downmix_5_to_2_symmetric_c() 223 float surround_mix = matrix[0][3]; in ac3_downmix_5_to_2_symmetric_c() 239 static void ac3_downmix_5_to_1_symmetric_c(float **samples, float **matrix, in ac3_downmix_5_to_1_symmetric_c() argument 243 float front_mix = matrix[0][0]; in ac3_downmix_5_to_1_symmetric_c() 244 float center_mix = matrix[0][1]; in ac3_downmix_5_to_1_symmetric_c() 245 float surround_mix = matrix[0][3]; in ac3_downmix_5_to_1_symmetric_c() 256 static void ac3_downmix_c(float **samples, float **matrix, in ac3_downmix_c() argument 266 v0 += samples[j][i] * matrix[0][j]; in ac3_downmix_c() [all …]
|
/third_party/flutter/skia/src/core/ |
D | SkColorFilter_Matrix.cpp | 19 static uint16_t ComputeFlags(const float matrix[20]) { in ComputeFlags() 20 const float* srcA = matrix + 15; in ComputeFlags() 49 float matrix[20]; in CreateProc() local 50 if (!buffer.readScalarArray(matrix, 20)) { in CreateProc() 56 return is_rgba ? SkColorFilters::Matrix(matrix) in CreateProc() 57 : SkColorFilters::HSLAMatrix(matrix); in CreateProc() 60 bool SkColorFilter_Matrix::onAsAColorMatrix(float matrix[20]) const { in onAsAColorMatrix() 61 if (matrix) { in onAsAColorMatrix() 62 memcpy(matrix, fMatrix, 20 * sizeof(float)); in onAsAColorMatrix() 125 float matrix[20]; in RegisterFlattenables() local [all …]
|
/third_party/ffmpeg/libavresample/x86/ |
D | audio_mix_init.c | 26 void ff_mix_2_to_1_fltp_flt_sse(float **src, float **matrix, int len, 28 void ff_mix_2_to_1_fltp_flt_avx(float **src, float **matrix, int len, 31 void ff_mix_2_to_1_s16p_flt_sse2(int16_t **src, float **matrix, int len, 33 void ff_mix_2_to_1_s16p_flt_sse4(int16_t **src, float **matrix, int len, 36 void ff_mix_2_to_1_s16p_q8_sse2(int16_t **src, int16_t **matrix, 39 void ff_mix_1_to_2_fltp_flt_sse(float **src, float **matrix, int len, 41 void ff_mix_1_to_2_fltp_flt_avx(float **src, float **matrix, int len, 44 void ff_mix_1_to_2_s16p_flt_sse2(int16_t **src, float **matrix, int len, 46 void ff_mix_1_to_2_s16p_flt_sse4(int16_t **src, float **matrix, int len, 48 void ff_mix_1_to_2_s16p_flt_avx (int16_t **src, float **matrix, int len, [all …]
|
/third_party/skia/bench/ |
D | ImageFilterCollapse.cpp | 101 SkScalar matrix[20] = { 1, 0, 0, 0, amount, in make_brightness() local 105 return SkColorFilters::Matrix(matrix); in make_brightness() 109 float matrix[20]; in make_grayscale() local 110 memset(matrix, 0, 20 * sizeof(float)); in make_grayscale() 111 matrix[0] = matrix[5] = matrix[10] = 0.2126f; in make_grayscale() 112 matrix[1] = matrix[6] = matrix[11] = 0.7152f; in make_grayscale() 113 matrix[2] = matrix[7] = matrix[12] = 0.0722f; in make_grayscale() 114 matrix[18] = 1.0f; in make_grayscale() 115 return SkColorFilters::Matrix(matrix); in make_grayscale()
|