Cross-process memory sharing method and device, equipment and storage medium

The invention discloses a cross-process memory sharing method and device, equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: generating a shared memory of a target type through initialization of a first process corresponding to...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: ZHANG RUI, CUI QIUSONG, HUANG ZUHONG, ZHANG TIANYI
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a cross-process memory sharing method and device, equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: generating a shared memory of a target type through initialization of a first process corresponding to a decoder; decoding the audio and video streams by using the decoder to obtain decoded data, and caching the decoded data; and the first process acquires a decoded data acquisition request sent by a second process corresponding to an execution module, and copies decoded data in a cache to the shared memory by using a hardware accelerator according to the decoded data acquisition request, so that the second process acquires the decoded data by reading the shared memory. Equipment hardware resources can be saved, and the performance of the hardware accelerator is improved. 本申请公开了一种跨进程内存共享方法、装置、设备及存储介质,涉及计算机技术领域。该方法包括:通过解码器对应的第一进程初始化生成目标类型的共享内存;利用所述解码器对音视频流进行解码得到解码数据,并缓存所述解码数据;所述第一进程获取执行模块对应的第二进程发送的解码数据获取请求,并根据所述解码数据获