/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A D | hda.h | 11 #define hda_codec_is_display(codec) \ 12 ((((codec)->core.vendor_id >> 16) & 0xFFFF) == 0x8086) 17 int hda_codec_probe_complete(struct hda_codec *codec);
|
/kernel/linux/linux-6.6/sound/pci/hda/ |
H A D | hda_controller.c | 73 codec_frames = hinfo->ops.get_delay(hinfo, apcm->codec, substream); in azx_adjust_codec_delay() 98 hinfo->ops.close(hinfo, apcm->codec, substream); in azx_pcm_close() 99 snd_hda_power_down(apcm->codec); in azx_pcm_close() 140 snd_hda_codec_cleanup(apcm->codec, hinfo, substream); in azx_pcm_hw_free() 157 snd_hda_spdif_out_of_nid(apcm->codec, hinfo->nid); in azx_pcm_prepare() 192 err = snd_hda_codec_prepare(apcm->codec, hinfo, stream_tag, in azx_pcm_prepare() 313 delay += hinfo->ops.get_delay(hinfo, apcm->codec, in azx_get_position() 631 snd_hda_power_up(apcm->codec); in azx_pcm_open() 633 err = hinfo->ops.open(hinfo, apcm->codec, substream); in azx_pcm_open() 648 hinfo->ops.close(hinfo, apcm->codec, substrea in azx_pcm_open() 695 snd_hda_attach_pcm_stream(struct hda_bus *_bus, struct hda_codec *codec, struct hda_pcm *cpcm) snd_hda_attach_pcm_stream() argument 955 snd_hda_codec_load_dsp_prepare(struct hda_codec *codec, unsigned int format, unsigned int byte_size, struct snd_dma_buffer *bufp) snd_hda_codec_load_dsp_prepare() argument 989 snd_hda_codec_load_dsp_trigger(struct hda_codec *codec, bool start) snd_hda_codec_load_dsp_trigger() argument 999 snd_hda_codec_load_dsp_cleanup(struct hda_codec *codec, struct snd_dma_buffer *dmab) snd_hda_codec_load_dsp_cleanup() argument 1228 struct hda_codec *codec; azx_probe_codecs() local 1249 struct hda_codec *codec, *next; azx_codec_configure() local [all...] |
/kernel/linux/linux-6.6/sound/soc/meson/ |
H A D | meson-card-utils.c | 139 struct snd_soc_dai_link_component *codec; in meson_card_set_be_link() local 145 dev_err(card->dev, "be link %s has no codec\n", in meson_card_set_be_link() 150 codec = devm_kcalloc(card->dev, num_codecs, sizeof(*codec), GFP_KERNEL); in meson_card_set_be_link() 151 if (!codec) in meson_card_set_be_link() 154 link->codecs = codec; in meson_card_set_be_link() 158 ret = meson_card_parse_dai(card, np, codec); in meson_card_set_be_link() 164 codec++; in meson_card_set_be_link() 245 struct snd_soc_dai_link_component *codec; in meson_card_clean_references() local 253 for_each_link_codecs(link, j, codec) in meson_card_clean_references() [all...] |
/kernel/linux/linux-5.10/sound/pci/ac97/ |
H A D | Makefile | 7 snd-ac97-codec-y := ac97_codec.o ac97_pcm.o 8 snd-ac97-codec-$(CONFIG_SND_PROC_FS) += ac97_proc.o 11 obj-$(CONFIG_SND_AC97_CODEC) += snd-ac97-codec.o
|
/kernel/linux/linux-6.6/sound/pci/ac97/ |
H A D | Makefile | 7 snd-ac97-codec-y := ac97_codec.o ac97_pcm.o 8 snd-ac97-codec-$(CONFIG_SND_PROC_FS) += ac97_proc.o 11 obj-$(CONFIG_SND_AC97_CODEC) += snd-ac97-codec.o
|
/foundation/multimedia/av_codec/test/moduletest/vcodec/hdrcodec/src/ |
H A D | hdrcodec_ndk_sample.cpp | 43 void VdecFormatChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in VdecFormatChanged() argument 48 void VdecInputDataReady(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData) in VdecInputDataReady() argument 58 void VdecOutputDataReady(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, OH_AVCodecBufferAttr *attr, in VdecOutputDataReady() argument 62 OH_VideoDecoder_RenderOutputData(codec, index); in VdecOutputDataReady() 70 void VdecError(OH_AVCodec *codec, int32_t errorCode, void *userData) in VdecError() argument 77 static void VencError(OH_AVCodec *codec, int32_t errorCode, void *userData) in VencError() argument 84 static void VencFormatChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in VencFormatChanged() argument 89 static void VencInputDataReady(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData) in VencInputDataReady() argument 91 (void)codec; in VencInputDataReady() 97 static void VencOutputDataReady(OH_AVCodec *codec, uint32_ argument 116 SendData(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data) SendData() argument [all...] |
/test/xts/acts/multimedia/av_codec/vcodec/hdrcodec/src/ |
H A D | hdrcodec_ndk_sample.cpp | 43 void VdecFormatChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in VdecFormatChanged() argument 48 void VdecInputDataReady(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData) in VdecInputDataReady() argument 58 void VdecOutputDataReady(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, OH_AVCodecBufferAttr *attr, in VdecOutputDataReady() argument 62 OH_VideoDecoder_RenderOutputData(codec, index); in VdecOutputDataReady() 70 void VdecError(OH_AVCodec *codec, int32_t errorCode, void *userData) in VdecError() argument 77 static void VencError(OH_AVCodec *codec, int32_t errorCode, void *userData) in VencError() argument 84 static void VencFormatChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in VencFormatChanged() argument 89 static void VencInputDataReady(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData) in VencInputDataReady() argument 91 (void)codec; in VencInputDataReady() 97 static void VencOutputDataReady(OH_AVCodec *codec, uint32_ argument 116 SendData(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data) SendData() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/common/ |
H A D | platform_bridge.cpp | 19 #include "frameworks/bridge/codec/standard_function_codec.h" 38 StandardFunctionCodec codec; in SendMessage() local 40 codec.EncodeFunctionCall(functionCall, dataBuf); in SendMessage() 51 StandardFunctionCodec codec; in HandleCallback() local 52 if (codec.DecodePlatformMessage(messageData, codecResult)) { in HandleCallback()
|
/kernel/linux/linux-5.10/include/sound/ |
H A D | hda_component.h | 17 int snd_hdac_sync_audio_rate(struct hdac_device *codec, hda_nid_t nid, 19 int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, int dev_id, 37 static inline int snd_hdac_sync_audio_rate(struct hdac_device *codec, in snd_hdac_sync_audio_rate() argument 42 static inline int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_acomp_get_eld() argument
|
/kernel/linux/linux-6.6/include/sound/ |
H A D | hda_component.h | 17 int snd_hdac_sync_audio_rate(struct hdac_device *codec, hda_nid_t nid, 19 int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, int dev_id, 37 static inline int snd_hdac_sync_audio_rate(struct hdac_device *codec, in snd_hdac_sync_audio_rate() argument 42 static inline int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_acomp_get_eld() argument
|
/third_party/ffmpeg/libavcodec/ |
H A D | codec.h | 63 * NOTE: If this flag is not set, the codec is guaranteed to never be fed with 65 * or decode function, but libavcodec will not pass it along to the codec 172 * This codec takes the reordered_opaque field from input AVFrames 198 * Name of the codec implementation. 201 * This is the primary way to find a codec from the user perspective. 205 * Descriptive name for the codec, meant to be more human readable than name. 232 * Group name of the codec implementation. 233 * This is a short symbolic name of the wrapper backing this codec. A 234 * wrapper uses some kind of external implementation for the codec, such 235 * as an external library, or a codec implementatio [all...] |
H A D | decode.c | 64 if (!(avctx->codec->capabilities & AV_CODEC_CAP_PARAM_CHANGE)) { in apply_param_change() 173 const FFCodec *const codec = ffcodec(avctx->codec); in decode_bsfs_init() local 179 ret = av_bsf_list_parse_str(codec->bsfs, &avci->bsf); in decode_bsfs_init() 181 av_log(avctx, AV_LOG_ERROR, "Error parsing decoder bitstream filters '%s': %s\n", codec->bsfs, av_err2str(ret)); in decode_bsfs_init() 219 if (!(ffcodec(avctx->codec)->caps_internal & FF_CODEC_CAP_SETS_FRAME_PROPS)) { in ff_decode_get_packet() 281 const FFCodec *const codec = ffcodec(avctx->codec); in decode_simple_internal() local 298 !(avctx->codec->capabilities & AV_CODEC_CAP_DELAY || in decode_simple_internal() 307 ret = codec in decode_simple_internal() 526 const FFCodec *const codec = ffcodec(avctx->codec); decode_receive_frame_internal() local [all...] |
/third_party/skia/tools/ |
H A D | image_diff_metric.cpp | 9 #include "include/codec/SkCodec.h" 27 if (std::unique_ptr<SkCodec> codec = in main() 29 bm[i].allocN32Pixels(codec->dimensions().fWidth, codec->dimensions().fHeight); in main() 30 if (SkCodec::kSuccess == codec->getPixels(bm[i].pixmap())) { in main()
|
/third_party/skia/fuzz/oss_fuzz/ |
H A D | FuzzAndroidCodec.cpp | 8 #include "include/codec/SkAndroidCodec.h" 17 auto codec = SkAndroidCodec::MakeFromData(bytes); in FuzzAndroidCodec() local 18 if (!codec) { in FuzzAndroidCodec() 22 auto size = codec->getSampledDimensions(sampleSize); in FuzzAndroidCodec() 33 auto result = codec->getAndroidPixels(bm.info(), bm.getPixels(), bm.rowBytes(), &options); in FuzzAndroidCodec()
|
/kernel/linux/linux-5.10/sound/pci/hda/ |
H A D | hda_controller.c | 73 codec_frames = hinfo->ops.get_delay(hinfo, apcm->codec, substream); in azx_adjust_codec_delay() 98 hinfo->ops.close(hinfo, apcm->codec, substream); in azx_pcm_close() 99 snd_hda_power_down(apcm->codec); in azx_pcm_close() 140 snd_hda_codec_cleanup(apcm->codec, hinfo, substream); in azx_pcm_hw_free() 157 snd_hda_spdif_out_of_nid(apcm->codec, hinfo->nid); in azx_pcm_prepare() 192 err = snd_hda_codec_prepare(apcm->codec, hinfo, stream_tag, in azx_pcm_prepare() 330 delay += hinfo->ops.get_delay(hinfo, apcm->codec, in azx_get_position() 649 snd_hda_power_up(apcm->codec); in azx_pcm_open() 651 err = hinfo->ops.open(hinfo, apcm->codec, substream); in azx_pcm_open() 666 hinfo->ops.close(hinfo, apcm->codec, substrea in azx_pcm_open() 724 snd_hda_attach_pcm_stream(struct hda_bus *_bus, struct hda_codec *codec, struct hda_pcm *cpcm) snd_hda_attach_pcm_stream() argument 986 snd_hda_codec_load_dsp_prepare(struct hda_codec *codec, unsigned int format, unsigned int byte_size, struct snd_dma_buffer *bufp) snd_hda_codec_load_dsp_prepare() argument 1020 snd_hda_codec_load_dsp_trigger(struct hda_codec *codec, bool start) snd_hda_codec_load_dsp_trigger() argument 1030 snd_hda_codec_load_dsp_cleanup(struct hda_codec *codec, struct snd_dma_buffer *dmab) snd_hda_codec_load_dsp_cleanup() argument 1276 struct hda_codec *codec; azx_probe_codecs() local 1296 struct hda_codec *codec, *next; azx_codec_configure() local [all...] |
/kernel/linux/linux-5.10/sound/soc/qcom/qdsp6/ |
H A D | q6asm-dai.c | 53 struct snd_codec codec; member 710 struct snd_codec *codec, in __q6asm_dai_compr_set_codec_params() 728 codec_options = &(prtd->codec.options); in __q6asm_dai_compr_set_codec_params() 730 memcpy(&prtd->codec, codec, sizeof(*codec)); in __q6asm_dai_compr_set_codec_params() 732 switch (codec->id) { in __q6asm_dai_compr_set_codec_params() 738 flac_cfg.ch_cfg = codec->ch_in; in __q6asm_dai_compr_set_codec_params() 739 flac_cfg.sample_rate = codec->sample_rate; in __q6asm_dai_compr_set_codec_params() 761 wma_cfg.sample_rate = codec in __q6asm_dai_compr_set_codec_params() 708 __q6asm_dai_compr_set_codec_params(struct snd_soc_component *component, struct snd_compr_stream *stream, struct snd_codec *codec, int stream_id) __q6asm_dai_compr_set_codec_params() argument 1164 q6asm_dai_compr_get_codec_caps(struct snd_soc_component *component, struct snd_compr_stream *stream, struct snd_compr_codec_caps *codec) q6asm_dai_compr_get_codec_caps() argument [all...] |
/kernel/linux/linux-6.6/sound/soc/qcom/qdsp6/ |
H A D | q6asm-dai.c | 53 struct snd_codec codec; member 696 struct snd_codec *codec, in __q6asm_dai_compr_set_codec_params() 714 codec_options = &(prtd->codec.options); in __q6asm_dai_compr_set_codec_params() 716 memcpy(&prtd->codec, codec, sizeof(*codec)); in __q6asm_dai_compr_set_codec_params() 718 switch (codec->id) { in __q6asm_dai_compr_set_codec_params() 724 flac_cfg.ch_cfg = codec->ch_in; in __q6asm_dai_compr_set_codec_params() 725 flac_cfg.sample_rate = codec->sample_rate; in __q6asm_dai_compr_set_codec_params() 747 wma_cfg.sample_rate = codec in __q6asm_dai_compr_set_codec_params() 694 __q6asm_dai_compr_set_codec_params(struct snd_soc_component *component, struct snd_compr_stream *stream, struct snd_codec *codec, int stream_id) __q6asm_dai_compr_set_codec_params() argument 1150 q6asm_dai_compr_get_codec_caps(struct snd_soc_component *component, struct snd_compr_stream *stream, struct snd_compr_codec_caps *codec) q6asm_dai_compr_get_codec_caps() argument [all...] |
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/video_decoder/ |
H A D | video_ffmpeg_decoder_plugin.cpp | 32 void UpdatePluginDefinition(const AVCodec* codec, CodecPluginDef& definition); 48 const AVCodec* codec = nullptr; in RegisterVideoDecoderPlugins() local 51 while ((codec = av_codec_iterate(&iter))) { in RegisterVideoDecoderPlugins() 52 if (!av_codec_is_decoder(codec) || codec->type != AVMEDIA_TYPE_VIDEO) { in RegisterVideoDecoderPlugins() 55 if (supportedCodec.find(codec->id) == supportedCodec.end()) { in RegisterVideoDecoderPlugins() 56 MEDIA_LOG_DD("codec " PUBLIC_LOG_S "(" PUBLIC_LOG_S ") is not supported right now", in RegisterVideoDecoderPlugins() 57 codec->name, codec->long_name); in RegisterVideoDecoderPlugins() 61 definition.name = "videodecoder_" + std::string(codec in RegisterVideoDecoderPlugins() 81 UpdateInCaps(const AVCodec* codec, CodecPluginDef& definition) UpdateInCaps() argument 97 UpdateOutCaps(const AVCodec* codec, CodecPluginDef& definition) UpdateOutCaps() argument 117 UpdatePluginDefinition(const AVCodec* codec, CodecPluginDef& definition) UpdatePluginDefinition() argument [all...] |
/kernel/linux/linux-6.6/sound/soc/intel/skylake/ |
H A D | skl.c | 567 pdev = platform_device_alloc("dmic-codec", -1); in skl_dmic_device_register() 666 * load the legacy codec driver 668 static void load_codec_module(struct hda_codec *codec) in load_codec_module() argument 674 snd_hdac_codec_modalias(&codec->core, modalias, sizeof(modalias)); in load_codec_module() 676 dev_dbg(&codec->core.dev, "loading %s codec module\n", mod); in load_codec_module() 685 struct hda_codec *codec; in skl_codec_device_init() local 688 codec = snd_hda_codec_device_init(to_hda_bus(bus), addr, "ehdaudio%dD%d", bus->idx, addr); in skl_codec_device_init() 689 if (IS_ERR(codec)) { in skl_codec_device_init() 691 return codec; in skl_codec_device_init() 718 struct hda_codec *codec; probe_codec() local [all...] |
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | si_get.c | 572 enum pipe_video_format codec = u_reduce_video_profile(profile); in si_get_video_param() local 583 (codec == PIPE_VIDEO_FORMAT_MPEG4_AVC && in si_get_video_param() 591 if (codec != PIPE_VIDEO_FORMAT_UNKNOWN && in si_get_video_param() 592 sscreen->info.enc_caps.codec_info[codec - 1].valid) in si_get_video_param() 593 return sscreen->info.enc_caps.codec_info[codec - 1].max_width; in si_get_video_param() 597 if (codec != PIPE_VIDEO_FORMAT_UNKNOWN && in si_get_video_param() 598 sscreen->info.enc_caps.codec_info[codec - 1].valid) in si_get_video_param() 599 return sscreen->info.enc_caps.codec_info[codec - 1].max_height; in si_get_video_param() 616 if (codec == PIPE_VIDEO_FORMAT_MPEG4_AVC && in si_get_video_param() 628 if (codec < PIPE_VIDEO_FORMAT_MPEG4_AV in si_get_video_param() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/verisilicon/ |
H A D | hantro_drv.c | 3 * Hantro VPU codec driver 415 .codec = HANTRO_JPEG_ENCODER, 425 .codec = HANTRO_JPEG_ENCODER, 441 .codec = HANTRO_MPEG2_DECODER, 446 .codec = HANTRO_MPEG2_DECODER, 451 .codec = HANTRO_MPEG2_DECODER, 456 .codec = HANTRO_VP8_DECODER, 461 .codec = HANTRO_H264_DECODER, 466 .codec = HANTRO_H264_DECODER, 472 .codec [all...] |
/foundation/multimedia/av_codec/interfaces/kits/c/ |
H A D | native_avcodec_base.h | 35 * @param codec OH_AVCodec instance 41 typedef void (*OH_AVCodecOnError)(OH_AVCodec *codec, int32_t errorCode, void *userData); 48 * @param codec OH_AVCodec instance 54 typedef void (*OH_AVCodecOnStreamChanged)(OH_AVCodec *codec, OH_AVFormat *format, void *userData); 60 * @param codec OH_AVCodec instance 69 typedef void (*OH_AVCodecOnNeedInputData)(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData); 77 * @param codec OH_AVCodec instance 87 typedef void (*OH_AVCodecOnNewOutputData)(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, 94 * @param codec OH_AVCodec instance 100 typedef void (*OH_AVCodecOnNeedInputBuffer)(OH_AVCodec *codec, uint32_ [all...] |
/kernel/linux/linux-5.10/sound/soc/amd/ |
H A D | acp-rt5645.c | 2 * Machine driver for AMD ACP Audio engine using Realtek RT5645 codec 56 dev_err(rtd->dev, "can't set codec pll: %d\n", ret); in cz_aif1_hw_params() 63 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret); in cz_aif1_hw_params() 74 struct snd_soc_component *codec; in cz_init() local 76 codec = asoc_rtd_to_codec(rtd, 0)->component; in cz_init() 89 rt5645_set_jack_detect(codec, &cz_jack, &cz_jack, &cz_jack); in cz_init() 103 SND_SOC_DAILINK_DEF(codec, 117 SND_SOC_DAILINK_REG(designware1, codec, platform), 125 SND_SOC_DAILINK_REG(designware2, codec, platform),
|
/kernel/linux/linux-6.6/sound/soc/amd/ |
H A D | acp-rt5645.c | 2 * Machine driver for AMD ACP Audio engine using Realtek RT5645 codec 66 dev_err(rtd->dev, "can't set codec pll: %d\n", ret); in cz_aif1_hw_params() 73 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret); in cz_aif1_hw_params() 84 struct snd_soc_component *codec; in cz_init() local 86 codec = asoc_rtd_to_codec(rtd, 0)->component; in cz_init() 101 rt5645_set_jack_detect(codec, &cz_jack, &cz_jack, &cz_jack); in cz_init() 115 SND_SOC_DAILINK_DEF(codec, 129 SND_SOC_DAILINK_REG(designware1, codec, platform), 137 SND_SOC_DAILINK_REG(designware2, codec, platform),
|
/third_party/ffmpeg/doc/examples/ |
H A D | decode_audio.c | 108 const AVCodec *codec; in main() local 132 codec = avcodec_find_decoder(AV_CODEC_ID_MP2); in main() 133 if (!codec) { in main() 138 parser = av_parser_init(codec->id); in main() 144 c = avcodec_alloc_context3(codec); in main() 146 fprintf(stderr, "Could not allocate audio codec context\n"); in main() 151 if (avcodec_open2(c, codec, NULL) < 0) { in main() 152 fprintf(stderr, "Could not open codec\n"); in main()
|