/foundation/multimedia/av_codec/test/fuzztest/hwdecoder_fuzzer/ |
H A D | videodec_sample.cpp | 86 void VdecError(OH_AVCodec *codec, int32_t errorCode, void *userData) in VdecError() argument 91 void VdecFormatChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in VdecFormatChanged() argument 101 void VdecInputDataReady(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData) in VdecInputDataReady() argument 110 void VdecOutputDataReady(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, OH_AVCodecBufferAttr *attr, in VdecOutputDataReady() argument 114 OH_VideoDecoder_RenderOutputData(codec, index); in VdecOutputDataReady() 116 OH_VideoDecoder_FreeOutputData(codec, index); in VdecOutputDataReady() 227 cout << "Failed to start codec" << endl; in StartVideoDecoder()
|
/foundation/multimedia/av_codec/test/fuzztest/hevcswdecoderapi11_fuzzer/ |
H A D | videodec_api11_sample.cpp | 76 void VdecError(OH_AVCodec *codec, int32_t errorCode, void *userData) in VdecError() argument 81 void VdecFormatChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in VdecFormatChanged() argument 92 void VdecInputDataReady(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) in VdecInputDataReady() argument 104 void VdecOutputDataReady(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) in VdecOutputDataReady() argument 108 ret = OH_VideoDecoder_RenderOutputBuffer(codec, index); in VdecOutputDataReady() 110 ret = OH_VideoDecoder_FreeOutputBuffer(codec, index); in VdecOutputDataReady() 351 cout << "Failed to start codec" << endl; in StartVideoDecoder()
|
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/ |
H A D | core.c | 137 static u32 to_v4l2_codec_type(u32 codec) in to_v4l2_codec_type() argument 139 switch (codec) { in to_v4l2_codec_type() 168 u32 codec, codecs; in venus_enumerate_codecs() local 192 codec = (1UL << i) & codecs; in venus_enumerate_codecs() 193 if (!codec) in venus_enumerate_codecs() 196 ret = hfi_session_init(inst, to_v4l2_codec_type(codec)); in venus_enumerate_codecs()
|
H A D | hfi_parser.c | 27 cap->codec = BIT(bit); in init_codecs() 34 cap->codec = BIT(bit); in init_codecs() 51 if (cap->codec & codecs && cap->domain == domain) in for_each_codec() 241 if (cap->codec & codecs && cap->domain == dom) in parser_fini()
|
H A D | core.h | 106 u32 codec; member 329 * @codec_state: current codec API state (see DEC/ENC_STATE_) 347 * @hfi_codec: current codec for this instance in HFI space 445 venus_caps_by_codec(struct venus_core *core, u32 codec, u32 domain) in venus_caps_by_codec() argument 450 if (core->caps[c].codec == codec && in venus_caps_by_codec()
|
/kernel/linux/linux-6.6/sound/soc/sof/ |
H A D | compress.c | 193 ext_data_size = sizeof(params->codec); in sof_compr_set_params() 221 pcm->params.channels = params->codec.ch_out; in sof_compr_set_params() 222 pcm->params.rate = params->codec.sample_rate; in sof_compr_set_params() 230 memcpy((u8 *)pcm->params.ext_data, ¶ms->codec, ext_data_size); in sof_compr_set_params() 247 sstream->sampling_rate = params->codec.sample_rate; in sof_compr_set_params() 248 sstream->channels = params->codec.ch_out; in sof_compr_set_params() 263 * application asks for an unsupported codec the set_params() will fail. in sof_compr_get_params()
|
/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A D | Makefile | 2 snd-soc-88pm860x-objs := 88pm860x-codec.o 3 snd-soc-ab8500-codec-objs := ab8500-codec.o 56 snd-soc-chv3-codec-objs := chv3-codec.o 59 snd-soc-cros-ec-codec-objs := cros_ec_codec.o 125 snd-soc-hda-codec-objs := hda.o hda-dai.o 130 snd-soc-jz4740-codec-objs := jz4740.o 131 snd-soc-jz4725b-codec-objs := jz4725b.o 132 snd-soc-jz4760-codec [all...] |
/kernel/linux/linux-6.6/sound/soc/intel/avs/ |
H A D | pcm.c | 26 * private_data to fulfill the needs of codec BE path 309 struct hda_codec *codec; in avs_dai_hda_be_hw_free() local 323 codec = dev_to_hda_codec(asoc_rtd_to_codec(rtd, 0)->dev); in avs_dai_hda_be_hw_free() 324 link = snd_hdac_ext_bus_get_hlink_by_addr(&codec->bus->core, codec->core.addr); in avs_dai_hda_be_hw_free() 340 struct hda_codec *codec; in avs_dai_hda_be_prepare() local 348 codec = dev_to_hda_codec(asoc_rtd_to_codec(rtd, 0)->dev); in avs_dai_hda_be_prepare() 349 bus = &codec->bus->core; in avs_dai_hda_be_prepare() 357 link = snd_hdac_ext_bus_get_hlink_by_addr(bus, codec->core.addr); in avs_dai_hda_be_prepare() 1319 struct hda_codec *codec; in avs_component_hda_unregister_dais() local 1344 struct hda_codec *codec; avs_component_hda_probe() local 1435 struct hda_codec *codec; avs_component_hda_open() local [all...] |
H A D | core.c | 116 struct hda_codec *codec; in probe_codec() local 129 dev_dbg(bus->dev, "codec #%d probed OK: 0x%x\n", addr, res); in probe_codec() 131 codec = snd_hda_codec_device_init(to_hda_bus(bus), addr, "hdaudioB%dD%d", bus->idx, addr); in probe_codec() 132 if (IS_ERR(codec)) { in probe_codec() 133 dev_err(bus->dev, "init codec failed: %ld\n", PTR_ERR(codec)); in probe_codec() 134 return PTR_ERR(codec); in probe_codec() 138 * of its codec child devices. Component interested in in probe_codec() 141 pm_runtime_set_suspended(hda_codec_dev(codec)); in probe_codec() 144 ret = snd_hda_codec_configure(codec); in probe_codec() [all...] |
/kernel/linux/linux-5.10/lib/reed_solomon/ |
H A D | reed_solomon.c | 17 * It points to a codec which can be shared by multiple control structures. 18 * If a codec is newly allocated then the polynomial arrays for fast 52 /* This list holds all currently allocated rs codec structures */ 58 * codec_init - Initialize a Reed-Solomon codec 67 * Allocate a codec structure and the polynom arrays for faster 174 * codec, free the codec as well. 183 cd = rs->codec; in free_rs() 199 * init_rs_internal - Allocate rs control, find a matching codec or allocate a new one 261 rs->codec in init_rs_internal() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/verisilicon/ |
H A D | imx8m_vpu_hw.c | 3 * Hantro VPU codec driver 270 * Supported codec ops. 349 .codec = HANTRO_MPEG2_DECODER | HANTRO_VP8_DECODER | 368 .codec = HANTRO_MPEG2_DECODER | HANTRO_VP8_DECODER | 384 .codec = HANTRO_HEVC_DECODER | HANTRO_VP9_DECODER, 395 .codec = HANTRO_MPEG2_DECODER | HANTRO_VP8_DECODER |
|
/kernel/linux/linux-6.6/drivers/media/platform/qcom/venus/ |
H A D | hfi_parser.c | 27 cap->codec = BIT(bit); in init_codecs() 34 cap->codec = BIT(bit); in init_codecs() 51 if (cap->codec & codecs && cap->domain == domain) in for_each_codec() 241 if (cap->codec & codecs && cap->domain == dom) in parser_fini()
|
/kernel/linux/linux-6.6/lib/reed_solomon/ |
H A D | reed_solomon.c | 17 * It points to a codec which can be shared by multiple control structures. 18 * If a codec is newly allocated then the polynomial arrays for fast 52 /* This list holds all currently allocated rs codec structures */ 58 * codec_init - Initialize a Reed-Solomon codec 67 * Allocate a codec structure and the polynom arrays for faster 174 * codec, free the codec as well. 183 cd = rs->codec; in free_rs() 199 * init_rs_internal - Allocate rs control, find a matching codec or allocate a new one 261 rs->codec in init_rs_internal() [all...] |
/foundation/multimedia/media_foundation/services/media_monitor/server/src/ |
H A D | media_audio_encoder.cpp | 351 const AVCodec *codec = nullptr; in InitAudioEncode() local 352 codec = apiWrap_->CodecFindEncoder(audioConfig.audioCodecId); in InitAudioEncode() 353 FALSE_RETURN_V_MSG_E(codec != nullptr, ERROR, "find audio codec failed"); in InitAudioEncode() 355 context = apiWrap_->CodecAllocContext(codec); in InitAudioEncode() 362 audioCodecContext_->sample_fmt = codec->sample_fmts ? codec->sample_fmts[0] : AV_SAMPLE_FMT_S16; in InitAudioEncode() 374 ret = apiWrap_->CodecOpen(audioCodecContext_.get(), codec, nullptr); in InitAudioEncode() 375 FALSE_RETURN_V_MSG_E(ret >= 0, ERROR, "could not open audio codec %{public}d", ret); in InitAudioEncode()
|
/kernel/linux/linux-5.10/drivers/mfd/ |
H A D | twl4030-audio.c | 3 * MFD driver for twl4030 audio submodule, which contains an audio codec, and 152 if (pdata && pdata->codec) in twl4030_audio_has_codec() 155 node = of_get_child_by_name(parent, "codec"); in twl4030_audio_has_codec() 227 cell->name = "twl4030-codec"; in twl4030_audio_probe() 229 cell->platform_data = pdata->codec; in twl4030_audio_probe() 230 cell->pdata_size = sizeof(*pdata->codec); in twl4030_audio_probe()
|
/kernel/linux/linux-5.10/sound/soc/intel/boards/ |
H A D | bytcht_cx2072x.c | 4 // CX2072X codec 73 struct snd_soc_component *codec = asoc_rtd_to_codec(rtd, 0)->component; in byt_cht_cx2072x_init() local 76 if (devm_acpi_dev_add_driver_gpios(codec->dev, in byt_cht_cx2072x_init() 82 /* set the default PLL rate, the clock is handled by the codec driver */ in byt_cht_cx2072x_init() 98 snd_soc_component_set_jack(codec, &byt_cht_cx2072x_headset, NULL); in byt_cht_cx2072x_init() 209 /* use space before codec name to simplify card ID, and simplify driver name */ 244 /* fix index of codec dai */ in snd_byt_cht_cx2072x_probe() 253 /* fixup codec name based on HID */ in snd_byt_cht_cx2072x_probe()
|
/kernel/linux/linux-6.6/drivers/mfd/ |
H A D | twl4030-audio.c | 3 * MFD driver for twl4030 audio submodule, which contains an audio codec, and 152 if (pdata && pdata->codec) in twl4030_audio_has_codec() 155 node = of_get_child_by_name(parent, "codec"); in twl4030_audio_has_codec() 227 cell->name = "twl4030-codec"; in twl4030_audio_probe() 229 cell->platform_data = pdata->codec; in twl4030_audio_probe() 230 cell->pdata_size = sizeof(*pdata->codec); in twl4030_audio_probe()
|
/kernel/linux/linux-6.6/sound/soc/intel/boards/ |
H A D | bytcht_cx2072x.c | 4 // CX2072X codec 73 struct snd_soc_component *codec = asoc_rtd_to_codec(rtd, 0)->component; in byt_cht_cx2072x_init() local 76 if (devm_acpi_dev_add_driver_gpios(codec->dev, in byt_cht_cx2072x_init() 82 /* set the default PLL rate, the clock is handled by the codec driver */ in byt_cht_cx2072x_init() 98 snd_soc_component_set_jack(codec, &byt_cht_cx2072x_headset, NULL); in byt_cht_cx2072x_init() 207 /* use space before codec name to simplify card ID, and simplify driver name */ 242 /* fix index of codec dai */ in snd_byt_cht_cx2072x_probe() 251 /* fixup codec name based on HID */ in snd_byt_cht_cx2072x_probe()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/ |
H A D | jsi_declarative_group_js_bridge.cpp | 22 #include "frameworks/bridge/codec/function_call.h" 129 StandardFunctionCodec codec; in ProcessJsRequest() local 131 if (!codec.EncodeFunctionCall(functionCall, encodeBuf)) { in ProcessJsRequest() 184 StandardFunctionCodec codec; in ProcessJsRequestSync() local 186 if (!codec.EncodeFunctionCall(functionCall, encodeBuf)) { in ProcessJsRequestSync() 204 if (codec.DecodePlatformMessage(messageData, codecResult)) { in ProcessJsRequestSync() 377 StandardFunctionCodec codec; in TriggerModuleJsCallback() local 378 if (codec.DecodePlatformMessage(messageData, codecResult)) { in TriggerModuleJsCallback() 449 StandardFunctionCodec codec; in CallEventJsCallback() local 450 if (codec in CallEventJsCallback() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
H A D | jsi_group_js_bridge.cpp | 227 StandardFunctionCodec codec; in ProcessJsRequest() local 229 if (!codec.EncodeFunctionCall(functionCall, encodeBuf)) { in ProcessJsRequest() 297 StandardFunctionCodec codec; in ProcessJsRequestSync() local 299 if (!codec.EncodeFunctionCall(functionCall, encodeBuf)) { in ProcessJsRequestSync() 319 if (codec.DecodePlatformMessage(messageData, codecResult)) { in ProcessJsRequestSync() 507 StandardFunctionCodec codec; in TriggerModuleJsCallback() local 508 if (codec.DecodePlatformMessage(messageData, codecResult)) { in TriggerModuleJsCallback() 591 StandardFunctionCodec codec; in CallEventJsCallback() local 592 if (codec.DecodePlatformMessage(eventData, codecEvent)) { in CallEventJsCallback()
|
/kernel/linux/linux-6.6/sound/pci/hda/ |
H A D | cs35l56_hda.c | 336 if (snd_ctl_add(cs35l56->codec->card, cs35l56->posture_ctl)) in cs35l56_hda_create_controls() 351 if (snd_ctl_add(cs35l56->codec->card, cs35l56->mixer_ctl[i])) { in cs35l56_hda_create_controls() 365 if (snd_ctl_add(cs35l56->codec->card, cs35l56->volume_ctl)) in cs35l56_hda_create_controls() 374 snd_ctl_remove(cs35l56->codec->card, cs35l56->mixer_ctl[i]); in cs35l56_hda_remove_controls() 376 snd_ctl_remove(cs35l56->codec->card, cs35l56->posture_ctl); in cs35l56_hda_remove_controls() 377 snd_ctl_remove(cs35l56->codec->card, cs35l56->volume_ctl); in cs35l56_hda_remove_controls() 517 info.card = cs35l56->codec->card; in cs35l56_hda_add_dsp_controls() 651 cs35l56->codec = comps->codec; in cs35l56_hda_bind()
|
/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/ |
H A D | videodec_hevcdec_unit_test.cpp | 41 void OnErrorVoid(OH_AVCodec *codec, int32_t errorCode, void *userData) in OnErrorVoid() argument 43 (void)codec; in OnErrorVoid() 47 void OnStreamChangedVoid(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnStreamChangedVoid() argument 49 (void)codec; in OnStreamChangedVoid() 53 void InDataVoid(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData) in InDataVoid() argument 55 (void)codec; in InDataVoid() 60 void OutDataVoid(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, OH_AVCodecBufferAttr *attr, void *userData) in OutDataVoid() argument 62 (void)codec; in OutDataVoid() 68 void InBufferVoid(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) in InBufferVoid() argument 70 (void)codec; in InBufferVoid() 75 OutBufferVoid(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) OutBufferVoid() argument 83 InDataHandle(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData) InDataHandle() argument 94 OutDataHandle(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, OH_AVCodecBufferAttr *attr, void *userData) OutDataHandle() argument 104 InDataOperate(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData) InDataOperate() argument 120 OutDataOperate(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, OH_AVCodecBufferAttr *attr, void *userData) OutDataOperate() argument 135 InDataQueue(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData) InDataQueue() argument 146 OutDataQueue(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, OH_AVCodecBufferAttr *attr, void *userData) OutDataQueue() argument 158 InBufferHandle(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) InBufferHandle() argument 168 OutBufferHandle(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) OutBufferHandle() argument 178 InBufferOperate(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) InBufferOperate() argument 193 OutBufferOperate(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) OutBufferOperate() argument 208 InBufferQueue(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) InBufferQueue() argument 219 OutBufferQueue(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) OutBufferQueue() argument [all...] |
/kernel/linux/linux-5.10/sound/pci/oxygen/ |
H A D | xonar_pcm179x.c | 232 static inline void pcm1796_write_spi(struct oxygen *chip, unsigned int codec, in pcm1796_write_spi() argument 242 (codec_map[codec] << OXYGEN_SPI_CODEC_SHIFT) | in pcm1796_write_spi() 247 static inline void pcm1796_write_i2c(struct oxygen *chip, unsigned int codec, in pcm1796_write_i2c() argument 250 oxygen_write_i2c(chip, I2C_DEVICE_PCM1796(codec), reg, value); in pcm1796_write_i2c() 253 static void pcm1796_write(struct oxygen *chip, unsigned int codec, in pcm1796_write() argument 260 pcm1796_write_spi(chip, codec, reg, value); in pcm1796_write() 262 pcm1796_write_i2c(chip, codec, reg, value); in pcm1796_write() 264 < ARRAY_SIZE(data->pcm1796_regs[codec])) in pcm1796_write() 265 data->pcm1796_regs[codec][reg - PCM1796_REG_BASE] = value; in pcm1796_write() 268 static void pcm1796_write_cached(struct oxygen *chip, unsigned int codec, in pcm1796_write_cached() argument [all...] |
/kernel/linux/linux-6.6/sound/pci/oxygen/ |
H A D | xonar_pcm179x.c | 232 static inline void pcm1796_write_spi(struct oxygen *chip, unsigned int codec, in pcm1796_write_spi() argument 242 (codec_map[codec] << OXYGEN_SPI_CODEC_SHIFT) | in pcm1796_write_spi() 247 static inline void pcm1796_write_i2c(struct oxygen *chip, unsigned int codec, in pcm1796_write_i2c() argument 250 oxygen_write_i2c(chip, I2C_DEVICE_PCM1796(codec), reg, value); in pcm1796_write_i2c() 253 static void pcm1796_write(struct oxygen *chip, unsigned int codec, in pcm1796_write() argument 260 pcm1796_write_spi(chip, codec, reg, value); in pcm1796_write() 262 pcm1796_write_i2c(chip, codec, reg, value); in pcm1796_write() 264 < ARRAY_SIZE(data->pcm1796_regs[codec])) in pcm1796_write() 265 data->pcm1796_regs[codec][reg - PCM1796_REG_BASE] = value; in pcm1796_write() 268 static void pcm1796_write_cached(struct oxygen *chip, unsigned int codec, in pcm1796_write_cached() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/image/ |
H A D | animated_image_player.h | 21 #include "include/codec/SkCodec.h" 37 const WeakPtr<PipelineBase>& weakContext, std::unique_ptr<SkCodec> codec, int32_t dstWidth = -1, in AnimatedImagePlayer() 39 : imageSource_(source), successCallback_(successCallback), context_(weakContext), codec_(std::move(codec)), in AnimatedImagePlayer() 36 AnimatedImagePlayer(ImageSourceInfo source, UploadSuccessCallback successCallback, const WeakPtr<PipelineBase>& weakContext, std::unique_ptr<SkCodec> codec, int32_t dstWidth = -1, int32_t dstHeight = -1) AnimatedImagePlayer() argument
|