/external/OpenCL-CTS/test_conformance/profiling/ |
D | execute.cpp | 73 static void read_imagef( int x, int y, int w, int h, int nChannels, uchar *src, float *srcRgb ) in read_imagef() argument 80 int indx = ( y0 * w + x0 ) * nChannels; in read_imagef() 84 for( i = 0; i < nChannels; i++ ){ in read_imagef() 90 static void write_imagef( uchar *dst, int x, int y, int w, int h, int nChannels, float *dstRgb ) in write_imagef() argument 93 int indx = ( y * w + x ) * nChannels; in write_imagef() 97 for( i = 0; i < nChannels; i++ ){ in write_imagef() 103 static void basicFilterPixel( int x, int y, int n, int m, int xsize, int ysize, int nChannels, cons… in basicFilterPixel() argument 115 read_imagef( x + j, y + i, xsize, ysize, nChannels, src, srcRgb ); in basicFilterPixel() 116 for( k = 0; k < nChannels; k++ ){ in basicFilterPixel() 123 write_imagef( dst, x, y, xsize, ysize, nChannels, filter_result ); in basicFilterPixel() [all …]
|
D | execute_multipass.cpp | 64 …l_uchar *ptr0, cl_uchar *ptr1, cl_uchar tolerance, int xsize, int ysize, int zsize, int nChannels ) in verifyImages() argument 73 for( c = 0; c < nChannels; c++ ){ in verifyImages() 90 int w, int h, int d, int nChannels, cl_uchar *inptr, cl_uchar *outptr ) in run_kernel() argument 136 sizeof(cl_float) * w * h * d * nChannels, NULL, &err); in run_kernel() 240 …err = clEnqueueReadBuffer(queue, memobjs[1], CL_TRUE, 0, w*h*d*nChannels*4, outptr, 0, NULL, NULL); in run_kernel() 272 int nChannels = 4; in execute_multipass() local 273 int nElements = w * h * d * nChannels; in execute_multipass() 295 err = run_kernel( device, context, queue, w, h, d, nChannels, inptr, outptr ); in execute_multipass() 299 err = verifyImages( outptr, inptr, (cl_uchar)0x1, w, h, d, nChannels ); in execute_multipass()
|
/external/aac/libAACenc/src/ |
D | adj_thr.cpp | 320 const INT nChannels, const INT sampleRate, const INT advancedBitsToPe, in FDKaacEnc_InitBits2PeFactor() argument 327 if (advancedBitsToPe && nChannels <= (2)) { in FDKaacEnc_InitBits2PeFactor() 364 startPF = peTab[size - 1].bits2PeFactor[qualityIdx][nChannels - 1]; in FDKaacEnc_InitBits2PeFactor() 365 stopPF = peTab[size - 1].bits2PeFactor[qualityIdx][nChannels - 1]; in FDKaacEnc_InitBits2PeFactor() 372 startPF = peTab[i].bits2PeFactor[qualityIdx][nChannels - 1]; in FDKaacEnc_InitBits2PeFactor() 373 stopPF = peTab[i + 1].bits2PeFactor[qualityIdx][nChannels - 1]; in FDKaacEnc_InitBits2PeFactor() 413 if ((bitRate / nChannels > 32000) && (bitRate / nChannels <= 40000)) { in FDKaacEnc_InitBits2PeFactor() 415 } else if (bitRate / nChannels > 20000) { in FDKaacEnc_InitBits2PeFactor() 417 } else if (bitRate / nChannels >= 16000) { in FDKaacEnc_InitBits2PeFactor() 446 const PSY_OUT_CHANNEL *const psyOutChannel[(2)], const INT nChannels) { in FDKaacEnc_calcThreshExp() argument [all …]
|
D | metadata_main.cpp | 192 INT nChannels; member 264 const AACENC_MetaData* const hMetadata, const INT nChannels, 451 const UINT sampleRate, const UINT nChannels, const CHANNEL_MODE channelMode, in FDK_MetadataEnc_Init() argument 466 if ((nChannels > (8)) || (nChannels > hMetaData->maxChannels) || in FDK_MetadataEnc_Init() 501 if ((INT)nChannels != 2) { in FDK_MetadataEnc_Init() 513 if (hMetaData->nChannels >= 2) { in FDK_MetadataEnc_Init() 532 i = (hMetaData->nChannels > (INT)nChannels) in FDK_MetadataEnc_Init() 539 hMetaData->pAudioDelayBuffer[i * hMetaData->nChannels + src[c]]; in FDK_MetadataEnc_Init() 542 FDKmemcpy(&hMetaData->pAudioDelayBuffer[i * nChannels], in FDK_MetadataEnc_Init() 543 scratch_audioDelayBuffer, nChannels * sizeof(INT_PCM)); in FDK_MetadataEnc_Init() [all …]
|
D | aacenc_lib.cpp | 173 UINT nChannels; /*!< will be set via channelMode. */ member 284 ULONG nChannels; /*!< Number of audio channels. */ member 345 static const ELD_SBR_CONFIGURATOR *eldSbrConfigurator(const ULONG nChannels, in eldSbrConfigurator() argument 354 if ((nChannels == eldSbrAutoConfigTab[i].nChannels) && in eldSbrConfigurator() 542 cc->noChannels = hAacConfig->nChannels; in H_ALLOC_MEM() 665 config->nChannels = hAacConfig->nChannels; in aacEncDefaultConfig() 729 const INT frameLength, const INT nChannels, in aacEncoder_LimitBitrate() argument 750 nChannels, cm.nChannelsEff, bitRate, -1, in aacEncoder_LimitBitrate() 892 hAacConfig->nChannels = in FDKaacEnc_AdjustEncSettings() 893 FDKaacEnc_GetChannelModeConfiguration(hAacConfig->channelMode)->nChannels; in FDKaacEnc_AdjustEncSettings() [all …]
|
D | qc_main.cpp | 155 static void FDKaacEnc_crashRecovery(INT nChannels, 163 int* chConstraintsFulfilled, int* calculateQuant, int nChannels, 233 const INT nChannels, const INT nSubFrames, in FDKaacEnc_QCOutNew() argument 246 for (i = 0; i < nChannels; i++) { in FDKaacEnc_QCOutNew() 441 INT nChannels = elInfo->nChannelsInEl; in FDKaacEnc_QCMainPrepare() local 447 nChannels); in FDKaacEnc_QCMainPrepare() 452 adjThrStateElement, nChannels); in FDKaacEnc_QCMainPrepare() 650 int nChannels = elInfo.nChannelsInEl; in FDKaacEnc_prepareBitDistribution() local 659 nChannels, psyOut[0]->psyOutElement[i]->commonWindow, in FDKaacEnc_prepareBitDistribution() 864 INT ch, nChannels = elInfo.nChannelsInEl; in FDKaacEnc_QCMain() local [all …]
|
D | sf_estim.h | 116 const INT nChannels); 122 const INT nChannels);
|
D | aacenc.cpp | 151 INT coreSamplingRate, INT frameLength, INT nChannels, in FDKaacEnc_LimitBitrate() argument 156 INT minBitsPerFrame = 40 * nChannels; in FDKaacEnc_LimitBitrate() 378 const INT nChannels, const INT nSubFrames) { in FDKaacEnc_Open() argument 403 FDKaacEnc_PsyNew(&hAacEnc->psyKernel, nElements, nChannels, dynamicRAM); in FDKaacEnc_Open() 406 ErrorStatus = FDKaacEnc_PsyOutNew(hAacEnc->psyOut, nElements, nChannels, in FDKaacEnc_Open() 411 ErrorStatus = FDKaacEnc_QCOutNew(hAacEnc->qcOut, nElements, nChannels, in FDKaacEnc_Open() 419 hAacEnc->maxChannels = nChannels; in FDKaacEnc_Open() 447 if (config->nChannels < 1 || config->nChannels > (8)) { in FDKaacEnc_Initialize() 479 config->framelength, config->nChannels, in FDKaacEnc_Initialize() 531 (config->bitRate - (config->nChannels * 8000)), in FDKaacEnc_Initialize() [all …]
|
D | channel_map.h | 112 INT nChannels; member 121 INT nChannels);
|
D | aacenc.h | 228 INT nChannels; /* number of channels to process */ member 312 INT coreSamplingRate, INT frameLength, INT nChannels, 369 const INT nChannels, /* number of maximal channels in instance to support */
|
D | adj_thr.h | 121 const INT nChannels); 147 INT *grantedPeCorr, const INT nChannels, const INT commonWindow,
|
D | psy_main.h | 135 const INT nChannels, UCHAR *dynamic_RAM); 138 const INT nChannels, const INT nSubFrames,
|
D | channel_map.cpp | 158 INT nChannels) { in FDKaacEnc_DetermineEncoderMode() argument 166 if (channelModeConfig[i].nChannels == nChannels) { in FDKaacEnc_DetermineEncoderMode() 174 if (FDKaacEnc_GetChannelModeConfiguration(*mode)->nChannels == nChannels) { in FDKaacEnc_DetermineEncoderMode() 245 cm->nChannels = channelModeConfig[i].nChannels; in FDKaacEnc_InitChannelMapping()
|
/external/webrtc/sdk/objc/unittests/ |
D | RTCAudioDeviceModule_xctest.mm | 21 const size_t nChannels, 31 const size_t nChannels, 56 const size_t nChannels, 64 nChannels, 75 const size_t nChannels, 85 nChannels, 251 const size_t nChannels, 260 XCTAssertEqual(nChannels, self.playoutParameters.channels()); 288 const size_t nChannels, 297 XCTAssertEqual(nChannels, self.playoutParameters.channels()); [all …]
|
/external/webrtc/audio/ |
D | audio_transport_impl.cc | 175 const size_t nChannels, in NeedMorePlayData() argument 181 RTC_DCHECK_EQ(sizeof(int16_t) * nChannels, nBytesPerSample); in NeedMorePlayData() 182 RTC_DCHECK_GE(nChannels, 1); in NeedMorePlayData() 183 RTC_DCHECK_LE(nChannels, 2); in NeedMorePlayData() 190 RTC_DCHECK_LE(nBytesPerSample * nSamples * nChannels, in NeedMorePlayData() 193 mixer_->Mix(nChannels, &mixed_frame_); in NeedMorePlayData() 205 RTC_DCHECK_EQ(nSamplesOut, nChannels * nSamples); in NeedMorePlayData()
|
D | audio_transport_impl.h | 38 const size_t nChannels, 48 const size_t nChannels,
|
/external/aac/libSBRenc/src/ |
D | sbr_encoder.cpp | 455 config->codecSettings.nChannels = numChannels; in FDKsbrEnc_AdjustSbrSettings() 1030 INT nEnvCh = hSbrElement->sbrConfigData.nChannels; in FDKsbrEnc_EnvEncodeFrame() 1069 for (ch = 0; ch < hSbrElement->sbrConfigData.nChannels; ch++) { in FDKsbrEnc_EnvEncodeFrame() 1225 int nChannels = hSbrElement->sbrConfigData.nChannels; in FDKsbrEnc_Downsample() local 1227 for (ch = 0; ch < nChannels; ch++) { in FDKsbrEnc_Downsample() 1495 INT nChannels, INT supportPS) { in sbrEncoder_Open() argument 1537 for (i = 0; i < nChannels; i++) { in sbrEncoder_Open() 1550 for (i = 0; i < fixMax(nChannels, (supportPS) ? 2 : 0); i++) { in sbrEncoder_Open() 1666 if ((params->codecSettings.nChannels < 1) || in FDKsbrEnc_EnvInit() 1667 (params->codecSettings.nChannels > MAX_NUM_CHANNELS)) { in FDKsbrEnc_EnvInit() [all …]
|
/external/webrtc/modules/audio_device/ |
D | audio_device_data_observer.cc | 52 const size_t nChannels, in RecordedDataIsAvailable() argument 63 nChannels, samples_per_sec); in RecordedDataIsAvailable() 69 audioSamples, nSamples, nBytesPerSample, nChannels, samples_per_sec, in RecordedDataIsAvailable() 78 const size_t nChannels, in NeedMorePlayData() argument 93 nSamples, nBytesPerSample, nChannels, samples_per_sec, audioSamples, in NeedMorePlayData() 100 nChannels, samples_per_sec); in NeedMorePlayData()
|
/external/webrtc/modules/audio_device/include/ |
D | mock_audio_transport.h | 30 const size_t nChannels, 43 const size_t nChannels,
|
/external/pdfium/third_party/lcms/src/ |
D | cmsvirt.c | 294 cmsUInt32Number nChannels; in cmsCreateLinearizationDeviceLinkTHR() local 309 nChannels = cmsChannelsOf(ColorSpace); in cmsCreateLinearizationDeviceLinkTHR() 312 Pipeline = cmsPipelineAlloc(ContextID, nChannels, nChannels); in cmsCreateLinearizationDeviceLinkTHR() 317 …if (!cmsPipelineInsertStage(Pipeline, cmsAT_BEGIN, cmsStageAllocToneCurves(ContextID, nChannels, T… in cmsCreateLinearizationDeviceLinkTHR() 400 cmsUInt32Number nChannels; in cmsCreateInkLimitingDeviceLinkTHR() local 433 nChannels = cmsChannelsOf(ColorSpace); in cmsCreateInkLimitingDeviceLinkTHR() 435 CLUT = cmsStageAllocCLut16bit(ContextID, 17, nChannels, nChannels, NULL); in cmsCreateInkLimitingDeviceLinkTHR() 440 …if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocIdentityCurves(ContextID, nChannels)) … in cmsCreateInkLimitingDeviceLinkTHR() 442 !cmsPipelineInsertStage(LUT, cmsAT_END, _cmsStageAllocIdentityCurves(ContextID, nChannels))) in cmsCreateInkLimitingDeviceLinkTHR()
|
D | cmsgmt.c | 300 cmsUInt32Number nChannels, nGridpoints; in _cmsCreateGamutCheckPipeline() local 350 nChannels = cmsChannelsOf(ColorSpace); in _cmsCreateGamutCheckPipeline() 352 dwFormat = (CHANNELS_SH(nChannels)|BYTES_SH(2)); in _cmsCreateGamutCheckPipeline() 367 dwFormat = (CHANNELS_SH(nChannels)|BYTES_SH(2)); in _cmsCreateGamutCheckPipeline() 390 CLUT = cmsStageAllocCLut16bit(ContextID, nGridpoints, nChannels, 1, NULL); in _cmsCreateGamutCheckPipeline()
|
/external/aac/libSBRenc/include/ |
D | sbr_encoder.h | 124 INT nChannels; member 246 INT nChannels; /**< Number of channels. */ member 306 INT nChannels, INT supportPS);
|
/external/aac/libSBRdec/src/ |
D | sbrdecoder.cpp | 374 for (ch = 0; ch < self->pSbrElement[elementIndex]->nChannels; ch++) { in sbrDecoder_ResetElement() 433 for (ch = 0; ch < self->pSbrElement[el]->nChannels; ch++) { in sbrDecoder_AssignQmfChannels2SbrChannels() 441 absCh_offset += self->pSbrElement[el]->nChannels; in sbrDecoder_AssignQmfChannels2SbrChannels() 617 self->numSbrChannels -= self->pSbrElement[elementIndex]->nChannels; in sbrDecoder_InitElement() 652 if (elChannels < self->pSbrElement[elementIndex]->nChannels || in sbrDecoder_InitElement() 654 self->numSbrChannels += self->pSbrElement[elementIndex]->nChannels; in sbrDecoder_InitElement() 662 self->pSbrElement[elementIndex]->nChannels = elChannels; in sbrDecoder_InitElement() 860 if ((elementID == ID_CPE && pSbrElement->nChannels != 2) || in sbrDecoder_Header() 861 (elementID != ID_CPE && pSbrElement->nChannels != 1)) { in sbrDecoder_Header() 867 pSbrElement->nChannels); in sbrDecoder_Header() [all …]
|
/external/exoplayer/tree/extensions/flac/src/main/jni/ |
D | flac_parser.cc | 228 unsigned nChannels) { in copyToByteArrayBigEndian() argument 230 for (unsigned c = 0; c < nChannels; ++c) { in copyToByteArrayBigEndian() 244 unsigned nSamples, unsigned nChannels) { in copyToByteArrayLittleEndian() argument 246 for (unsigned c = 0; c < nChannels; ++c) { in copyToByteArrayLittleEndian()
|
/external/oss-fuzz/projects/flac/ |
D | fuzzer_exo.cpp | 215 unsigned nChannels) { in copyToByteArrayBigEndian() argument 217 for (unsigned c = 0; c < nChannels; ++c) { in copyToByteArrayBigEndian() 231 unsigned nSamples, unsigned nChannels) { in copyToByteArrayLittleEndian() argument 233 for (unsigned c = 0; c < nChannels; ++c) { in copyToByteArrayLittleEndian()
|