CN108810621A - A kind of playback method of video data, device, mobile terminal and storage medium - Google Patents
A kind of playback method of video data, device, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN108810621A CN108810621A CN201810514738.8A CN201810514738A CN108810621A CN 108810621 A CN108810621 A CN 108810621A CN 201810514738 A CN201810514738 A CN 201810514738A CN 108810621 A CN108810621 A CN 108810621A
- Authority
- CN
- China
- Prior art keywords
- video data
- camera
- video
- transcoding
- preview
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000003860 storage Methods 0.000 title claims abstract description 22
- 238000001514 detection method Methods 0.000 claims abstract description 24
- 230000005540 biological transmission Effects 0.000 claims description 22
- 230000011664 signaling Effects 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 16
- 238000006243 chemical reaction Methods 0.000 claims description 9
- 230000006870 function Effects 0.000 description 25
- 238000012545 processing Methods 0.000 description 21
- 238000010586 diagram Methods 0.000 description 12
- 208000001970 congenital sucrase-isomaltase deficiency Diseases 0.000 description 10
- 230000009471 action Effects 0.000 description 7
- 230000006854 communication Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000033001 locomotion Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000002360 preparation method Methods 0.000 description 2
- 230000008054 signal transmission Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000001680 brushing effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000005764 inhibitory process Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000001404 mediated effect Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- GOLXNESZZPUPJE-UHFFFAOYSA-N spiromesifen Chemical compound CC1=CC(C)=CC(C)=C1C(C(O1)=O)=C(OC(=O)CC(C)(C)C)C11CCCC1 GOLXNESZZPUPJE-UHFFFAOYSA-N 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
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/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/4402—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 reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440218—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 reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
-
- 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/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/4402—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 reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440263—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 reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
-
- 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/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/765—Interface circuits between an apparatus for recording and another apparatus
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/01—Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Studio Devices (AREA)
Abstract
An embodiment of the present invention provides a kind of playback method of video data, device, mobile terminal and storage medium, this method is applied in the terminal, including:Preset transcoding chip is registered as into camera, the camera is set with video code model;Receive the first video data;It by the first video data transcoding is the second video data for meeting the video code model to call the transcoding chip;The preview data that second video data is acquired as the camera is subjected to preview broadcasting.The embodiment of the present invention realizes the video data for playing specific format in the terminal, since mobile terminal is widely available and easy to carry, user is multiplexed in the scenes such as mobile terminal can be installed in broadband network, set-top box overhauls and is played out to the video data that it is exported, and realizes Function detection.
Description
Technical field
The present invention relates to the technical fields of communication, eventually more particularly to a kind of playback method of video data, device, movement
End and storage medium.
Background technology
In the scenes such as broadband network installation, set-top box maintenance, user generally requires the video data exported to it progress
Play, auxiliary detection broadband network whether install successfully, whether set-top box the functions such as repairs normal.
But the video data exported in these scenes is mostly HDMI (High Definition Multimedia
Interface, high-definition multimedia interface) etc. specific formats data, the data of these specific formats need specific
It is played in equipment, such as TV.
The cost for purchasing these equipment is higher, also, carries, transport more inconvenience, and therefore, user may not configure this
A little equipment, especially for the technical staff for specializing in broadband network installation, set-top box maintenance etc., due to not having device plays
The video data of the specific formats such as HDMI leads to not carry out Function detection.
Invention content
The embodiment of the present invention proposes a kind of playback method of video data, device, mobile terminal and storage medium, with solution
The video data of the specific formats such as certainly no device plays HDMI, the problem of leading to not carry out Function detection.
One side according to the present invention provides a kind of playback method of video data, using in the terminal, wraps
It includes:
Preset transcoding chip is registered as into camera, the camera is set with video code model;
Receive the first video data;
It by the first video data transcoding is to meet the second of the video code model to regard to call the transcoding chip
Frequency evidence;
The preview data that second video data is acquired as the camera is subjected to preview broadcasting.
Optionally, described that preset transcoding chip is registered as into camera, including:
Resource is run for preset transcoding chip application;
The detection configuration of the first video data is added to the transcoding chip;
For the resource of the transcoding chip application camera;
The video parameter of the transcoding chip is converted to the video parameter of the camera.
Optionally, described that preset transcoding chip is registered as into camera, further include:
The ID of camera is matched when closing registration;
And/or
Close camera in the relevant component of video acquisition;
And/or
Closure frame starting time-out detection.
Optionally, the first video data transcoding is to meet the Video coding lattice by the calling transcoding chip
Second video data of formula, including:
Receive the reference resolution ratio set to first video data;
Inquire the true resolution of first video data;
Judge whether the true resolution and the reference resolution ratio are identical;
If so, according to the video code model by the first video data transcoding be the second video data;
If it is not, then set the true resolution to new reference resolution ratio, returns and execute described receive to described the
The reference resolution ratio of one video data setting.
Optionally, the mobile terminal configuration has camera, switching switch, signal receiver and screen, the switching to open
Closing has first input port, the second input port and output port, and the first input port connects the camera, described
Second input port connects the transcoding chip, and the output port connects the signal receiver, the signal receiver quilt
Camera calls and is set with signaling protocol;
It is described to carry out preview broadcasting using second video data as the preview data that the camera acquires, including:
The first input port is connected to the output port to be switched to described second defeated in switching switch
Inbound port is connected to the output port;
Call the transcoding chip as the camera, according to the signaling protocol by second video data transmission
To the signal receiver;
The signal receiver is called to export the preview data that second video data is acquired as the camera
To the screen, preview broadcasting is carried out to adapt to the screen.
Optionally, the preview data progress preview that second video data is acquired as the camera is broadcast
It puts, further includes:
Close the ID that camera is matched when operation;
And/or
Initialization register is write in closing;
And/or
Close the transmission switch of video data.
Optionally, described call the transcoding chip as the camera, according to the signaling protocol by described second
Video data transmission to the signal receiver, including:
Inquire the resolution ratio of first video data;
The protocol parameter of the signaling protocol is calculated according to the resolution ratio;
Call the transcoding chip as the camera, according to the protocol parameter by second video data transmission
To the signal receiver.
According to another aspect of the present invention, a kind of playing device of video data is provided, which is characterized in that apply and moving
In dynamic terminal, including:
Registration module, for preset transcoding chip to be registered as camera, the camera is set with Video coding lattice
Formula;
Video reception module, for receiving the first video data;
Video code conversion module, for call the transcoding chip by the first video data transcoding be meet the video
Second video data of coded format;
Video preview module, it is pre- for being carried out using second video data as the preview data that the camera acquires
Look at broadcasting.
Optionally, the registration module includes:
Resource bid submodule is run, for running resource for preset transcoding chip application;
Detection configuration addition submodule, the detection for adding the first video data to the transcoding chip configure;
Camera resource bid submodule, for the resource for the transcoding chip application camera;
Video parameter transform subblock, the video for the video parameter of the transcoding chip to be converted to the camera
Parameter.
Optionally, the registration module further includes:
First closes submodule, is used to match the ID of camera when closing registration;
And/or
Second close submodule, for close in camera with the relevant component of video acquisition;
And/or
Third closes submodule, for closure frame starting time-out detection.
Optionally, the video code conversion module includes:
With reference to resolution ratio receiving submodule, for receiving the reference resolution ratio set to first video data;
True resolution inquires submodule, the true resolution for inquiring first video data;
Resolution ratio judging submodule, for judging whether the true resolution and the reference resolution ratio are identical;If so,
Then call format transform subblock, if it is not, then calling resolution adjustment submodule;
Format conversion submodule, according to the video code model by the first video data transcoding be the second video counts
According to;
Resolution adjustment submodule returns for setting the true resolution to new reference resolution ratio and calls institute
It states and refers to resolution ratio receiving submodule.
Optionally, the mobile terminal configuration has camera, switching switch, signal receiver and screen, the switching to open
Closing has first input port, the second input port and output port, and the first input port connects the camera, described
Second input port connects the transcoding chip, and the output port connects the signal receiver, the signal receiver quilt
Camera calls and is set with signaling protocol;
The video preview module includes:
Switching submodule, for connecting the first input port and the output port in switching switch
It is logical to be switched to second input port and be connected to the output port;
Agreement transmits submodule, is incited somebody to action for calling the transcoding chip as the camera, according to the signaling protocol
Second video data transmission is to the signal receiver;
It adapts to play submodule, for calling the signal receiver using second video data as the camera
The preview data of acquisition is exported to the screen, and preview broadcasting is carried out to adapt to the screen.
Optionally, the video preview module further includes:
4th closes submodule, and the ID of camera is matched when for closing operation;
And/or
5th closes submodule, and initialization register is write for closing;
And/or
6th closes submodule, and the transmission for closing video data switchs.
Optionally, the agreement transmission submodule includes:
With reference to resolution inquiry submodule, the reference resolution ratio for inquiring first video data;
Protocol parameter computational submodule, for according to the protocol parameter for calculating the signaling protocol with reference to resolution ratio;
Parameter transmits submodule, is incited somebody to action for calling the transcoding chip as the camera, according to the protocol parameter
Second video data transmission is to the signal receiver.
According to another aspect of the present invention, it provides a kind of mobile terminal, including processor, memory and is stored in described
It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor
The step of playback method of the existing video data.
According to another aspect of the present invention, a kind of computer readable storage medium, the computer-readable storage are provided
Computer program is stored on medium, and the playback method of the video data is realized when the computer program is executed by processor
The step of.
The embodiment of the present invention includes following advantages:
In embodiments of the present invention, preset transcoding chip is registered as into camera, if receiving the first video data,
First video data transcoding is the second video data according to video code model by calling transcoding chip, and the second video data is made
Preview broadcasting is carried out for the preview data that camera is acquired in preview, by being by the first video data transcoding of specific format
The second playable video data of mobile terminal realizes the video data for playing specific format in the terminal, due to moving
Dynamic terminal is widely available and easy to carry, and user is multiplexed the fields such as mobile terminal can be installed in broadband network, set-top box overhauls
The video data that it is exported is played out in scape, realizes Function detection.
Description of the drawings
Fig. 1 is a kind of step flow chart of the playback method of video data of one embodiment of the invention;
Fig. 2 is a kind of schematic diagram of signal switching of one embodiment of the invention;
Fig. 3 is a kind of topology example figure of mobile terminal of one embodiment of the invention;
Fig. 4 is a kind of example flow diagram of the playback method of video data of one embodiment of the invention;
Fig. 5 is a kind of structure diagram of the playing device of video data of one embodiment of the invention;
A kind of hardware architecture diagram of Fig. 6 mobile terminals of each embodiment to realize the present invention.
Specific implementation mode
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is described in further detail.
Referring to Fig.1, it shows a kind of step flow chart of the playback method of video data of one embodiment of the invention, has
Body may include steps of:
Step 101, preset transcoding chip is registered as into camera.
In the concrete realization, the embodiment of the present invention can be applied in the terminal, for example, mobile phone, tablet computer, individual
Digital assistants, intelligent wearable device (such as intelligent glasses, smartwatch) etc..
The operating system of the mobile terminal may include Android (Android), IOS, Windows Phone, Windows etc.
Deng the embodiment of the present invention does not limit this.
In these operating systems, the application (i.e. camera shooting apply) that can be run with operation support camera, as camera applications,
Immediate communication tool, browser etc..
In the terminal, transcoding chip is installed, which can support to certain format (such as 720P@
Video data 60fps) carries out format conversion.
It, in the terminal can be as common I2C (Inter-Integrated for the transcoding chip
Circuit) bus apparatus is registered in camera (camera) class equipment so that camera shooting application thinks that it is taking the photograph for entity
As head, camera can be used as to run, such as preview preview.
In one embodiment of the invention, step 101 may include following sub-step:
Sub-step S11 runs resource for preset transcoding chip application.
In registration, resource is run for transcoding chip application, i.e. resource needed for self-operating, for example, pin, PM it is electric,
CLK (clock), etc..
Sub-step S12, the detection that the first video data is added to the transcoding chip configure.
In registration, adds the detection being inserted into the interface for transmitting the first video data and configure, for detecting whether there is biography
The interface of defeated first video data is inserted into, meanwhile, interrupt processing function is realized, when detecting the first video data, in transmission
It has no progeny notification platform, platform opens camera shooting application.
Sub-step S13 is the resource of the transcoding chip application camera.
In registration, can apply for the dedicated resource of camera, as CSI (Camera Serial Interface, one
HSSI High-Speed Serial Interface between processor and camera module), ISP (Image Signal Processing, image processing
Device), DSI (Display Serial Interface, a HSSI High-Speed Serial Interface between processor and display module)
Deng to image using thinking that it is the camera of an entity.
The video parameter of the transcoding chip is converted to the video parameter of the camera by sub-step S14.
For the video parameter of transcoding chip, the video parameter of camera is converted to, the resolution ratio such as supported, the frame of support
Rate etc., to which the ability of transcoding chip to be imitated to the ability at camera.
The video parameter of these cameras forms driver (driving), is reported to HAL (Hardware Abstract
Layer, hardware abstraction layer).
HAL layers are being opened camera shooting in application, according to the video parameter reported, the operation resource of distribution, for example, according to support
Resolution ratio determine application buffer (caching) size.
In another embodiment of the present invention, step 101 can also include following sub-step:
Sub-step S15 matches the ID of camera when closing registration.
Since transcoding chip does not have ID, ID can not be matched, therefore, normal camera matching ID can be closed in registration
The flow of (match ID).
And/or
Sub-step S16, close camera in the relevant component of video acquisition.
Since transcoding chip is not real camera, without acquisition video data in real time, therefore, can be closed in registration
Close in camera with the relevant component of video acquisition, for example, flash lamp, AF (Automatic Focus, auto-focusing) module,
(Electrically Erasable Programmable read only memory, band electric erazable programmable are read-only by EEPROM
Memory), etc..
And/or
Sub-step S17, closure frame starting time-out detection.
SOF (Start of Frame, frame starting) the time-out detection for closing camera, prevents from being more than certain time (such as 5
Second) data are not received, automatically exit from camera shooting application.
Certainly, the customized logon mode of above-mentioned transcoding chip is intended only as example, can when implementing the embodiment of the present invention
The customized logon mode of other transcoding chips to be arranged according to actual conditions, such as forbid that init setting (initialization is arranged
Setting), parameters, the embodiment of the present invention such as antibanding (edge sharpening) do not limit this.In addition, in addition to above-mentioned turn
Outside the customized logon mode of code chip, those skilled in the art can also use the visitor of other transcoding chips according to actual needs
Inhibition and generation logon mode, the embodiment of the present invention also do not limit this.
Step 102, the first video data is received.
In the concrete realization, user can active trigger by way of receive the first video data, can also pass through by
The mode of dynamic triggering receives the first video data.
In the mode of active triggering, after some pin of transcoding chip detects that specified interface is inserted into, in generation
Disconnected, notification platform, platform is on camera shooting application, receives the first video data inputted by the reception.
In the mode passively triggered, user manually boots camera shooting application, and interface to be specified is waited to be inserted into, and receives by this
Receive the first video data of input.
Step 103, call the transcoding chip by the first video data transcoding be meet the video code model
The second video data.
In the concrete realization, camera is set with video code model, and under normal circumstances, camera is according to the Video coding
Format acquires video data.
After receiving the first video data, which can be used for regarding first according to the video code model
Frequency acquires video data according to the second video data, simulation camera is converted to.
Wherein, the first video data is different from the video code model of the second video data.
For example, the first video data is HDMI formats, the second video data is yuv format.
In one embodiment of the invention, step 103 may include following sub-step:
Sub-step S21 receives the reference resolution ratio set to first video data.
Sub-step S22 inquires the true resolution of first video data.
Sub-step S23 judges whether the true resolution and the reference resolution ratio are identical;If so, executing sub-step
Rapid S24, if it is not, then executing sub-step S25.
Sub-step S24, according to the video code model by the first video data transcoding be the second video data.
Sub-step S25 sets the true resolution to new reference resolution ratio, returns and execute sub-step S21.
In embodiments of the present invention, camera shooting application issues the reference resolution ratio set to the first video data, transcoding chip
According to the reference resolution ratio write control register issued, the vision signal that handle which kind of resolution ratio at present is indicated, meanwhile, start
One thread is for judging whether the first incoming video data meets the requirement of resolution ratio, the i.e. reality of the first video data point
Whether resolution is identical with reference to resolution ratio as this.
If resolution ratio meets the requirements, write control register starts to convert, and transcoding chip converts the first video data
For the second video data.
If resolution ratio is undesirable, resolution ratio error message is generated, notice camera shooting is using the first video counts at this time
According to it is incoming be which kind of resolution ratio (i.e. true resolution), camera shooting application re-issues resolution ratio (i.e. further according to this resolution ratio
With reference to resolution ratio).
Under normal circumstances, camera is the resolution ratio for uniaxially receiving camera shooting application hair.
In embodiments of the present invention, when initial reference resolution ratio and true resolution differ, by true resolution
Value assign refer to resolution ratio, reset with reference to resolution ratio so that can according to true resolution carry out transcoding, realize from
The function that resolution ratio carries out transcoding is adapted to, the success rate of transcoding is improved.
Step 104, the preview data that second video data is acquired as the camera is subjected to preview broadcasting.
In the concrete realization, camera shooting application starts the preview function of camera, and the second video data after transcoding is made
The preview data acquired in preview for the camera plays out, i.e., plays second in the form of the second video data of preview and regard
Frequency evidence.
In one embodiment of the present of invention, mobile terminal configuration has camera, switching switch, signal receiver and screen.
Switching switch has first input port, the second input port and output port.
First input port connects camera, the second input port connects transcoding chip, and output port connection signal receives
Device.
It should be noted that signified camera is generally located on mobile terminal for camera existing for entity herein
Back (also known as rear camera), front (also known as front camera), the quantity for often locating deployment can be one, two, four,
Etc..
In embodiments of the present invention, step 104 may include following sub-step:
The first input port is connected to the output port in switching switch and is switched to by sub-step S31
Second input port is connected to the output port.
In embodiments of the present invention, switching switch is signal selector, is controlled the access of signal receiver.
In order to ensure the normal use of camera existing for entity, under normal circumstances, the first input is kept in switching switch
Port is connected to output port, at this point, the second input port is disconnected with output port so that camera existing for entity is adopted
The signal of collection can be exported to signal receiver.
When using transcoding chip, switching switch can be controlled, the second input port of connection is connected to output port, this
When, first input port is disconnected with output port so that the second video data of transcoding chip output can be exported to letter
Number receiver.
Certainly, when transcoding chip use finishes, switching switch can be controlled, is connected to first input port and output again
Port is connected to, at this point, the second input port is backed off with output port and connect.
Sub-step S32 calls the transcoding chip as the camera, is regarded described second according to the signaling protocol
Frequency evidence is transmitted to the signal receiver.
In practical applications, signal receiver by camera call (i.e. the signal receiver be only camera use, other
Equipment is unusable) and it is set with signaling protocol, as (Mobile Industry Processor Interface are moved MIPI
Dynamic Industry Processor Interface) therefore receiver is registered as camera by transcoding chip, so that the output of transcoding chip
Second video data is sent to the signal receiver according to the signaling protocol that the signal receiver is supported with the identity of camera.
Furthermore, the reference resolution ratio for inquiring the first video data calculates signaling protocol according to reference to resolution ratio
Protocol parameter, such as the quantity of lane (transmission channel), CLK (clock) parameter.
Call transcoding chip as camera, according to protocol parameter by the second video data transmission to signal receiver.
Sub-step S33 calls the signal receiver to be acquired using second video data as the camera pre-
Data of looking at are exported to the screen, and preview broadcasting is carried out to adapt to the screen.
Signal receiver receives the second video data of transcoding chip output according to signaling protocol, and as camera pre-
The preview data acquired when looking at is transmitted to screen and plays out.
Under normal circumstances, the second video data meeting vertical screen plays, the upper and bottom section blank of video clip, and passes through
The preview operation preview for imaging application can then be converted to transverse screen broadcasting, and raising accounts for screen ratio, improves play quality.
In embodiments of the present invention, step 104 may include following sub-step:
Sub-step S34 closes the ID that camera is matched when operation.
And/or
Initialization register is write in sub-step S35, closing.
And/or
Sub-step S36 closes the transmission switch of video data.
Camera existing for entity is after completing the initialization of specific sensor (sensor), then completes the preparation at platform end
Work, for example, the powering on of various components, CSID prepare to receive etc., as a submodule in the operational process of camera
It handles, and for the present invention, although incorporating the operational process of camera as a submodule, camera shooting application
To do bypass processing to transcoding chip in the operating process for opening camera, i.e., it is without any processing, including close operation
When matching camera ID (match ID), close write initialization register, close video data transmission switch (i.e.
Stream on), etc..
Certainly, the customized method of operation of above-mentioned transcoding chip is intended only as example, can when implementing the embodiment of the present invention
The customized method of operation of other transcoding chips to be arranged according to actual conditions, the embodiment of the present invention does not limit this.Separately
Outside, other than the customized method of operation of above-mentioned transcoding chip, those skilled in the art can also use it according to actual needs
The customized method of operation of its transcoding chip, the embodiment of the present invention also do not limit this.
In embodiments of the present invention, preset transcoding chip is registered as into camera, if receiving the first video data,
First video data transcoding is the second video data according to video code model by calling transcoding chip, and the second video data is made
Preview broadcasting is carried out for the preview data that camera is acquired in preview, by being by the first video data transcoding of specific format
The second playable video data of mobile terminal realizes the video data for playing specific format in the terminal, due to moving
Dynamic terminal is widely available and easy to carry, and user is multiplexed the fields such as mobile terminal can be installed in broadband network, set-top box overhauls
The video data that it is exported is played out in scape, realizes Function detection.
Further, transcoding chip is configured in the terminal, compared to specific equipment is configured, is greatly reduced
The cost of Function detection.
To make those skilled in the art more fully understand the embodiment of the present invention, illustrate this hair below by way of specific example
The playback method of video data in bright embodiment.
In this example, referring to Fig. 3 and Fig. 4, the first video data is HDMI signals, and the second video data is YUV signal,
Signal receiver is CSID, and CPU (Central Processing Unit, central processing unit) controls the operation of entire camera
Flow includes the control to transcoding chip, and I2C controllers can be used for transcoding chip write control register.
In step 401, in such a way that active triggers or the mode that passively triggers, start camera shooting application.
In step 402, using transcoding chip as camera startup, that is, camera open flows, transcoding chip are executed
It powers on, I2C controllers control switching switch disconnects the access between camera and CSID, opens between transcoding chip and CSID
Access.
For example, I2C controllers send enabled control signal (Enable) to switching switch.
When Enable is low level, the access between camera and CSID, the YUV letters of output camera acquisition are opened
Number.
When Enable is high level, the access between transcoding chip and CSID, the YUV of output transcoding chip conversion are opened
Signal.
In step 403, the resource of camera is initialized, such as completes CSID, ISP parameter configuration.
In step 404, start the preview operation preview of camera, at this point, the preparation of camera is ready, it is complete
At the register configuration of transcoding chip, HDMI signals are waited for.
In step 405, detected whether that HDMI signals are input to transcoding chip, if so, step 406 is turned to, if it is not,
Step 404 is then turned to, HDMI signals are continued waiting for.
In a step 406, HDMI signals are converted into YUV signal by transcoding chip, with the identity for the camera registered, are led to
MIPI signal transmissions are crossed to CSID.
Certainly, under normal circumstances, camera existing for entity can also acquire YUV signal, be given by MIPI signal transmissions
CSID。
In step 407, CSID receives MIPI signals in MIPI PHY (a kind of serial communication layer physically), by MIPI
Signal is parsed into YUV signal according to the resolution ratio of setting, is supplied to ISP.
In a step 408, ISP carries out image data, such as rotation (angle change) to YUV signal, and handles YUV signal
After pass to camera shooting application.
In step 409, YUV signal is transferred to MDP processing and (is mainly carried out to the hardware resource used by camera shooting application
Initialization, at the same in the terminal registration MDP use interface), MDP as interface export YUV signal to DSI processing (solve
The dtsi files for analysing the pixel p anel that module factory provides, can be got from file the mode m ode of pixel p anel, resolution ratio,
The initialization command command of refresh rate, driving chip Driver IC), DSI exports YUV signal to brushing on screen
Newly, it plays.
It should be noted that for embodiment of the method, for simple description, therefore it is all expressed as a series of action group
It closes, but those skilled in the art should understand that, the embodiment of the present invention is not limited by the described action sequence, because according to
According to the embodiment of the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented
Necessary to example.
With reference to Fig. 5, a kind of structure diagram of the playing device of video data of one embodiment of the invention is shown, apply
In the terminal, it can specifically include following module:
Registration module 501, for preset transcoding chip to be registered as camera, the camera is set with Video coding
Format;
Video reception module 502, for receiving the first video data;
Video code conversion module 503, for calling the transcoding chip that the first video data transcoding is described to meet
Second video data of video code model;
Video preview module 504, preview data for being acquired using second video data as the camera into
Row preview plays.
In one embodiment of the invention, the registration module 501 includes:
Resource bid submodule is run, for running resource for preset transcoding chip application;
Detection configuration addition submodule, the detection for adding the first video data to the transcoding chip configure;
Camera resource bid submodule, for the resource for the transcoding chip application camera;
Video parameter transform subblock, the video for the video parameter of the transcoding chip to be converted to the camera
Parameter.
In one embodiment of the invention, the registration module 501 further includes:
First closes submodule, is used to match the ID of camera when closing registration;
And/or
Second close submodule, for close in camera with the relevant component of video acquisition;
And/or
Third closes submodule, for closure frame starting time-out detection.
In one embodiment of the invention, the video code conversion module 503 includes:
With reference to resolution ratio receiving submodule, for receiving the reference resolution ratio set to first video data;
True resolution inquires submodule, the true resolution for inquiring first video data;
Resolution ratio judging submodule, for judging whether the true resolution and the reference resolution ratio are identical;If so,
Then call format transform subblock, if it is not, then calling resolution adjustment submodule;
Format conversion submodule, according to the video code model by the first video data transcoding be the second video counts
According to;
Resolution adjustment submodule returns for setting the true resolution to new reference resolution ratio and calls institute
It states and refers to resolution ratio receiving submodule.
In one embodiment of the invention, the mobile terminal configuration have camera, switching switch, signal receiver with
Screen, the switching switch have first input port, the second input port and output port, the first input port connection
The camera, second input port connect the transcoding chip, and the output port connects the signal receiver, institute
Signal receiver is stated to be called by camera and be set with signaling protocol;
The video preview module 504 includes:
Switching submodule, for connecting the first input port and the output port in switching switch
It is logical to be switched to second input port and be connected to the output port;
Agreement transmits submodule, is incited somebody to action for calling the transcoding chip as the camera, according to the signaling protocol
Second video data transmission is to the signal receiver;
It adapts to play submodule, for calling the signal receiver using second video data as the camera
The preview data of acquisition is exported to the screen, and preview broadcasting is carried out to adapt to the screen.
In one embodiment of the invention, the video preview module 504 further includes:
4th closes submodule, and the ID of camera is matched when for closing operation;
And/or
5th closes submodule, and initialization register is write for closing;
And/or
6th closes submodule, and the transmission for closing video data switchs.
In one embodiment of the invention, the agreement transmission submodule includes:
With reference to resolution inquiry submodule, the reference resolution ratio for inquiring first video data;
Protocol parameter computational submodule, for according to the protocol parameter for calculating the signaling protocol with reference to resolution ratio;
Parameter transmits submodule, is incited somebody to action for calling the transcoding chip as the camera, according to the protocol parameter
Second video data transmission is to the signal receiver.
For device embodiments, since it is basically similar to the method embodiment, so fairly simple, the correlation of description
Place illustrates referring to the part of embodiment of the method.
In embodiments of the present invention, preset transcoding chip is registered as into camera, if receiving the first video data,
First video data transcoding is the second video data according to video code model by calling transcoding chip, and the second video data is made
Preview broadcasting is carried out for the preview data that camera is acquired in preview, by being by the first video data transcoding of specific format
The second playable video data of mobile terminal realizes the video data for playing specific format in the terminal, due to moving
Dynamic terminal is widely available and easy to carry, and user is multiplexed the fields such as mobile terminal can be installed in broadband network, set-top box overhauls
The video data that it is exported is played out in scape, realizes Function detection.
A kind of hardware architecture diagram of Fig. 6 mobile terminals of each embodiment to realize the present invention.
The mobile terminal 600 includes but not limited to:It is radio frequency unit 601, network module 602, audio output unit 603, defeated
Enter unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, processor
The components such as 610 and power supply 611.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 6 is not constituted
Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, either combine certain components or
Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 610, for preset transcoding chip to be registered as camera, the camera is set with video
Coded format;Receive the first video data;It by the first video data transcoding is to meet described regard to call the transcoding chip
Second video data of frequency coded format;It is carried out using second video data as the preview data that the camera acquires pre-
Look at broadcasting.
In embodiments of the present invention, preset transcoding chip is registered as into camera, if receiving the first video data,
First video data transcoding is the second video data according to video code model by calling transcoding chip, and the second video data is made
Preview broadcasting is carried out for the preview data that camera is acquired in preview, by being by the first video data transcoding of specific format
The second playable video data of mobile terminal realizes the video data for playing specific format in the terminal, due to moving
Dynamic terminal is widely available and easy to carry, and user is multiplexed the fields such as mobile terminal can be installed in broadband network, set-top box overhauls
The video data that it is exported is played out in scape, realizes Function detection.
It should be understood that the embodiment of the present invention in, radio frequency unit 601 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 610 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 601 includes but not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 601 can also by radio communication system and network and other set
Standby communication.
Mobile terminal has provided wireless broadband internet to the user by network module 602 and has accessed, and such as user is helped to receive
Send e-mails, browse webpage and access streaming video etc..
It is that audio output unit 603 can receive radio frequency unit 601 or network module 602 or in memory 609
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 603 can also be provided and be moved
The relevant audio output of specific function that dynamic terminal 600 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 603 includes loud speaker, buzzer and receiver etc..
Input unit 604 is for receiving audio or video signal.Input unit 604 may include graphics processor
(Graphics Processing Unit, GPU) 6041 and microphone 6042, graphics processor 6041 is in video acquisition mode
Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out
Reason.Treated, and picture frame may be displayed on display unit 606.Through graphics processor 6041, treated that picture frame can be deposited
Storage is sent in memory 609 (or other storage mediums) or via radio frequency unit 601 or network module 602.Mike
Wind 6042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output of mobile communication base station can be sent to via radio frequency unit 601 by being converted in the case of telephone calling model.
Mobile terminal 600 further includes at least one sensor 605, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 6061, and proximity sensor can close when mobile terminal 600 is moved in one's ear
Display panel 6061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 605 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 606 is for showing information input by user or being supplied to the information of user.Display unit 606 can wrap
Display panel 6061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 6061.
User input unit 607 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family is arranged and the related key signals input of function control.Specifically, user input unit 607 include touch panel 6071 and
Other input equipments 6072.Touch panel 6071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 6071 or in touch panel 6071
Neighbouring operation).Touch panel 6071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 610, receiving area
It manages the order that device 610 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes touch panel 6071.In addition to touch panel 6071, user input unit 607 can also include other input equipments
6072.Specifically, other input equipments 6072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 6071 can be covered on display panel 6061, when touch panel 6071 is detected at it
On or near touch operation after, send processor 610 to determine the type of touch event, be followed by subsequent processing device 610 according to touch
The type for touching event provides corresponding visual output on display panel 6061.Although in figure 6, touch panel 6071 and display
Panel 6061 is to realize the function that outputs and inputs of mobile terminal as two independent components, but in some embodiments
In, can be integrated by touch panel 6071 and display panel 6061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place does not limit.
Interface unit 608 is the interface that external device (ED) is connect with mobile terminal 600.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 608 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
By one or more elements that the input received is transferred in mobile terminal 600 or can be used in 600 He of mobile terminal
Transmission data between external device (ED).
Memory 609 can be used for storing software program and various data.Memory 609 can include mainly storing program area
And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 609 may include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 610 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 609, and calls and is stored in storage
Data in device 609 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Reason device 610 may include one or more processing units;Preferably, processor 610 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 610.
Mobile terminal 600 can also include the power supply 611 (such as battery) powered to all parts, it is preferred that power supply 611
Can be logically contiguous by power-supply management system and processor 610, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, mobile terminal 600 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 610, and memory 609 is stored in
On memory 609 and the computer program that can be run on the processor 610, the computer program are executed by processor 610
Each process of the playback method embodiment of the above-mentioned video datas of Shi Shixian, and identical technique effect can be reached, to avoid weight
Multiple, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each mistake of the playback method embodiment of above-mentioned video data when being executed by processor
Journey, and identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium
Matter, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access
Memory, abbreviation RAM), magnetic disc or CD etc..
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in flow and/or box combination.These can be provided
Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine so that is held by the processor of computer or other programmable data processing terminal equipments
Capable instruction generates for realizing in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes
The device of specified function.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments
In computer-readable memory operate in a specific manner so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows
And/or in one box of block diagram or multiple boxes specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also include other elements that are not explicitly listed, or further include for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device including the element.
Above to a kind of playback method of video data provided by the present invention, a kind of playing device of video data, one
Kind of mobile terminal and a kind of computer readable storage medium, are described in detail, and specific case used herein is to this hair
Bright principle and embodiment is expounded, the explanation of above example is only intended to help understand the present invention method and its
Core concept;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention, in specific implementation mode and application
There will be changes in range, in conclusion the content of the present specification should not be construed as limiting the invention.
Claims (10)
1. a kind of playback method of video data, which is characterized in that it applies in the terminal, including:
Preset transcoding chip is registered as into camera, the camera is set with video code model;
Receive the first video data;
It by the first video data transcoding is the second video counts for meeting the video code model to call the transcoding chip
According to;
The preview data that second video data is acquired as the camera is subjected to preview broadcasting.
2. according to the method described in claim 1, it is characterized in that, described be registered as camera by preset transcoding chip, packet
It includes:
Resource is run for preset transcoding chip application;
The detection configuration of the first video data is added to the transcoding chip;
For the resource of the transcoding chip application camera;
The video parameter of the transcoding chip is converted to the video parameter of the camera.
3. according to the method described in claim 2, it is characterized in that, described be registered as camera by preset transcoding chip, also
Including:
The ID of camera is matched when closing registration;
And/or
Close camera in the relevant component of video acquisition;
And/or
Closure frame starting time-out detection.
4. according to the method described in claim 1, it is characterized in that, described call the transcoding chip by first video counts
Be according to transcoding meet the second video data of the video code model, including:
Receive the reference resolution ratio set to first video data;
Inquire the true resolution of first video data;
Judge whether the true resolution and the reference resolution ratio are identical;
If so, according to the video code model by the first video data transcoding be the second video data;
If it is not, then setting the true resolution to new reference resolution ratio, returns to the execution reception and regarded to described first
The reference resolution ratio of frequency data setting.
5. according to claim 1-4 any one of them methods, which is characterized in that the mobile terminal configuration has camera, cuts
Switch, signal receiver and screen are changed, the switching switch has first input port, the second input port and output port,
The first input port connects the camera, second input port connects the transcoding chip, the output port
The signal receiver is connected, the signal receiver is called by camera and is set with signaling protocol;
It is described to carry out preview broadcasting using second video data as the preview data that the camera acquires, including:
The first input port is connected to the output port in switching switch and is switched to second input terminal
Mouth is connected to the output port;
Call the transcoding chip as the camera, according to the signaling protocol by second video data transmission to institute
State signal receiver;
The signal receiver is called to be exported second video data as the preview data that the camera acquires to institute
Screen is stated, preview broadcasting is carried out to adapt to the screen.
6. according to the method described in claim 5, it is characterized in that, described using second video data as the camera
The preview data of acquisition carries out preview broadcasting, further includes:
Close the ID that camera is matched when operation;
And/or
Initialization register is write in closing;
And/or
Close the transmission switch of video data.
7. according to the method described in claim 5, it is characterized in that, it is described call the transcoding chip as the camera,
According to the signaling protocol by second video data transmission to the signal receiver, including:
Inquire the resolution ratio of first video data;
The protocol parameter of the signaling protocol is calculated according to the resolution ratio;
Call the transcoding chip as the camera, according to the protocol parameter by second video data transmission to institute
State signal receiver.
8. a kind of playing device of video data, which is characterized in that it applies in the terminal, including:
Registration module, for preset transcoding chip to be registered as camera, the camera is set with video code model;
Video reception module, for receiving the first video data;
Video code conversion module, for call the transcoding chip by the first video data transcoding be meet the Video coding
Second video data of format;
Video preview module is broadcast for second video data to be carried out preview as the preview data that the camera acquires
It puts.
9. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be described
The computer program run on processor is realized when the computer program is executed by the processor as in claim 1 to 7
The step of playback method of any one of them video data.
10. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium
Sequence realizes the broadcasting of the video data as described in any one of claim 1 to 7 when the computer program is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810514738.8A CN108810621B (en) | 2018-05-25 | 2018-05-25 | Video data playing method and device, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810514738.8A CN108810621B (en) | 2018-05-25 | 2018-05-25 | Video data playing method and device, mobile terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108810621A true CN108810621A (en) | 2018-11-13 |
CN108810621B CN108810621B (en) | 2021-01-22 |
Family
ID=64091855
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810514738.8A Active CN108810621B (en) | 2018-05-25 | 2018-05-25 | Video data playing method and device, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108810621B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112911387A (en) * | 2021-01-29 | 2021-06-04 | 联想(北京)有限公司 | Processing method and processing device |
CN113031744A (en) * | 2021-03-29 | 2021-06-25 | 联想(北京)有限公司 | Processing method and processing device |
CN113206966A (en) * | 2021-04-30 | 2021-08-03 | 杭州海康威视数字技术股份有限公司 | Multi-channel image data transmission system, method and equipment |
CN115396724A (en) * | 2022-08-25 | 2022-11-25 | 深圳市新龙鹏科技有限公司 | LT 6911C-based network plug flow control method, device, equipment and storage medium |
CN117156088A (en) * | 2023-04-21 | 2023-12-01 | 荣耀终端有限公司 | Image processing method and related device |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1791199A (en) * | 2004-11-26 | 2006-06-21 | Lg电子株式会社 | Apparatus and method for combining images in a terminal device |
CN101150675A (en) * | 2007-10-22 | 2008-03-26 | 中兴通讯股份有限公司 | A portable DVB-H based external TV signal receiving device |
CN101388974A (en) * | 2008-10-22 | 2009-03-18 | 中兴通讯股份有限公司 | Mobile digital multimedia broadcast receiving device and method |
US20090088210A1 (en) * | 2007-10-01 | 2009-04-02 | Samsung Electronics Co., Ltd. | Mobile terminal and method of displaying image using the same |
US20090128563A1 (en) * | 2007-11-16 | 2009-05-21 | Sportvision, Inc. | User interface for accessing virtual viewpoint animations |
CN101848368A (en) * | 2010-02-02 | 2010-09-29 | 深圳市同洲电子股份有限公司 | Method, system and digital television terminal for watching digital television programs |
CN202260050U (en) * | 2011-09-19 | 2012-05-30 | 鸿远电子股份有限公司 | High-definition digital signal quick-connection system |
CN202276417U (en) * | 2011-10-28 | 2012-06-13 | 东莞宇龙通信科技有限公司 | Mobile terminal base and mobile terminal |
CN202475500U (en) * | 2011-12-26 | 2012-10-03 | 惠州Tcl移动通信有限公司 | USB circuit for handset and the handset |
CN102790764A (en) * | 2012-06-25 | 2012-11-21 | 林征 | Media projection playing method and system |
US20120308132A1 (en) * | 2011-06-02 | 2012-12-06 | Apple Inc. | Automatic Red-Eye Repair Using Multiple Recognition Channels |
CN203039795U (en) * | 2012-09-17 | 2013-07-03 | 联想(北京)有限公司 | Audio/video play device and adaptor thereof |
CN105611201A (en) * | 2016-01-28 | 2016-05-25 | 广州易迩达电子有限公司 | Portable terrestrial digital television receiving device suitable for mobile terminal |
CN106851172A (en) * | 2017-03-27 | 2017-06-13 | 青岛海信电器股份有限公司 | The call method of camera, apparatus and system |
CN107172366A (en) * | 2017-05-08 | 2017-09-15 | 江苏欧帝电子科技有限公司 | A kind of video previewing method |
-
2018
- 2018-05-25 CN CN201810514738.8A patent/CN108810621B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1791199A (en) * | 2004-11-26 | 2006-06-21 | Lg电子株式会社 | Apparatus and method for combining images in a terminal device |
US20090088210A1 (en) * | 2007-10-01 | 2009-04-02 | Samsung Electronics Co., Ltd. | Mobile terminal and method of displaying image using the same |
CN101150675A (en) * | 2007-10-22 | 2008-03-26 | 中兴通讯股份有限公司 | A portable DVB-H based external TV signal receiving device |
US20090128563A1 (en) * | 2007-11-16 | 2009-05-21 | Sportvision, Inc. | User interface for accessing virtual viewpoint animations |
CN101388974A (en) * | 2008-10-22 | 2009-03-18 | 中兴通讯股份有限公司 | Mobile digital multimedia broadcast receiving device and method |
CN101848368A (en) * | 2010-02-02 | 2010-09-29 | 深圳市同洲电子股份有限公司 | Method, system and digital television terminal for watching digital television programs |
US20120308132A1 (en) * | 2011-06-02 | 2012-12-06 | Apple Inc. | Automatic Red-Eye Repair Using Multiple Recognition Channels |
CN202260050U (en) * | 2011-09-19 | 2012-05-30 | 鸿远电子股份有限公司 | High-definition digital signal quick-connection system |
CN202276417U (en) * | 2011-10-28 | 2012-06-13 | 东莞宇龙通信科技有限公司 | Mobile terminal base and mobile terminal |
CN202475500U (en) * | 2011-12-26 | 2012-10-03 | 惠州Tcl移动通信有限公司 | USB circuit for handset and the handset |
CN102790764A (en) * | 2012-06-25 | 2012-11-21 | 林征 | Media projection playing method and system |
CN203039795U (en) * | 2012-09-17 | 2013-07-03 | 联想(北京)有限公司 | Audio/video play device and adaptor thereof |
CN105611201A (en) * | 2016-01-28 | 2016-05-25 | 广州易迩达电子有限公司 | Portable terrestrial digital television receiving device suitable for mobile terminal |
CN106851172A (en) * | 2017-03-27 | 2017-06-13 | 青岛海信电器股份有限公司 | The call method of camera, apparatus and system |
CN107172366A (en) * | 2017-05-08 | 2017-09-15 | 江苏欧帝电子科技有限公司 | A kind of video previewing method |
Non-Patent Citations (1)
Title |
---|
WEIXIN_34121282: "手机拍照预览2种实现方式", 《HTTPS://BLOG.CSDN.NET/WEIXIN_34121282/ARTICLE/DETAILS/92336465》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112911387A (en) * | 2021-01-29 | 2021-06-04 | 联想(北京)有限公司 | Processing method and processing device |
US20220247891A1 (en) * | 2021-01-29 | 2022-08-04 | Lenovo (Beijing) Limited | Processing method and processing device |
CN113031744A (en) * | 2021-03-29 | 2021-06-25 | 联想(北京)有限公司 | Processing method and processing device |
CN113206966A (en) * | 2021-04-30 | 2021-08-03 | 杭州海康威视数字技术股份有限公司 | Multi-channel image data transmission system, method and equipment |
CN115396724A (en) * | 2022-08-25 | 2022-11-25 | 深圳市新龙鹏科技有限公司 | LT 6911C-based network plug flow control method, device, equipment and storage medium |
CN117156088A (en) * | 2023-04-21 | 2023-12-01 | 荣耀终端有限公司 | Image processing method and related device |
CN117156088B (en) * | 2023-04-21 | 2024-06-11 | 荣耀终端有限公司 | Image processing method and related device |
Also Published As
Publication number | Publication date |
---|---|
CN108810621B (en) | 2021-01-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108810621A (en) | A kind of playback method of video data, device, mobile terminal and storage medium | |
WO2020228815A1 (en) | Voice-based wakeup method and device | |
CN110881136B (en) | Video frame rate control method and device, computer equipment and storage medium | |
CN113542839B (en) | Screen projection method of electronic equipment and electronic equipment | |
CN109600678B (en) | Information display method, device and system, server, terminal and storage medium | |
CN108966008B (en) | Live video playback method and device | |
CN107566730B (en) | A kind of panoramic picture image pickup method and mobile terminal | |
WO2021093583A1 (en) | Video stream processing method and apparatus, terminal device, and computer readable storage medium | |
KR102105520B1 (en) | Apparatas and method for conducting a display link function in an electronic device | |
CN111628916B (en) | Method for cooperation of intelligent sound box and electronic equipment | |
CN111147878A (en) | Stream pushing method and device in live broadcast and computer storage medium | |
CN111638779A (en) | Audio playing control method and device, electronic equipment and readable storage medium | |
CN110034876A (en) | PUCCH resource instruction, processing method, network side equipment, user terminal | |
KR102144588B1 (en) | Sensor module and device therewith | |
CN108459815A (en) | A kind of display control method and mobile terminal | |
CN109558046A (en) | A kind of information display method and terminal device | |
CN108564915A (en) | Luminance regulating method and Related product | |
CN108494639A (en) | Network access method and mobile terminal | |
CN110351040A (en) | Sounding reference signal transmission enhancement, configuration method, user equipment and network side equipment | |
WO2022135157A1 (en) | Page display method and apparatus, and electronic device and readable storage medium | |
CN113921002A (en) | Equipment control method and related device | |
US20150130984A1 (en) | Electronic device including an image sensor | |
CN108235084B (en) | Video playing method and mobile terminal | |
CN109814773A (en) | A kind of flexible screen control method and display component | |
CN109745699A (en) | A kind of method and terminal device responding touch control operation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd. Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |