/ohos5.0/foundation/distributedhardware/distributed_screen/services/screentransport/test/unittest/screensourceprocessor/src/ |
H A D | image_source_encoder_test.cpp | 34 if (encoder != nullptr) { in TearDown() 35 encoder->StopEncoder(); in TearDown() 36 encoder->ReleaseEncoder(); in TearDown() 94 int32_t actual = encoder->ReleaseEncoder(); 109 int32_t actual = encoder->ReleaseEncoder(); 121 int32_t actual = encoder->StartEncoder(); 135 int32_t actual = encoder->StartEncoder(); 147 int32_t actual = encoder->StopEncoder(); 162 int32_t actual = encoder->StopEncoder(); 251 actual = encoder->SetEncoderFormat(configParam); [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h3/qpack/ |
H A D | encoder.rs | 349 encoder, in literal_field_line_with_name_reference() 374 encoder, in dynamic_table() 400 encoder, in speculative_insert() 419 encoder in duplicate_instruction_stream_cancellation() 422 encoder in duplicate_instruction_stream_cancellation() 425 encoder.table.update( in duplicate_instruction_stream_cancellation() 432 encoder, in duplicate_instruction_stream_cancellation() 455 encoder in dynamic_table_insert_eviction() 458 encoder in dynamic_table_insert_eviction() 465 encoder in dynamic_table_insert_eviction() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/screentransport/screensourceprocessor/encoder/src/ |
H A D | image_encoder_callback.cpp | 26 std::shared_ptr<ImageSourceEncoder> encoder = videoEncoder_.lock(); in OnError() local 27 if (encoder == nullptr) { in OnError() 31 encoder->OnError(errorType, errorCode); in OnError() 38 std::shared_ptr<ImageSourceEncoder> encoder = videoEncoder_.lock(); in OnOutputBufferAvailable() local 39 if (encoder == nullptr) { in OnOutputBufferAvailable() 43 encoder->OnOutputBufferAvailable(index, info, flag, buffer); in OnOutputBufferAvailable() 49 std::shared_ptr<ImageSourceEncoder> encoder = videoEncoder_.lock(); in OnInputBufferAvailable() local 50 if (encoder == nullptr) { in OnInputBufferAvailable() 54 encoder->OnInputBufferAvailable(index, buffer); in OnInputBufferAvailable() 61 if (encoder == nullptr) { in OnOutputFormatChanged() [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-avcodec-kit/ |
H A D | native__avcodec__videoencoder_8h.md | 30 … { CBR = 0, VBR = 1, CQ = 2 } | Enumerates the bit rate modes of a video encoder. (This enum is de… 38 …coder_createbyname) (const char \*name) | Creates a video encoder instance based on an encoder nam… 39 …AVCodec \*codec) | Clears the internal resources of a video encoder and destroys the encoder insta… 44 …#oh_videoencoder_prepare) (OH_AVCodec \*codec) | Prepares internal resources for a video encoder.| 45 …r_start) (OH_AVCodec \*codec) | Starts a video encoder. This function can be called only after the… 46 …coder_Stop](_video_encoder.md#oh_videoencoder_stop) (OH_AVCodec \*codec) | Stops a video encoder.| 47 …OH_AVCodec \*codec) | Clears the input and output data in the internal buffer of a video encoder.| 48 …er_Reset](_video_encoder.md#oh_videoencoder_reset) (OH_AVCodec \*codec) | Resets a video encoder.| 53 …_videoencoder_notifyendofstream) (OH_AVCodec \*codec) | Notifies a video encoder that input stream… 58 …_getinputdescription) (OH_AVCodec \*codec) | Obtains the description received by a video encoder.| [all …]
|
H A D | _video_encoder.md | 99 | codec | Pointer to a video encoder instance. | 116 Enumerates the bit rate modes of a video encoder. 186 | codec | Pointer to a video encoder instance. | 242 …reates a video encoder instance based on an encoder name. Tho use this function, you must know the… 254 | name | Pointer to a video encoder name. | 269 Clears the internal resources of a video encoder and destroys the encoder instance. You only need t… 279 | codec | Pointer to a video encoder instance. | 316 | codec | Pointer to a video encoder instance. | 355 | codec | Pointer to a video encoder instance. | 728 …video encoder. The encoder returns to the initial state. To continue encoding, you must call **OH_… [all …]
|
H A D | native__avcodec__audioencoder_8h.md | 22 ….md#oh_audioencoder_createbymime) (const char \*mime) | Creates an audio encoder instance based on… 23 …oder_createbyname) (const char \*name) | Creates an audio encoder instance based on an encoder nam… 24 …VCodec \*codec) | Clears the internal resources of an audio encoder and destroys the encoder insta… 27 …oh_audioencoder_prepare) (OH_AVCodec \*codec) | Prepares internal resources for an audio encoder.| 28 …encoder.md#oh_audioencoder_start) (OH_AVCodec \*codec) | Starts an audio encoder after it is prepa… 29 …oder_Stop](_audio_encoder.md#oh_audioencoder_stop) (OH_AVCodec \*codec) | Stops an audio encoder.| 30 …H_AVCodec \*codec) | Clears the input and output data in the internal buffer of an audio encoder.| 31 …r_Reset](_audio_encoder.md#oh_audioencoder_reset) (OH_AVCodec \*codec) | Resets an audio encoder.| 33 …meter) (OH_AVCodec \*codec, OH_AVFormat \*format) | Sets dynamic parameters for an audio encoder.| 35 …reeoutputdata) (OH_AVCodec \*codec, uint32_t index) | Frees an output buffer of an audio encoder.| [all …]
|
H A D | _audio_encoder.md | 32 …oder_createbyname) (const char \*name) | Creates an audio encoder instance based on an encoder nam… 118 Creates an audio encoder instance based on an encoder name. To use this function, you must know the… 132 | name | Pointer to an audio encoder name.| 147 Clears the internal resources of an audio encoder and destroys the encoder instance. 176 Clears the input and output data in the internal buffer of an audio encoder. 207 Frees an output buffer of an audio encoder. 325 Pushes the input buffer filled with data to an audio encoder. 360 Resets an audio encoder. To continue encoding, you must call **Configure** to configure the encoder… 420 Sets dynamic parameters for an audio encoder. 452 Starts an audio encoder after it is prepared successfully. After being started, the encoder starts … [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h2/hpack/ |
H A D | encoder.rs | 50 let mut encoder = ReprEncoder::new(&mut self.table); in encode() localVariable 51 encoder.load(&mut self.holder); in encode() 52 let size = encoder.encode(dst, self.use_huffman); in encode() 54 encoder.save(&mut self.holder); in encode() 126 &mut encoder, in ut_hpack_encoder() 142 &mut encoder, in ut_hpack_encoder() 160 &mut encoder, in ut_hpack_encoder() 181 let mut encoder = HpackEncoder::new(256, false); in ut_hpack_encoder() localVariable 184 &mut encoder, in ut_hpack_encoder() 206 &mut encoder, in ut_hpack_encoder() [all …]
|
/ohos5.0/foundation/multimedia/player_framework/frameworks/native/transcoder/test/unittest/src/ |
H A D | transcoder_unit_test.cpp | 77 VideoCodecFormat encoder = H264; variable 109 VideoCodecFormat encoder = H264; variable 143 VideoCodecFormat encoder = H264; variable 145 encoder = H265; 178 VideoCodecFormat encoder = H264; variable 180 encoder = H265; 282 VideoCodecFormat encoder = H264; variable 326 VideoCodecFormat encoder = H264; variable 372 VideoCodecFormat encoder = H264; variable 374 encoder = H265; [all …]
|
H A D | transcoder_mock.cpp | 56 int32_t TranscoderMock::SetVideoEncoder(VideoCodecFormat encoder) in SetVideoEncoder() argument 59 return transcoder_->SetVideoEncoder(encoder); in SetVideoEncoder() 74 int32_t TranscoderMock::SetAudioEncoder(AudioCodecFormat encoder) in SetAudioEncoder() argument 77 return transcoder_->SetAudioEncoder(encoder); in SetAudioEncoder()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h2/ |
H A D | encoder.rs | 1348 encoder.set_frame(data_frame).unwrap(); in ut_data_frame_encoding() 1493 encoder.set_frame(ping_frame).unwrap(); in ut_ping_frame_encoding() 1567 encoder.set_frame(frame_1).unwrap(); in ut_continue_frame_encoding() 1571 encoder.set_frame(data_frame).unwrap(); in ut_continue_frame_encoding() 1575 encoder.set_frame(frame_2).unwrap(); in ut_continue_frame_encoding() 1756 encoder.set_frame(goaway_frame).unwrap(); in ut_goaway_frame_encoding() 1794 encoder.update_max_frame_size(8192); in ut_update_max_frame_size() 1795 assert_eq!(encoder.max_frame_size, 8192); in ut_update_max_frame_size() 1952 encoder.set_frame(data_frame).unwrap(); in encode_small_frame() 1982 encoder.set_frame(data_frame).unwrap(); in ut_encode_large_data_frame() [all …]
|
/ohos5.0/base/powermgr/battery_manager/charger/src/dev/ |
H A D | drm_driver.cpp | 105 drmModeEncoder* encoder = nullptr; in GetCrtc() local 107 encoder = drmModeGetEncoder(fd, conn.encoder_id); in GetCrtc() 109 if (encoder != nullptr && encoder->crtc_id != 0) { in GetCrtc() 110 uint32_t crtcId = encoder->crtc_id; in GetCrtc() 111 drmModeFreeEncoder(encoder); in GetCrtc() 115 if (encoder != nullptr) { in GetCrtc() 116 drmModeFreeEncoder(encoder); in GetCrtc() 121 encoder = drmModeGetEncoder(fd, conn.encoders[i]); in GetCrtc() 122 if (encoder == nullptr) { in GetCrtc() 128 drmModeFreeEncoder(encoder); in GetCrtc() [all …]
|
/ohos5.0/base/update/updater/services/ui/driver/ |
H A D | drm_driver.cpp | 102 drmModeEncoder *encoder = nullptr; in GetCrtc() local 104 encoder = drmModeGetEncoder(fd, conn.encoder_id); in GetCrtc() 106 if (encoder != nullptr && encoder->crtc_id != 0) { in GetCrtc() 107 uint32_t crtcId = encoder->crtc_id; in GetCrtc() 108 drmModeFreeEncoder(encoder); in GetCrtc() 112 if (encoder != nullptr) { in GetCrtc() 113 drmModeFreeEncoder(encoder); in GetCrtc() 118 encoder = drmModeGetEncoder(fd, conn.encoders[i]); in GetCrtc() 119 if (encoder == nullptr) { in GetCrtc() 125 drmModeFreeEncoder(encoder); in GetCrtc() [all …]
|
/ohos5.0/docs/en/application-dev/media/avcodec/ |
H A D | video-encoding.md | 49 - When an encoder instance is initially created, the encoder enters the Initialized state. 65 7. When the encoder is no longer needed, you must call **OH_VideoEncoder_Destroy** to destroy the e… 210 2. Create an encoder instance. 430 // Start the encoder. 529 // Refresh the encoder. 549 // Reset the encoder. 576 // Stop the encoder. 628 2. Create an encoder instance. 740 // Configure the encoder. 771 // Start the encoder. [all …]
|
H A D | audio-encoding.md | 58 2. Create an encoder instance. In the code snippet below, **OH_AVCodec *** is the pointer to the en… 60 You can create an encoder by name or MIME type. 65 // Create an encoder by name. 74 // Create an encoder by MIME type. 196 // Configure the encoder. 230 // Configure the encoder. 355 // Refresh the encoder. 372 // Reset the encoder. 377 // Reconfigure the encoder. 384 11. Call **OH_AudioCodec_Stop()** to stop the encoder. [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/codec/src/ |
H A D | image_packer.cpp | 139 return DoEncodingFunc([this, &plOpts](ImagePlugin::AbsImageEncoder* encoder) { in StartPackingImpl() argument 140 return encoder->StartEncode(*packerStream_.get(), plOpts); in StartPackingImpl() 240 return encoder->AddImage(pixelMap); in AddImage() 292 return DoEncodingFunc([this, &picture](ImagePlugin::AbsImageEncoder* encoder) { in AddPicture() argument 293 return encoder->AddPicture(picture); in AddPicture() 300 return DoEncodingFunc([](ImagePlugin::AbsImageEncoder* encoder) { in FinalizePacking() argument 301 auto res = encoder->FinalizeEncode(); in FinalizePacking() 330 auto encoder = GetEncoder(pluginServer_, EXTENDED_ENCODER); in GetEncoderPlugin() local 331 if (encoder != nullptr) { in GetEncoderPlugin() 336 encoder = GetEncoder(pluginServer_, option.format); in GetEncoderPlugin() [all …]
|
/ohos5.0/docs/en/application-dev/media/image/ |
H A D | image-encoding-native.md | 20 …ding process, including creating an encoder, initializing resources, performing encoding, and dest… 43 2. Create an encoder instance. 45 You must use napi_env to create an encoder. 48 // Use napi_value to undertake the created encoder instance. 50 // Use napi_env to create an encoder. If result is IMAGE_RESULT_SUCCESS, the encoder is created. 56 Call **OH_ImagePacker_InitNative** to initialize the native encoder instance. 59 // Initialize the native instance through napi_env and the created encoder instance. 115 5. Destroy the encoder instance and release resources. 122 // Call OH_ImagePacker_Release to destroy the encoder. 127 nativePacker = NULL; // The encoder cannot be destroyed repeatedly.
|
/ohos5.0/foundation/multimedia/player_framework/frameworks/native/transcoder/ |
H A D | transcoder_impl.cpp | 61 int32_t TransCoderImpl::SetVideoEncoder(VideoCodecFormat encoder) in SetVideoEncoder() argument 64 FAKE_POINTER(this), encoder); in SetVideoEncoder() 67 return transCoderService_->SetVideoEncoder(encoder); in SetVideoEncoder() 88 int32_t TransCoderImpl::SetAudioEncoder(AudioCodecFormat encoder) in SetAudioEncoder() argument 91 FAKE_POINTER(this), encoder); in SetAudioEncoder() 94 return transCoderService_->SetAudioEncoder(encoder); in SetAudioEncoder()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/h2/ |
H A D | input.rs | 27 encoder: FrameEncoder, field 99 sender.encoder.set_frame(frame).map_err(|_| { in poll() 119 encoder: FrameEncoder, in new() 125 encoder, in new() 157 let size = self.encoder.encode(&mut self.buf.buf).map_err(|_| { in poll_writer_frame() 218 self.encoder.update_header_table_size(*size as usize); in update_settings() 221 self.encoder.update_max_frame_size(*size as usize); in update_settings()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/request/uri/ |
H A D | percent_encoding.rs | 55 let mut encoder = Self { in parse() localVariable 61 let remaining = encoder.parse_scheme(bytes)?; in parse() 62 let remaining = encoder.parse_double_slash(remaining)?; in parse() 63 let remaining = encoder.parse_userinfo(remaining)?; in parse() 64 let remaining = encoder.parse_authority(remaining)?; in parse() 65 let remaining = encoder.parse_path(remaining)?; in parse() 66 encoder.parse_query_and_fragment(remaining)?; in parse() 67 Ok(encoder.normalized.url()) in parse()
|
/ohos5.0/drivers/peripheral/display/composer/vdi_base/src/ |
H A D | drm_connector.cpp | 214 auto &encoder = encoderIter->second; in TryPickEncoder() local 215 DISPLAY_LOGD("connector : %{public}d encoder : %{public}d", mId, encoder->GetId()); in TryPickEncoder() 216 ret = encoder->PickIdleCrtcId(crtcs, crtcId); in TryPickEncoder() 218 DISPLAY_LOGD("connector : %{public}d pick encoder : %{public}d", mId, encoder->GetId())); in TryPickEncoder() 231 for (auto encoder : mPossibleEncoders) { in PickIdleCrtcId() local 232 ret = TryPickEncoder(encoders, encoder, crtcs, crtcId); in PickIdleCrtcId() 265 auto &encoder = encoderIter->second; in UpdateCrtcId() local 266 int possibleCrtcs = encoder->GetPossibleCrtcs(); in UpdateCrtcId() 277 encoder->SetCrtcId(*crtc_id); in UpdateCrtcId() 282 encoder->SetCrtcId(0); in UpdateCrtcId()
|
/ohos5.0/foundation/multimedia/av_codec/services/engine/codec/audio/ |
H A D | BUILD.gn | 52 "$av_codec_root_dir/services/engine/codec/include/audio/encoder", 73 "$av_codec_root_dir/services/engine/codec/audio/encoder/audio_ffmpeg_aac_encoder_plugin.cpp", 74 "$av_codec_root_dir/services/engine/codec/audio/encoder/audio_ffmpeg_encoder_plugin.cpp", 75 "$av_codec_root_dir/services/engine/codec/audio/encoder/audio_ffmpeg_flac_encoder_plugin.cpp", 76 "$av_codec_root_dir/services/engine/codec/audio/encoder/audio_g711mu_encoder_plugin.cpp", 77 "$av_codec_root_dir/services/engine/codec/audio/encoder/audio_opus_encoder_plugin.cpp",
|
/ohos5.0/foundation/multimedia/player_framework/services/services/transcoder/client/ |
H A D | transcoder_client.cpp | 84 int32_t TransCoderClient::SetVideoEncoder(VideoCodecFormat encoder) in SetVideoEncoder() argument 89 MEDIA_LOGD("SetVideoSource encoder(%{public}d)", encoder); in SetVideoEncoder() 90 return transCoderProxy_->SetVideoEncoder(encoder); in SetVideoEncoder() 111 int32_t TransCoderClient::SetAudioEncoder(AudioCodecFormat encoder) in SetAudioEncoder() argument 116 MEDIA_LOGD("SetAudioEncoder encoder(%{public}d)", encoder); in SetAudioEncoder() 117 return transCoderProxy_->SetAudioEncoder(encoder); in SetAudioEncoder()
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/ |
H A D | hencoder_unit_test.h | 62 bool ConfigureAvcEncoder(std::shared_ptr<HCodec>& encoder); 63 bool ConfigureHevcEncoder(std::shared_ptr<HCodec>& encoder); 64 bool SetCallbackToEncoder(std::shared_ptr<HCodec>& encoder);
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h1/request/ |
H A D | mod.rs | 18 mod encoder; module 20 pub use encoder::RequestEncoder;
|