diff --git a/docs-en/readme/media-subsystem.md b/docs-en/readme/media-subsystem.md index 438ddd7605260326eddbf5843ebfc4bc4e21a5a6..ede7bc4b32ae2c2db6592e17d0a98e19456a18de 100755 --- a/docs-en/readme/media-subsystem.md +++ b/docs-en/readme/media-subsystem.md @@ -1,20 +1,18 @@ -# Media Subsystem +# Multimedia Subsystem ## Overview -This repository stores source code information of the multimedia subsystem. It provides unified interfaces for you to develop media applications. With this repository, you can easily obtain media resources and focus on service development. +This repository stores source code information of the multimedia subsystem. It provides unified interfaces for you to develop media applications. With this repository, you can easily obtain media resources and focus on service development. The following two figures show the framework and service flow of the multimedia subsystem, respectively. -Based on code information about this repository, the device configuration file is stored in **test\\lite\\devini**. When using the configuration file, you can place it in the **/data** directory of the development board in use. You use the configuration file for the adaption to the sensor, resolution, frame rate, and more. +**Figure 1** Subsystem architecture + -Subsystem architecture +As shown in Figure 1, the multimedia framework supports the camera, recording, and playback functions. These functions support the development of HarmonyOS JavaScript applications and various kit modules that use media capabilities. The multimedia framework consists of the framework and core service layers. The framework layer provides native APIs and corresponding service implementation for applications. It implements audio/video input and output, audio/video encoding and decoding, as well as video file packing and demultiplexing for camera, recording, and playback services. The core service layer leverages the capabilities provided by the hardware platform to use the underlying hardware and related drivers. In addition, the core server implements file management, storage management, and log management. - +**Figure 2** Multimedia service flow + -Service process - - - -As shown in these figures, the multimedia subsystem consists of camera, recorder, and player modules. The camera module provides YUV or RGB, JPEG, and H.264 or H.265 data, which is stored in the surface \(shared memory\); the recorder module packs H.264 or H.265 and AAC data in the surface into MP4 files; the player module demultiplexes the MP4 files into audio and video data, sends the data to corresponding decoders, and then plays the audio and video. +As shown in Figure 2, the multimedia subsystem consists of camera, recorder, and player modules. The camera module provides YUV or RGB, JPEG, and H.264 or H.265 data, which is stored in the surface \(shared memory\); the recorder module packs H.264 or H.265 and AAC data in the surface into MP4 files; the player module demultiplexes the MP4 files into audio and video data, sends the data to corresponding decoders, and then plays the audio and video. ## Directory Structure @@ -27,29 +25,29 @@ As shown in these figures, the multimedia subsystem consists of camera, recorder -
Internal framework implementation, including Audio, Camera, and Player.Recorder
+Internal framework implementation, including Audio, Camera, Player, and Recorder.
Header files of multimedia adaptation APIs related to the hardware platform