Open
添加英文readme #1
rekirtAdd on Jun 8
添加英文readme #1
Open
Total: 3 files changed+134-0
| @@ -0,0 +1,51 @@ | |||
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<!-- Copyright (c) 2021 Huawei Device Co., Ltd. | ||
| 3 | + | ||
| 4 | + Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 5 | + you may not use this file except in compliance with the License. | ||
| 6 | + You may obtain a copy of the License at | ||
| 7 | + | ||
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 | ||
| 9 | + | ||
| 10 | + Unless required by applicable law or agreed to in writing, software | ||
| 11 | + distributed under the License is distributed on an "AS IS" BASIS, | ||
| 12 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 13 | + See the License for the specific language governing permissions and | ||
| 14 | + limitations under the License. | ||
| 15 | + | ||
| 16 | + This is the configuration file template for OpenHarmony OSS Audit Tool, please copy it to your project root dir and modify it refer to OpenHarmony/tools_oat/README. | ||
| 17 | + | ||
| 18 | +--> | ||
| 19 | + | ||
| 20 | +<configuration> | ||
| 21 | + <oatconfig> | ||
| 22 | + <licensefile></licensefile> | ||
| 23 | + <policylist> | ||
| 24 | + <policy name="projectPolicy" desc=""> | ||
| 25 | + <!--policyitem type="compatibility" name="GPL-2.0+" path="abc/.*" desc="Process that runs independently, invoked by the X process."/--> | ||
| 26 | + <!--policyitem type="license" name="LGPL" path="abc/.*" desc="Dynamically linked by module X"/--> | ||
| 27 | + <!--policyitem type="copyright" name="xxx" path="abc/.*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed by X Company"/--> | ||
| 28 | + <policyitem type="license" name="CC-BY-4.0" path=".*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="License for documents"/> | ||
| 29 | + </policy> | ||
| 30 | + </policylist> | ||
| 31 | + <filefilterlist> | ||
| 32 | + <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies"> | ||
| 33 | + <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> | ||
| 34 | + <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> | ||
| 35 | + <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> | ||
| 36 | + <filteritem type="filename" name="*.jpg|*.png|*.gif|*.pdf|*.xlsm|*.zip|*.ogg|*.bmp|*.ico|*.heic|*.jpeg|*.webp|*.pcm" desc="already checked"/> | ||
| 37 | + <filteritem type="filepath" name="ArkTS/NodeAPI/NodeAPIUse/NodeAPIExtendCapabilities/entry/src/main/resources/rawfile/test.abc" desc="This file was compiled within this sample code"/> | ||
| 38 | + </filefilter> | ||
| 39 | + </filefilterlist> | ||
| 40 | + <licensematcherlist> | ||
| 41 | + <!--licensematcher name="uvwxyz License" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> | ||
| 42 | + <licensetext name=" | ||
| 43 | + uvwxyz license textA xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
| 44 | + " desc=""/> | ||
| 45 | + <licensetext name=" | ||
| 46 | + uvwxyz license textB xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
| 47 | + " desc=""/> | ||
| 48 | + </licensematcher--> | ||
| 49 | + </licensematcherlist> | ||
| 50 | + </oatconfig> | ||
| 51 | +</configuration> | ||
| @@ -0,0 +1,83 @@ | |||
| 1 | +# Using VideoProcessing to Process Video | ||
| 2 | + | ||
| 3 | +### Overview | ||
| 4 | + | ||
| 5 | +This sample is intended for video editing developers and provides guidance for them to use VideoProcessing to perform video scaling enhancement, dynamic metadata generation, and color space conversion. | ||
| 6 | + | ||
| 7 | +### Preview | ||
| 8 | + | ||
| 9 | +<img src='screenshots/device/videoprocessing_en.png' width='320' /> | ||
| 10 | + | ||
| 11 | +### How to Use | ||
| 12 | + | ||
| 13 | +1. Tap Select Video to select the video to be processed. | ||
| 14 | +2. Tap Video zoom. A dialog box is displayed, showing the video scaling enhancement levels. Select an enhancement level to enhance the video. | ||
| 15 | +3. Tap Metadata generation. In the dialog box displayed, select a metadata format to generate a video with the corresponding metadata. | ||
| 16 | +4. Tap Color space conversion. In the dialog box displayed, generate the video with the corresponding color space based on the color space format. | ||
| 17 | +5. Tap Play the video to play the video. No processing is performed. | ||
| 18 | +6. If a processing type is not supported for the video, the message indicating that the video does not support the current operation will be displayed when you tap the processing button. | ||
| 19 | + | ||
| 20 | +### Project Directory | ||
| 21 | +```` | ||
| 22 | +├──entry/src/main/ets/ | ||
| 23 | +│ ├──common | ||
| 24 | +│ │ ├──entryability | ||
| 25 | +│ │ │ └──CommonConstants.ets // Common constants | ||
| 26 | +│ │ └──utils | ||
| 27 | +│ │ ├──DateTimeUtil.ets // Date utility class | ||
| 28 | +│ │ ├──Logger.ets // Log utility class | ||
| 29 | +│ │ └──WindowUtil.ets // Window setting utility class | ||
| 30 | +│ ├──entryability | ||
| 31 | +│ │ └──EntryAbility.ets // Entry ability class | ||
| 32 | +│ ├──page | ||
| 33 | +│ │ └──VideoPage.ets // Video processing page | ||
| 34 | +│ └──view | ||
| 35 | +│ └──MultiStatusButton.ets // Custom status button | ||
| 36 | +├──entry/src/main/cpp/ | ||
| 37 | +│ ├──CMakeLists.txt // Build script | ||
| 38 | +│ ├──capbilities | ||
| 39 | +│ │ ├──AudioDecoder.cpp // Audio decoding implementation class | ||
| 40 | +│ │ ├──Demuxer.cpp // Demuxing implementation class | ||
| 41 | +│ │ ├──VideoDecoder.cpp // Video decoding implementation class | ||
| 42 | +│ │ └──include | ||
| 43 | +│ │ ├──AudioDecoder.h // Audio decoding header file | ||
| 44 | +│ │ ├──Demuxer.h // Demuxing header file | ||
| 45 | +│ │ └──VideoDecoder.h // Video decoding header file | ||
| 46 | +│ ├──common | ||
| 47 | +│ │ ├──SampleCallback.cpp // Callback implementation class | ||
| 48 | +│ │ ├──SampleCallback.h // Callback header file | ||
| 49 | +│ │ ├──SampleInfo.h // Data entity class | ||
| 50 | +│ │ └──dfx | ||
| 51 | +│ │ ├──error | ||
| 52 | +│ │ │ └──AVCodecSampleError.h // Error code constant class | ||
| 53 | +│ │ └──log | ||
| 54 | +│ │ └──AVCodecSampleLog.h // Log utility class | ||
| 55 | +│ ├──render | ||
| 56 | +│ │ ├──PluginManager.cpp // Plug-in management implementation class | ||
| 57 | +│ │ ├──PluginRender.cpp // Rendering plug-in implementation class | ||
| 58 | +│ │ └──include | ||
| 59 | +│ │ ├──PluginManager.h // Plug-in management header file | ||
| 60 | +│ │ └──PluginRender.h // Rendering plug-in header file | ||
| 61 | +│ ├──sample | ||
| 62 | +│ │ └──player | ||
| 63 | +│ │ ├──Player.cpp // Playback implementation class | ||
| 64 | +│ │ ├──Player.h // Playback header file | ||
| 65 | +│ │ ├──PlayerNative.cpp // N-API implementation class | ||
| 66 | +│ │ └──PlayerNative.h // N-API header file | ||
| 67 | +│ └──types | ||
| 68 | +│ └──player | ||
| 69 | +│ ├──index.d.ts // N-API | ||
| 70 | +│ └──oh-package.json5 // Definition of player .so and .d.ts files | ||
| 71 | +└──entry/src/main/resources // Static resources | ||
| 72 | +```` | ||
| 73 | + | ||
| 74 | +### Required Permissions | ||
| 75 | + | ||
| 76 | +ohos.permission.READ_MEDIA: access media files | ||
| 77 | + | ||
| 78 | +### Constraints | ||
| 79 | + | ||
| 80 | +1. This sample is only supported on bar-type phones running standard systems. | ||
| 81 | +2. The HarmonyOS version must be HarmonyOS 5.0.4 Release or later. | ||
| 82 | +3. The DevEco Studio version must be DevEco Studio 5.0.4 Release or later. | ||
| 83 | +4. The HarmonyOS SDK version must be HarmonyOS 5.0.4 Release SDK or later. | ||