CN107277340A - A kind of snapshots method and device - Google Patents

A kind of snapshots method and device Download PDF

Info

Publication number
CN107277340A
CN107277340A CN201610207875.8A CN201610207875A CN107277340A CN 107277340 A CN107277340 A CN 107277340A CN 201610207875 A CN201610207875 A CN 201610207875A CN 107277340 A CN107277340 A CN 107277340A
Authority
CN
China
Prior art keywords
data
current data
user
display screen
picture
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.)
Pending
Application number
CN201610207875.8A
Other languages
Chinese (zh)
Inventor
孙国云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ingenic Semiconductor Co Ltd
Original Assignee
Beijing Ingenic Semiconductor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ingenic Semiconductor Co Ltd filed Critical Beijing Ingenic Semiconductor Co Ltd
Priority to CN201610207875.8A priority Critical patent/CN107277340A/en
Publication of CN107277340A publication Critical patent/CN107277340A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/815Camera processing pipelines; Components thereof for controlling the resolution by using a single image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor

Abstract

The present invention relates to communication electronics field, more particularly to a kind of snapshots method and device.The problem of delay and copy big data quantity for the flow that avoids taking pictures in the prior art.This method includes:Obtain a frame current data;The current data is reduced and format conversion operation, the data after being operated;Data after operation are shown to user by display screen.Therefore, this method can avoid taking pictures in the prior art flow delay and the problem of copy big data quantity.

Description

A kind of snapshots method and device
Technical field
The present invention relates to communication electronics field, more particularly to a kind of snapshots method and device.
Background technology
In recent years, continuing to bring out with the intelligent mobile product such as smart mobile phone, tablet personal computer, intelligent glasses, Its function is also in constantly improve.Camera function on this kind of intelligent mobile product simultaneously, for client into Indispensable function.
At present, most of intelligent mobile products have camera function.User can open camera function note at any time Now this scape under record.Most mobile products are also equipped with camera physical buttons, complete for quickly starting camera Heterodyne is shone.As shown in figure 1, the flow of taking pictures of current intelligent mobile product is as follows:
Step 11, camera is first turned on, and obtains the picture number when previous frame data, both current shooting According to;
Step 12, the data got are carried out with coding generation jpg data;
Step 13, jpg data after coding are handed over and stored, while being sent to java layers;
Step 14, java layers to this jpg data decode after draw rgb data;
Step 15, java layers export this rgb data to display screen, are shown to user.
But the inventors discovered that, there is problems with the flow of taking pictures of prior art:
Firstth, the copy of big data quantity is quite time-consuming;In current flow of taking pictures, java layers are defined The data function block process that to be two different is obtained with camera, then java layers will get jpg data It can only be copy.And Most current equipment is taken pictures to reach high definition image quality, the data volume of photo all compares It is larger, therefore the java layers of data volume that needs are copied when carrying out the copy of jpg data are also very huge;
Secondth, what is decoded again after first encoding is time-consuming;Step 12 needs to enter data in above-mentioned steps Row coding;And at step 14 java layers also need to once decode the data after coding decoding operate, It can just be shown in afterwards on screen.And the regular hour will be consumed by coding and decoding.
Thus, it can be seen that it is above-mentioned twice take just be doomed user press needed after camera button delay certain time It can see in shot image, therefore the flow of taking pictures of prior art there is latency issue.
The content of the invention
The embodiments of the invention provide a kind of snapshots method and device, for avoiding taking pictures in the prior art The problem of delay of flow and copy big data quantity.
A kind of snapshots method, methods described includes:
Obtain a frame current data;
The current data is reduced and format conversion operation, the data after being operated;
Data after operation are shown to user by display screen.
A kind of snapshots device, described device includes:
Acquiring unit, for obtaining a frame current data;
Operating unit, for the current data to be reduced and format conversion operation, is obtained after operation Data;
Display unit, for the data after operation to be shown into user by display screen.
It can be seen that, method provided in an embodiment of the present invention, will take pictures and show picture and preserve picture is used as two Individual parallel thread is carried out simultaneously, is so both greatly improved speed of taking pictures.When user determines to shoot current figure During pieces, the data of the photo current are reduced into the size that smart machine shows the picture, then shown, Coding-decoding operation of the prior art is eliminated in this course, can both improve the speed taken pictures, while by In having carried out reduction operation to picture, therefore big data quantity need not be copied.While user takes pictures, it is Therefore the storing process to photo is completed, storing process is individually shown process by the present invention independently of photo, Current data individually can be subjected to jpg codings, then be stored.It can be seen that this method is divided into two and advanced Capable thread, both saves photo opporunity, and does not influence to store the quality of picture, and therefore, this method can be avoided The problem of delay for flow of taking pictures in the prior art and copy big data quantity.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of technical scheme of the invention or of the prior art There is the accompanying drawing used required in technology description to be briefly described.
Fig. 1 is method flow diagram in the prior art involved by photographic method;
Fig. 2 is a kind of snapshots method flow diagram provided in an embodiment of the present invention;
Fig. 3 is detailed a kind of snapshots method flow diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of structure drawing of device of snapshots provided in an embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present invention, and make this Above-mentioned purpose, the feature and advantage of invention can be more obvious understandable, below in conjunction with the accompanying drawings to skill in the present invention Art scheme is described in further detail.
Method provided in an embodiment of the present invention, will take pictures and shows that picture and preservation picture are parallel as two Thread carry out simultaneously, be so both greatly improved speed of taking pictures.When user determines to shoot photo current, The data of the photo current are reduced into the size that smart machine shows the picture, then shown, at this Coding-decoding operation of the prior art is eliminated during one, the speed taken pictures can have both been improved, simultaneously because right Picture has carried out reduction operation, therefore need not copy big data quantity.While user takes pictures, in order to complete Storing process is individually shown process by the storing process of paired photo, the present invention independently of photo, therefore can be single Current data is solely subjected to jpg codings, then stored.Parallel carried out it can be seen that this method is divided into two Thread, both saves photo opporunity, and does not influence to store the quality of picture, and therefore, this method can avoid existing The problem of delay for flow of being taken pictures in technology and copy big data quantity.As shown in Fig. 2 this method includes:
Step 21, a frame current data is obtained;
Step 22, the current data is reduced and format conversion operation, the number after being operated According to;
Step 23, the data after operation are shown to user by display screen.
Wherein, it is described to include current data progress diminution:
Size needed for picture is shown according to smart machine carries out reduction operation to the current data.
5th, specifically, described include current data progress format conversion operation:
Data after diminution are converted into rgb format.
Include specifically, the data by after operation are shown to user by display screen:
The data copy of rgb format is converted into Java layers and user is shown to by display screen.
Specifically, after one frame current data of the acquisition, further comprising:
The coding of JPG forms is carried out to the current data, is preserved afterwards.
It is introduced below with specific embodiment:
The embodiment of the present invention provides a kind of snapshots method, as shown in figure 3, this method includes:
Step 31, when user determines to need bat to take a width picture using Intelligent mobile equipment, camera is pressed Key;
Step 32, intelligent movable equipment obtains a frame current data;
Step 33, the current data of acquisition is reduced and format conversion operation;The process is specifically wrapped Include:
Picture is reduced into specified size, this specifies size to be that smart machine shows the picture institute on a display screen The size needed;
Data after diminution are converted into rgb format by yuv format
Step 34, the data copy of rgb format is converted into Java layers and is shown to by display screen User;
Step 33 and step 34 be able to will quickly can be shot as an independent thread 1 in the thread 1 To picture reduced and various conversion after be directly displayed on picture, eliminated in the thread to picture The operation of coding and decoding, while also omit the copy function to picture, therefore after can greatling save and taking pictures Show the time of picture;
After step 32, also comprise the following steps:
Step 35, the current data got is carried out to the coding of JPG forms;
Step 36, the data after coding are preserved;
Can be using step 35 and step 36 as thread 2, the thread 2 is totally independent of thread 1, in thread The full detail of the data photographed can be preserved in 2, therefore does not interfere with picture quality, preservation figure is also acted as The purpose of sheet data;
In the method that the embodiment of the present invention provides point, thread 1 and thread 2 be completely independent and can parallel work-flow, Both the delay that picture is shown after taking pictures had been reduced, the picture of complete information can be preserved again.
As shown in figure 4, the embodiment of the present invention provides a kind of snapshots device, specifically include:
A kind of snapshots device, it is characterised in that described device includes:
Acquiring unit 41, for obtaining a frame current data;
Operating unit 42, for the current data to be reduced and format conversion operation, is grasped Data after work;
Display unit 43, for the data after operation to be shown into user by display screen.
The operating unit 42 specifically for:
Size needed for picture is shown according to smart machine carries out reduction operation to the current data.
The operating unit 42 specifically for:
Data after diminution are converted into rgb format.
The display unit 43 specifically for
The data copy of rgb format is converted into Java layers and user is shown to by display screen.
Described device also includes storage unit 44, is used for:
The coding of JPG forms is carried out to the current data, is preserved afterwards.
In summary, beneficial effect:
Method provided in an embodiment of the present invention, will take pictures and shows that picture and preservation picture are parallel as two Thread carry out simultaneously, be so both greatly improved speed of taking pictures.When user determines to shoot photo current, The data of the photo current are reduced into the size that smart machine shows the picture, then shown, at this Coding-decoding operation of the prior art is eliminated during one, the speed taken pictures can have both been improved, simultaneously because right Picture has carried out reduction operation, therefore need not copy big data quantity.While user takes pictures, in order to complete Storing process is individually shown process by the storing process of paired photo, the present invention independently of photo, therefore can be single Current data is solely subjected to jpg codings, then stored.Parallel carried out it can be seen that this method is divided into two Thread, both saves photo opporunity, and does not influence to store the quality of picture, and therefore, this method can avoid existing The problem of delay for flow of being taken pictures in technology and copy big data quantity.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in this hair Any modifications, equivalent substitutions and improvements made within bright spirit and principle etc., should be included in the present invention Protection domain within.

Claims (10)

1. a kind of snapshots method, it is characterised in that methods described includes:
Obtain a frame current data;
The current data is reduced and format conversion operation, the data after being operated;
Data after operation are shown to user by display screen.
2. the method as described in claim 1, it is characterised in that described that the current data is contracted It is small including:
Size needed for picture is shown according to smart machine carries out reduction operation to the current data.
3. the method as described in claim 1, it is characterised in that described that the current data is subjected to lattice Formula conversion operation includes:
Data after diminution are converted into rgb format.
4. method as claimed in claim 3, it is characterised in that the data by after operation pass through aobvious Display screen, which is shown to user, to be included:
The data copy of rgb format is converted into Java layers and user is shown to by display screen.
5. the method as described in claim 1, it is characterised in that one frame current data of the acquisition it Afterwards, further comprise:
The coding of JPG forms is carried out to the current data, is preserved afterwards.
6. a kind of snapshots device, it is characterised in that described device includes:
Acquiring unit, for obtaining a frame current data;
Operating unit, for the current data to be reduced and format conversion operation, is obtained after operation Data;
Display unit, for the data after operation to be shown into user by display screen.
7. device as claimed in claim 6, it is characterised in that the operating unit specifically for:
Size needed for picture is shown according to smart machine carries out reduction operation to the current data.
8. device as claimed in claim 6, it is characterised in that the operating unit specifically for:
Data after diminution are converted into rgb format.
9. device as claimed in claim 8, it is characterised in that the display unit specifically for
The data copy of rgb format is converted into Java layers and user is shown to by display screen.
10. device as claimed in claim 6, it is characterised in that described device also includes storage unit, For:
The coding of JPG forms is carried out to the current data, is preserved afterwards.
CN201610207875.8A 2016-04-06 2016-04-06 A kind of snapshots method and device Pending CN107277340A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610207875.8A CN107277340A (en) 2016-04-06 2016-04-06 A kind of snapshots method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610207875.8A CN107277340A (en) 2016-04-06 2016-04-06 A kind of snapshots method and device

Publications (1)

Publication Number Publication Date
CN107277340A true CN107277340A (en) 2017-10-20

Family

ID=60051803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610207875.8A Pending CN107277340A (en) 2016-04-06 2016-04-06 A kind of snapshots method and device

Country Status (1)

Country Link
CN (1) CN107277340A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101690173A (en) * 2007-06-25 2010-03-31 韩国科亚电子股份有限公司 Image processing apparatus and method for displaying captured image without time delay and computer readable medium stored thereon computer executable instructions for performing the method
CN103647903A (en) * 2013-12-31 2014-03-19 广东欧珀移动通信有限公司 Mobile terminal shooting method and mobile terminal shooting system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101690173A (en) * 2007-06-25 2010-03-31 韩国科亚电子股份有限公司 Image processing apparatus and method for displaying captured image without time delay and computer readable medium stored thereon computer executable instructions for performing the method
CN103647903A (en) * 2013-12-31 2014-03-19 广东欧珀移动通信有限公司 Mobile terminal shooting method and mobile terminal shooting system

Similar Documents

Publication Publication Date Title
WO2020010997A1 (en) Video frame extraction method and apparatus, computer readable medium, and electronic device
CN105684459B (en) For reproducing method, the terminal of content
CN103391414B (en) A kind of video process apparatus and processing method for being applied to cell phone platform
CN104618572B (en) The photographic method and device of a kind of terminal
CN111954053B (en) Method for acquiring mask frame data, computer equipment and readable storage medium
CN105391965B (en) Video recording method based on multi-cam and device
CA2917148C (en) Picture displaying method and apparatus, and terminal device
CN106303293B (en) Method for processing video frequency, device and mobile terminal
CN105187692B (en) Video capture method and device
CN109076246A (en) Use the method for video coding and system of image data correction mask
US20140344751A1 (en) Image Processing Method and Terminal Device
CN105227864A (en) A kind of picture generates animation and splices with video segment the video editing method synthesized
CN107678640A (en) A kind of long screenshotss method, apparatus, mobile terminal and computer-readable recording medium
CN109089043A (en) Shoot image pre-processing method, device, storage medium and mobile terminal
CN109769143A (en) Method of video image processing, device, video system, equipment and storage medium
CN112949547A (en) Data transmission and display method, device, system, equipment and storage medium
CN106485653B (en) User terminal and panoramic picture dynamic thumbnail generation method
CN113079406A (en) Video processing method and device
CN106209575B (en) Method for sending information, acquisition methods, device and interface system
CN110223221B (en) Dynamic image playing method and terminal equipment
US20200092444A1 (en) Playback method, playback device and computer-readable storage medium
WO2012116662A1 (en) Theme setting method and terminal device
CN107277340A (en) A kind of snapshots method and device
WO2019136858A1 (en) Image generation method and apparatus, and computer device
CN105227836B (en) A kind of method and apparatus of video terminal zoom

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171020

RJ01 Rejection of invention patent application after publication