1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16sequenceable SurfaceBufferInfo..OHOS.SurfaceBufferInfo; 17 18interface OHOS.IVideoProcessingServiceManager { 19 void LoadInfo([in] int key, [out] SurfaceBufferInfo bufferInfo); 20 21 void Create([in] String feature, [in] String clientName, [out] int clientID); 22 void Destroy([in] int clientID); 23 void SetParameter([in] int clientID, [in] int tag, [in] unsigned char[] parameter); 24 void GetParameter([in] int clientID, [in] int tag, [inout] unsigned char[] parameter); 25 void UpdateMetadata([in] int clientID, [inout] SurfaceBufferInfo image); 26 void Process([in] int clientID, [in] SurfaceBufferInfo input, [inout] SurfaceBufferInfo output); 27 void ComposeImage([in] int clientID, [in] SurfaceBufferInfo inputSdrImage, [in] SurfaceBufferInfo inputGainmap, 28 [inout] SurfaceBufferInfo outputHdrImage, [in] boolean legacy); 29 void DecomposeImage([in] int clientID, [in] SurfaceBufferInfo inputImage, [inout] SurfaceBufferInfo outputSdrImage, 30 [inout] SurfaceBufferInfo outputGainmap); 31} 32