CN104111813B - Method and device for picture synchronous display, mobile terminal and terminal device - Google Patents
Method and device for picture synchronous display, mobile terminal and terminal device Download PDFInfo
- Publication number
- CN104111813B CN104111813B CN201410283075.5A CN201410283075A CN104111813B CN 104111813 B CN104111813 B CN 104111813B CN 201410283075 A CN201410283075 A CN 201410283075A CN 104111813 B CN104111813 B CN 104111813B
- Authority
- CN
- China
- Prior art keywords
- picture
- pictures
- sequence number
- displayed
- sending
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000001360 synchronised effect Effects 0.000 title claims abstract description 12
- 238000004891 communication Methods 0.000 claims abstract description 35
- 238000010586 diagram Methods 0.000 description 12
- 238000005516 engineering process Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method and device for picture synchronous display, a mobile terminal and a terminal device. The method includes the steps that after communication connection between the device and the terminal device is established, 2N+1 pictures including pictures to be displayed are determined from a picture queue; the 2N+1 pictures are sent to the terminal device, so that the 2N+1 pictures are stored in a buffer queue through the terminal device; a display command with a serial number A is sent to the terminal device, so that the terminal device obtains and displays the pictures to be displayed from the buffer queue according to the serial number A; the pictures to be displayed are displayed. According to the scheme, after the terminal device receives the display command of the mobile terminal, the pictures to be displayed can be immediately obtained and displayed, the pictures on the mobile terminal can be rapidly displayed through the terminal device even though a user rapidly browses the pictures on the mobile terminal, time delay for picture synchronous display is quite short, and user experiment is improved.
Description
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for synchronously displaying pictures, a mobile terminal, and a terminal device.
Background
With the rapid development of communication technology, the mobile terminal can interact with the terminal device, for example, a picture displayed on the mobile terminal can be synchronously displayed on the terminal device with a large screen, so that multiple people can share the picture. When the user performs a leftward/rightward sliding operation on the mobile terminal, the photograph displayed on the terminal device is also changed.
According to the picture synchronous display method in the related technology, after the mobile terminal displays the picture selected by the user, the picture is sent to the terminal equipment, and the terminal equipment receives the picture and displays the picture. When a user browses the pictures on the mobile terminal in a sliding mode, the time interval of sending the pictures to the terminal equipment by the mobile terminal is shortened; due to the fact that the transmission speed between the mobile terminal and the terminal device is limited, the terminal device cannot complete picture receiving and displaying within the time interval, and therefore large delay exists when the terminal device synchronously displays pictures, and user experience is affected.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method and an apparatus for synchronously displaying pictures, a mobile terminal and a terminal device.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for displaying pictures synchronously, including:
after establishing communication connection with terminal equipment, determining 2N +1 pictures including pictures to be displayed from a picture queue, wherein the serial numbers of the 2N +1 pictures are continuous and take the serial number A of the pictures to be displayed as the center;
sending the 2N +1 pictures to the terminal equipment so that the terminal equipment stores the 2N +1 pictures in a cache queue;
sending a display instruction carrying the sequence number A to the terminal equipment so that the terminal equipment obtains and displays the picture to be displayed from the cache queue according to the sequence number A; and
and displaying the picture to be displayed.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the step of sending the 2N +1 pictures to the terminal device includes:
and sending the 2N +1 pictures to the terminal equipment according to the sequence numbers of A, A +1, A-1, … and A + N, A-N.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the method further includes:
receiving a sliding instruction;
sending a display instruction carrying the serial number of the picture corresponding to the sliding instruction and sending the picture to be stored to the terminal equipment according to the sliding direction of the sliding instruction, so that the terminal equipment displays the picture corresponding to the sliding instruction and stores the picture to be stored in the cache queue;
and displaying the picture corresponding to the sliding instruction.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, sending, to the terminal device, a display instruction carrying a sequence number of a picture corresponding to the sliding instruction and a picture to be stored according to the sliding direction of the sliding instruction, so that the terminal device displays the picture corresponding to the sliding instruction and stores the picture to be stored in the cache queue, includes:
if the sliding direction is left, sending a display instruction with a sequence number A +1 and sending a picture to be stored with a sequence number A + N +1 to the terminal equipment, so that the terminal equipment displays the picture with the sequence number A +1 in the cache queue, deletes the picture with the sequence number A-N and stores the picture with the sequence number A + N + 1;
and if the sliding direction is right, sending a display instruction with a sequence number A-1 and sending the pictures to be stored with the sequence number A-N-1 to the terminal equipment, so that the terminal equipment displays the pictures with the sequence number A-1 in the cache queue, deletes the pictures with the sequence number A + N and stores the pictures with the sequence number A-N-1.
According to a second aspect of the embodiments of the present disclosure, there is provided a method for displaying pictures synchronously, including:
after establishing communication connection with a mobile terminal, receiving 2N +1 pictures sent by the mobile terminal and storing the pictures in a cache queue, wherein the serial numbers of the 2N +1 pictures are continuous and take the serial number A of the picture to be displayed as the center;
receiving a display instruction which is sent by the mobile terminal and carries the sequence number A;
and obtaining the picture to be displayed from the cache queue according to the sequence number A and displaying the picture.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the receiving and storing 2N +1 pictures sent by the mobile terminal in a buffer queue includes:
sequentially receiving 2N +1 pictures with sequence numbers of A, A +1, A-1, … and A + N, A-N sent by the mobile terminal and storing the pictures in storage blocks with the same sequence number in the cache queue, wherein the sequence numbers of the storage blocks in the cache queue comprise 2N +1 sequence numbers of A-N, A-N +1, …, A, …, A + N-1 and A + N; or,
sequentially receiving 2N +1 pictures with the sequence numbers of A, A +1, A-1, … … and A + N, A-N sent by the mobile terminal, storing the pictures on the storage blocks in the cache queue according to the receiving sequence, and recording the corresponding relation between the sequence numbers of the pictures and the sequence numbers of the storage blocks in an index table.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the acquiring the to-be-displayed picture from the buffer queue according to the sequence number a includes:
acquiring the picture to be displayed from the cache block corresponding to the sequence number A; or,
and determining the sequence number of the storage block corresponding to the sequence number A from the index table, and acquiring the picture to be displayed from the storage block corresponding to the determined sequence number.
With reference to the second aspect, in a third possible implementation manner of the second aspect, the method further includes:
receiving a display instruction which is sent by the mobile terminal and carries the serial number of the picture corresponding to the sliding instruction, and receiving the picture to be stored;
and displaying the picture corresponding to the sliding instruction, and updating the picture in the cache queue according to the sequence number of the picture to be stored.
With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the updating the picture in the cache queue according to the sequence number of the picture to be stored includes:
if the sequence number of the received picture to be stored is A + N +1, deleting the picture with the sequence number of A-N and the picture with the storage sequence number of A + N + 1;
and if the sequence number of the received picture to be stored is A-N-1, deleting the picture with the sequence number of A + N and the picture with the storage sequence number of A-N-1.
According to a third aspect of the embodiments of the present disclosure, there is provided a picture synchronization display device including:
the device comprises a determining module and a displaying module, wherein the determining module is used for determining 2N +1 pictures including pictures to be displayed from a picture queue after communication connection is established with terminal equipment, and the sequence numbers of the 2N +1 pictures are continuous and take the sequence number A of the pictures to be displayed as the center;
the first sending module is used for sending the 2N +1 pictures to the terminal equipment so that the terminal equipment stores the 2N +1 pictures in a cache queue;
the second sending module is used for sending a display instruction carrying the sequence number A to the terminal equipment so that the terminal equipment obtains and displays the picture to be displayed from the cache queue according to the sequence number A; and
and the first display module is used for displaying the picture to be displayed.
With reference to the third aspect, in a first possible implementation manner of the third aspect, the first sending module includes:
and the first sending unit is used for sending the 2N +1 pictures to the terminal equipment according to the sequence numbers of A, A +1, A-1, … and A + N, A-N.
With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the apparatus further includes:
the receiving module is used for receiving a sliding instruction;
a third sending module, configured to send, to the terminal device according to the sliding direction of the sliding instruction, a display instruction carrying a sequence number of a picture corresponding to the sliding instruction and a picture to be stored, so that the terminal device displays the picture corresponding to the sliding instruction and stores the picture to be stored in the cache queue;
and the second display module is used for displaying the picture corresponding to the sliding instruction.
With reference to the second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the third sending module includes:
a second sending unit, configured to send, if the sliding direction is left, a display instruction with a sequence number a +1 and a to-be-stored picture with a sequence number a + N +1 to the terminal device, so that the terminal device displays the picture with the sequence number a +1 in the cache queue, deletes the picture with the sequence number a-N, and stores the picture with the sequence number a + N + 1;
and the third sending unit is used for sending a display instruction with a sequence number A-1 and sending the pictures to be stored with the sequence number A-N-1 to the terminal equipment if the sliding direction is right, so that the terminal equipment displays the pictures with the sequence number A-1 in the cache queue, deletes the pictures with the sequence number A + N and stores the pictures with the sequence number A-N-1.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a picture synchronization display device including:
the first receiving module is used for receiving 2N +1 pictures sent by the mobile terminal and storing the pictures in a cache queue after establishing communication connection with the mobile terminal, wherein the serial numbers of the 2N +1 pictures are continuous and take the serial number A of the picture to be displayed as the center;
the second receiving module is used for receiving a display instruction which is sent by the mobile terminal and carries the sequence number A;
the obtaining module is used for obtaining the picture to be displayed from the cache queue according to the sequence number A;
and the first display module is used for displaying the picture to be displayed.
With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the first receiving module includes:
the first receiving unit is used for sequentially receiving 2N +1 pictures with sequence numbers of A, A +1, A-1, … and A + N, A-N sent by the mobile terminal and storing the pictures in the storage blocks with the same sequence numbers in the cache queue, wherein the sequence numbers of the storage blocks in the cache queue comprise 2N +1 sequence numbers of A-N, A-N +1, …, A, …, A + N-1 and A + N; or,
and the second receiving unit is used for sequentially receiving 2N +1 pictures with the sequence numbers of A, A +1, A-1, … … and A + N, A-N sent by the mobile terminal, storing the pictures on the storage blocks in the cache queue according to the receiving sequence, and recording the corresponding relation between the sequence numbers of the pictures and the sequence numbers of the storage blocks in an index table.
With reference to the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the first display module includes:
the first display unit is used for acquiring the picture to be displayed from the cache block corresponding to the sequence number A; or,
and the second display unit is used for determining the sequence number of the storage block corresponding to the sequence number A from the index table and acquiring the picture to be displayed from the storage block corresponding to the determined sequence number.
With reference to the fourth aspect, in a third possible implementation manner of the fourth aspect, the apparatus further includes:
the third receiving module is used for receiving a display instruction which is sent by the mobile terminal and carries the serial number of the picture corresponding to the sliding instruction, and receiving the picture to be stored;
the second display module is used for displaying the picture corresponding to the sliding instruction;
and the updating module is used for updating the pictures in the cache queue according to the sequence numbers of the pictures to be stored.
With reference to the third possible implementation manner of the fourth aspect, in a fourth possible implementation manner of the fourth aspect, the updating module includes:
the first updating unit is used for deleting the pictures with the sequence numbers of A-N and the pictures with the storage sequence numbers of A + N +1 if the sequence numbers of the received pictures to be stored are A + N + 1;
and the second updating unit is used for deleting the pictures with the sequence number of A + N and the pictures with the storage sequence number of A-N-1 if the sequence number of the received pictures to be stored is A-N-1.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a mobile terminal including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
after establishing communication connection with terminal equipment, determining 2N +1 pictures including pictures to be displayed from a picture queue, wherein the serial numbers of the 2N +1 pictures are continuous and take the serial number A of the pictures to be displayed as the center;
sending the 2N +1 pictures to the terminal equipment so that the terminal equipment stores the 2N +1 pictures in a cache queue;
sending a display instruction carrying the sequence number A to the terminal equipment so that the terminal equipment obtains and displays the picture to be displayed from the cache queue according to the sequence number A; and
and displaying the picture to be displayed.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a terminal device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
after establishing communication connection with a mobile terminal, receiving 2N +1 pictures sent by the mobile terminal and storing the pictures in a cache queue, wherein the serial numbers of the 2N +1 pictures are continuous and take the serial number A of the picture to be displayed as the center;
receiving a display instruction which is sent by the mobile terminal and carries the sequence number A;
and obtaining the picture to be displayed from the cache queue according to the sequence number A and displaying the picture.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after the mobile terminal establishes communication connection with the terminal equipment, determining 2N +1 pictures including the pictures to be displayed from the picture queue, wherein the serial numbers of the 2N +1 pictures are continuous and take the serial number A of the pictures to be displayed as the center; sending the 2N +1 pictures to the terminal equipment so that the terminal equipment stores the 2N +1 pictures in a cache queue; sending a display instruction carrying the sequence number A to the terminal equipment so that the terminal equipment can obtain and display the picture to be displayed from the cache queue according to the sequence number A; and displaying the picture to be displayed. Because the display instruction sent by the mobile terminal to the terminal equipment only carries the sequence number of the picture to be displayed, the data volume of the display instruction is very small, the transmission time to the terminal equipment is very short, and 2N +1 pictures including the picture to be displayed are pre-stored in the cache queue of the terminal equipment, so that the terminal equipment can immediately acquire and display the picture to be displayed after receiving the display instruction of the mobile terminal, even if a user quickly browses the picture on the mobile terminal, the terminal equipment can also quickly display the picture on the mobile terminal, the time delay for synchronously displaying the picture is very small, 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 disclosure.
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 flowchart illustrating a first picture synchronization display method for use in a mobile terminal according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a second picture synchronization display method for use in a mobile terminal according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a first method for synchronous display of pictures in a terminal device according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating a second picture synchronization display method for use in a terminal device according to an exemplary embodiment.
Fig. 5 is a schematic diagram of a picture queue shown in accordance with an example embodiment.
FIG. 6 is a schematic diagram illustrating a buffer queue according to an example embodiment.
Fig. 7 is a block diagram illustrating a picture synchronization display apparatus corresponding to fig. 1 according to an exemplary embodiment.
Fig. 8 is a block diagram illustrating a picture synchronization display apparatus corresponding to fig. 2 according to an exemplary embodiment.
Fig. 9 is a block diagram illustrating a picture synchronization display apparatus corresponding to fig. 3 according to an exemplary embodiment.
Fig. 10 is a block diagram illustrating a picture synchronization display apparatus corresponding to fig. 4 according to an exemplary embodiment.
Fig. 11 is a block diagram illustrating a mobile terminal or terminal device according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a first picture synchronization display method according to an exemplary embodiment, where the picture synchronization display method is used in a mobile terminal, as shown in fig. 1, and includes the following steps.
In step S11, after establishing communication connection with the terminal device, 2N +1 pictures including a picture to be displayed are determined from the picture queue.
To achieve synchronous display of pictures between a mobile terminal and a terminal device, the mobile terminal first establishes a communication connection with the terminal device through a Wireless technology, where the Wireless technology may be bluetooth, WiFi (Wireless Fidelity ), and the like, and the communication connection between the mobile terminal and the terminal device may use a Protocol such as TCP (Transmission Control Protocol).
The mobile terminal can store a plurality of pictures, and the pictures can be pictures shot by a user using the mobile terminal or pictures downloaded from the internet by the user using the mobile terminal. And after the mobile terminal acquires the pictures, the pictures are stored in the picture queue and are displayed to the user according to the needs of the user. When a user wants to browse a certain picture in detail, the picture can be selected from the picture queue, and the picture is the picture to be displayed. The pictures in the picture queue can be cached in order or cached out of order. After the mobile terminal obtains the pictures to be displayed, the mobile terminal determines that the picture queue comprises 2N +1 pictures of the pictures to be displayed, the serial numbers of the 2N +1 pictures are continuous, and the serial number A of the pictures to be displayed is taken as the center.
The value of N may be set according to actual needs, when the storage space of the terminal device is larger, N may be set larger, for example, to 10, 20, 30, 40, etc., and when the storage space of the terminal device is smaller, N may be set smaller, for example, to 3, 4, 5, 6, 7, 8, etc. The sequence number of the picture is used to identify the position of the picture in the picture queue.
Optionally, step S11 may also be: and after establishing communication connection with the terminal equipment, determining 2N pictures including the picture to be displayed from the picture queue.
In step S12, 2N +1 pictures are sent to the terminal device, so that the terminal device stores 2N +1 pictures in the buffer queue.
The 2N +1 pictures can be sent to the terminal device according to the sequence numbers A, A +1, a-1, …, and a + N, A-N, which is only an example of a way to send pictures according to the sequence number, and of course, other ways to send pictures according to other sequence numbers may be used, and are not described one by one.
In step S13, a display instruction with sequence number a is sent to the terminal device, so that the terminal device obtains the picture to be displayed from the buffer queue according to sequence number a and displays the picture.
And after the mobile terminal acquires the picture to be displayed selected by the user, sending a display instruction to the terminal equipment, and indicating the terminal equipment to synchronously display the picture. The mobile terminal can carry the sequence number A of the picture to be displayed in the display instruction, and the terminal equipment can acquire the picture to be displayed from the cache queue according to the sequence number A to display the picture.
In step S14, a picture to be displayed is displayed.
The mobile terminal displays the picture to be displayed, so that the mobile terminal and the terminal equipment synchronously display the picture. S13 and S14 have no strict sequence, and S13 may be executed first and then S14, S14 may be executed first and then S13 may be executed, or S13 and S14 may be executed at the same time.
In the scheme, only the sequence number of the picture to be displayed is carried in the display instruction sent to the terminal equipment by the mobile terminal, the data volume of the display instruction is very small, the transmission time to the terminal equipment is very short, and 2N +1 pictures including the picture to be displayed are stored in the cache queue of the terminal equipment in advance, so that the terminal equipment can immediately acquire and display the picture to be displayed after receiving the display instruction of the mobile terminal, even if a user rapidly browses the picture on the mobile terminal, the terminal equipment can also rapidly display the picture on the mobile terminal, the time delay for synchronously displaying the picture is very small, and the user experience is improved.
Fig. 2 is a flowchart illustrating a second method for displaying pictures synchronously according to an exemplary embodiment, which further includes the following steps based on the method flow illustrated in fig. 1.
In step S15, a slide instruction is received.
In step S16, a display instruction carrying the serial number of the picture corresponding to the slide instruction and the picture to be stored are sent to the terminal device according to the slide direction of the slide instruction, so that the terminal device displays the picture corresponding to the slide instruction and stores the picture to be stored in the cache queue.
In step S17, a picture corresponding to the slide instruction is displayed.
After the mobile terminal displays the picture to be displayed, the user may need to browse other pictures, the user may perform a sliding operation on a screen of the mobile terminal, after receiving the sliding instruction, the mobile terminal sends a display instruction carrying a sequence number of the picture corresponding to the sliding instruction to the terminal device according to a sliding direction of the sliding instruction and sends the picture to be stored, so that the terminal device displays the picture corresponding to the sliding instruction and stores the picture to be stored in the cache queue, and the terminal device can acquire the picture to be displayed from the cache queue no matter whether the user slides left or right on the screen of the mobile terminal, thereby realizing synchronous display of the picture with the mobile terminal.
In the above S16, the method includes sending, to the terminal device, the display instruction carrying the sequence number of the picture corresponding to the sliding instruction and the picture to be stored according to the sliding direction of the sliding instruction, so that the terminal device displays the picture corresponding to the sliding instruction and stores the picture to be stored in the cache queue, and includes the following two ways:
in the first mode, if the sliding direction is left, a display instruction with a sequence number a +1 and a to-be-stored picture with a sequence number a + N +1 are sent to the terminal device, so that the terminal device displays the picture with the sequence number a +1 in the cache queue, deletes the picture with the sequence number a-N, and stores the picture with the sequence number a + N + 1.
When the sliding direction of the sliding instruction is left, the mobile terminal and the terminal device need to display the picture with the sequence number of A +1, and the terminal device needs to delete the picture with the minimum sequence number in the cache queue, namely the picture with the sequence number of A-N, and then store the picture with the sequence number of A + N +1, so that the mobile terminal can carry the sequence number of A +1 in the display instruction, and then send the picture with the sequence number of A + N + 1.
In the second mode, if the sliding direction is right, a display instruction with the sequence number A-1 and a picture to be stored with the sequence number A-N-1 are sent to the terminal equipment, so that the terminal equipment displays the picture with the sequence number A-1 in the cache queue, deletes the picture with the sequence number A + N and stores the picture with the sequence number A-N-1.
When the sliding direction of the sliding instruction is right, the mobile terminal and the terminal equipment need to display the pictures with the sequence number of A-1, and the terminal equipment needs to delete the picture with the maximum sequence number in the cache queue, namely the picture with the sequence number of A + N, and then store the picture with the sequence number of A-N-1, so that the mobile terminal can carry the sequence number of A-1 in the display instruction and then send the picture with the sequence number of A-N-1.
Fig. 3 is a flowchart illustrating a first picture synchronization display method according to an exemplary embodiment, where the picture synchronization display method is used in a terminal device, as shown in fig. 3, and includes the following steps.
In step S31, after establishing communication connection with the mobile terminal, 2N +1 pictures sent by the mobile terminal are received and stored in the buffer queue, and the sequence numbers of the 2N +1 pictures are consecutive and centered on the sequence number a of the picture to be displayed.
In step S32, a display instruction carrying the serial number a sent by the mobile terminal is received.
In step S33, the picture to be displayed is obtained from the buffer queue according to the sequence number a and displayed.
The receiving and storing of 2N +1 pictures sent by the mobile terminal in the buffer queue in S31 includes the following two ways:
in the first mode, 2N +1 pictures with sequence numbers of A, A +1, A-1, … and A + N, A-N sent by the mobile terminal are sequentially received and stored in storage blocks with the same sequence number in a cache queue, wherein the sequence numbers of the storage blocks in the cache queue comprise 2N +1 sequence numbers of A-N, A-N +1, …, A, …, A + N-1 and A + N.
In the second mode, 2N +1 pictures with the sequence numbers of A, A +1, A-1, … … and A + N, A-N sent by the mobile terminal are sequentially received and stored in the storage blocks in the cache queue according to the receiving sequence, and the corresponding relation between the sequence numbers of the pictures and the sequence numbers of the storage blocks is recorded in the index table.
Correspondingly, the obtaining of the picture to be displayed from the buffer queue according to the sequence number a in S33 includes the following two ways:
in the first mode, a picture to be displayed is obtained from a cache block corresponding to a sequence number a.
In the second mode, the sequence number of the storage block corresponding to the sequence number a is determined from the index table, and the picture to be displayed is obtained from the storage block corresponding to the determined sequence number.
Fig. 4 is a flowchart illustrating a second method for displaying pictures synchronously according to an exemplary embodiment, which further includes the following steps based on the method flow illustrated in fig. 3.
In step S34, a display instruction carrying a sequence number of a picture corresponding to the slide instruction sent by the mobile terminal is received, and the picture to be stored is received.
In step S35, a picture corresponding to the sliding instruction is displayed, and the pictures in the buffer queue are updated according to the sequence number of the picture to be stored.
The step S35 of updating the picture in the buffer queue according to the sequence number of the picture to be stored includes:
if the sequence number of the received picture to be stored is A + N +1, deleting the picture with the sequence number of A-N and the picture with the storage sequence number of A + N + 1;
and if the sequence number of the received picture to be stored is A-N-1, deleting the picture with the sequence number of A + N and the picture with the storage sequence number of A-N-1.
Because the number of the pictures which can be cached in the cache queue is constant and the number of the cached pictures is always at the maximum value, before the pictures to be stored are cached in the cache queue, the pictures need to be deleted firstly and then stored, so that the terminal equipment can be ensured to rapidly acquire the pictures which need to be displayed, and the time delay of synchronously displaying the pictures with the mobile terminal is reduced.
The method for displaying pictures synchronously is described as an embodiment.
1. And the mobile terminal and the terminal equipment establish TCP connection through WiFi.
2. After obtaining the picture to be displayed selected from the picture queue by the user, the mobile terminal determines 2N +1 pictures including the picture to be displayed from the picture queue, sends the 2N +1 pictures to the terminal equipment, sends a display instruction with a sequence number A to the terminal equipment, and displays the picture to be displayed.
The pictures in the picture queue may be arranged in order or arranged out of order, and the picture queue shown in fig. 5 is arranged in order. The mobile terminal may send 2N +1 pictures to the terminal device one by one or together in the order of sequence numbers A, A +1, a-1, …, a + N, A-N.
3. The method comprises the steps that the terminal equipment receives 2N +1 pictures sent by the mobile terminal and stores the pictures in a cache queue, receives a display instruction which is sent by the mobile terminal and carries a sequence number A, and obtains and displays the pictures to be displayed from the cache queue according to the sequence number A, so that the pictures are synchronously displayed by the mobile terminal and the terminal equipment.
The terminal device may store the received pictures in the storage blocks with the same sequence number in the cache queue, or store the pictures in the storage blocks in the cache queue according to the receiving sequence, record the correspondence between the sequence number of the picture and the sequence number of the storage block in the index table, and store the pictures in the storage blocks with the same sequence number as shown in fig. 6.
4. And after receiving the sliding instruction, the mobile terminal sends a display instruction carrying the serial number of the picture corresponding to the sliding instruction and a picture to be stored to the terminal equipment according to the sliding direction of the sliding instruction, and displays the picture corresponding to the sliding instruction.
5. The terminal equipment receives a display instruction which is sent by the mobile terminal and carries the serial number of the picture corresponding to the sliding instruction, receives the picture to be stored, displays the picture corresponding to the sliding instruction, and updates the picture in the cache queue according to the serial number of the picture to be stored.
When the user slides to the right on the mobile terminal, the terminal equipment deletes the rightmost picture in the cache queue and caches the picture at the leftmost side of the cache queue; and if the user slides leftwards on the mobile terminal, the terminal equipment deletes the leftmost picture in the cache queue, and caches the picture at the rightmost side of the cache queue.
Fig. 7 is a block diagram illustrating a picture synchronization display apparatus corresponding to the picture synchronization display method shown in fig. 1 according to an exemplary embodiment. Referring to fig. 7, the apparatus includes a determination module 71, a first transmission module 72, a second transmission module 73, and a first display module 74.
The determining module 71 is configured to determine 2N +1 pictures including the picture to be displayed from the picture queue after establishing a communication connection with the terminal device, where the serial numbers of the 2N +1 pictures are consecutive and centered on the serial number a of the picture to be displayed.
The first sending module 72 is configured to send 2N +1 pictures to the terminal device, so that the terminal device stores the 2N +1 pictures in the buffer queue.
The second sending module 73 sends a display instruction with the sequence number a to the terminal device, so that the terminal device obtains the picture to be displayed from the buffer queue according to the sequence number a and displays the picture.
The first display module 74 is configured to display a picture to be displayed.
The first transmitting module 72 includes: and the first sending unit is used for sending the 2N +1 pictures to the terminal equipment according to the sequence numbers of A, A +1, A-1, … and A + N, A-N.
Fig. 8 is a block diagram illustrating a picture synchronization display apparatus corresponding to the picture synchronization display method shown in fig. 2 according to an exemplary embodiment. Referring to fig. 8, the picture synchronization display apparatus shown in fig. 7 further includes a receiving module 75, a third transmitting module 76 and a second display module 77.
The receiving module 75 is configured to receive a slide instruction.
The third sending module 76 is configured to send a display instruction carrying a sequence number of a picture corresponding to the sliding instruction and a picture to be stored to the terminal device according to the sliding direction of the sliding instruction, so that the terminal device displays the picture corresponding to the sliding instruction and stores the picture to be stored in the cache queue.
The second display module 77 is configured to display a picture corresponding to the slide instruction.
The third sending module 76 includes:
and the second sending unit is used for sending a display instruction with a sequence number A +1 and sending the pictures to be stored with the sequence number A + N +1 to the terminal equipment if the sliding direction is left, so that the terminal equipment displays the pictures with the sequence number A +1 in the cache queue, the pictures with the deletion sequence number A-N and the pictures with the storage sequence number A + N + 1. Or,
and the third sending unit is used for sending a display instruction with the sequence number A-1 and sending the pictures to be stored with the sequence number A-N-1 to the terminal equipment if the sliding direction is right, so that the terminal equipment displays the pictures with the sequence number A-1 in the cache queue, deletes the pictures with the sequence number A + N and stores the pictures with the sequence number A-N-1.
Fig. 9 is a block diagram illustrating a picture synchronization display apparatus corresponding to the picture synchronization display method of fig. 3 according to an exemplary embodiment. Referring to fig. 9, the apparatus includes a first receiving module 91, a second receiving module 92, an obtaining module 93, and a first display module 94.
The first receiving module 91 is configured to receive 2N +1 pictures sent by the mobile terminal and store the pictures in the buffer queue after establishing a communication connection with the mobile terminal, wherein the serial numbers of the 2N +1 pictures are consecutive and the serial number a of the picture to be displayed is taken as a center.
The second receiving module 92 is configured to receive a display instruction carrying the serial number a sent by the mobile terminal.
The obtaining module 93 is configured to obtain a picture to be displayed from the buffer queue according to the sequence number a.
The first display module 94 is configured to display a picture to be displayed.
The first receiving module 91 includes:
the first receiving unit is used for sequentially receiving 2N +1 pictures with sequence numbers of A, A +1, A-1, … and A + N, A-N sent by the mobile terminal and storing the pictures in storage blocks with the same sequence numbers in a cache queue, wherein the sequence numbers of the storage blocks in the cache queue comprise 2N +1 sequence numbers including A-N, A-N +1, …, A, …, A + N-1 and A + N. Or,
and the second receiving unit is used for sequentially receiving 2N +1 pictures with the sequence numbers of A, A +1, A-1, … … and A + N, A-N sent by the mobile terminal, storing the pictures on the storage blocks in the cache queue according to the receiving sequence, and recording the corresponding relation between the sequence numbers of the pictures and the sequence numbers of the storage blocks in the index table.
The first display module 94 includes:
and the first display unit is used for acquiring the picture to be displayed from the cache block corresponding to the sequence number A. Or,
and the second display unit is used for determining the sequence number of the storage block corresponding to the sequence number A from the index table and acquiring the picture to be displayed from the storage block corresponding to the determined sequence number.
Fig. 10 is a block diagram illustrating a picture synchronization display apparatus corresponding to the picture synchronization display method shown in fig. 4 according to an exemplary embodiment. Referring to fig. 10, the synchronous picture display device shown in fig. 9 further includes a third receiving module 95, a second display module 96 and an updating module 97.
The third receiving module 95 is configured to receive a display instruction sent by the mobile terminal and carrying a sequence number of a picture corresponding to the sliding instruction, and receive a picture to be stored.
The second display module 96 is configured to display a picture corresponding to the slide instruction.
The updating module 97 is configured to update the pictures in the buffer queue according to the sequence numbers of the pictures to be stored.
The update module 97 includes:
and the first updating unit is used for deleting the pictures with the sequence numbers of A-N and the pictures with the storage sequence numbers of A + N +1 if the sequence number of the received pictures to be stored is A + N + 1. Or,
and the second updating unit is used for deleting the pictures with the sequence number of A + N and the pictures with the storage sequence number of A-N-1 if the sequence number of the received pictures to be stored is A-N-1.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 11 is a block diagram illustrating an apparatus 800 for synchronous display of pictures according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 11, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a picture synchronization display method, the method comprising:
after establishing communication connection with terminal equipment, determining 2N +1 pictures including pictures to be displayed from a picture queue, wherein the serial numbers of the 2N +1 pictures are continuous and take the serial number A of the pictures to be displayed as the center;
sending the 2N +1 pictures to the terminal equipment so that the terminal equipment stores the 2N +1 pictures in a cache queue;
sending a display instruction carrying the sequence number A to the terminal equipment so that the terminal equipment obtains and displays the picture to be displayed from the cache queue according to the sequence number A; and
and displaying the picture to be displayed.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of a terminal device, enable the terminal device to perform a picture synchronization display method, the method comprising:
after establishing communication connection with a mobile terminal, receiving 2N +1 pictures sent by the mobile terminal and storing the pictures in a cache queue, wherein the serial numbers of the 2N +1 pictures are continuous and take the serial number A of the picture to be displayed as the center;
receiving a display instruction which is sent by the mobile terminal and carries the sequence number A;
and obtaining the picture to be displayed from the cache queue according to the sequence number A and displaying the picture.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (12)
1. A picture synchronous display method is characterized by comprising the following steps:
after establishing communication connection with terminal equipment, determining 2N +1 pictures including pictures to be displayed from a picture queue, wherein the serial numbers of the 2N +1 pictures are continuous and take the serial number A of the pictures to be displayed as the center;
sending the 2N +1 pictures to the terminal equipment so that the terminal equipment stores the 2N +1 pictures in a cache queue;
sending a display instruction carrying the sequence number A to the terminal equipment so that the terminal equipment obtains and displays the picture to be displayed from the cache queue according to the sequence number A; and
displaying the picture to be displayed;
receiving a sliding instruction;
if the sliding direction is left, sending a display instruction with a sequence number A +1 and sending a picture to be stored with a sequence number A + N +1 to the terminal equipment, so that the terminal equipment displays the picture with the sequence number A +1 in the cache queue, deletes the picture with the sequence number A-N and stores the picture with the sequence number A + N + 1;
if the sliding direction is right, sending a display instruction with a sequence number A-1 and sending a picture to be stored with a sequence number A-N-1 to the terminal equipment, so that the terminal equipment displays the picture with the sequence number A-1 in the cache queue, deletes the picture with the sequence number A + N and stores the picture with the sequence number A-N-1;
and displaying the picture corresponding to the sliding instruction.
2. The method of claim 1, wherein the step of sending the 2N +1 pictures to the terminal device comprises:
and sending the 2N +1 pictures to the terminal equipment according to the sequence numbers of A, A +1, A-1, … and A + N, A-N.
3. A picture synchronous display method is characterized by comprising the following steps:
after establishing communication connection with a mobile terminal, receiving 2N +1 pictures sent by the mobile terminal and storing the pictures in a cache queue, wherein the serial numbers of the 2N +1 pictures are continuous and take the serial number A of the picture to be displayed as the center;
receiving a display instruction which is sent by the mobile terminal and carries the sequence number A;
acquiring and displaying the picture to be displayed from the cache queue according to the sequence number A;
receiving a display instruction which is sent by the mobile terminal and carries the serial number of the picture corresponding to the sliding instruction, and receiving the picture to be stored;
displaying a picture corresponding to the sliding instruction;
if the sequence number of the received picture to be stored is A + N +1, deleting the picture with the sequence number of A-N and the picture with the storage sequence number of A + N + 1;
and if the sequence number of the received picture to be stored is A-N-1, deleting the picture with the sequence number of A + N and the picture with the storage sequence number of A-N-1.
4. The method of claim 3, wherein receiving and storing 2N +1 pictures sent by the mobile terminal in a buffer queue comprises:
sequentially receiving 2N +1 pictures with sequence numbers of A, A +1, A-1, … and A + N, A-N sent by the mobile terminal and storing the pictures in storage blocks with the same sequence number in the cache queue, wherein the sequence numbers of the storage blocks in the cache queue comprise 2N +1 sequence numbers of A-N, A-N +1, …, A, …, A + N-1 and A + N; or,
sequentially receiving 2N +1 pictures with the sequence numbers of A, A +1, A-1, … … and A + N, A-N sent by the mobile terminal, storing the pictures on the storage blocks in the cache queue according to the receiving sequence, and recording the corresponding relation between the sequence numbers of the pictures and the sequence numbers of the storage blocks in an index table.
5. The method of claim 4, wherein obtaining the picture to be displayed from the buffer queue according to the sequence number A comprises:
acquiring the picture to be displayed from the cache block corresponding to the sequence number A; or,
and determining the sequence number of the storage block corresponding to the sequence number A from the index table, and acquiring the picture to be displayed from the storage block corresponding to the determined sequence number.
6. A picture synchronization display device, comprising:
the device comprises a determining module and a displaying module, wherein the determining module is used for determining 2N +1 pictures including pictures to be displayed from a picture queue after communication connection is established with terminal equipment, and the sequence numbers of the 2N +1 pictures are continuous and take the sequence number A of the pictures to be displayed as the center;
the first sending module is used for sending the 2N +1 pictures to the terminal equipment so that the terminal equipment stores the 2N +1 pictures in a cache queue;
the second sending module is used for sending a display instruction carrying the sequence number A to the terminal equipment so that the terminal equipment obtains and displays the picture to be displayed from the cache queue according to the sequence number A; and
the first display module is used for displaying the picture to be displayed;
the receiving module is used for receiving a sliding instruction;
a third sending module, configured to send, to the terminal device according to the sliding direction of the sliding instruction, a display instruction carrying a sequence number of a picture corresponding to the sliding instruction and a picture to be stored, so that the terminal device displays the picture corresponding to the sliding instruction and stores the picture to be stored in the cache queue;
the second display module is used for displaying the picture corresponding to the sliding instruction;
the third sending module includes:
a second sending unit, configured to send, if the sliding direction is left, a display instruction with a sequence number a +1 and a to-be-stored picture with a sequence number a + N +1 to the terminal device, so that the terminal device displays the picture with the sequence number a +1 in the cache queue, deletes the picture with the sequence number a-N, and stores the picture with the sequence number a + N + 1;
and the third sending unit is used for sending a display instruction with a sequence number A-1 and sending the pictures to be stored with the sequence number A-N-1 to the terminal equipment if the sliding direction is right, so that the terminal equipment displays the pictures with the sequence number A-1 in the cache queue, deletes the pictures with the sequence number A + N and stores the pictures with the sequence number A-N-1.
7. The apparatus of claim 6, wherein the first sending module comprises:
and the first sending unit is used for sending the 2N +1 pictures to the terminal equipment according to the sequence numbers of A, A +1, A-1, … and A + N, A-N.
8. A picture synchronization display device, comprising:
the first receiving module is used for receiving 2N +1 pictures sent by the mobile terminal and storing the pictures in a cache queue after establishing communication connection with the mobile terminal, wherein the serial numbers of the 2N +1 pictures are continuous and take the serial number A of the picture to be displayed as the center;
the second receiving module is used for receiving a display instruction which is sent by the mobile terminal and carries the sequence number A;
the obtaining module is used for obtaining the picture to be displayed from the cache queue according to the sequence number A;
the first display module is used for displaying the picture to be displayed;
the third receiving module is used for receiving a display instruction which is sent by the mobile terminal and carries the serial number of the picture corresponding to the sliding instruction, and receiving the picture to be stored;
the second display module is used for displaying the picture corresponding to the sliding instruction;
the updating module is used for updating the pictures in the cache queue according to the serial numbers of the pictures to be stored;
the update module includes:
the first updating unit is used for deleting the pictures with the sequence numbers of A-N and the pictures with the storage sequence numbers of A + N +1 if the sequence numbers of the received pictures to be stored are A + N + 1;
and the second updating unit is used for deleting the pictures with the sequence number of A + N and the pictures with the storage sequence number of A-N-1 if the sequence number of the received pictures to be stored is A-N-1.
9. The apparatus of claim 8, wherein the first receiving module comprises:
the first receiving unit is used for sequentially receiving 2N +1 pictures with sequence numbers of A, A +1, A-1, … and A + N, A-N sent by the mobile terminal and storing the pictures in the storage blocks with the same sequence numbers in the cache queue, wherein the sequence numbers of the storage blocks in the cache queue comprise 2N +1 sequence numbers of A-N, A-N +1, …, A, …, A + N-1 and A + N; or,
and the second receiving unit is used for sequentially receiving 2N +1 pictures with the sequence numbers of A, A +1, A-1, … … and A + N, A-N sent by the mobile terminal, storing the pictures on the storage blocks in the cache queue according to the receiving sequence, and recording the corresponding relation between the sequence numbers of the pictures and the sequence numbers of the storage blocks in an index table.
10. The apparatus of claim 9, wherein the first display module comprises:
the first display unit is used for acquiring the picture to be displayed from the cache block corresponding to the sequence number A; or,
and the second display unit is used for determining the sequence number of the storage block corresponding to the sequence number A from the index table and acquiring the picture to be displayed from the storage block corresponding to the determined sequence number.
11. A mobile terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
after establishing communication connection with terminal equipment, determining 2N +1 pictures including pictures to be displayed from a picture queue, wherein the serial numbers of the 2N +1 pictures are continuous and take the serial number A of the pictures to be displayed as the center;
sending the 2N +1 pictures to the terminal equipment so that the terminal equipment stores the 2N +1 pictures in a cache queue;
sending a display instruction carrying the sequence number A to the terminal equipment so that the terminal equipment obtains and displays the picture to be displayed from the cache queue according to the sequence number A; and
displaying the picture to be displayed;
receiving a sliding instruction;
if the sliding direction is left, sending a display instruction with a sequence number A +1 and sending a picture to be stored with a sequence number A + N +1 to the terminal equipment, so that the terminal equipment displays the picture with the sequence number A +1 in the cache queue, deletes the picture with the sequence number A-N and stores the picture with the sequence number A + N + 1;
if the sliding direction is right, sending a display instruction with a sequence number A-1 and sending a picture to be stored with a sequence number A-N-1 to the terminal equipment, so that the terminal equipment displays the picture with the sequence number A-1 in the cache queue, deletes the picture with the sequence number A + N and stores the picture with the sequence number A-N-1;
and displaying the picture corresponding to the sliding instruction.
12. A terminal device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
after establishing communication connection with a mobile terminal, receiving 2N +1 pictures sent by the mobile terminal and storing the pictures in a cache queue, wherein the serial numbers of the 2N +1 pictures are continuous and take the serial number A of the picture to be displayed as the center;
receiving a display instruction which is sent by the mobile terminal and carries the sequence number A;
acquiring and displaying the picture to be displayed from the cache queue according to the sequence number A;
receiving a display instruction which is sent by the mobile terminal and carries the serial number of the picture corresponding to the sliding instruction, and receiving the picture to be stored;
displaying a picture corresponding to the sliding instruction;
if the sequence number of the received picture to be stored is A + N +1, deleting the picture with the sequence number of A-N and the picture with the storage sequence number of A + N + 1;
and if the sequence number of the received picture to be stored is A-N-1, deleting the picture with the sequence number of A + N and the picture with the storage sequence number of A-N-1.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410283075.5A CN104111813B (en) | 2014-06-23 | 2014-06-23 | Method and device for picture synchronous display, mobile terminal and terminal device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410283075.5A CN104111813B (en) | 2014-06-23 | 2014-06-23 | Method and device for picture synchronous display, mobile terminal and terminal device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104111813A CN104111813A (en) | 2014-10-22 |
| CN104111813B true CN104111813B (en) | 2017-02-08 |
Family
ID=51708616
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410283075.5A Active CN104111813B (en) | 2014-06-23 | 2014-06-23 | Method and device for picture synchronous display, mobile terminal and terminal device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104111813B (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106126062A (en) * | 2016-06-21 | 2016-11-16 | 珠海市魅族科技有限公司 | A kind of method and device of image switching |
| CN107660001A (en) * | 2017-10-20 | 2018-02-02 | 徐州市凯信电子设备有限公司 | Ultrasonic image based on WiFi wirelessly passes screen system and screen transmission method in real time |
| CN114579067A (en) * | 2020-11-30 | 2022-06-03 | 华为技术有限公司 | Data prefetching method, electronic device and system |
| CN113791716A (en) * | 2020-12-02 | 2021-12-14 | 北京沃东天骏信息技术有限公司 | Image display method, device, electronic device, and computer-readable medium |
| CN112866789B (en) * | 2021-01-08 | 2023-05-05 | 广东九联科技股份有限公司 | Smooth display method of video first frame thumbnail and storage medium |
| CN114331618B (en) * | 2021-12-29 | 2025-07-25 | 广州品唯软件有限公司 | Picture display method, device and equipment |
| CN114489907B (en) * | 2022-01-29 | 2024-03-12 | 国泰新点软件股份有限公司 | System operation guiding method, device and storage medium |
| CN115378898B (en) * | 2022-10-26 | 2023-01-06 | 中航信移动科技有限公司 | Information display method, storage medium and electronic device of an online customer service system |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5978689A (en) * | 1997-07-09 | 1999-11-02 | Tuoriniemi; Veijo M. | Personal portable communication and audio system |
| CN101763874A (en) * | 2009-12-02 | 2010-06-30 | 蓝劲松 | Method and system for synchronously playing acoustic images by mobile communication equipment and external equipment |
| CN101794567A (en) * | 2010-02-10 | 2010-08-04 | 中兴通讯股份有限公司 | Method and terminal for loading pictures |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101217431B (en) * | 2007-12-29 | 2012-06-27 | 腾讯科技(深圳)有限公司 | A method and system of photos in synchronous mobile terminal network TV and network album |
-
2014
- 2014-06-23 CN CN201410283075.5A patent/CN104111813B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5978689A (en) * | 1997-07-09 | 1999-11-02 | Tuoriniemi; Veijo M. | Personal portable communication and audio system |
| CN101763874A (en) * | 2009-12-02 | 2010-06-30 | 蓝劲松 | Method and system for synchronously playing acoustic images by mobile communication equipment and external equipment |
| CN101794567A (en) * | 2010-02-10 | 2010-08-04 | 中兴通讯股份有限公司 | Method and terminal for loading pictures |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104111813A (en) | 2014-10-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104111813B (en) | Method and device for picture synchronous display, mobile terminal and terminal device | |
| US9667774B2 (en) | Methods and devices for sending virtual information card | |
| CN108093315B (en) | Video generation method and device | |
| EP2978234A1 (en) | Method and apparatus for sharing video information | |
| CN107820131B (en) | Comment information sharing method and device | |
| CN105204846A (en) | Method for displaying video picture in multi-user video, device and terminal equipment | |
| EP3136699A1 (en) | Method and device for connecting external equipment | |
| CN104834665A (en) | Target picture acquiring method and device | |
| CN109451341B (en) | Video playing method, video playing device, electronic equipment and storage medium | |
| CN103986821A (en) | Method, equipment and system for carrying out parameter adjustment | |
| CN108174269B (en) | Visual audio playing method and device | |
| CN105094539B (en) | Reference information display methods and device | |
| CN108156506A (en) | The progress adjustment method and device of barrage information | |
| CN104850643B (en) | Image comparison method and device | |
| CN111049732B (en) | Push message display method and device, electronic equipment and medium | |
| CN107241432B (en) | Message receiving method, apparatus, electronic device and computer storable medium | |
| US9832342B2 (en) | Method and device for transmitting image | |
| CN109245992B (en) | Request processing method and device, electronic equipment and storage medium | |
| CN109981729B (en) | File processing method and device, electronic equipment and computer readable storage medium | |
| CN109714247B (en) | Group chat information processing method and device, electronic equipment and storage medium | |
| CN110971952B (en) | Bullet screen display method and device | |
| CN113885986A (en) | Data transmission method and device and electronic equipment | |
| CN110493298B (en) | Information synchronization method and device | |
| CN106453872A (en) | Display control method and device | |
| CN106656745B (en) | Information transmission method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant |