WO2017054616A1 - 一种视频图片显示方法、装置及一种图片显示方法 - Google Patents
一种视频图片显示方法、装置及一种图片显示方法 Download PDFInfo
- Publication number
- WO2017054616A1 WO2017054616A1 PCT/CN2016/097940 CN2016097940W WO2017054616A1 WO 2017054616 A1 WO2017054616 A1 WO 2017054616A1 CN 2016097940 W CN2016097940 W CN 2016097940W WO 2017054616 A1 WO2017054616 A1 WO 2017054616A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- picture
- video
- file
- data
- picture file
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 76
- 238000004891 communication Methods 0.000 description 26
- 230000006870 function Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 14
- 238000005516 engineering process Methods 0.000 description 9
- 238000010295 mobile communication Methods 0.000 description 7
- 238000007726 management method Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 238000005192 partition Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000009432 framing Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002194 synthesizing effect Effects 0.000 description 2
- 101150012579 ADSL gene Proteins 0.000 description 1
- 102100020775 Adenylosuccinate lyase Human genes 0.000 description 1
- 108700040193 Adenylosuccinate lyases Proteins 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000003909 pattern recognition Methods 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 239000000725 suspension Substances 0.000 description 1
- 239000010409 thin film Substances 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4126—The peripheral being portable, e.g. PDAs or mobile phones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/435—Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
Definitions
- This application relates to, but is not limited to, the field of mobile terminal technology.
- a video picture is a new type of multimedia file that is saved as a picture, but the corresponding video data is associated with the picture information. For example, during the photographing process, the video data of the photographed scene in a period of time before and after the photographing moment is acquired, and the acquired video data is associated with the photographed photo and a photo file is generated as a video image.
- video recording or photographing can only be taken after the photographing, recording, and recording buttons are pressed. When capturing motion pictures, it is easy to miss some wonderful scenes.
- the present invention provides a video picture display method and device, and a picture display method, which solves the problem that the related art loses the wonderful moment of capturing the picture in the photographing scene due to the limitation of the photographing mode when photographing.
- a video picture display method includes:
- the picture file is a video picture file
- the video data is paused.
- the determining whether the picture file is a video picture file includes:
- the method further includes:
- the picture file When it is determined that the picture file is a normal picture file, parsing the file format information of the picture file, and acquiring a starting address of the picture data;
- the picture data is decoded according to the start address of the picture data.
- the video data is decoded and played, and the steps are as follows:
- the video data is decoded from the start address of the video data, and the decoded video data is played in real time.
- the playing of the video data is suspended, including:
- the video data is paused to be played back, and the current picture data is restored.
- the first preset trigger signal includes a trigger signal generated when a long press or a screen is clicked.
- the second preset trigger signal includes: a trigger signal generated when the gesture leaves the screen, or a trigger signal generated when the video data ends playing.
- a video picture display device comprising:
- the obtaining module is configured to: obtain a picture file, and determine whether the picture file is a video picture file;
- a parsing module configured to: parse file format information of the image file and obtain video data pre-associated with the image file;
- the display module is configured to: display image data of the picture file and play video data pre-associated with the picture file.
- the obtaining module includes:
- Obtaining a unit configured to: obtain file format information of the picture;
- the determining unit is configured to: determine, according to the file format information of the picture file acquired by the acquiring unit, whether the picture file is a video picture file.
- the acquiring unit is further configured to: obtain a starting address of the picture data according to the file format information of the picture file;
- the parsing module is further configured to: decode the picture data according to a start address of the picture data acquired by the acquiring unit.
- the display module includes:
- the detecting unit is configured to: when detecting that the picture file receives the preset trigger signal, control play and pause of the video data pre-associated in the picture file.
- the display module includes:
- a picture display unit configured to: display the picture data after acquiring the picture data of the picture file;
- the video playing unit is configured to: when the first preset trigger signal is received, play the video data pre-associated with the picture file.
- the video playing unit is further configured to: during the playing of the video data, when the second preset trigger signal is received, pause playing the video data;
- the picture display unit is further configured to: resume displaying the current picture data.
- the first preset trigger signal includes a trigger signal generated when a long press or a screen is clicked.
- a video picture display method includes:
- the captured picture is associated with the video data and the audio data to generate a video file.
- a video picture display device comprising:
- the video capture module is configured to: obtain video data;
- a video encoding module configured to: process the video data acquired by the video collection module;
- the audio collection module is configured to: obtain audio data;
- the audio encoding module is configured to: process the audio data acquired by the audio collection module 22;
- the photographing module is configured to: when receiving the photographing trigger signal, obtain a photograph of the current moment;
- the association module is configured to: associate the captured image acquired by the camera module with the video data processed by the video encoding module and the audio data processed by the audio encoding module to generate a video file.
- a picture display method comprising:
- the open command is used to instruct to open a predetermined picture file
- the predetermined picture file is a video picture file, respectively reading a start address of the picture data and a start address of the video data in the predetermined picture file;
- the video data is paused.
- the determining whether the picture file is a video picture file includes:
- the picture data of the picture file includes video data, it is determined that the picture file is a video picture file
- the picture data of the picture file does not include video data, it is determined that the picture file is a normal picture file.
- the determining whether the picture file is a video picture file includes:
- the picture file is a normal picture file.
- the method further includes:
- the picture data is redisplayed.
- the video picture display method and device and the image display method provided by the embodiment of the present invention when the user obtains the picture file through the terminal, the user can determine whether the opened picture file is a video picture, and when determining that the picture file is a video picture, Parsing the file format information of the image file and obtaining a starting address of the video data, so that the time-frequency data can be played when the preset trigger signal is received; wherein the video file is added to the image file based on the normal image file.
- the related technology in the photographing due to the limitation of the shooting mode, resulting in the problem of capturing the wonderful moment of the captured image in the photographing scene, thereby making the image file recording more meaningful, improving the storage and display of the image file The intelligence and improved user experience.
- FIG. 1 is a schematic structural diagram of hardware of a mobile terminal that implements various embodiments of the present invention
- FIG. 2 is a schematic diagram of a wireless communication system of the mobile terminal shown in FIG. 1;
- FIG. 3 is a flowchart of a video picture display method according to an embodiment of the present invention.
- FIG. 4 is a schematic structural diagram of file format information of a picture file in a video picture display method according to an embodiment of the present disclosure
- FIG. 5 is a schematic diagram of a display effect of an application scenario in a video picture display method according to an embodiment of the present disclosure
- FIG. 6 is a schematic diagram of a display effect of another application scenario in a video picture display method according to an embodiment of the present disclosure
- FIG. 7 is a flowchart of another video picture display method according to an embodiment of the present invention.
- FIG. 8 is a flowchart of still another video picture display method according to an embodiment of the present invention.
- FIG. 9 is a flowchart of a picture display method according to an embodiment of the present invention.
- FIG. 10 is a schematic structural diagram of a video picture display device according to an embodiment of the present disclosure.
- FIG. 11 is a schematic structural diagram of another video picture display device according to an embodiment of the present disclosure.
- FIG. 12 is a schematic structural diagram of still another video picture display device according to an embodiment of the present invention.
- the mobile terminal can be implemented in various forms.
- the terminal described in the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device, etc.
- Mobile terminals and fixed terminals such as digital TVs, desktop computers, and the like.
- the terminal is a mobile terminal.
- the configuration according to an embodiment of the present invention can be applied to a fixed type of terminal, in addition to components specifically for moving purposes.
- FIG. 1 is a schematic diagram showing the hardware structure of a mobile terminal embodying various embodiments of the present invention.
- the mobile terminal 100 may include a wireless communication unit 110, an A/V (Audio/Video) input unit 120, a user input unit 130, an output unit 150, a memory 160, an interface unit 170, a controller 180, a power supply unit 190, and the like.
- Figure 1 shows a mobile terminal with various components, but it should be understood that It is not required to implement all of the illustrated components. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
- Wireless communication unit 110 typically includes one or more components that permit radio communication between mobile terminal 100 and a wireless communication system or network.
- the wireless communication unit may include at least one of a broadcast receiving module 111, a mobile communication module 112, a wireless internet module 113, a short-range communication module 114, and a location information module 115.
- the broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel.
- the broadcast channel can include a satellite channel and/or a terrestrial channel.
- the broadcast management server may be a server that generates and transmits a broadcast signal and/or broadcast associated information or a server that receives a previously generated broadcast signal and/or broadcast associated information and transmits it to the terminal.
- the broadcast signal may include a TV broadcast signal, a radio broadcast signal, a data broadcast signal, and the like.
- the broadcast signal may further include a broadcast signal combined with a TV or radio broadcast signal.
- the broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received by the mobile communication module 112.
- the broadcast signal may exist in various forms, for example, it may exist in the form of Digital Multimedia Broadcasting (DMB) Electronic Program Guide (EPG), Digital Video Broadcasting Handheld (DVB-H) Electronic Service Guide (ESG), and the like.
- the broadcast receiving module 111 can receive a signal broadcast by using various types of broadcast systems.
- the broadcast receiving module 111 can use forward link media (MediaFLO) by using, for example, multimedia broadcast-terrestrial (DMB-T), digital multimedia broadcast-satellite (DMB-S), digital video broadcast-handheld (DVB-H)
- MediaFLO forward link media
- the digital broadcasting system of the @) data broadcasting system, the terrestrial digital broadcasting integrated service (ISDB-T), and the like receives digital broadcasting.
- the broadcast receiving module 111 can be constructed as various broadcast systems suitable for providing broadcast signals as well as the above-described digital broadcast system.
- the broadcast signal and/or broadcast associated information received via the broadcast receiving module 111 may be stored in the memory 160 (or other type of storage
- the mobile communication module 112 transmits the radio signals to and/or receives radio signals from at least one of a base station (e.g., an access point, a Node B, etc.), an external terminal, and a server.
- a base station e.g., an access point, a Node B, etc.
- Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received in accordance with text and/or multimedia messages.
- the wireless internet module 113 supports wireless internet access of the mobile terminal.
- the module can be internally or externally coupled to the terminal.
- the wireless internet access technology involved in the module may include WLAN (none Line LAN) (Wi-Fi), Wibro (Wireless Broadband), Wimax (Worldwide Interoperability for Microwave Access), HSDPA (High Speed Downlink Packet Access), etc.
- the short range communication module 114 is a module for supporting short range communication.
- Some examples of short-range communication technologies include BluetoothTM, Radio Frequency Identification (RFID), Infrared Data Association (IrDA), Ultra Wide Band (UWB), ZigbeeTM, and the like.
- the location information module 115 is a module for checking or acquiring location information of the mobile terminal.
- a typical example of a location information module is GPS (Global Positioning System).
- GPS Global Positioning System
- the GPS module 115 calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information to accurately calculate three-dimensional current position information according to longitude, latitude, and altitude.
- the method for calculating position and time information uses three satellites and corrects the error of the calculated position and time information by using another satellite. Further, the GPS module 115 is capable of calculating speed information by continuously calculating current position information in real time.
- the A/V input unit 120 is for receiving an audio or video signal.
- the A/V input unit 120 may include a camera 121 and a microphone 1220 that processes image data of still pictures or video obtained by the image capturing device in a video capturing mode or an image capturing mode.
- the processed image frame can be displayed on the display module 151.
- the image frames processed by the camera 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 1210 may be provided according to the configuration of the mobile terminal.
- the microphone 122 can receive sound (audio data) via a microphone in an operation mode of a telephone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound as audio data.
- the processed audio (voice) data can be converted to a format output that can be transmitted to the mobile communication base station via the mobile communication module 112 in the case of a telephone call mode.
- the microphone 122 can implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated during the process of receiving and transmitting audio signals.
- the user input unit 130 may generate key input data according to a command input by the user to control various operations of the mobile terminal.
- the user input unit 130 allows the user to input various types of information, and may include a keyboard, a pot, a touch pad (eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, etc. due to contact), a scroll wheel , rocker, etc.
- a touch screen can be formed.
- the interface unit 170 serves as a connection through which at least one external device is connected to the mobile terminal 100. mouth.
- the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, and an audio input/output. (I/O) port, video I/O port, headphone port, and more.
- the identification module may be stored to verify various information used by the user using the mobile terminal 100 and may include a User Identification Module (UIM), a Customer Identification Module (SIM), a Universal Customer Identity Module (USIM), and the like.
- UIM User Identification Module
- SIM Customer Identification Module
- USB Universal Customer Identity Module
- the device having the identification module may take the form of a smart card, and thus the identification device may be connected to the mobile terminal 100 via a port or other connection device.
- the interface unit 170 can be configured to receive input from an external device (eg, data information, power, etc.) and transmit the received input to one or more components within the mobile terminal 100 or can be used at the mobile terminal and external device Transfer data between.
- the interface unit 170 may function as a path through which power is supplied from the base to the mobile terminal 100 or may be used as a transmission of various command signals allowing input from the base to the mobile terminal 100 The path to the terminal.
- Various command signals or power input from the base can be used as signals for identifying whether the mobile terminal is accurately mounted on the base.
- Output unit 150 is configured to provide an output signal (eg, an audio signal, a video signal, an alarm signal, a vibration signal, etc.) in a visual, audio, and/or tactile manner.
- the output unit 150 may include a display module 151, an audio output module 152, an alarm module 153, and the like.
- the display module 151 can display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display module 151 can display a user interface (UI) or graphical user interface (GUI) associated with a call or other communication (eg, text messaging, multimedia file download, etc.). When the mobile terminal 100 is in a video call mode or an image capture mode, the display module 151 may display a captured image and/or a received image, a UI or GUI showing a video or image and related functions, and the like.
- UI user interface
- GUI graphical user interface
- the display module 151 can function as an input device and an output device.
- the display module 151 may include at least one of a liquid crystal display (LCD), a thin film transistor LCD (TFT-LCD), an organic light emitting diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like.
- LCD liquid crystal display
- TFT-LCD thin film transistor LCD
- OLED organic light emitting diode
- a flexible display a three-dimensional (3D) display, and the like.
- 3D three-dimensional
- Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as a transparent display, and a typical transparent display may be, for example, a TOLED (Transparent Organic Light Emitting Diode) display or the like.
- TOLED Transparent Organic Light Emitting Diode
- the mobile terminal 100 may include two or more display modules (or other display devices), for example, the mobile terminal may include an external display module (not shown) and an internal display module (not shown).
- the touch screen can be used to detect touch input pressure as well as touch input position and touch input area.
- the audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 when the mobile terminal is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, and the like.
- the audio signal is output as sound.
- the audio output module 152 can provide audio output (eg, call signal reception sound, message reception sound, etc.) associated with a particular function performed by the mobile terminal 100.
- the audio output module 152 can include a speaker, a buzzer, and the like.
- the alert module 153 can provide an output to notify the mobile terminal 100 of the occurrence of an event. Typical events may include call reception, message reception, key signal input, touch input, and the like. In addition to audio or video output, the alert module 153 can provide an output in a different manner to notify of the occurrence of an event. For example, the alarm module 153 can provide an output in the form of vibrations that, when a call, message, or some other incoming communication is received, the alarm module 153 can provide a tactile output (ie, vibration) to notify the user of it. By providing such a tactile output, the user is able to recognize the occurrence of various events even when the user's mobile phone is in the user's pocket. The alarm module 153 can also provide an output of the notification event occurrence via the display module 151 or the audio output module 152.
- the memory 160 may store a software program or the like for processing and control operations performed by the controller 180, or may temporarily store data (for example, a phone book, a message, a still image, a video, etc.) that has been output or is to be output. Moreover, the memory 160 can store data regarding vibrations and audio signals of various manners that are output when a touch is applied to the touch screen.
- the memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory ( SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like.
- the mobile terminal 100 can cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
- the controller 180 typically controls the overall operation of the mobile terminal. For example, the controller 180 performs the control and processing associated with voice calls, data communications, video calls, and the like.
- the controller 180 can include A multimedia module 1810 for reproducing (or playing back) multimedia data may be constructed within the controller 180 or may be configured to be separate from the controller 180.
- the controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
- the power supply unit 190 receives external power or internal power under the control of the controller 180 and provides appropriate power required to operate the various components and components.
- the various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof.
- the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein, in some cases, such an embodiment may be at the controller 180 Implemented in the middle.
- implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation.
- the software code can be implemented by a software application (or program) written in any suitable programming language, which can be stored in memory 160 and executed by
- the mobile terminal has been described in terms of its function.
- a slide type mobile terminal among various types of mobile terminals such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like will be described as an example. Therefore, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
- the mobile terminal 100 as shown in FIG. 1 may be configured to operate using a communication system such as a wired and wireless communication system and a satellite-based communication system that transmits data via frames or packets.
- a communication system such as a wired and wireless communication system and a satellite-based communication system that transmits data via frames or packets.
- Such communication systems may use different air interfaces and/or physical layers.
- air interfaces used by communication systems include, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)). ), Global System for Mobile Communications (GSM), etc.
- FDMA Frequency Division Multiple Access
- TDMA Time Division Multiple Access
- CDMA Code Division Multiple Access
- UMTS Universal Mobile Telecommunications System
- LTE Long Term Evolution
- GSM Global System for Mobile Communications
- the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
- a CDMA wireless communication system can include a plurality of mobile terminals 100, a plurality of base stations (BS) 270, a base station controller (BSC) 275, and a mobile switching center (MSC) 280.
- the MSC 280 is configured to interface with a public switched telephone network (PSTN) 290.
- PSTN public switched telephone network
- the MSC 280 is also configured to interface with a BSC 275 that can be coupled to the base station 270 via a backhaul line.
- the backhaul line can be constructed in accordance with any of a number of well known interfaces including, for example, E1/T1, ATM, IP, PPP, Frame Relay, HDSL, ADSL, or xDSL. It will be appreciated that the system as shown in FIG. 2 may include multiple BSC 2750s.
- Each BS 270 can serve one or more partitions (or regions), each of which is covered by a multi-directional antenna or an antenna directed to a particular direction radially away from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS 270 can be configured to support multiple frequency allocations, and each frequency allocation has a particular frequency spectrum (eg, 1.25 MHz, 5 MHz, etc.).
- BS 270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology.
- BTS Base Transceiver Subsystem
- the term "base station” can be used to generally refer to a single BSC 275 and at least one BS 270.
- a base station can also be referred to as a "cell station.”
- each partition of a particular BS 270 may be referred to as a plurality of cellular stations.
- a broadcast transmitter (BT) 295 transmits a broadcast signal to the mobile terminal 100 operating within the system.
- a broadcast receiving module 111 as shown in FIG. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295.
- GPS Global Positioning System
- the satellite 300 helps locate at least one of the plurality of mobile terminals 100.
- a plurality of satellites 300 are depicted, but it is understood that useful positioning information can be obtained using any number of satellites.
- the GPS module 115 as shown in Figure 1 is typically configured to cooperate with the satellite 300 to obtain desired positioning information. Instead of GPS tracking technology or in addition to GPS tracking technology, other techniques that can track the location of the mobile terminal can be used. Additionally, at least one GPS satellite 300 can selectively or additionally process satellite DMB transmissions.
- BS 270 receives reverse link signals from various mobile terminals 100.
- Mobile terminal 100 typically participates in calls, messaging, and other types of communications.
- Each reverse link signal received by a particular base station 270 is processed within a particular BS 270.
- the obtained data is forwarded to the relevant BSC 275.
- the BSC provides call resource allocation and coordinated mobility management functions including a soft handoff procedure between the BSs 270.
- the BSC 275 also routes the received data to the MSC 280, which Additional routing services are provided for interfacing with the PSTN 290.
- PSTN 290 interfaces with MSC 280, which forms an interface with BSC 275, and BSC 275 controls BS 270 accordingly to transmit forward link signals to mobile terminal 100.
- the video picture display method provided by the embodiment of the present invention when the user obtains the picture file through the terminal, the user can determine whether the opened picture file is a video picture, and when determining that the picture file is a video picture, parsing the file format information of the picture file. And obtaining a starting address of the video data, so that the time-frequency data can be played when the preset trigger signal is received; wherein the video file is added with the video data associated with the picture file based on the normal picture file.
- the method of taking data for processing can be started only after pressing the photographing, recording, and recording button, and the embodiment of the present invention solves the limitation of the photographing mode when the related technology is photographed. This causes the problem of capturing the wonderful moments of the picture in the photographing scene, thereby making the picture file recording more meaningful, improving the intelligence of storing and displaying the picture file, and improving the user experience.
- FIG. 3 it is a flowchart of a video picture display method according to an embodiment of the present invention.
- the video picture display method provided in this embodiment may include the following steps, that is, S110-S140:
- the method for obtaining a picture file may be that the picture is obtained by using the camera function in the application, and the picture may be obtained by using the pre-stored picture.
- FIG. 4 is a schematic structural diagram of file format information of a picture file in a video picture display method according to an embodiment of the present invention, and the picture file shown in FIG. For video image files.
- additional data is added at the end of the file, including: the flag bit and the video data, which ensures that the standard format of the ordinary picture file is not destroyed and is saved in the standard picture format.
- the storage format can be: .jpg, .jpeg, .Gif, .Png, .bmp, etc., so that any terminal can preview normal image files without adding extra data.
- the method for determining whether the picture file is a video picture file in the embodiment of the present invention may include: on one hand, if the file format information of the picture file includes an identifier of the video data, Then, it can be determined that the image file is a video image file; on the other hand, if the file format information of the image file includes only the file header and the image data information, it can be determined that the image file is a normal image file.
- FIG. 5 is a schematic diagram of a display effect of an application scenario in a video picture display method according to an embodiment of the present invention, where the mobile terminal 100 shown in FIG.
- the solid line inside the framing box represents the image data.
- the video data is decoded from the start address (vid_address) of the video data, and the decoded video data is sent to the video player and the video player is prompted. Play it.
- the first preset trigger signal in the embodiment of the present invention includes, but is not limited to, a trigger signal generated when a long press or a screen is clicked.
- FIG. 6 is another method for displaying a video picture according to an embodiment of the present invention. A schematic diagram of the display effect of the application scenario, wherein the dotted line in the framing frame of the mobile terminal 100 shown in FIG. 6 indicates the video data being played.
- the second preset trigger signal in the process of playing video data, when the second preset trigger signal is received, the video data is paused and the picture data is redisplayed.
- the second preset trigger signal in the embodiment of the present invention includes, but is not limited to, a trigger signal generated when the gesture leaves the screen, or a trigger signal generated when the video data ends.
- the video picture display method when the user obtains the picture file through the terminal, the user can determine whether the opened picture file is a video picture, and when determining that the picture file is a video picture, parsing the file format information of the picture file. And obtaining a starting address of the video data, so that the time-frequency data can be played when the preset trigger signal is received; wherein the video file is added with the video data associated with the image file based on the common image file, and related technologies
- FIG. 7 is a flowchart of another video picture display method according to an embodiment of the present invention.
- the video picture display method provided in this embodiment may include the following steps, that is, S210-S240:
- the image data source to be processed may obtain the image data through the photographing function in the terminal application, and may also obtain the image data through the pre-stored photo.
- obtaining the to-be-associated video data may collect the original video data by opening the data source, which may be a camera, user-defined data, a screen, or the like. In practical applications, the data length of the picture to be processed can also be obtained.
- S220 Create data of the video picture according to the image data to be processed and the video data to be associated.
- the obtained data of the to-be-processed picture data, the to-be-processed video data, and the length of the picture data to be processed are respectively written into the pre-created file, and the sound video picture flag is added to the pre-created file.
- the flag bit is used to determine whether the picture file is a video picture file, and the start address (vid_address) of the video data is obtained according to the flag bit.
- the video picture file is obtained, the file format information of the video file is parsed, the start address (pic_address) of the picture data is obtained, and the picture data is decoded, and then the picture data is sent to the picture player and the picture is prompted.
- the player plays the display to the terminal interface.
- the first preset trigger signal when the terminal displays the picture data, the first preset trigger signal is received, the video data is decoded from the video data start address (vid_address), the video data is sent to the video player, and the video is prompted to play. Play it.
- the video data is played, when the second preset trigger signal is received, the video file is paused and the picture data is displayed.
- the first preset trigger signal in this embodiment includes, but is not limited to, a trigger signal generated when a long press or a screen is clicked, and the second preset touch The signal includes, but is not limited to, a trigger signal generated when the gesture leaves the screen, or a trigger signal generated when the video data ends playing.
- FIG. 8 is a flowchart of still another video picture display method according to an embodiment of the present invention.
- the video picture display method provided in this embodiment may include the following steps, that is, S310 to S340:
- the data source is opened to collect raw video data, which may be a camera, user-defined data, a screen, or the like.
- the original video data is received for encoding processing, and the encoded data is sent to the data cache management.
- S320 Acquire audio data and perform audio coding.
- the data source is opened to collect original audio data
- the data source may be a microphone, an audio file, or the like.
- the original audio data is received for encoding processing, and the encoded data is sent to the data cache management.
- S330 Receive a photo trigger signal, and acquire a photograph of the current moment.
- the video and the audio encoded data in the preset time before the taking of the photographing time and the photographing time may be taken according to the photographing time, for example, the preset time is 2 seconds, and the photographing is started 2 seconds before the photographing is started.
- the video and audio encode the data, and continue to encode the video in the last 2 seconds and save it to the video file.
- S340 Associate the captured picture with the video data and the audio data to generate a video file.
- the image data of the obtained picture file, the video data of the video file, and the length of the picture data of the picture file to be processed are respectively written into the pre-created file and the sound is added to the pre-created file.
- FIG. 9 is a flowchart of a picture display method according to an embodiment of the present invention.
- the picture display method provided in this embodiment may include the following steps, that is, S410 to S460:
- the user opens a picture file in the picture management application or camera application of the terminal.
- the predetermined picture file is a video picture file. See also the file format information of the video picture described in FIG. 4 .
- additional data is added at the end of the file, including: the flag bit and the video data, which ensures that the standard format of the ordinary picture file is not destroyed and is saved in the standard picture format.
- the storage format can be: .jpg, .jpeg, .Gif, .Png, .bmp, etc., so that any terminal can preview normal image files without adding extra data.
- the method for determining whether the image file is a video image file in the embodiment of the present invention may include: on one hand, if the file format information of the image file includes an identifier of the video data, the image file may be determined as a video. On the other hand, if the file format information of the image file only includes the file header and the image data information, it can be determined that the image file is a normal image.
- the start address of the picture data and the start address of the video data in the predetermined picture file are respectively read.
- the start address (pic_address) of the picture data and the start address (vid_address) of the video data can be acquired.
- the corresponding picture data is decoded from the start address (pic_address) of the picture data and displayed on the terminal interface.
- the first preset video trigger signal when the first preset video trigger signal is received, the video data is decoded starting from the start address (vid_address) of the video data, and the decoded video data is sent to the video player and prompted by the video player. Play.
- the first preset trigger signal in this embodiment includes, but is not limited to, a trigger signal generated when a long press or a screen is clicked.
- the second preset trigger signal in this embodiment, includes, but is not limited to, a trigger signal generated when the gesture leaves the screen, or a trigger signal generated when the video data ends.
- determining whether the picture file is a video picture file, that is, S420 may include:
- the picture data of the picture file includes video data, it is determined that the picture file is a video picture file
- the picture data of the picture file does not contain video data, it is determined that the picture file is a normal picture file.
- determining whether the picture file is a video picture file, that is, S420 may include:
- the image file is a video image file
- the image file is a normal image file.
- the embodiment may further include: redisplaying the picture data.
- the video picture display device further provides a video picture display device.
- the present invention provides a structure of a video picture display device.
- the provided device may include the following modules: an acquisition module 11, a resolution module 12, and a display module 13.
- the obtaining module 11 is configured to: obtain a picture file, and determine whether the picture file is a video picture file.
- the acquiring module 11 can obtain a picture through the camera function in the application, and can also obtain a picture through the pre-stored photo.
- the parsing module 12 is configured to: parse the file format information of the image file and obtain a pre-association Video data.
- the start address (pic_address) of the picture data and the start address (vid_address) of the video data may be obtained, and the corresponding picture data is decoded from the picture data start address (pic_address).
- the display module 13 is configured to: display picture data of the picture file and play video data pre-associated with the picture file.
- FIG. 11 is a schematic structural diagram of another video picture display apparatus according to an embodiment of the present invention.
- the acquisition module 11 in this embodiment may include:
- the obtaining unit 110 is configured to: obtain file format information of the picture;
- the determining unit 111 is configured to determine, according to the file format information of the picture file acquired by the obtaining unit 110, whether the picture file is a video picture file.
- the determining unit 120 determines that the image file is a video image file.
- the obtaining unit 110 in this embodiment is further configured to: obtain a starting address of the picture data according to the file format information of the picture file;
- the parsing module 12 is further configured to: decode the picture data according to the start address of the picture data acquired by the obtaining unit 110.
- the display module 13 in this embodiment may include:
- the detecting unit 130 is configured to: when detecting that the picture file receives the trigger signal, control the play and pause of the video file in advance associated with the picture file.
- the display module 13 in this embodiment may further include:
- the picture display unit 131 is configured to: after the picture data of the picture file is acquired, display the picture data, send the decoded picture data to the picture player, and prompt the picture player to play and display to the terminal interface.
- the video playing unit 132 is configured to: when the picture receives the first trigger signal, play a video file pre-associated with the picture file. Send the decoded video data to the video player and mention Show video player for playback.
- the video playing unit 132 in this embodiment is further configured to: pause playing the video data when receiving the second preset trigger signal in the process of playing the video data;
- the picture display unit 131 is further configured to: resume displaying the current picture data.
- FIG. 12 is a schematic structural diagram of still another video picture display device according to an embodiment of the present invention.
- the video picture display device provided in this embodiment may include the following modules:
- the video capture module 21 is configured to: acquire video data.
- the preview data of the camera is used to collect video data, but the data accepted by the module may be from user-defined, screen data, and the like. For example, if you use this method to save an animation of a TV at a certain moment, the source of the data is the TV screen.
- the audio collection module 22 is configured to: acquire audio data.
- the data source can be a microphone, an audio file, or the like.
- the video encoding module 23 is configured to: process the video data acquired by the video capturing module 21, perform a video encoding operation, and output the encoded data. It is encoded into a common video format. Common formats include, for example, video/avc, video/3gpp, video/mp4v-es, and the like.
- the audio encoding module 24 is configured to: process the audio data acquired by the audio collecting module 22, perform an audio encoding operation, and output the encoded data. It is encoded into a common audio format. Common formats include, for example, audio/3gpp, audio/amr-wb, audio/flac, and the like.
- the photographing module 25 is configured to: when receiving the photographing trigger signal, acquire the photographed picture at the current moment.
- a camera is used to capture a picture.
- the data cache module 26 is configured to cache the encoded data of the video encoding module 23 and the audio encoding module 24. Before taking a photo, the data is buffered according to the preset time. For example, the preset time is 2 seconds, and the camera is photographed in the 10th second when the camera is turned on, and the video data of the 9th and 10th second is saved. The same is true for audio data.
- the video synthesizing module 27 is configured to start synthesizing the video after completing the photographing according to the preset time.
- the preset time is 2 seconds, and after 2 seconds of photographing, the composite video file is started, and the video and audio encoded data are input to encapsulate the video file.
- the common video package format may include: mp4, 3gp and so on.
- the association module 28 is configured to associate the captured picture with the corresponding video data and audio data to generate a new video file.
- the display module 29 is configured to: after receiving the video trigger signal, parse the video file generated by the association module 28, display the picture, and play the video file.
- the display module 29 in this embodiment may include:
- the detecting unit 290 is configured to: when detecting that the picture file receives the trigger signal, control playback and suspension of the video file associated with the picture file in advance.
- the terminal receives the first preset trigger signal
- the video data is decoded from the start address (vid_address) of the video data to obtain a video file, and the video file is played in real time on the terminal interface.
- the terminal receives the second preset trigger signal, and then pauses playing the video file and displays the picture file.
- the first preset trigger signal includes, but is not limited to, a trigger signal generated when a long press or a screen is clicked;
- the second preset trigger signal includes: a trigger signal generated when the gesture leaves the screen, or when the video data ends The generated trigger signal.
- the picture display unit 291 is configured to: after the picture data is acquired, the picture data is played, the decoded picture data is sent to the picture player, and the picture player is prompted to play the display to the terminal interface.
- the video playing unit 292 is configured to: when the picture file receives the first preset trigger signal, play the video file pre-associated with the picture file.
- the decoded video data is sent to the video player and prompted to the video player for playback.
- all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
- the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
- the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
- the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
- the user when the user obtains the image file through the terminal, the user can determine whether the opened image file is a video image, and when determining that the image file is a video image, parsing the file format information of the image file and acquiring the video data.
- the start address so that the time-frequency data can be played when the preset trigger signal is received; wherein the video file is added with the video data associated with the picture file on the basis of the ordinary picture file, and the related technology is taken when the picture is taken.
- the limitation of the problem is that the problem of capturing the wonderful moment of the picture is missed in the photographing scene, thereby making the image file recording more meaningful, improving the intelligence of storing and displaying the picture file, and improving the user experience.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
一种视频图片显示方法、装置及一种图片显示方法,其中,该视频图片显示方法包括:获取图片文件,并判断该图片文件是否为视频图片文件;当判断出该图片文件为视频图片文件时,解析该图片文件的文件格式信息并获取视频数据的起始地址;当接收到第一预设触发信号时,解码并播放所述视频数据;当接收到第二预设触发信号时,暂停播放所述视频数据。
Description
本申请涉及但不限于移动终端技术领域。
视频图片是一种新型多媒体文件,它是以图片形式保存,但图片信息中关联了对应的视频数据。例如,在拍照过程中,获取拍照瞬间前后各一段时间内拍照场景的视频数据,并将获取的视频数据与拍摄照片关联同时生成一个图片文件即为视频图片。相关技术中,录像或者拍照,只能在按下拍照、录音、录像按键后,才开始取数据进行处理。在捕捉运动画面时,容易错过一些精彩场景。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本文提供一种视频图片显示方法、装置及一种图片显示方法,以解决相关技术在拍照时由于拍摄方式的局限性,而导致在拍照场景中错失捕捉画面精彩瞬间的问题。
一种视频图片显示方法,包括:
获取图片文件,并判断所述图片文件是否为视频图片文件;
当判断出所述图片文件为视频图片文件时,解析所述图片文件的文件格式信息并获取视频数据的起始地址;
当接收到第一预设触发信号时,解码并播放所述视频数据;
当接收到第二预设触发信号时,暂停播放所述视频数据。
可选地,所述判断所述图片文件是否为视频图片文件,包括:
获取所述图片文件的文件格式信息;
根据所述图片文件的文件格式信息,判断所述图片文件是否为视频图片文件;若所述文件格式信息中包含视频数据的标识符,则判断出所述图片文件为视频图片文件。
可选地,所述方法还包括:
当判断出所述图片文件为普通图片文件时,解析所述图片文件的文件格式信息,获取图片数据的起始地址;
根据所述图片数据的起始地址解码显示所述图片数据。
可选地,所述当接收到第一预设触发信号时,解码并播放所述视频数据,步骤:
当接收到第一预设触发信号时,从所述视频数据的起始地址开始解码得到视频数据,并实时播放解码得到的所述视频数据。
可选地,所述当接收到第二预设触发信号时,暂停播放所述视频数据,包括:
在播放所述视频数据的过程中,当接收到所述第二预设触发信号时,暂停播放所述视频数据,恢复显示当前图片数据。
可选地,所述第一预设触发信号包括长按或点击屏幕时所产生的触发信号。
可选地,所述第二预设触发信号包括:手势离开屏幕时所产生的触发信号,或者,当视频数据播放结束时所产生的触发信号。
一种视频图片显示装置,包括:
获取模块,设置为:获取图片文件,并判断所述图片文件是否为视频图片文件;
解析模块,设置为:解析所述图片文件的文件格式信息并获取所述图片文件预先关联的视频数据;
显示模块,设置为:显示所述图片文件的图片数据和播放所述图片文件预先关联的视频数据。
可选地,所述获取模块包括:
获取单元,设置为:获取所述图片的文件格式信息;
判断单元,设置为:根据所述获取单元获取到的所述图片文件的文件格式信息,判断所述图片文件是否为视频图片文件。
可选地,所述获取单元,还设置为:根据所述图片文件的文件格式信息,获取图片数据的起始地址;
所述解析模块,还设置为:根据所述获取单元获取的所述图片数据的起始地址解码所述图片数据。
可选地,所述显示模块包括:
检测单元,设置为:检测所述图片文件接收到预设触发信号时,控制所述图片文件预先关联的视频数据的播放和暂停。
可选地,所述显示模块包括:
图片显示单元,设置为:获取所述图片文件的图片数据后显示所述图片数据;
视频播放单元,设置为:当接收到第一预设触发信号时,播放所述图片文件预先关联的视频数据。
可选地,所述视频播放单元,还设置为:在播放所述视频数据的过程中,当接收到所述第二预设触发信号时,暂停播放所述视频数据;
所述图片显示单元,还设置为:恢复显示当前图片数据。
可选地,所述第一预设触发信号包括长按或点击屏幕时所产生的触发信号。
一种视频图片显示方法,包括:
获取视频数据,并进行视频编码;
获取音频数据,并进行音频编码;
在接收到拍照触发信号时,获取当前时刻的拍摄图片;
将所述拍摄图片与所述视频数据和所述音频数据进行关联,生成视频文件。
一种视频图片显示装置,包括:
视频采集模块,设置为:获取视频数据;
视频编码模块,设置为:处理所述视频采集模块获取的所述视频数据;
音频采集模块,设置为:获取音频数据;
音频编码模块,设置为:处理所述音频采集模块22获取的所述音频数据;
拍照模块,设置为:在接收到拍照触发信号时,获取当前时刻的拍摄图片;
关联模块,设置为:将所述拍照模块获取的所述拍摄图片与所述视频编码模块处理得到的视频数据和所述音频编码模块处理得到的所述音频数据进行关联,生成视频文件。
一种图片显示方法,包括:
接收打开命令,所述打开命令用于指示打开预定图片文件;
判断所述预定图片文件是否为视频图片文件,其中,所述视频图片文件包括图片数据和视频数据;
当判断出所述预定图片文件为视频图片文件时,分别读取所述预定图片文件中图片数据的起始地址和视频数据的起始地址;
解码并显示所述图片数据;
当接收到第一预设触发信号时,解码并播放所述视频数据;
当接收到第二预设触发信号时,暂停播放所述视频数据。
可选地,所述判断所述图片文件是否为视频图片文件,包括:
判断所述图片文件的图片数据后是否还包含视频数据;
如果所述图片文件的图片数据后包含视频数据,判断出所述图片文件为视频图片文件;
如果所述图片文件的图片数据后不包含视频数据,判断出所述图片文件为普通图片文件。
可选地,所述判断所述图片文件是否为视频图片文件,包括:
读取视频数据的标识;
如果读取到所述视频数据的标识,判断出所述图片文件为视频图片文件;
如果未读取到所述视频数据的标识,判断出所述图片文件为普通图片文件。
可选地,所述当接收到第二预设触发信号时,暂停播放所述视频数据之后,所述方法还包括:
重新显示所述图片数据。
本发明实施例提供的视频图片显示方法、装置及一种图片显示方法,用户通过终端获取图片文件时,可以通过判断打开的图片文件是否为视频图片,当判断出该图片文件为视频图片时,解析该图片文件的文件格式信息并获取视频数据的起始地址,从而可以在接收到预设触发信号时播放时频数据;其中,该视频文件为在普通图片文件的基础上增加了与图片文件相关联的视频数据,相关技术在拍照时由于拍摄方式的局限性,而导致在拍照场景中错失捕捉画面精彩瞬间的问题,从而使图片文件记录变得更有意义,提高了存储和显示图片文件的智能性,并提升了用户体验。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为实现本发明各个实施例的移动终端的硬件结构示意图;
图2为如图1所示的移动终端的无线通信系统示意图;
图3为本发明实施例提供的一种视频图片显示方法的流程图;
图4为本发明实施例提供的视频图片显示方法中一种图片文件的文件格式信息的结构示意图;
图5为本发明实施例提供的视频图片显示方法中一种应用场景的显示效果示意图;
图6为本发明实施例提供的视频图片显示方法中另一种应用场景的显示效果示意图;
图7为本发明实施例提供的另一种视频图片显示方法的流程图;
图8为本发明实施例提供的又一种视频图片显示方法的流程图;
图9为本发明实施例提供的一种图片显示方法的流程图;
图10为本发明实施例提供的一种视频图片显示装置的结构示意图;
图11为本发明实施例提供的另一种视频图片显示装置的结构示意图;
图12为本发明实施例提供的又一种视频图片显示装置的结构示意图。
应当理解,以下所描述的实施例仅仅用以解释本发明,并不用于限定本发明。
下文中将结合附图对本发明的实施方式进行详细说明。需要说明的是,在不冲突的情况下,本文中的实施例及实施例中的特征可以相互任意组合。
在附图的流程图示出的步骤可以在诸根据一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
现在将参考附图描述实现本发明各个实施例的移动终端。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,“模块”与“部件”可以混合地使用。
移动终端可以以各种形式来实施。例如,本发明中描述的终端可以包括诸如移动电话、智能电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。下面,假设终端是移动终端。然而,本领域技术人员将理解的是,除了特别用于移动目的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。
图1为实现本发明各个实施例的移动终端的硬件结构示意。
移动终端100可以包括无线通信单元110、A/V(音频/视频)输入单元120、用户输入单元130、输出单元150、存储器160、接口单元170、控制器180和电源单元190等等。图1示出了具有各种组件的移动终端,但是应理解的是,并
不要求实施所有示出的组件。可以替代地实施更多或更少的组件。将在下面详细描述移动终端的元件。
无线通信单元110通常包括一个或多个组件,其允许移动终端100与无线通信系统或网络之间的无线电通信。例如,无线通信单元可以包括广播接收模块111、移动通信模块112、无线互联网模块113、短程通信模块114和位置信息模块115中的至少一个。
广播接收模块111经由广播信道从外部广播管理服务器接收广播信号和/或广播相关信息。广播信道可以包括卫星信道和/或地面信道。广播管理服务器可以是生成并发送广播信号和/或广播相关信息的服务器或者接收之前生成的广播信号和/或广播相关信息并且将其发送给终端的服务器。广播信号可以包括TV广播信号、无线电广播信号、数据广播信号等等。而且,广播信号可以进一步包括与TV或无线电广播信号组合的广播信号。广播相关信息也可以经由移动通信网络提供,并且在该情况下,广播相关信息可以由移动通信模块112来接收。广播信号可以以各种形式存在,例如,其可以以数字多媒体广播(DMB)的电子节目指南(EPG)、数字视频广播手持(DVB-H)的电子服务指南(ESG)等等的形式而存在。广播接收模块111可以通过使用各种类型的广播系统接收信号广播。特别地,广播接收模块111可以通过使用诸如多媒体广播-地面(DMB-T)、数字多媒体广播-卫星(DMB-S)、数字视频广播-手持(DVB-H),前向链路媒体(MediaFLO@)的数据广播系统、地面数字广播综合服务(ISDB-T)等等的数字广播系统接收数字广播。广播接收模块111可以被构造为适合提供广播信号的各种广播系统以及上述数字广播系统。经由广播接收模块111接收的广播信号和/或广播相关信息可以存储在存储器160(或者其它类型的存储介质)中。
移动通信模块112将无线电信号发送到基站(例如,接入点、节点B等等)、外部终端以及服务器中的至少一个和/或从其接收无线电信号。这样的无线电信号可以包括语音通话信号、视频通话信号、或者根据文本和/或多媒体消息发送和/或接收的各种类型的数据。
无线互联网模块113支持移动终端的无线互联网接入。该模块可以内部或外部地耦接到终端。该模块所涉及的无线互联网接入技术可以包括WLAN(无
线LAN)(Wi-Fi)、Wibro(无线宽带)、Wimax(全球微波互联接入)、HSDPA(高速下行链路分组接入)等等。
短程通信模块114是用于支持短程通信的模块。短程通信技术的一些示例包括蓝牙TM、射频识别(RFID)、红外数据协会(IrDA)、超宽带(UWB)、紫蜂TM等等。
位置信息模块115是用于检查或获取移动终端的位置信息的模块。位置信息模块的典型示例是GPS(全球定位系统)。根据相关的技术,GPS模块115计算来自三个或更多卫星的距离信息和准确的时间信息并且对于计算的信息应用三角测量法,从而根据经度、纬度和高度准确地计算三维当前位置信息。相关技术中,用于计算位置和时间信息的方法使用三颗卫星并且通过使用另外的一颗卫星校正计算出的位置和时间信息的误差。此外,GPS模块115能够通过实时地连续计算当前位置信息来计算速度信息。
A/V输入单元120用于接收音频或视频信号。A/V输入单元120可以包括相机121和麦克风1220,相机121对在视频捕获模式或图像捕获模式中由图像捕获装置获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示模块151上。经相机121处理后的图像帧可以存储在存储器160(或其它存储介质)中或者经由无线通信单元110进行发送,可以根据移动终端的构造提供两个或更多相机1210。麦克风122可以在电话通话模式、记录模式、语音识别模式等等运行模式中经由麦克风接收声音(音频数据),并且能够将这样的声音处理为音频数据。处理后的音频(语音)数据可以在电话通话模式的情况下转换为可经由移动通信模块112发送到移动通信基站的格式输出。麦克风122可以实施各种类型的噪声消除(或抑制)算法以消除(或抑制)在接收和发送音频信号的过程中产生的噪声或者干扰。
用户输入单元130可以根据用户输入的命令生成键输入数据以控制移动终端的各种操作。用户输入单元130允许用户输入各种类型的信息,并且可以包括键盘、锅仔片、触摸板(例如,检测由于被接触而导致的电阻、压力、电容等等的变化的触敏组件)、滚轮、摇杆等等。特别地,当触摸板以层的形式叠加在显示模块151上时,可以形成触摸屏。
接口单元170用作至少一个外部装置与移动终端100连接可以通过的接
口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。识别模块可以是存储用于验证用户使用移动终端100的各种信息并且可以包括用户识别模块(UIM)、客户识别模块(SIM)、通用客户识别模块(USIM)等等。另外,具有识别模块的装置(下面称为"识别装置")可以采取智能卡的形式,因此,识别装置可以经由端口或其它连接装置与移动终端100连接。接口单元170可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端100内的一个或多个元件或者可以用于在移动终端和外部装置之间传输数据。
另外,当移动终端100与外部底座连接时,接口单元170可以用作允许通过其将电力从底座提供到移动终端100的路径或者可以用作允许从底座输入的各种命令信号通过其传输到移动终端的路径。从底座输入的各种命令信号或电力可以用作用于识别移动终端是否准确地安装在底座上的信号。输出单元150被构造为以视觉、音频和/或触觉方式提供输出信号(例如,音频信号、视频信号、警报信号、振动信号等等)。输出单元150可以包括显示模块151、音频输出模块152、警报模块153等等。
显示模块151可以显示在移动终端100中处理的信息。例如,当移动终端100处于电话通话模式时,显示模块151可以显示与通话或其它通信(例如,文本消息收发、多媒体文件下载等等)相关的用户界面(UI)或图形用户界面(GUI)。当移动终端100处于视频通话模式或者图像捕获模式时,显示模块151可以显示捕获的图像和/或接收的图像、示出视频或图像以及相关功能的UI或GUI等等。
同时,当显示模块151和触摸板以层的形式彼此叠加以形成触摸屏时,显示模块151可以用作输入装置和输出装置。显示模块151可以包括液晶显示器(LCD)、薄膜晶体管LCD(TFT-LCD)、有机发光二极管(OLED)显示器、柔性显示器、三维(3D)显示器等等中的至少一种。这些显示器中的一些可以被构造为透明状以允许用户从外部观看,这可以称为透明显示器,典型的透明显示器可以例如为TOLED(透明有机发光二极管)显示器等等。根据特定想要的实
施方式,移动终端100可以包括两个或更多显示模块(或其它显示装置),例如,移动终端可以包括外部显示模块(未示出)和内部显示模块(未示出)。触摸屏可用于检测触摸输入压力以及触摸输入位置和触摸输入面积。
音频输出模块152可以在移动终端处于呼叫信号接收模式、通话模式、记录模式、语音识别模式、广播接收模式等等模式下时,将无线通信单元110接收的或者在存储器160中存储的音频数据转换音频信号并且输出为声音。而且,音频输出模块152可以提供与移动终端100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出模块152可以包括扬声器、蜂鸣器等等。
警报模块153可以提供输出以将事件的发生通知给移动终端100。典型的事件可以包括呼叫接收、消息接收、键信号输入、触摸输入等等。除了音频或视频输出之外,警报模块153可以以不同的方式提供输出以通知事件的发生。例如,警报模块153可以以振动的形式提供输出,当接收到呼叫、消息或一些其它进入通信(incomingcommunication)时,警报模块153可以提供触觉输出(即,振动)以将其通知给用户。通过提供这样的触觉输出,即使在用户的移动电话处于用户的口袋中时,用户也能够识别出各种事件的发生。警报模块153也可以经由显示模块151或音频输出模块152提供通知事件的发生的输出。
存储器160可以存储由控制器180执行的处理和控制操作的软件程序等等,或者可以暂时地存储己经输出或将要输出的数据(例如,电话簿、消息、静态图像、视频等等)。而且,存储器160可以存储关于当触摸施加到触摸屏时输出的各种方式的振动和音频信号的数据。
存储器160可以包括至少一种类型的存储介质,所述存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等等。而且,移动终端100可以与通过网络连接执行存储器160的存储功能的网络存储装置协作。
控制器180通常控制移动终端的总体操作。例如,控制器180执行与语音通话、数据通信、视频通话等等相关的控制和处理。另外,控制器180可以包
括用于再现(或回放)多媒体数据的多媒体模块1810,多媒体模块1810可以构造在控制器180内,或者可以构造为与控制器180分离。控制器180可以执行模式识别处理,以将在触摸屏上执行的手写输入或者图片绘制输入识别为字符或图像。
电源单元190在控制器180的控制下接收外部电力或内部电力并且提供操作各元件和组件所需的适当的电力。
这里描述的各种实施方式可以以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施,在一些情况下,这样的实施方式可以在控制器180中实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任何适当的编程语言编写的软件应用程序(或程序)来实施,软件代码可以存储在存储器160中并且由控制器180执行。
至此,己经按照其功能描述了移动终端。下面,为了简要起见,将描述诸如折叠型、直板型、摆动型、滑动型移动终端等等的各种类型的移动终端中的滑动型移动终端作为示例。因此,本发明能够应用于任何类型的移动终端,并且不限于滑动型移动终端。
如图1中所示的移动终端100可以被构造为利用经由帧或分组发送数据的诸如有线和无线通信系统以及基于卫星的通信系统来操作。
现在将参考图2描述其中根据本发明的移动终端能够操作的通信系统。
这样的通信系统可以使用不同的空中接口和/或物理层。例如,由通信系统使用的空中接口包括例如频分多址(FDMA)、时分多址(TDMA)、码分多址(CDMA)和通用移动通信系统(UMTS)(特别地,长期演进(LTE))、全球移动通信系统(GSM)等等。作为非限制性示例,下面的描述涉及CDMA通信系统,但是这样的教导同样适用于其它类型的系统。
参考图2,CDMA无线通信系统可以包括多个移动终端100、多个基站(BS)270、基站控制器(BSC)275和移动交换中心(MSC)280。MSC280被构造为与公共电话交换网络(PSTN)290形成接口。MSC280还被构造为与可以经由回程线路耦接到基站270的BSC275形成接口。回程线路可以根据若干己知的接口中的任一种来构造,所述接口包括例如E1/T1、ATM,IP、PPP、帧中继、HDSL、ADSL或xDSL。将理解的是,如图2中所示的系统可以包括多个BSC2750。
每个BS270可以服务一个或多个分区(或区域),由多向天线或指向特定方向的天线覆盖的每个分区放射状地远离BS270。或者,每个分区可以由用于分集接收的两个或更多天线覆盖。每个BS270可以被构造为支持多个频率分配,并且每个频率分配具有特定频谱(例如,1.25MHz,5MHz等等)。
分区与频率分配的交叉可以被称为CDMA信道。BS270也可以被称为基站收发器子系统(BTS)或者其它等效术语。在这样的情况下,术语"基站"可以用于笼统地表示单个BSC275和至少一个BS270。基站也可以被称为"蜂窝站"。或者,特定BS270的各分区可以被称为多个蜂窝站。
如图2中所示,广播发射器(BT)295将广播信号发送给在系统内操作的移动终端100。如图1中所示的广播接收模块111被设置在移动终端100处以接收由BT295发送的广播信号。在图2中,示出了几个全球定位系统(GPS)卫星300。卫星300帮助定位多个移动终端100中的至少一个。
在图2中,描绘了多个卫星300,但是理解的是,可以利用任何数目的卫星获得有用的定位信息。如图1中所示的GPS模块115通常被构造为与卫星300配合以获得想要的定位信息。替代GPS跟踪技术或者在GPS跟踪技术之外,可以使用可以跟踪移动终端的位置的其它技术。另外,至少一个GPS卫星300可以选择性地或者额外地处理卫星DMB传输。
作为无线通信系统的一个典型操作,BS270接收来自各种移动终端100的反向链路信号。移动终端100通常参与通话、消息收发和其它类型的通信。特定基站270接收的每个反向链路信号被在特定BS270内进行处理。获得的数据被转发给相关的BSC275。BSC提供通话资源分配和包括BS270之间的软切换过程的协调的移动管理功能。BSC275还将接收到的数据路由到MSC280,其
提供用于与PSTN290形成接口的额外的路由服务。类似地,PSTN290与MSC280形成接口,MSC与BSC275形成接口,并且BSC275相应地控制BS270以将正向链路信号发送到移动终端100。
基于上述移动终端硬件结构以及通信系统,提出本发明的视频图片显示方法、装置及一种图片显示方法的实施例。本发明实施例提供的视频图片显示方法,用户通过终端获取图片文件时,可以通过判断打开的图片文件是否为视频图片,当判断出该图片文件为视频图片时,解析该图片文件的文件格式信息并获取视频数据的起始地址,从而可以在接收到预设触发信号时播放时频数据;其中,该视频文件为在普通图片文件的基础上增加了与图片文件相关联的视频数据。
相对于相关技术中在录像或者拍照时,只能在按下拍照、录音、录像按键后,才开始取数据进行处理的方式,本发明实施例解决了相关技术在拍照时由于拍摄方式的局限性,而导致在拍照场景中错失捕捉画面精彩瞬间的问题,从而使图片文件记录变得更有意义,提高了存储和显示图片文件的智能性,并提升了用户体验。
以下通过实施例对本发明的技术方案进行详细说明。如图3所示,为本发明实施例提供的一种视频图片显示方法的流程图,本实施例提供的视频图片显示方法可以包括以下步骤,即S110~S140:
S110,获取图片文件,并判断该图片文件是否为视频图片文件。
在本发明实施例中,获取图片文件的方式可以为通过应用中的拍照功能获取图片,可以通过预存储的照片中获取图片。判断该图片文件是否为视频图片文件的实现方式可以参见图4,图4为本发明实施例提供的视频图片显示方法中一种图片文件的文件格式信息的结构示意图,图4所示的图片文件为视频图片文件。在普通图片文件的数据基础上,在文件的尾部添加额外数据,包括:标志位、视频数据,保证了普通图片文件标准格式没有被破坏,并以标准图片格式保存,例如,存储格式可以为:.jpg、.jpeg、.Gif、.Png、.bmp等,从而使任何终端都可以预览未添加额外数据的普通图片文件。
可选地,本发明实施例中判断图片文件是否为视频图片文件的实现方式可以包括:一方面,若图片文件的文件格式信息中包含视频数据的标识符,
则可以判断出该图片文件为视频图片文件;另一方面,若图片文件的文件格式信息中仅包含文件头以及图片数据信息,则可以判断出该图片文件是普通图片文件。
S120,当判断出该图片文件为视频图片文件,解析该图片文件的文件格式信息并获取视频数据的起始地址。
在本发明实施例中,参见图4所示,根据图片文件的文件格式信息,可以获取图片数据的起始地址(pic_address)和视频数据的起始地址(vid_address),从图片数据的起始地址(pic_address)解码得到对应图片数据并显示在终端界面,参见图5,图5为本发明实施例提供的视频图片显示方法中一种应用场景的显示效果示意图,其中,图5所示移动终端100的取景框内实线表示图片数据。
S130,当接收到第一预设触发信号时,解码并播放视频数据。
在本发明实施例中,当接收到第一预设视频触发信号时,从视频数据的起始地址(vid_address)开始解码视频数据,将解码后的视频数据发送给视频播放器并提示视频播放器进行播放。另外,本发明实施例中的第一预设触发信号包括但不限于长按或点击屏幕时所产生的触发信号,参见图6,图6为本发明实施例提供的视频图片显示方法中另一种应用场景的显示效果示意图,其中,图6所示移动终端100的取景框内虚线表示正在播放的视频数据。
S140,当接收到第二预设触发信号时,暂停播放该视频数据。
在本发明实施例中,在播放视频数据的过程中,当接收到第二预设触发信号时,则暂停播放视频数据并重新显示图片数据。本发明实施例中的第二预设触发信号包括但不限于手势离开屏幕时所产生的触发信号,或者,当视频数据播放结束时所产生的触发信号。
本发明实施例提供的视频图片显示方法,用户通过终端获取图片文件时,可以通过判断打开的图片文件是否为视频图片,当判断出该图片文件为视频图片时,解析该图片文件的文件格式信息并获取视频数据的起始地址,从而可以在接收到预设触发信号时播放时频数据;其中,该视频文件为在普通图片文件的基础上增加了与图片文件相关联的视频数据,相关技术在拍照时由
于拍摄方式的局限性,而导致在拍照场景中错失捕捉画面精彩瞬间的问题,从而使图片文件记录变得更有意义,提高了存储和显示图片文件的智能性,并提升了用户体验。
可选地,图7为本发明实施例提供的另一种视频图片显示方法的流程图,本实施例提供的视频图片显示方法可以包括如下步骤,即S210~S240:
S210,获取待处理图片数据和待关联视频数据。
在本实施例中,获取待处理图片数据源可以通过终端应用中的拍照功能获取该图片数据,还可以通过预存储的照片中获取图片数据。另外,获取待关联视频数据可以通过打开数据源收集原始视频数据,该数据源可以为照相机、用户自定义数据、屏幕等。在实际应用中,还可以获取待处理图片的数据长度。
S220,根据待处理图片数据和待关联视频数据创建视频图片的数据。
在本实施例中,分别将获得的待处理图片数据的数据、待处理视频数据以及待处理的图片数据长度写入预先创建的文件中,并在预先创建的文件中添加有声视频图片标志位,该标志位用来判断图片文件是否为视频图片文件,并且根据标志位获取视频数据的起始地址(vid_address)。将预先创建的文件打包封装成为视频图片文件。
S230,预览该视频图片中的图片数据并显示。
在本实施例中,获取视频图片文件,解析所述视频文件的文件格式信息,获取图片数据的起始地址(pic_address),并解码得到图片数据,再将图片数据发送至图片播放器并提示图片播放器进行播放显示到终端界面。
S240,预览该视频图片中的视频数据并显示。
在本实施例中,当终端在显示图片数据时,接收到第一预设触发信号,从视频数据起始地址(vid_address)开始解码视频数据,将该视频数据发送给视频播放器并提示视频播放器进行播放。在播放视频数据时,接收到第二预设触发信号,则暂停播放视频文件并显示图片数据。本实施例中的第一预设触发信号包括但不限于长按或点击屏幕时所产生的触发信号,第二预设触
发信号包括但不限于手势离开屏幕时所产生的触发信号,或者,当视频数据播放结束时所产生的触发信号
可选地,图8为本发明实施例提供的又一种视频图片显示方法的流程图,本实施例提供的视频图片显示方法可以包括如下步骤,即S310~S340:
S310,获取视频数据,并进行视频编码。
在本实施例中,打开数据源收集原始视频数据,该数据源可以为照相机、用户自定义数据、屏幕等。接收原始视频数据进行编码处理,将编码后的数据送到数据缓存管理中。
S320,获取音频数据,并进行音频编码。
在本实施例中,打开数据源收集原始音频数据,数据源可以为麦克风、音频文件等。接收原始音频数据进行编码处理,将编码后的数据送到数据缓存管理中。
S330,接收拍照触发信号,获取当前时刻的拍摄图片。
在本实施例中,拍摄照片的同时,可以根据获取拍照时刻前和拍照时刻后预设时间内的视频和音频编码数据,例如,预设时间为2秒,拍摄照片的同时开始保存前2秒的视频和音频编码数据,并在后2秒中继续进行视频的编码,保存到视频文件中。
S340,将拍摄图片与视频数据和音频数据进行关联,生成视频文件。
在本实施例中,分别将获得的图片文件的图片数据、视频文件的视频数据,并将需要处理的图片文件的图片数据的长度写入预先创建的文件中并在预先创建的文件中添加有声视频图片标志位。将图片、视频和音频打包在一起,进行关联生成视频文件,方便在查看图片是能播放视频。
可选地,图9为本发明实施例提供的一种图片显示方法的流程图,本实施例提供的图片显示方法可以包括如下步骤,即S410~S460:
S410,接收打开命令,该打开命令用于指示打开预定图片文件。
在本实施例中,用户在终端的图片管理应用程序或者照相机应用程序中打开一个图片文件。
S420,判断预定图片文件是否为视频图片文件,其中,视频图片文件包括图片数据和视频数据。
在本实施例中,判断预定图片文件是否为视频图片文件的方式,同样可以参见图4所述的视频图片的文件格式信息。在普通图片文件的数据基础上,在文件的尾部添加额外数据,包括:标志位、视频数据,保证了普通图片文件标准格式没有被破坏,并以标准图片格式保存,例如,存储格式可以为:.jpg、.jpeg、.Gif、.Png、.bmp等,从而使任何终端都可以预览未添加额外数据的普通图片文件。
可选地,本发明实施例中判断图片文件是否为视频图片文件的实现方式可以包括:一方面,若图片文件的文件格式信息中包含视频数据的标识符,则可以判断出该图片文件为视频图片文件;另一方面,若图片文件的文件格式信息中仅包含文件头以及图片数据信息,则可以判断出该图片文件是普通图片。
S430,当判断出该预定图片文件为视频图片文件,分别读取该预定图片文件中图片数据的起始地址和视频数据的起始地址。
在本实施例中,参见图4所示,根据图片文件的文件格式信息,可以获取图片数据的起始地址(pic_address)和视频数据的起始地址(vid_address)。
S440,解码并显示图片数据。
在本实施例中,从图片数据的起始地址(pic_address)解码得到对应的图片数据并显示在终端界面。
S450,当接收到第一预设触发信号时,解码并播放视频数据。
在本实施例中,当接收到第一预设视频触发信号时,从视频数据的起始地址(vid_address)开始解码视频数据,将解码后的视频数据发送给视频播放器并提示视频播放器进行播放。另外,本实施例中的第一预设触发信号包括但不限于长按或点击屏幕时所产生的触发信号。
S460,当接收到第二预设触发信号时,暂停播放该视频数据。
在本实施例中,在播放视频数据的过程中,当接收到第二预设触发信号时,则暂停播放视频数据并重新显示图片数据。本实施例中的第二预设触发信号包括但不限于手势离开屏幕时所产生的触发信号,或者,当视频数据播放结束时所产生的触发信号。
可选地,在本实施例的一种实现方式中,判断图片文件是否为视频图片文件,即S420可以包括:
判断该图片文件的图片数据后是否还包含视频数据;
如果该图片文件的图片数据后包含视频数据,判断出该图片文件为视频图片文件;
如果该图片文件的图片数据后不包含视频数据,判断出该图片文件为普通图片文件。
可选地,在本实施例的另一种实现方式中,判断图片文件是否为视频图片文件,即S420可以包括:
读取视频数据的标识;
如果读取到视频数据的标识,判断出该图片文件为视频图片文件;
如果未读取到视频数据的标识,判断出该图片文件为普通图片文件。
可选地,本实施例在S460之后,还可以包括:重新显示图片数据。
根据本发明实施例提供的视频图片显示方法,本发明实施例还提供了视频图片显示装置,如图10所示,为本发明实施例提供的一种视频图片显示装置的结构示意图,本实施例提供的装置可以包括以下模块:获取模块11、解析模块12和显示模块13。
其中,获取模块11,设置为:获取图片文件,并判断该图片文件是否为视频图片文件。
在本发明实施例中,获取模块11获取图片文件可以通过应用中的拍照功能获取图片,还可以通过预存储的照片中获取图片。
解析模块12,设置为:解析该图片文件的文件格式信息并获取预先关联
的视频数据。
在本发明实施例中,根据图片的文件信息,可以获取图片数据的起始地址(pic_address)和视频数据的起始地址(vid_address),从图片数据起始地址(pic_address)解码得到对应的图片数据。
显示模块13,设置为:显示图片文件的图片数据和播放该图片文件预先关联的视频数据。
可选地,图11为本发明实施例提供的另一种视频图片显示装置的结构示意图。在图10所示装置的结构基础上,本实施例中的获取模块11可以包括:
获取单元110,设置为:获取图片的文件格式信息;
判断单元111,设置为:根据获取单元110获取到的图片文件的文件格式信息判断该图片文件是否为视频图片文件。
在本实施例的一种应用场景中,若获取单元110获取的图片文件的文件格式信息中包含该图片文件预先关联的视频文件,则判断单元120判断出图片文件为视频图片文件。
可选地,本实施例中的获取单元110,还设置为:根据图片文件的文件格式信息,获取图片数据的起始地址;
相应地,解析模块12,还设置为:根据获取单元110获取的图片数据的起始地址解码该图片数据。
可选地,本实施例中的显示模块13可以包括:
检测单元130,设置为:检测图片文件接收到触发信号时,控制该图片文件预先关联视频文件的播放和暂停。
可选地,本实施例中的显示模块13还可以包括:
图片显示单元131,设置为:获取图片文件的图片数据后显示该图片数据,将解码得到图片数据发送到图片播放器并提示图片播放器进行播放显示到终端界面。
视频播放单元132,设置为:当所述图片接收到第一触发信号时,播放图片文件预先关联的视频文件。将解码得到的视频数据发送给视频播放器并提
示视频播放器进行播放。
可选地,本实施例中的视频播放单元132,还设置为:在播放视频数据的过程中,当接收到第二预设触发信号时,暂停播放该视频数据;
相应地,图片显示单元131,还设置为:恢复显示当前图片数据。
如图12所示,为本发明实施例提供的又一种视频图片显示装置的结构示意图,本实施例提供的视频图片显示装置可以包括以下模块:
视频采集模块21,设置为:获取视频数据,本实施例中采用的是照相机的预览数据来收集视频数据,但是该模块接受的数据可以来自用户自定义,屏幕数据等。例如,如果用本方法来保存电视某个时刻的动画,此时数据的来源就是电视屏幕。
音频采集模块22,设置为:获取音频数据。数据来源可以为麦克风、音频文件等。
视频编码模块23,设置为:处理视频采集模块21获取的视频数据,进行视频编码操作,输出编码后数据。编码成常用的视频格式,常见的格式例如包括:video/avc、video/3gpp、video/mp4v-es等。
音频编码模块24,设置为:处理音频采集模块22获取的音频数据,进行音频编码操作,输出编码后数据。编码成常用的音频格式,常见的格式例如包括:audio/3gpp、audio/amr-wb、audio/flac等。
拍照模块25,设置为:在接收到拍照触发信号时,获取当前时刻的拍摄图片。本实施例中采用的是照相机拍摄获取图片。
数据缓存模块26,设置为:缓存视频编码模块23和音频编码模块24的编码后的数据。在拍摄照片之前,根据预设时间缓存数据,例如,预设时间为2秒,在打开摄像头第10秒进行拍照,保存的就是第9、10秒的视频数据。对于音频数据也是如此。
视频合成模块27,设置为:根据预设时间,在完成拍照后开始合成视频。例如,预设时间为2秒,在拍照后2秒,开始合成视频文件,输入视频和音频编码后的数据,进行视频文件的封装,常见的视频封装格式可以包括:mp4、
3gp等。
关联模块28,设置为:将拍摄图片与对应的视频数据和音频数据进行关联,生成新的视频文件。
显示模块29,设置为:当接收到视频触发信号后,解析关联模块28生成的视频文件,显示图片和播放视频文件。
可选地,本实施例中的显示模块29可以包括:
检测单元290,设置为:检测图片文件接收到触发信号时,控制图片文件预先关联的视频文件的播放和暂停。当终端接收到第一预设触发信号时,从视频数据的起始地址(vid_address)开始解码视频数据,得到视频文件,同时在终端界面实时播放视频文件。在播放视频文时,终端接收到第二预设触发信号,则暂停播放视频文件并显示图片文件。上述第一预设触发信号包括但不限于长按或点击屏幕时所产生的触发信号;第二预设触发信号包括:手势离开屏幕时所产生的触发信号,或者,当视频数据播放结束时所产生的触发信号。
图片显示单元291,设置为:获取图片数据后播放图片数据,将解码得到图片数据发送到图片播放器并提示图片播放器进行播放显示到终端界面。
视频播放单元292,设置为:当图片文件接收到第一预设触发信号时,播放该图片文件预先关联的视频文件。将解码得到的视频数据发送给视频播放器并提示视频播放器进行播放。
上面结合附图对本发明的实施例进行了描述,但是本发明实施例并不局限于上述的几种实施方式,上述的几种实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明实施例的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,这些均属于本发明的保护之内。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(根据系统、设备、装置、器件等)执
行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
本发明实施例,用户通过终端获取图片文件时,可以通过判断打开的图片文件是否为视频图片,当判断出该图片文件为视频图片时,解析该图片文件的文件格式信息并获取视频数据的起始地址,从而可以在接收到预设触发信号时播放时频数据;其中,该视频文件为在普通图片文件的基础上增加了与图片文件相关联的视频数据,相关技术在拍照时由于拍摄方式的局限性,而导致在拍照场景中错失捕捉画面精彩瞬间的问题,从而使图片文件记录变得更有意义,提高了存储和显示图片文件的智能性,并提升了用户体验。
Claims (20)
- 一种视频图片显示方法,包括:获取图片文件,并判断所述图片文件是否为视频图片文件;当判断出所述图片文件为视频图片文件时,解析所述图片文件的文件格式信息并获取视频数据的起始地址;当接收到第一预设触发信号时,解码并播放所述视频数据;当接收到第二预设触发信号时,暂停播放所述视频数据。
- 根据权利要求1所述的视频图片显示方法,其中,所述判断所述图片文件是否为视频图片文件,包括:获取所述图片文件的文件格式信息;根据所述图片文件的文件格式信息,判断所述图片文件是否为视频图片文件;若图片文件的所述文件格式信息中包含视频数据的标识符,则判断出所述图片文件为视频图片文件。
- 根据权利要求1所述的视频图片显示方法,还包括:当判断出所述图片文件为普通图片文件时,解析所述图片文件的文件格式信息,获取图片数据的起始地址;根据所述图片数据的起始地址解码显示所述图片数据。
- 根据权利要求1所述的视频图片显示方法,其中,所述当接收到第一预设触发信号时,解码并播放所述视频数据,包括:当接收到第一预设触发信号时,从所述视频数据的起始地址开始解码得到视频数据,并实时播放解码得到的所述视频数据。
- 根据权利要求4所述的视频图片显示方法,其中,所述当接收到第二预设触发信号时,暂停播放所述视频数据,包括:在播放所述视频数据的过程中,当接收到所述第二预设触发信号时,暂停播放所述视频数据,恢复显示当前图片数据。
- 根据权利要求1至5任一项所述的视频图片显示方法,其中,所述第一预设触发信号包括长按或点击屏幕时所产生的触发信号。
- 根据权利要求1至5任一项所述的视频图片显示方法,其中,所述第二预设触发信号包括:手势离开屏幕时所产生的触发信号,或者,当视频数据播放结束时所产生的触发信号。
- 一种视频图片显示装置,包括:获取模块,设置为:获取图片文件,并判断所述图片文件是否为视频图片文件;解析模块,设置为:解析所述图片文件的文件格式信息并获取所述图片文件预先关联的视频数据;显示模块,设置为:显示所述图片文件的图片数据和播放所述图片文件预先关联的视频数据。
- 根据权利要求8所述的视频图片显示装置,其中,所述获取模块包括:获取单元,设置为:获取所述图片的文件格式信息;判断单元,设置为:根据所述获取单元获取到的所述图片文件的文件格式信息,判断所述图片文件是否为视频图片文件。
- 根据权利要求9所述的视频图片显示装置,其中,所述获取单元,还设置为:根据所述图片文件的文件格式信息,获取图片数据的起始地址;所述解析模块,还设置为:根据所述获取单元获取的所述图片数据的起始地址解码所述图片数据。
- 根据权利要求8所述的视频图片显示装置,其中,所述显示模块包括:检测单元,设置为:检测所述图片文件接收到预设触发信号时,控制所述图片文件预先关联的视频数据的播放和暂停。
- 根据权利要求8所述的视频图片显示装置,其中,所述显示模块包括:图片显示单元,设置为:获取所述图片文件的图片数据后显示所述图片数据;视频播放单元,设置为:当接收到第一预设触发信号时,播放所述图片文件预先关联的视频数据。
- 根据权利要求12所述的视频图片显示装置,其中,所述视频播放单元,还设置为:在播放所述视频数据的过程中,当接收到所述第二预设触发信号时,暂停播放所述视频数据;所述图片显示单元,还设置为:恢复显示当前图片数据。
- 根据权利要求12所述的视频图片显示装置,其中,所述第一预设触发信号包括长按或点击屏幕时所产生的触发信号。
- 一种视频图片显示方法,包括:获取视频数据,并进行视频编码;获取音频数据,并进行音频编码;在接收到拍照触发信号时,获取当前时刻的拍摄图片;将所述拍摄图片与所述视频数据和所述音频数据进行关联,生成视频文件。
- 一种视频图片显示装置,包括:视频采集模块,设置为:获取视频数据;视频编码模块,设置为:处理所述视频采集模块获取的所述视频数据;音频采集模块,设置为:获取音频数据;音频编码模块,设置为:处理所述音频采集模块22获取的所述音频数据;拍照模块,设置为:在接收到拍照触发信号时,获取当前时刻的拍摄图片;关联模块,设置为:将所述拍照模块获取的所述拍摄图片与所述视频编码模块处理得到的视频数据和所述音频编码模块处理得到的所述音频数据进行关联,生成视频文件。
- 一种图片显示方法,包括:接收打开命令,所述打开命令用于指示打开预定图片文件;判断所述预定图片文件是否为视频图片文件,其中,所述视频图片文件包括图片数据和视频数据;当判断出所述预定图片文件为视频图片文件时,分别读取所述预定图片 文件中图片数据的起始地址和视频数据的起始地址;解码并显示所述图片数据;当接收到第一预设触发信号时,解码并播放所述视频数据;当接收到第二预设触发信号时,暂停播放所述视频数据。
- 根据权利要求17所述的图片显示方法,其中,所述判断所述图片文件是否为视频图片文件,包括:判断所述图片文件的图片数据后是否还包含视频数据;如果所述图片文件的图片数据后包含视频数据,判断出所述图片文件为视频图片文件;如果所述图片文件的图片数据后不包含视频数据,判断出所述图片文件为普通图片文件。
- 根据权利要求17所述的图片显示方法,其中,所述判断所述图片文件是否为视频图片文件,包括:读取视频数据的标识;如果读取到所述视频数据的标识,判断出所述图片文件为视频图片文件;如果未读取到所述视频数据的标识,判断出所述图片文件为普通图片文件。
- 根据权利要求17-19任一项所述的图片显示方法,其中,所述当接收到第二预设触发信号时,暂停播放所述视频数据之后,所述方法还包括:重新显示所述图片数据。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510626727.5 | 2015-09-28 | ||
CN201510626727.5A CN105187911A (zh) | 2015-09-28 | 2015-09-28 | 一种视频图片显示方法、装置及一种图片显示方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017054616A1 true WO2017054616A1 (zh) | 2017-04-06 |
Family
ID=54909709
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/097940 WO2017054616A1 (zh) | 2015-09-28 | 2016-09-02 | 一种视频图片显示方法、装置及一种图片显示方法 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105187911A (zh) |
WO (1) | WO2017054616A1 (zh) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105187911A (zh) * | 2015-09-28 | 2015-12-23 | 努比亚技术有限公司 | 一种视频图片显示方法、装置及一种图片显示方法 |
CN105677717B (zh) * | 2015-12-29 | 2019-04-19 | 努比亚技术有限公司 | 一种显示方法及终端 |
CN105578051A (zh) * | 2015-12-30 | 2016-05-11 | 小米科技有限责任公司 | 图像捕捉方法和装置 |
CN106331503A (zh) * | 2016-09-28 | 2017-01-11 | 维沃移动通信有限公司 | 一种动态照片的生成方法及移动终端 |
CN106331506A (zh) * | 2016-09-30 | 2017-01-11 | 维沃移动通信有限公司 | 一种动态照片的生成方法及移动终端 |
CN110248116B (zh) * | 2019-06-10 | 2021-10-26 | 腾讯科技(深圳)有限公司 | 图片处理方法、装置、计算机设备及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110235859A1 (en) * | 2010-03-26 | 2011-09-29 | Kabushiki Kaisha Toshiba | Signal processor |
CN103716548A (zh) * | 2013-12-06 | 2014-04-09 | 乐视致新电子科技(天津)有限公司 | 一种视频图片特效处理方法和装置 |
CN104936037A (zh) * | 2015-06-05 | 2015-09-23 | 广东欧珀移动通信有限公司 | 一种视频应用的截图方法及装置 |
CN105187911A (zh) * | 2015-09-28 | 2015-12-23 | 努比亚技术有限公司 | 一种视频图片显示方法、装置及一种图片显示方法 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101751032B (zh) * | 2008-12-16 | 2013-01-16 | 中兴通讯股份有限公司 | 自动控制系统的管理方法及系统、视频监控系统 |
KR101359286B1 (ko) * | 2012-05-31 | 2014-02-06 | 삼성에스디에스 주식회사 | 동영상 정보 제공 방법 및 서버 |
CN103870577A (zh) * | 2014-03-20 | 2014-06-18 | 梁鸿才 | 执法记录仪重要媒体文件自动识别判断方法及装置 |
CN104200763A (zh) * | 2014-08-22 | 2014-12-10 | 湖南华凯文化创意股份有限公司 | 语音导览显示系统与方法 |
-
2015
- 2015-09-28 CN CN201510626727.5A patent/CN105187911A/zh active Pending
-
2016
- 2016-09-02 WO PCT/CN2016/097940 patent/WO2017054616A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110235859A1 (en) * | 2010-03-26 | 2011-09-29 | Kabushiki Kaisha Toshiba | Signal processor |
CN103716548A (zh) * | 2013-12-06 | 2014-04-09 | 乐视致新电子科技(天津)有限公司 | 一种视频图片特效处理方法和装置 |
CN104936037A (zh) * | 2015-06-05 | 2015-09-23 | 广东欧珀移动通信有限公司 | 一种视频应用的截图方法及装置 |
CN105187911A (zh) * | 2015-09-28 | 2015-12-23 | 努比亚技术有限公司 | 一种视频图片显示方法、装置及一种图片显示方法 |
Also Published As
Publication number | Publication date |
---|---|
CN105187911A (zh) | 2015-12-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017054616A1 (zh) | 一种视频图片显示方法、装置及一种图片显示方法 | |
WO2017166954A1 (zh) | 一种缓存视频帧的装置、方法和计算机存储介质 | |
CN106502693B (zh) | 一种图像显示方法和装置 | |
US20160227285A1 (en) | Browsing videos by searching multiple user comments and overlaying those into the content | |
WO2017071310A1 (zh) | 视频通话系统、装置和方法 | |
WO2017054704A1 (zh) | 生成视频图片的方法及装置 | |
WO2018076938A1 (zh) | 图像处理装置及方法和计算机存储介质 | |
WO2017143854A1 (zh) | 一种移动终端及控制音量的方法、计算机可读存储介质 | |
WO2017045647A1 (zh) | 一种处理图像的移动终端和方法 | |
CN105827866A (zh) | 一种移动终端及控制方法 | |
CN106371788A (zh) | 屏幕投影连接装置和方法 | |
WO2017071532A1 (zh) | 一种自拍合影的方法和装置 | |
CN106534552B (zh) | 移动终端及其拍照方法 | |
CN107018326B (zh) | 一种拍摄方法和装置 | |
CN106131327A (zh) | 终端及图像采集方法 | |
WO2017071471A1 (zh) | 一种移动终端及其控制拍摄的方法 | |
WO2018032917A1 (zh) | 一种移动终端、获取对焦值的方法以及计算机可读存储介质 | |
WO2017067481A1 (zh) | 一种移动终端及其处理图像的方法 | |
CN105049916B (zh) | 一种视频录制方法及装置 | |
WO2017113884A1 (zh) | 一种视频播放方法、装置及计算机存储介质 | |
WO2017071468A1 (zh) | 一种信息处理方法、移动终端及计算机存储介质 | |
CN105959560A (zh) | 一种远程拍摄方法及终端 | |
WO2017185808A1 (zh) | 一种数据处理方法及电子设备、存储介质 | |
CN106528017A (zh) | 一种信息处理方法及终端 | |
WO2017185807A1 (zh) | 一种获取数据的装置和方法 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16850240 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16850240 Country of ref document: EP Kind code of ref document: A1 |