/third_party/node/deps/base64/base64/lib/ |
H A D | lib.c | 15 static struct codec codec = { NULL, NULL }; variable 20 // If any of the codec flags are set, redo choice: in base64_stream_encode_init() 21 if (codec.enc == NULL || flags & 0xFF) { in base64_stream_encode_init() 22 codec_choose(&codec, flags); in base64_stream_encode_init() 39 codec.enc(state, src, srclen, out, outlen); in base64_stream_encode() 70 // If any of the codec flags are set, redo choice: in base64_stream_decode_init() 71 if (codec.dec == NULL || flags & 0xFFFF) { in base64_stream_decode_init() 72 codec_choose(&codec, flags); in base64_stream_decode_init() 89 return codec in base64_stream_decode() [all...] |
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_video_enc.cpp | 53 d3d12_video_encoder_flush(struct pipe_video_codec *codec) in d3d12_video_encoder_flush() argument 55 struct d3d12_video_encoder *pD3D12Enc = (struct d3d12_video_encoder *) codec; in d3d12_video_encoder_flush() 156 d3d12_video_encoder_destroy(struct pipe_video_codec *codec) in d3d12_video_encoder_destroy() argument 158 if (codec == nullptr) { in d3d12_video_encoder_destroy() 162 d3d12_video_encoder_flush(codec); // Flush pending work before destroying. in d3d12_video_encoder_destroy() 164 struct d3d12_video_encoder *pD3D12Enc = (struct d3d12_video_encoder *) codec; in d3d12_video_encoder_destroy() 178 enum pipe_video_format codec = u_reduce_video_profile(pD3D12Enc->base.profile); in d3d12_video_encoder_update_picparams_tracking() local 180 switch (codec) { in d3d12_video_encoder_update_picparams_tracking() 222 // Stores codec agnostic textures so only input format, resolution and gop (num dpb references) affects this in d3d12_video_encoder_reconfigure_encoder_objects() 398 enum pipe_video_format codec [all...] |
H A D | d3d12_video_dec.h | 44 d3d12_video_decoder_destroy(struct pipe_video_codec *codec); 50 d3d12_video_decoder_begin_frame(struct pipe_video_codec * codec, 58 d3d12_video_decoder_decode_bitstream(struct pipe_video_codec * codec, 69 d3d12_video_decoder_end_frame(struct pipe_video_codec * codec, 78 d3d12_video_decoder_flush(struct pipe_video_codec *codec); 202 d3d12_video_decoder_store_converted_dxva_picparams_from_pipe_input(struct d3d12_video_decoder *codec, 207 d3d12_video_decoder_get_current_dxva_picparams(struct d3d12_video_decoder *codec) in d3d12_video_decoder_get_current_dxva_picparams() argument 209 return reinterpret_cast<T *>(codec->m_picParamsBuffer.data()); in d3d12_video_decoder_get_current_dxva_picparams() 219 d3d12_video_decoder_store_dxva_picparams_in_picparams_buffer(struct d3d12_video_decoder *codec,
|
H A D | d3d12_video_proc.h | 43 d3d12_video_processor_destroy(struct pipe_video_codec *codec); 49 d3d12_video_processor_begin_frame(struct pipe_video_codec * codec, 57 d3d12_video_processor_process_frame(struct pipe_video_codec *codec, 64 d3d12_video_processor_end_frame(struct pipe_video_codec * codec, 73 d3d12_video_processor_flush(struct pipe_video_codec *codec); 120 d3d12_video_processor_create(struct pipe_context *context, const struct pipe_video_codec *codec);
|
/third_party/ffmpeg/libavcodec/ |
H A D | libcodec2.c | 33 struct CODEC2 *codec; member 57 c2->codec = codec2_create(mode); in libcodec2_init_common() 58 if (!c2->codec) { in libcodec2_init_common() 64 avctx->frame_size = codec2_samples_per_frame(c2->codec); in libcodec2_init_common() 65 avctx->block_align = (codec2_bits_per_frame(c2->codec) + 7) / 8; in libcodec2_init_common() 70 codec2_destroy(c2->codec); in libcodec2_init_common() 71 c2->codec = NULL; in libcodec2_init_common() 75 codec2_set_natural_or_gray(c2->codec, 1); in libcodec2_init_common() 129 codec2_destroy(c2->codec); in libcodec2_close() 153 codec2_decode(c2->codec, outpu in libcodec2_decode() [all...] |
/third_party/python/Lib/email/ |
H A D | charset.py | 98 # Map charsets to their Unicode codec strings. 130 Both input_charset and output_charset must have Unicode codec entries in 131 the module's charset-to-codec mapping; use add_codec(charset, codecname) 150 """Add a codec that map characters in the given charset to/from Unicode. 153 of a Python codec, as appropriate for the second argument to the unicode() 163 def _encode(string, codec): 164 if codec == UNKNOWN8BIT: 167 return string.encode(codec) 208 input_codec: The name of the Python codec used to convert the 209 input_charset to Unicode. If no conversion codec i [all...] |
/base/telephony/sms_mms/test/gtest/ |
H A D | sms_gsm_gtest.cpp | 65 std::shared_ptr<GsmSmsParamCodec> codec = std::make_shared<GsmSmsParamCodec>(); in HWTEST_F() local 72 EXPECT_FALSE(codec->CheckVoicemail(smsReadBuff, &setType, &indType)); in HWTEST_F() 82 std::shared_ptr<GsmSmsParamCodec> codec = std::make_shared<GsmSmsParamCodec>(); in HWTEST_F() local 89 EXPECT_FALSE(codec->CheckVoicemail(smsReadBuff, &setType, &indType)); in HWTEST_F() 99 std::shared_ptr<GsmSmsParamCodec> codec = std::make_shared<GsmSmsParamCodec>(); in HWTEST_F() local 107 EXPECT_FALSE(codec->CheckVoicemail(smsReadBuff, &setType, &indType)); in HWTEST_F() 117 std::shared_ptr<GsmSmsParamCodec> codec = std::make_shared<GsmSmsParamCodec>(); in HWTEST_F() local 125 EXPECT_FALSE(codec->CheckVoicemail(smsReadBuff, &setType, &indType)); in HWTEST_F() 136 std::shared_ptr<GsmSmsParamCodec> codec = std::make_shared<GsmSmsParamCodec>(); in HWTEST_F() local 144 EXPECT_FALSE(codec in HWTEST_F() 154 std::shared_ptr<GsmSmsParamCodec> codec = std::make_shared<GsmSmsParamCodec>(); HWTEST_F() local 173 std::shared_ptr<GsmSmsParamCodec> codec = std::make_shared<GsmSmsParamCodec>(); HWTEST_F() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/qcom/venus/ |
H A D | hfi_platform_v6.c | 9 .codec = HFI_VIDEO_CODEC_H264, 35 .codec = HFI_VIDEO_CODEC_HEVC, 61 .codec = HFI_VIDEO_CODEC_VP8, 86 .codec = HFI_VIDEO_CODEC_VP9, 112 .codec = HFI_VIDEO_CODEC_MPEG2, 135 .codec = HFI_VIDEO_CODEC_H264, 172 .codec = HFI_VIDEO_CODEC_HEVC, 209 .codec = HFI_VIDEO_CODEC_VP8, 292 static unsigned long codec_vpp_freq(u32 session_type, u32 codec) in codec_vpp_freq() argument 296 data = get_codec_freq_data(session_type, codec); in codec_vpp_freq() 303 codec_vsp_freq(u32 session_type, u32 codec) codec_vsp_freq() argument 314 codec_lp_freq(u32 session_type, u32 codec) codec_lp_freq() argument [all...] |
H A D | hfi_platform_v4.c | 9 .codec = HFI_VIDEO_CODEC_H264, 35 .codec = HFI_VIDEO_CODEC_HEVC, 61 .codec = HFI_VIDEO_CODEC_VP8, 86 .codec = HFI_VIDEO_CODEC_VP9, 112 .codec = HFI_VIDEO_CODEC_MPEG2, 135 .codec = HFI_VIDEO_CODEC_H264, 172 .codec = HFI_VIDEO_CODEC_HEVC, 209 .codec = HFI_VIDEO_CODEC_VP8, 292 static unsigned long codec_vpp_freq(u32 session_type, u32 codec) in codec_vpp_freq() argument 296 data = get_codec_freq_data(session_type, codec); in codec_vpp_freq() 303 codec_vsp_freq(u32 session_type, u32 codec) codec_vsp_freq() argument 314 codec_lp_freq(u32 session_type, u32 codec) codec_lp_freq() argument [all...] |
/kernel/linux/linux-6.6/net/bluetooth/ |
H A D | hci_codec.c | 65 * then just add codec to the list without caps in hci_read_codec_capabilities() 78 bt_dev_err(hdev, "Failed to read codec capabilities (%ld)", in hci_read_codec_capabilities() 93 /* this codec doesn't have capabilities */ in hci_read_codec_capabilities() 151 if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num) in hci_read_supported_codecs() 155 /* enumerate codec capabilities of standard codecs */ in hci_read_supported_codecs() 158 caps.id = std_codecs->codec[i]; in hci_read_supported_codecs() 164 skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num) in hci_read_supported_codecs() 171 flex_array_size(vnd_codecs, codec, vnd_codecs->num) in hci_read_supported_codecs() 175 /* enumerate vendor codec capabilities */ in hci_read_supported_codecs() 178 caps.cid = vnd_codecs->codec[ in hci_read_supported_codecs() [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/sunxi/cedrus/ |
H A D | cedrus_h265.c | 96 return ctx->codec.h265.mv_col_buf_addr + index * in cedrus_h265_frame_info_mv_col_buf_addr() 97 ctx->codec.h265.mv_col_buf_unit_size + in cedrus_h265_frame_info_mv_col_buf_addr() 98 field * ctx->codec.h265.mv_col_buf_unit_size / 2; in cedrus_h265_frame_info_mv_col_buf_addr() 265 if (!ctx->codec.h265.mv_col_buf_size) { in cedrus_h265_setup() 279 ctx->codec.h265.mv_col_buf_unit_size = in cedrus_h265_setup() 284 ctx->codec.h265.mv_col_buf_size = num_buffers * in cedrus_h265_setup() 285 ctx->codec.h265.mv_col_buf_unit_size; in cedrus_h265_setup() 287 ctx->codec.h265.mv_col_buf = in cedrus_h265_setup() 289 ctx->codec.h265.mv_col_buf_size, in cedrus_h265_setup() 290 &ctx->codec in cedrus_h265_setup() [all...] |
/kernel/linux/linux-6.6/sound/soc/generic/ |
H A D | simple-card.c | 192 struct device_node *codec, in simple_link_init() 200 ret = asoc_simple_parse_daifmt(dev, node, codec, in simple_link_init() 213 struct device_node *codec, in simple_dai_link_of_dpcm() 282 ret = simple_link_init(priv, node, codec, li, prefix, dai_name); in simple_dai_link_of_dpcm() 293 struct device_node *codec, in simple_dai_link_of() 326 ret = simple_parse_node(priv, codec, li, prefix, NULL); in simple_dai_link_of() 340 ret = simple_link_init(priv, node, codec, li, prefix, dai_name); in simple_dai_link_of() 355 struct device_node *codec, in __simple_for_each_link() 359 struct device_node *codec, in __simple_for_each_link() 382 struct device_node *codec; in __simple_for_each_link() local 190 simple_link_init(struct asoc_simple_priv *priv, struct device_node *node, struct device_node *codec, struct link_info *li, char *prefix, char *name) simple_link_init() argument 211 simple_dai_link_of_dpcm(struct asoc_simple_priv *priv, struct device_node *np, struct device_node *codec, struct link_info *li, bool is_top) simple_dai_link_of_dpcm() argument 291 simple_dai_link_of(struct asoc_simple_priv *priv, struct device_node *np, struct device_node *codec, struct link_info *li, bool is_top) simple_dai_link_of() argument 351 __simple_for_each_link(struct asoc_simple_priv *priv, struct link_info *li, int (*func_noml)(struct asoc_simple_priv *priv, struct device_node *np, struct device_node *codec, struct link_info *li, bool is_top), int (*func_dpcm)(struct asoc_simple_priv *priv, struct device_node *np, struct device_node *codec, struct link_info *li, bool is_top)) __simple_for_each_link() argument 462 simple_for_each_link(struct asoc_simple_priv *priv, struct link_info *li, int (*func_noml)(struct asoc_simple_priv *priv, struct device_node *np, struct device_node *codec, struct link_info *li, bool is_top), int (*func_dpcm)(struct asoc_simple_priv *priv, struct device_node *np, struct device_node *codec, struct link_info *li, bool is_top)) simple_for_each_link() argument 558 simple_count_noml(struct asoc_simple_priv *priv, struct device_node *np, struct device_node *codec, struct link_info *li, bool is_top) simple_count_noml() argument 594 simple_count_dpcm(struct asoc_simple_priv *priv, struct device_node *np, struct device_node *codec, struct link_info *li, bool is_top) simple_count_dpcm() argument [all...] |
/kernel/linux/linux-6.6/sound/soc/codecs/aw88395/ |
H A D | aw88395.c | 3 // aw88395.c -- ALSA SoC AW88395 codec support 176 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in aw88395_profile_info() local 177 struct aw88395 *aw88395 = snd_soc_component_get_drvdata(codec); in aw88395_profile_info() 214 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in aw88395_profile_get() local 215 struct aw88395 *aw88395 = snd_soc_component_get_drvdata(codec); in aw88395_profile_get() 225 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in aw88395_profile_set() local 226 struct aw88395 *aw88395 = snd_soc_component_get_drvdata(codec); in aw88395_profile_set() 233 dev_dbg(codec->dev, "profile index does not change"); in aw88395_profile_set() 251 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in aw88395_volume_get() local 252 struct aw88395 *aw88395 = snd_soc_component_get_drvdata(codec); in aw88395_volume_get() 263 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); aw88395_volume_set() local 287 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); aw88395_get_fade_step() local 298 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); aw88395_set_fade_step() local 319 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); aw88395_re_get() local 331 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); aw88395_re_set() local [all...] |
/third_party/skia/tests/ |
H A D | CodecPriv.h | 10 #include "include/codec/SkCodec.h" 20 "Dump image decodes from codec unit tests here."); 23 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(SkData::MakeWithoutCopy(mem, size))); in decode_memory() 24 if (!codec) { in decode_memory() 28 bm->allocPixels(codec->getInfo()); in decode_memory() 29 const SkCodec::Result result = codec->getPixels(codec->getInfo(), bm->getPixels(), in decode_memory()
|
/third_party/skia/fuzz/oss_fuzz/ |
H A D | FuzzIncrementalImage.cpp | 8 #include "include/codec/SkCodec.h" 13 auto codec = SkCodec::MakeFromData(bytes); in FuzzIncrementalImageDecode() local 14 if (!codec) { in FuzzIncrementalImageDecode() 19 if (!bm.tryAllocPixels(codec->getInfo())) { in FuzzIncrementalImageDecode() 24 auto result = codec->startIncrementalDecode(bm.info(), bm.getPixels(), bm.rowBytes()); in FuzzIncrementalImageDecode() 32 result = codec->incrementalDecode(&rowsDecoded); in FuzzIncrementalImageDecode()
|
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/video_encoder/ |
H A D | video_ffmpeg_encoder_plugin.cpp | 34 void UpdatePluginDefinition(const AVCodec* codec, CodecPluginDef& definition); 45 const AVCodec* codec = nullptr; in RegisterVideoEncoderPlugins() local 48 while ((codec = av_codec_iterate(&iter))) { in RegisterVideoEncoderPlugins() 49 if (!av_codec_is_encoder(codec) || codec->type != AVMEDIA_TYPE_VIDEO) { in RegisterVideoEncoderPlugins() 52 std::string iterCodec(codec->name); in RegisterVideoEncoderPlugins() 56 if (supportedCodec.find(codec->id) == supportedCodec.end()) { in RegisterVideoEncoderPlugins() 57 MEDIA_LOG_DD("codec %s(%s) is not supported right now", codec->name, codec in RegisterVideoEncoderPlugins() 82 UpdateInCaps(const AVCodec* codec, CodecPluginDef& definition) UpdateInCaps() argument 100 UpdateOutCaps(const AVCodec* codec, CodecPluginDef& definition) UpdateOutCaps() argument 115 UpdatePluginDefinition(const AVCodec* codec, CodecPluginDef& definition) UpdatePluginDefinition() argument [all...] |
/kernel/linux/linux-6.6/sound/soc/sof/intel/ |
H A D | hda-bus.c | 34 static void sof_hda_bus_link_power(struct hdac_device *codec, bool enable) in sof_hda_bus_link_power() argument 36 struct hdac_bus *bus = codec->bus; in sof_hda_bus_link_power() 37 bool oldstate = test_bit(codec->addr, &bus->codec_powered); in sof_hda_bus_link_power() 39 snd_hdac_ext_bus_link_power(codec, enable); in sof_hda_bus_link_power() 45 * Both codec driver and controller can hold references to in sof_hda_bus_link_power() 49 * If the codec driver powers down the link, release in sof_hda_bus_link_power() 52 if (codec->addr == HDA_IDISP_ADDR && !enable) in sof_hda_bus_link_power() 56 update_codec_wake_enable(bus, codec->addr, enable); in sof_hda_bus_link_power()
|
/foundation/multimedia/av_codec/test/nativedemo/e2e_demo/ |
H A D | avcodec_e2e_demo.cpp | 53 static void OnError(OH_AVCodec *codec, int32_t errorCode, void *userData) in OnError() argument 55 (void)codec; in OnError() 60 static void OnDecStreamChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnDecStreamChanged() argument 62 (void)codec; in OnDecStreamChanged() 67 static void OnDecInputBufferAvailable(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) in OnDecInputBufferAvailable() argument 78 OH_VideoDecoder_PushInputBuffer(codec, index); in OnDecInputBufferAvailable() 81 static void OnDecOutputBufferAvailable(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) in OnDecOutputBufferAvailable() argument 90 OH_VideoDecoder_RenderOutputBuffer(codec, index); in OnDecOutputBufferAvailable() 93 static void OnEncStreamChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnEncStreamChanged() argument 98 static void OnEncInputBufferAvailable(OH_AVCodec *codec, uint32_ argument 106 OnEncOutputBufferAvailable(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) OnEncOutputBufferAvailable() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | animated_image.h | 23 #include "include/codec/SkCodec.h" 42 AnimatedImage(const std::unique_ptr<SkCodec>& codec, std::string url); 91 static int GenerateIteration(const std::unique_ptr<SkCodec>& codec); 92 static std::vector<int> GenerateDuration(const std::unique_ptr<SkCodec>& codec); 121 AnimatedSkImage(std::unique_ptr<SkCodec> codec, std::string url) in AnimatedSkImage() argument 122 : AnimatedImage(codec, std::move(url)), codec_(std::move(codec)) in AnimatedSkImage() 131 AnimatedRSImage(std::unique_ptr<SkCodec> codec, std::string url) in AnimatedRSImage() argument 132 : AnimatedImage(codec, std::move(url)), codec_(std::move(codec)) in AnimatedRSImage() [all...] |
H A D | animated_image.cpp | 57 auto codec = SkCodec::MakeFromData(skData); in Create() local 58 CHECK_NULL_RETURN(codec, nullptr); in Create() 62 return MakeRefPtr<AnimatedPixmap>(codec, src, size, url); in Create() 64 return MakeRefPtr<AnimatedSkImage>(std::move(codec), url); in Create() 75 auto codec = SkCodec::MakeFromData(skData); 76 CHECK_NULL_RETURN(codec, nullptr); 80 return MakeRefPtr<AnimatedPixmap>(codec, src, size, url); 82 return MakeRefPtr<AnimatedRSImage>(std::move(codec), url); 86 AnimatedImage::AnimatedImage(const std::unique_ptr<SkCodec>& codec, std::string url) in AnimatedImage() argument 87 : cacheKey_(std::move(url)), duration_(GenerateDuration(codec)), iteration in AnimatedImage() 116 GenerateDuration(const std::unique_ptr<SkCodec>& codec) GenerateDuration() argument 130 GenerateIteration(const std::unique_ptr<SkCodec>& codec) GenerateIteration() argument 340 AnimatedPixmap( const std::unique_ptr<SkCodec>& codec, const RefPtr<ImageSource>& src, const ResizeParam& size, std::string url) AnimatedPixmap() argument [all...] |
/kernel/linux/linux-5.10/sound/aoa/fabrics/ |
H A D | layout.c | 29 * on the codec. Hence we here tell the codec what 48 /* codec dependent bit to be set in the aoa_codec.connected field. 50 * fabric has to know the codec anyway and all codecs might have 594 request_module("snd-aoa-codec-%s", l->codecs[i].name); in use_layout() 768 static int check_codec(struct aoa_codec *codec, in check_codec() argument 776 /* if the codec has a 'codec' node, we require a reference */ in check_codec() 777 if (of_node_name_eq(codec->node, "codec")) { in check_codec() 818 layout_found_codec(struct aoa_codec *codec) layout_found_codec() argument 838 layout_remove_codec(struct aoa_codec *codec) layout_remove_codec() argument 895 layout_attached_codec(struct aoa_codec *codec) layout_attached_codec() argument [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/sunxi/cedrus/ |
H A D | cedrus_h265.c | 111 return cedrus_buf->codec.h265.mv_col_buf_dma + in cedrus_h265_frame_info_mv_col_buf_addr() 112 field * cedrus_buf->codec.h265.mv_col_buf_size / 2; in cedrus_h265_frame_info_mv_col_buf_addr() 373 entry_points_buf = ctx->codec.h265.entry_points_buf; in cedrus_h265_write_tiles() 464 if (!cedrus_buf->codec.h265.mv_col_buf_size) { in cedrus_h265_setup() 470 cedrus_buf->codec.h265.mv_col_buf_size = in cedrus_h265_setup() 476 cedrus_buf->codec.h265.mv_col_buf = in cedrus_h265_setup() 478 cedrus_buf->codec.h265.mv_col_buf_size, in cedrus_h265_setup() 479 &cedrus_buf->codec.h265.mv_col_buf_dma, in cedrus_h265_setup() 481 if (!cedrus_buf->codec.h265.mv_col_buf) { in cedrus_h265_setup() 482 cedrus_buf->codec in cedrus_h265_setup() [all...] |
/kernel/linux/linux-6.6/sound/aoa/fabrics/ |
H A D | layout.c | 29 * on the codec. Hence we here tell the codec what 48 /* codec dependent bit to be set in the aoa_codec.connected field. 50 * fabric has to know the codec anyway and all codecs might have 594 request_module("snd-aoa-codec-%s", l->codecs[i].name); in use_layout() 768 static int check_codec(struct aoa_codec *codec, in check_codec() argument 776 /* if the codec has a 'codec' node, we require a reference */ in check_codec() 777 if (of_node_name_eq(codec->node, "codec")) { in check_codec() 818 layout_found_codec(struct aoa_codec *codec) layout_found_codec() argument 838 layout_remove_codec(struct aoa_codec *codec) layout_remove_codec() argument 895 layout_attached_codec(struct aoa_codec *codec) layout_attached_codec() argument [all...] |
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/audio_encoder/ |
H A D | audio_ffmpeg_encoder_plugin.cpp | 29 void UpdatePluginDefinition(const AVCodec* codec, CodecPluginDef& definition); 42 const AVCodec* codec = nullptr; in RegisterAudioEncoderPlugins() local 45 while ((codec = av_codec_iterate(&ite))) { in RegisterAudioEncoderPlugins() 46 if (!av_codec_is_encoder(codec) || codec->type != AVMEDIA_TYPE_AUDIO) { in RegisterAudioEncoderPlugins() 49 if (g_supportedCodec.find(codec->id) == g_supportedCodec.end()) { in RegisterAudioEncoderPlugins() 50 MEDIA_LOG_DD("codec " PUBLIC_LOG_S "(" PUBLIC_LOG_S ") is not supported right now", in RegisterAudioEncoderPlugins() 51 codec->name, codec->long_name); in RegisterAudioEncoderPlugins() 55 definition.name = "ffmpegAuEnc_" + std::string(codec in RegisterAudioEncoderPlugins() 74 UpdateInCaps(const AVCodec* codec, CodecPluginDef& definition) UpdateInCaps() argument 91 UpdateOutCaps(const AVCodec* codec, CodecPluginDef& definition) UpdateOutCaps() argument 112 UpdatePluginDefinition(const AVCodec* codec, CodecPluginDef& definition) UpdatePluginDefinition() argument [all...] |
/kernel/linux/linux-5.10/sound/soc/sprd/ |
H A D | sprd-pcm-compress.c | 293 compr_params.sample_rate = params->codec.sample_rate; in sprd_platform_compr_set_params() 297 compr_params.rate = params->codec.bit_rate; in sprd_platform_compr_set_params() 298 compr_params.format = params->codec.id; in sprd_platform_compr_set_params() 626 struct snd_compr_codec_caps *codec) in sprd_platform_compr_get_codec_caps() 628 switch (codec->codec) { in sprd_platform_compr_get_codec_caps() 630 codec->num_descriptors = 2; in sprd_platform_compr_get_codec_caps() 631 codec->descriptor[0].max_ch = 2; in sprd_platform_compr_get_codec_caps() 632 codec->descriptor[0].bit_rate[0] = 320; in sprd_platform_compr_get_codec_caps() 633 codec in sprd_platform_compr_get_codec_caps() 624 sprd_platform_compr_get_codec_caps(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_codec_caps *codec) sprd_platform_compr_get_codec_caps() argument [all...] |