CN112732269B - Access method and device applied to physical address of AVS2 hardware encoder - Google Patents

Access method and device applied to physical address of AVS2 hardware encoder Download PDF

Info

Publication number
CN112732269B
CN112732269B CN202110055871.3A CN202110055871A CN112732269B CN 112732269 B CN112732269 B CN 112732269B CN 202110055871 A CN202110055871 A CN 202110055871A CN 112732269 B CN112732269 B CN 112732269B
Authority
CN
China
Prior art keywords
address space
physical address
mapping
avs2
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110055871.3A
Other languages
Chinese (zh)
Other versions
CN112732269A (en
Inventor
赵辉
范晓东
刘元福
高军军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Boya Huishi Intelligent Technology Research Institute Co ltd
Original Assignee
Beijing Boya Huishi Intelligent Technology Research Institute Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Boya Huishi Intelligent Technology Research Institute Co ltd filed Critical Beijing Boya Huishi Intelligent Technology Research Institute Co ltd
Priority to CN202110055871.3A priority Critical patent/CN112732269B/en
Publication of CN112732269A publication Critical patent/CN112732269A/en
Application granted granted Critical
Publication of CN112732269B publication Critical patent/CN112732269B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/255Maintenance or indexing of mapping tables

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Memory System (AREA)

Abstract

The application discloses a method, a device, a storage medium and a terminal for accessing physical addresses of an AVS2 hardware encoder, wherein the method comprises the following steps: acquiring physical address information of an AVS2 hardware encoder, wherein the physical address information comprises physical address space information; mapping corresponding user address space information according to the physical address space information; reading a user address space in the user address space information; the AVS2 encoding application program accesses the user address space, so the AVS2 hardware encoder can be realized by adopting the embodiment of the application: the user can access the physical address without installing a driver, so that the existing access flow of the physical address applied to the AVS2 hardware encoder is simplified, and the user experience is improved.

Description

Access method and device applied to physical address of AVS2 hardware encoder
Technical Field
The invention relates to the technical field of communication, in particular to a physical address access method and device applied to an AVS2 hardware encoder.
Background
Conventional technologies often use a method of accessing a physical address of an AVS2 hardware encoder by a driver for the AVS2 hardware encoder. The specific flow of accessing the physical address is as follows: encoding an application; an encoder driver; after installing the driver on its computer, the user accesses the physical address of the encoder through the driver.
In the existing method for accessing the physical address of the hardware encoder through the driver, the driver needs to be successfully installed on the computer of the user, and the physical address of the hardware encoder can be accessed after the driver is confirmed to be successfully installed. Therefore, the above access flow of the physical address applied to the AVS2 hardware encoder is too complicated, and the user experience is low.
Therefore, how to provide a simplified access method for physical addresses of AVS2 hardware encoders is a technical problem to be solved.
Disclosure of Invention
The embodiment of the application provides a physical address access method, a physical address access device, a storage medium and a terminal applied to an AVS2 hardware encoder. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
In a first aspect, an embodiment of the present application provides a method for accessing a physical address applied to an AVS2 hardware encoder, the method including:
acquiring physical address information of the AVS2 hardware encoder, wherein the physical address information comprises physical address space information;
mapping corresponding user address space information according to the physical address space information;
reading a user address space in the user address space information;
The AVS2 encoding application accesses the user address space.
In one embodiment, before mapping the corresponding user address space information according to the physical address space information, the method further includes: the mapping relation between each physical address space and the corresponding user address space is preconfigured.
In one embodiment, the mapping the corresponding user address space information according to the physical address space information includes:
Reading the mapping relation;
and mapping user address space information corresponding to the physical address space information according to the mapping relation and the physical address space information.
In one embodiment, the method further comprises:
in response to a first mapping request of the AVS2 encoding application, the first mapping request is used to map out a physical address space in the physical address space information, the physical address space being mapped out by an address mapping driver.
In one embodiment, the method further comprises:
And responding to a second mapping request of the AVS2 encoding application program, wherein the second mapping request is used for mapping out a user address space corresponding to the physical address space, and the physical address space is mapped to the user address space through the address mapping driver.
The address mapping driver includes a first driver mapping out of the physical address space, an
A second driver that maps the physical address space to the user address space.
In one embodiment, when address access requests of a plurality of target users are acquired, the AVS2 encoding application sequentially accesses corresponding target user address spaces respectively determined based on the address access requests of the respective target users.
In a second aspect, an embodiment of the present application provides an access apparatus applied to a physical address of an AVS2 hardware encoder, the apparatus including:
the acquisition module is used for acquiring physical address information of the AVS2 hardware encoder, wherein the physical address information comprises physical address space information;
The mapping module is used for mapping out corresponding user address space information according to the physical address space information acquired by the acquisition module;
The reading module is used for reading the user address space in the user address space information mapped by the mapping module;
and the access module is used for accessing the user address space read by the reading module by the AVS2 encoding application program.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-described method steps.
In a fourth aspect, an embodiment of the present application provides a terminal, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
In the embodiment of the application, the physical address information of the AVS2 hardware encoder is acquired, wherein the physical address information comprises physical address space information; mapping corresponding user address space information according to the physical address space information; reading a user address space in the user address space information; the AVS2 encoding application program accesses the user address space, so the AVS2 hardware encoder can be realized by adopting the embodiment of the application: the user can access the physical address without installing a driver, so that the existing access flow of the physical address applied to the AVS2 hardware encoder is simplified, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart of a method for accessing physical addresses applied to an AVS2 hardware encoder according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a mapping principle applied to an AVS2 hardware encoder according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a physical address accessing apparatus applied to an AVS2 hardware encoder according to an embodiment of the present application;
Fig. 4 shows a schematic diagram of an electronic device connection structure according to an embodiment of the present disclosure.
Detailed Description
The following description and the drawings sufficiently illustrate specific embodiments of the invention to enable those skilled in the art to practice them.
It should be understood that the described embodiments are merely some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Based on the technical defect that the prior access flow of the physical address applied to the AVS2 hardware encoder is too complicated. Therefore, the application provides a physical address access method, a physical address access device, a physical address storage medium and a physical address access terminal applied to an AVS2 hardware encoder, so as to solve the problems in the related technical problems. In the technical scheme provided by the application, the physical address information of the AVS2 hardware encoder is acquired, wherein the physical address information comprises physical address space information; mapping corresponding user address space information according to the physical address space information; reading a user address space in the user address space information; the AVS2 encoding application program accesses the user address space, so the AVS2 hardware encoder can be realized by adopting the embodiment of the application: the user can access the physical address without installing a driver, so that the existing access flow of the physical address applied to the AVS2 hardware encoder is simplified, the user experience is improved, and the following detailed description is given by adopting an exemplary embodiment.
The following describes in detail the access method applied to the physical address of the AVS2 hardware encoder according to the embodiment of the present application with reference to fig. 1 to 2. The access method applied to the physical address of the AVS2 hardware encoder may be implemented in dependence on a computer program and may be run on an access device applied to the physical address of the AVS2 hardware encoder. The computer program may be integrated in the application or may run as a stand-alone tool class application. The user terminal in the embodiment of the application comprises, but is not limited to: personal computers, tablet computers, handheld devices, vehicle mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and the like. User terminals may be called different names in different networks, for example: a user equipment, an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile device, a user terminal, a wireless communication device, a user agent or user equipment, a cellular telephone, a cordless telephone, a Personal Digital Assistant (PDA), a terminal device in a 5G network or a future evolution network, etc.
Fig. 1 is a schematic flow chart of an access method applied to a physical address of an AVS2 hardware encoder according to an embodiment of the present application, wherein the access method is applied to a client; as shown in fig. 1, the access method according to the embodiment of the present application may include the following steps:
S101, acquiring physical address information of an AVS2 hardware encoder, wherein the physical address information comprises physical address space information; the physical address information of the obtained AVS2 (Audio and Video coding Standard, digital audio video coding standard 2) hardware encoder mainly comprises the physical address space information.
In the embodiment of the application, the physical address space in the physical address information refers to the physical address of the access hardware.
S102, mapping corresponding user address space information according to the physical address space information.
In the embodiment of the application, the user address space in the user address space information refers to a virtual address space accessed by a user program.
Fig. 2 is a schematic diagram of mapping principle applied to an AVS2 hardware encoder according to an embodiment of the present application.
As shown in fig. 2, the mapping principle applied to the AVS2 hardware encoder provided by the embodiment of the present application specifically includes:
the AVS2 encoding program reads and writes the virtual address of the AVS2 hardware encoder to obtain a user address space;
mapping out physical addresses according to virtual addresses corresponding to the user address spaces based on mapping relations between each pre-configured physical address space and the corresponding user address space;
and reading and writing the physical address of the AVS2 hardware encoder according to the mapped physical address.
In a possible implementation, before mapping the corresponding user address space information according to the physical address space information, the method further comprises the steps of:
the mapping relation between each physical address space and the corresponding user address space is preconfigured.
In the access method provided by the embodiment of the present application, a configuration method for pre-configuring the mapping relationship between each physical address space and the corresponding user address space is a conventional method, which is not described herein.
In the embodiment of the application, mapping corresponding user address space information according to physical address space information comprises the following steps:
Reading the mapping relation;
in the embodiment of the present application, the read mapping relationship is a mapping relationship between each of the pre-configured physical address spaces and the corresponding user address space.
And mapping user address space information corresponding to the physical address space information according to the mapping relation and the physical address space information.
In a possible implementation manner, the access method provided by the embodiment of the application further includes the following steps:
In response to a first mapping request of the AVS2 encoding application, the first mapping request is used to map out a physical address space in the physical address space information, and the physical address space is mapped out by an address mapping driver.
In an embodiment of the present application, the address mapping driver includes a first driver that maps out of a physical address space.
In a possible implementation manner, the access method provided by the embodiment of the application further includes the following steps:
in response to a second mapping request of the AVS2 encoding application, the second mapping request is used to map out a user address space corresponding to the physical address space, the physical address space being mapped to the user address space by an address mapping driver.
In an embodiment of the application, the address mapping driver further comprises a second driver that maps the physical address space to the user address space.
S103, reading a user address space in the user address space information;
in the embodiment of the application, the user address space in the user address space information refers to a virtual address space accessed by a user program.
S104, accessing a user address space by an AVS2 encoding application program; thus, for the AVS2 hardware encoder, it is possible to: the user can access the physical address without installing a driver, so that the existing access flow of the physical address applied to the AVS2 hardware encoder is simplified, and the user experience is improved.
Furthermore, according to the access method provided by the embodiment of the application, the AVS2 encoding application program directly accesses the user address space, so that the AVS2 encoding application program can directly access the AVS2 hardware encoder, and the data interaction performance can be effectively improved.
In addition, the access method applied to the physical address of the AVS2 hardware encoder provided by the application is characterized in that the AVS2 encoding application program directly accesses the user address space, so that video data can be directly exchanged between the user program and the hardware without copying the video data to the kernel address space, wherein the kernel address space refers to the address space accessed by an operating system.
Furthermore, the access method of physical address applied to AVS2 hardware encoder provided by the application, because AVS2 encoding application program directly accesses user address space, user program directly accesses physical hardware, and is convenient to inquire and control hardware state, and the encoding process is convenient to debug and develop.
In a possible implementation manner, the access method provided by the embodiment of the application further includes the following steps:
And if the address access requests of a plurality of target users are acquired, the AVS2 encoding application program sequentially accesses the corresponding target user address spaces respectively determined based on the address access requests of the target users.
According to the access method provided by the embodiment of the application, based on a time period, only an address access request of any target user can be responded, a corresponding target user address space is determined based on the address access request of the target user, and the determined target user address space is accessed through an AVS2 encoding application program; thus, different target user address spaces corresponding to the address access requests of different target users can be effectively distinguished.
In the embodiment of the application, the physical address information of the AVS2 hardware encoder is acquired, wherein the physical address information comprises physical address space information; mapping corresponding user address space information according to the physical address space information; reading a user address space in the user address space information; the AVS2 encoding application program accesses the user address space, so the AVS2 hardware encoder can be realized by adopting the embodiment of the application: the user can access the physical address without installing a driver, so that the existing access flow of the physical address applied to the AVS2 hardware encoder is simplified, and the user experience is improved.
The following is an embodiment of an access device of the present invention applied to a physical address of an AVS2 hardware encoder, and may be used to execute an embodiment of an access method of the present invention applied to a physical address of an AVS2 hardware encoder. For details not disclosed in the embodiment of the access device of the physical address applied to the AVS2 hardware encoder, please refer to the embodiment of the access method of the physical address applied to the AVS2 hardware encoder.
Referring to fig. 3, a schematic diagram of an access device applied to a physical address of an AVS2 hardware encoder according to an exemplary embodiment of the present invention is shown. The access means applied to the physical address of the AVS2 hardware encoder may be implemented as all or part of the terminal by software, hardware or a combination of both. The access device applied to the physical address of the AVS2 hardware encoder includes an acquisition module 10, a mapping module 20, a reading module 30, and an access module 40.
Specifically, the acquiring module 10 is configured to acquire physical address information of the AVS2 hardware encoder, where the physical address information includes physical address space information;
The mapping module 20 is configured to map out corresponding user address space information according to the physical address space information acquired by the acquiring module 10;
A reading module 30, configured to read the user address space in the user address space information mapped by the mapping module 20;
an access module 40 for the AVS2 encoding application to access the user address space read out by the reading module 30.
Optionally, the apparatus further includes:
A configuration module (not shown in fig. 3) is configured to pre-configure mapping relationships between each physical address space and the corresponding user address space before mapping module 20 maps out the corresponding user address space information according to the physical address space information.
Optionally, the reading module 30 is further configured to read the mapping relationship;
the mapping module 20 is specifically configured to:
User address space information corresponding to the physical address space information is mapped according to the mapping relation read by the reading module 30 and the physical address space information acquired by the acquiring module 10.
Optionally, the mapping module 20 is further configured to:
In response to a first mapping request of the AVS2 encoding application, the first mapping request is used to map out a physical address space in the physical address space information, and the physical address space is mapped out by an address mapping driver.
Optionally, the mapping module 20 is further configured to:
in response to a second mapping request of the AVS2 encoding application, the second mapping request is used to map out a user address space corresponding to the physical address space, the physical address space being mapped to the user address space by an address mapping driver.
Optionally, the address mapping driver includes a first driver that maps out the physical address space and a second driver that maps the physical address space to the user address space.
Optionally, the access module 40 is further configured to: and if the address access requests of a plurality of target users are acquired, the AVS2 encoding application program sequentially accesses the corresponding target user address spaces respectively determined based on the address access requests of the target users.
It should be noted that, when the access device applied to the physical address of the AVS2 hardware encoder provided in the above embodiment executes the access method applied to the physical address of the AVS2 hardware encoder, only the division of the above functional modules is used for illustration, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the embodiment of the foregoing embodiment provides an access device applied to a physical address of an AVS2 hardware encoder and an embodiment of an access method applied to a physical address of an AVS2 hardware encoder, which embody an implementation process in detail, see an embodiment of an access method applied to a physical address of an AVS2 hardware encoder, and are not repeated herein.
In the embodiment of the application, the acquisition module is used for acquiring the physical address information of the AVS2 hardware encoder, wherein the physical address information comprises physical address space information; the mapping module is used for mapping out corresponding user address space information according to the physical address space information; the reading module is used for reading the user address space in the user address space information; and the access module is used for accessing the user address space through the AVS2 encoding application program, so the AVS2 hardware encoder can be realized by adopting the embodiment of the application: the user can access the physical address without installing a driver, so that the existing access flow of the physical address applied to the AVS2 hardware encoder is simplified, and the user experience is improved.
Furthermore, in the access device provided by the embodiment of the application, the AVS2 encoding application program directly accesses the user address space, so that the AVS2 encoding application program can directly access the AVS2 hardware encoder, and the data interaction performance can be effectively improved.
In addition, the access device applied to the physical address of the AVS2 hardware encoder provided by the application can directly exchange video data between the user program and the hardware without copying the video data to a kernel address space, wherein the kernel address space refers to the address space accessed by an operating system because the AVS2 encoding application program directly accesses the user address space.
Furthermore, the access device for the physical address of the AVS2 hardware encoder provided by the application has the advantages that the AVS2 encoding application program directly accesses the user address space, so that the user program directly accesses the physical hardware, the inquiry and the control of the hardware state are convenient, and the encoding process is convenient for debugging and development.
As shown in fig. 4, the present embodiment provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor running the computer program to implement the method steps as described above.
The disclosed embodiments provide a storage medium storing computer readable instructions having a computer program stored thereon, the program being executed by a processor to perform the method steps described above.
Referring now to fig. 4, a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 4, the electronic device may include a processing means (e.g., a central processor, a graphics processor, etc.) 401, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage means 408 into a Random Access Memory (RAM) 403. In the RAM403, various programs and data required for the operation of the electronic device are also stored. The processing device 401, the ROM402, and the RAM403 are connected to each other by a bus 409. An input/output (I/O) interface 405 is also connected to bus 404.
In general, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, magnetic tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 shows an electronic device having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communications device 409, or from storage 408, or from ROM 402. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 401.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.

Claims (7)

1. A method of accessing a physical address applied to an AVS2 hardware encoder, the method comprising:
acquiring physical address information of the AVS2 hardware encoder, wherein the physical address information comprises physical address space information;
mapping corresponding user address space information according to the physical address space information;
reading a user address space in the user address space information;
the AVS2 encoding application program accesses the user address space;
Responding to a first mapping request of the AVS2 encoding application program, wherein the first mapping request is used for mapping out a physical address space in the physical address space information, and mapping out the physical address space through an address mapping driver;
Responding to a second mapping request of the AVS2 encoding application program, wherein the second mapping request is used for mapping out a user address space corresponding to the physical address space, and mapping the physical address space to the user address space through the address mapping driver;
the address mapping driver includes a first driver mapping out of the physical address space, an
A second driver that maps the physical address space to the user address space.
2. The method of claim 1, wherein prior to said mapping out corresponding user address space information from said physical address space information, the method further comprises: the mapping relation between each physical address space and the corresponding user address space is preconfigured.
3. The method of claim 2, wherein mapping corresponding user address space information from the physical address space information comprises:
Reading the mapping relation;
and mapping user address space information corresponding to the physical address space information according to the mapping relation and the physical address space information.
4. The method according to claim 1, wherein the method further comprises:
And if the address access requests of a plurality of target users are acquired, the AVS2 encoding application program sequentially accesses the corresponding target user address spaces respectively determined based on the address access requests of the target users.
5. An access device for physical addresses of AVS2 hardware encoders, said device comprising:
the acquisition module is used for acquiring physical address information of the AVS2 hardware encoder, wherein the physical address information comprises physical address space information;
The mapping module is used for mapping out corresponding user address space information according to the physical address space information acquired by the acquisition module;
The reading module is used for reading the user address space in the user address space information mapped by the mapping module;
the access module is used for accessing the user address space read by the reading module by the AVS2 encoding application program;
Wherein the mapping module is further configured to:
Responding to a first mapping request of the AVS2 encoding application program, wherein the first mapping request is used for mapping out a physical address space in the physical address space information, and mapping out the physical address space through an address mapping driver;
Responding to a second mapping request of the AVS2 encoding application program, wherein the second mapping request is used for mapping out a user address space corresponding to the physical address space, and mapping the physical address space to the user address space through the address mapping driver;
the address mapping driver includes a first driver mapping out of the physical address space, an
A second driver that maps the physical address space to the user address space.
6. A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the method steps of any of claims 1 to 4.
7. A terminal, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 4.
CN202110055871.3A 2021-01-15 2021-01-15 Access method and device applied to physical address of AVS2 hardware encoder Active CN112732269B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110055871.3A CN112732269B (en) 2021-01-15 2021-01-15 Access method and device applied to physical address of AVS2 hardware encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110055871.3A CN112732269B (en) 2021-01-15 2021-01-15 Access method and device applied to physical address of AVS2 hardware encoder

Publications (2)

Publication Number Publication Date
CN112732269A CN112732269A (en) 2021-04-30
CN112732269B true CN112732269B (en) 2024-05-24

Family

ID=75593351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110055871.3A Active CN112732269B (en) 2021-01-15 2021-01-15 Access method and device applied to physical address of AVS2 hardware encoder

Country Status (1)

Country Link
CN (1) CN112732269B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6069638A (en) * 1997-06-25 2000-05-30 Micron Electronics, Inc. System for accelerated graphics port address remapping interface to main memory
CN103218312A (en) * 2013-03-28 2013-07-24 中国科学院上海微系统与信息技术研究所 File access method and file access system
CN105579977A (en) * 2014-09-01 2016-05-11 华为技术有限公司 File access method, device and storage system
CN105830022A (en) * 2014-11-28 2016-08-03 华为技术有限公司 File access method and apparatus
CN107209681A (en) * 2015-10-21 2017-09-26 华为技术有限公司 A kind of storage device access methods, devices and systems
CN110855610A (en) * 2019-09-30 2020-02-28 视联动力信息技术股份有限公司 Data packet processing method and device and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10169244B2 (en) * 2016-07-29 2019-01-01 Advanced Micro Devices, Inc. Controlling access to pages in a memory in a computing device
US10969992B2 (en) * 2018-12-29 2021-04-06 Intel Corporation Address translation for scalable linked devices

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6069638A (en) * 1997-06-25 2000-05-30 Micron Electronics, Inc. System for accelerated graphics port address remapping interface to main memory
CN103218312A (en) * 2013-03-28 2013-07-24 中国科学院上海微系统与信息技术研究所 File access method and file access system
CN105579977A (en) * 2014-09-01 2016-05-11 华为技术有限公司 File access method, device and storage system
CN105830022A (en) * 2014-11-28 2016-08-03 华为技术有限公司 File access method and apparatus
CN107209681A (en) * 2015-10-21 2017-09-26 华为技术有限公司 A kind of storage device access methods, devices and systems
CN110855610A (en) * 2019-09-30 2020-02-28 视联动力信息技术股份有限公司 Data packet processing method and device and storage medium

Also Published As

Publication number Publication date
CN112732269A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN111367516B (en) Application interface generation method and device and electronic equipment
WO2023174013A1 (en) Video memory allocation method and apparatus, and medium and electronic device
CN111400068B (en) Interface control method and device, readable medium and electronic equipment
CN111324376B (en) Function configuration method, device, electronic equipment and computer readable medium
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN110333843B (en) Method and device for realizing high-precision timer of virtual machine and electronic equipment
CN112261176B (en) Method for acquiring actual network access relationship and related equipment
CN112905220B (en) Thermal restoration method, device, equipment and storage medium
CN112416303B (en) Software development kit hot repair method and device and electronic equipment
CN112306685B (en) Task isolation method, device, electronic equipment and computer readable medium
CN111460432B (en) On-line document authority control method, device, equipment and computer readable medium
CN113391860B (en) Service request processing method and device, electronic equipment and computer storage medium
CN111857518A (en) Method and device for canceling image editing operation, electronic equipment and medium
CN110545313B (en) Message push control method and device and electronic equipment
CN112732269B (en) Access method and device applied to physical address of AVS2 hardware encoder
CN111125759A (en) Database login account shielding method and device and electronic equipment
CN111309406A (en) Event processing method and device of application program and electronic equipment
CN112084086B (en) Information collection method, device, medium and electronic equipment
CN111625326B (en) Task pipeline execution method and device and electronic equipment
CN111538717B (en) Data processing method, device, electronic equipment and computer readable medium
CN111857915B (en) Application page display method and device
CN111324336B (en) Method, device, terminal and storage medium for implementing dependency injection
CN116266206A (en) Page display method and device and electronic equipment
CN110908711A (en) Control development method and device of application program and electronic equipment
CN111240657A (en) Method and device for generating SDK and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant