/third_party/skia/bench/ |
H A D | AndroidCodecBench.cpp | 10 #include "include/codec/SkAndroidCodec.h" 32 std::unique_ptr<SkAndroidCodec> codec(SkAndroidCodec::MakeFromData(fData)); in onDelayedSetup() 33 SkISize scaledSize = codec->getSampledDimensions(fSampleSize); in onDelayedSetup() 35 fInfo = codec->getInfo().makeDimensions(scaledSize).makeColorType(kN32_SkColorType); in onDelayedSetup() 44 std::unique_ptr<SkAndroidCodec> codec; in onDraw() local 48 codec = SkAndroidCodec::MakeFromData(fData); in onDraw() 52 codec->getAndroidPixels(fInfo, fPixelStorage.get(), fInfo.minRowBytes(), &options); in onDraw()
|
H A D | CodecBench.cpp | 10 #include "include/codec/SkCodec.h" 41 std::unique_ptr<SkCodec> codec = SkCodec::MakeFromData(fData); in onDelayedSetup() local 43 fInfo = codec->getInfo().makeColorType(fColorType) in onDelayedSetup() 51 std::unique_ptr<SkCodec> codec; in onDraw() local 57 codec = SkCodec::MakeFromData(fData); in onDraw() 61 codec->getPixels(fInfo, fPixelStorage.get(), fInfo.minRowBytes(), in onDraw()
|
/third_party/skia/tests/ |
H A D | AnimatedImageTest.cpp | 9 #include "include/codec/SkAndroidCodec.h" 10 #include "include/codec/SkCodec.h" 130 auto codec = SkAndroidCodec::MakeFromData(data); in DEF_TEST() local 131 if (!codec) { in DEF_TEST() 132 ERRORF(r, "Could not create codec for %s", file); in DEF_TEST() 136 auto info = codec->getInfo(); in DEF_TEST() 139 auto image = SkAnimatedImage::Make(std::move(codec), info.makeDimensions(rec.scaledSize), in DEF_TEST() 158 auto codec = SkAndroidCodec::MakeFromCodec(SkCodec::MakeFromData(data)); in DEF_TEST() local 159 if (!codec) { in DEF_TEST() 160 ERRORF(r, "Could not create codec fo in DEF_TEST() 230 auto codec = SkCodec::MakeFromData(data); DEF_TEST() local 301 auto codec = SkCodec::MakeFromData(data); DEF_TEST() local [all...] |
H A D | BadIcoTest.cpp | 8 #include "include/codec/SkCodec.h" 39 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromStream(std::move(stream))); in DEF_TEST() 41 // These images are corrupt. It's not important whether we succeed/fail in codec in DEF_TEST() 43 if (codec) { in DEF_TEST() 45 bm.allocPixels(codec->getInfo()); in DEF_TEST() 46 codec->getPixels(codec->getInfo(), bm.getPixels(), in DEF_TEST()
|
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/ffmpeg/libavcodec/ |
H A D | libdav1d.c | 504 fgp->codec.aom.num_y_points = p->frame_hdr->film_grain.data.num_y_points; in libdav1d_receive_frame() 505 fgp->codec.aom.chroma_scaling_from_luma = p->frame_hdr->film_grain.data.chroma_scaling_from_luma; in libdav1d_receive_frame() 506 fgp->codec.aom.scaling_shift = p->frame_hdr->film_grain.data.scaling_shift; in libdav1d_receive_frame() 507 fgp->codec.aom.ar_coeff_lag = p->frame_hdr->film_grain.data.ar_coeff_lag; in libdav1d_receive_frame() 508 fgp->codec.aom.ar_coeff_shift = p->frame_hdr->film_grain.data.ar_coeff_shift; in libdav1d_receive_frame() 509 fgp->codec.aom.grain_scale_shift = p->frame_hdr->film_grain.data.grain_scale_shift; in libdav1d_receive_frame() 510 fgp->codec.aom.overlap_flag = p->frame_hdr->film_grain.data.overlap_flag; in libdav1d_receive_frame() 511 fgp->codec.aom.limit_output_range = p->frame_hdr->film_grain.data.clip_to_restricted_range; in libdav1d_receive_frame() 513 memcpy(&fgp->codec.aom.y_points, &p->frame_hdr->film_grain.data.y_points, in libdav1d_receive_frame() 514 sizeof(fgp->codec in libdav1d_receive_frame() [all...] |
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...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/adapter/ |
H A D | skia_image_data.cpp | 18 #include "include/codec/SkCodec.h" 99 auto codec = SkCodec::MakeFromData(GetSkData()); in Parse() local 100 CHECK_NULL_RETURN(codec, {}); in Parse() 101 switch (codec->getOrigin()) { in Parse() 106 imageSize.SetSizeT(SizeF(codec->dimensions().fHeight, codec->dimensions().fWidth)); in Parse() 109 imageSize.SetSizeT(SizeF(codec->dimensions().fWidth, codec->dimensions().fHeight)); in Parse() 111 return { imageSize, codec->getFrameCount() }; in Parse()
|
/foundation/arkui/ace_engine/frameworks/core/image/test/unittest/ |
H A D | image_provider_test.cpp | 73 auto codec = SkCodec::MakeFromData(data); in HWTEST_F() local 74 ASSERT_TRUE(codec); in HWTEST_F() 102 auto codec = SkCodec::MakeFromData(data); in HWTEST_F() local 103 ASSERT_TRUE(!codec); in HWTEST_F() 133 auto codec = SkCodec::MakeFromData(data); in HWTEST_F() local 134 ASSERT_TRUE(codec); in HWTEST_F() 224 auto codec = SkCodec::MakeFromData(data); in HWTEST_F() local 225 ASSERT_TRUE(!codec); in HWTEST_F()
|
/third_party/ffmpeg/libavformat/ |
H A D | msf.c | 38 return AVPROBE_SCORE_MAX / 5; //unsupported / unknown codec in msf_probe() 45 unsigned codec, size; in msf_read_header() local 56 codec = avio_rb32(s->pb); in msf_read_header() 66 switch (codec) { in msf_read_header() 73 case 6: st->codecpar->block_align = (codec == 4 ? 96 : codec == 5 ? 152 : 192) * st->codecpar->ch_layout.nb_channels; in msf_read_header() 82 AV_WL16(st->codecpar->extradata+6, codec == 4 ? 1 : 0); /* joint stereo */ in msf_read_header() 83 AV_WL16(st->codecpar->extradata+8, codec == 4 ? 1 : 0); /* joint stereo (repeat?) */ in msf_read_header() 89 avpriv_request_sample(s, "Codec %d", codec); in msf_read_header()
|
H A D | rsodec.c | 35 enum AVCodecID codec; in rso_read_header() local 43 codec = ff_codec_get_id(ff_codec_rso_tags, id); in rso_read_header() 45 if (codec == AV_CODEC_ID_ADPCM_IMA_WAV) { in rso_read_header() 50 bps = av_get_bits_per_sample(codec); in rso_read_header() 64 st->codecpar->codec_id = codec; in rso_read_header()
|
/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/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...] |
/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...] |
/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...] |
/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...] |
/third_party/skia/modules/canvaskit/htmlcanvas/ |
H A D | htmlcanvas.js | 48 this.toDataURL = function(codec, quality) { 58 codec = codec || 'image/png'; 60 if (codec === 'image/jpeg') { 70 return 'data:' + codec + ';base64,' + toBase64String(imgBytes);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/adapter/rosen/ |
H A D | drawing_image_data.cpp | 18 #include "include/codec/SkCodec.h" 140 auto codec = SkCodec::MakeFromData(skData); in Parse() local 141 if (!codec) { in Parse() 143 "codec in Parse is null, rsDataSize = %{public}d, nodeID = %{public}d-%{public}lld.", in Parse() 147 switch (codec->getOrigin()) { in Parse() 152 imageSize.SetSizeT(SizeF(codec->dimensions().fHeight, codec->dimensions().fWidth)); in Parse() 155 imageSize.SetSizeT(SizeF(codec->dimensions().fWidth, codec->dimensions().fHeight)); in Parse() 157 return { imageSize, codec in Parse() [all...] |