CN109510942A - A kind of split screen photographic device method for previewing and system - Google Patents
A kind of split screen photographic device method for previewing and system Download PDFInfo
- Publication number
- CN109510942A CN109510942A CN201811534103.0A CN201811534103A CN109510942A CN 109510942 A CN109510942 A CN 109510942A CN 201811534103 A CN201811534103 A CN 201811534103A CN 109510942 A CN109510942 A CN 109510942A
- Authority
- CN
- China
- Prior art keywords
- preview
- layer
- split screen
- previewing
- window
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
Abstract
The present invention relates to a kind of split screen photographic device method for previewing and systems, wherein method includes the following steps: S1, detects that the preview figure layer of the display device based on SurfaceView cuts preview figure layer in different split screen windows in different ways;S2, when institute's preview figure layer switches translation between split screen window, the clipping region for recalculating window executes preview again.The invention has the benefit that camera data copy less, CPU occupancy is low, and preview fluency is good;Figure layer scaling walks DE, and antialiasing ability is strong;The deficiency of native interface is made up, the size variation of split screen window is adapted to and realizes smooth switching between split screen window.
Description
Technical field
The present invention relates to a kind of split screen photographic device method for previewing and systems, belong to computer field.
Background technique
In order to sufficiently use rearview mirror strip screen space, needs using split screen while showing multi-path camera preview, and is right
The fluency of preview when dispatch driving, the preview window size on each split screen adapt to, smooth switching has and strictly wants between each split screen
It asks.The present invention, which extends primary SurfaceView, makes it support the camera preview under this split screen scene, adapts to rearview mirror strip screen
In smooth switching and window size transformation between more split screen interfaces.
For Android system, camera preview interface only has SurfaceView and TextureView.It is general in industry
Scheme be using TextureView, but TextureView be limited to GPU performance to scaling support not enough, wicket be easy
There is sawtooth sense;Being related to multiple data copy influences preview fluency.In contrast, SurfaceView is to data copy number
Few, preview fluency is secure, but primary SurfaceView does not support the map function of the common View such as translation, cutting, nothing
Method meets the size variation for adapting to split screen window and realizes smooth switching between split screen window.
Summary of the invention
Several exemplary aspects of the disclosure are summarized as follows.This summary is provided to the convenience of reader, to provide to this
The basic comprehension of a little embodiments rather than fully limit the scope of the invention.This summarizes the extensive of not all contemplated embodiments
Summary, and it is neither intended to mark crucial or important element in all aspects, the range in terms of any or all is not described yet.Its
Sole purpose is that some concepts of one or more embodiments are presented in simplified form, retouches in more detail as what is presented later
The prelude stated.For convenience, term " some embodiments " herein can be used for referring to the single embodiment or multiple of the disclosure
Embodiment.
In view of the above-mentioned problems, the present invention proposes a kind of split screen photographic device method for previewing and system, for pre- when detect
Figure layer of looking at cuts preview figure layer in different split screen windows in a corresponding way;It is put down when preview figure layer switches between split screen window
When shifting, without using animation and the clipping region of calculation window again.
Technical solution of the present invention includes a kind of split screen photographic device method for previewing, which is characterized in that this method include with
Lower step: S1 detects the preview figure layer of the display device based on SurfaceView in different split screen windows with corresponding
Mode cuts preview figure layer;S2 recalculates the clipping region of window when institute's preview figure layer switches translation between split screen window
Preview is executed again.
According to split screen photographic device method for previewing, wherein the step S1 is specifically included: obtain display device shown by
Multiple figure layers;Lookup includes the preview figure layer of video pictures, by preview figure layer carry out equal proportion cut and/be placed in
Former preview figure layer only shows the region of picture.
According to split screen photographic device method for previewing, wherein multiple figure layers shown by display device are especially by calling
SurfaceView interface is obtained.
According to split screen photographic device method for previewing, wherein step S2 is specifically included: real time monitoring display device preview graph
Layer dynamic;When being stopped by other interfaces and/figure layer occurs in preview figure layer, preview figure layer spare area is recalculated, to including
Have the preview figure layer of video pictures carry out cut and spare area shown.
According to split screen photographic device method for previewing, wherein display device be V66/V40 automobile data recorder.
Technical solution of the present invention further includes a kind of for for executing above-mentioned any split screen photographic device preview
System, which is characterized in that the system includes: the first cutting module, for detecting the display device based on SurfaceView
Preview figure layer cuts preview figure layer in different split screen windows in a corresponding way;Second cuts module, for working as institute's preview
When figure layer switches translation between split screen window, the clipping region for recalculating window executes preview again.
The invention has the benefit that camera data copy less, CPU occupancy is low, and preview fluency is good;Figure layer scaling is walked
DE, antialiasing ability are strong;The deficiency of native interface is made up, the size variation of split screen window is adapted to and realizes smoothness between split screen window
Switching.
Detailed description of the invention
Fig. 1 show overview flow chart according to the method for the present invention;
Fig. 2 show the system structure diagram of embodiment according to the present invention;
Fig. 3 show the SurfaceView block schematic illustration of embodiment according to the present invention.
Specific embodiment
Technical solution of the present invention includes a kind of split screen photographic device method for previewing and system, suitable for being related to video class
Preview and in window size and the product that requires of switching, by below with reference to embodiment and attached drawing to structure of the invention
Think of, specific structure and the technical effect of generation carry out clear, complete description, to be completely understood by the purpose of the present invention, scheme
And effect.
It should be noted that unless otherwise specified, when a certain feature referred to as " fixation ", " connection " are in another feature,
It can directly fix, be connected to another feature, and can also fix, be connected to another feature indirectly.In addition, this
The descriptions such as the upper and lower, left and right used in open are only the mutual alignment pass relative to each component part of the disclosure in attached drawing
For system.The "an" of used singular, " described " and "the" are also intended to including most forms in the disclosure, are removed
Non- context clearly expresses other meaning.In addition, unless otherwise defined, all technical and scientific terms used herein
It is identical as the normally understood meaning of those skilled in the art.Term used in the description is intended merely to describe herein
Specific embodiment is not intended to be limiting of the invention.Term as used herein "and/or" includes one or more relevant
The arbitrary combination of listed item.
It will be appreciated that though various elements, but this may be described using term first, second, third, etc. in the disclosure
A little elements should not necessarily be limited by these terms.These terms are only used to for same type of element being distinguished from each other out.For example, not departing from
In the case where disclosure range, first element can also be referred to as second element, and similarly, second element can also be referred to as
One element.The use of provided in this article any and all example or exemplary language (" such as ", " such as ") is intended merely to more
Illustrate the embodiment of the present invention well, and unless the context requires otherwise, otherwise the scope of the present invention will not be applied and be limited.
Fig. 1 show overview flow chart according to the method for the present invention.The following steps are included: S1, detects display device
Preview figure layer cuts preview figure layer in different split screen windows in a corresponding way;S2, when preview figure layer is between split screen window
When switching translation, without using animation and the clipping region of calculation window again.
Fig. 2 show the system structure diagram of embodiment according to the present invention.It include: the first cutting module, for detecting
Preview figure layer is cut in a corresponding way in different split screen windows to display device preview figure layer;Second cuts module, uses
In when preview figure layer switches translation between split screen window, without using animation and the clipping region of calculation window again.
Technical solution of the present invention further provides explained below:
Because having the preview of two-way high-definition camera and video recording, system load is relatively high, it is desirable that reduces resource when preview as far as possible and accounts for
With;Preview scene is carried out in driving, it is desirable that fluency is relatively high.For thirdly, SurfaceView is first choice, but
It is not able to satisfy second point requirement, the frame that it is realized just is analyzed below, to propose solution party's scheme.
It is two figure layers of difference using main interface and camera preview, under, main interface exists for camera preview with reference to Fig. 3
Above and the region of camera preview it is arranged to transparent to show the preview window;
SurfaceView just will be updated the figure layer of camera preview, institute after the position of main interface and size variation
To have nonsynchronous problem between main interface and preview interface in window switching process;Because preview figure layer is and main interface
The occupy-place strict conformance of SurfaceView, if the ratio of width to height of camera and window it is inconsistent when, preview screen can generate change
Shape;
Because camera preview figure layer is individually to dock with camera, lack the copy as TextureView,
Reduce CPU occupancy;This is that texture figure layer can directly walk DE and zoom in and out, the zooming effect and performance of DE on V66/V40
It is better than GPU very much.
From the description above it is found that the realization frame decision of SrufaceView cannot arbitrarily shift one's position and cannot be well
Adapt to window size.The present invention realizes camera preview in the strategy of split screen scene by control in application figure layer:
Preview figure layer is cut in different ways when detecting preview figure layer in different split screen windows;
When preview figure layer switches translation between split screen window, without using animation and the clipping region of calculation window again.
In addition, the operation of process described herein can be performed in any suitable order, unless in addition indicating herein or with its other party
Formula significantly with contradicted by context.Process described herein (or modification and/or combination thereof) can be configured with executable instruction
It is executed under the control of one or more computer systems, and can be used as the generation jointly executed on the one or more processors
Code (for example, executable instruction, one or more computer program or one or more application) carrys out reality by hardware or combinations thereof
It is existing.Computer program includes the multiple instruction that can be performed by one or more processors.
Further, method can be realized in being operably coupled to suitable any kind of computing platform, including but
It is not limited to PC, mini-computer, main frame, work station, network or distributed computing environment, individual or integrated meter
Calculate machine platform or communicated with charged particle tool or other imaging devices etc..Each aspect of the present invention can be to be stored in
No matter machine readable code on non-transitory storage medium or equipment is moveable or is integrated to calculate and put down to realize
Platform, such as hard disk, optically read and/or write-in storage medium, RAM, ROM, so that it can be read by programmable calculator, when depositing
Storage media or equipment can be used for configuration and operation computer to execute process described herein when being read by computer.In addition,
Machine readable code, or part thereof can be transmitted by wired or wireless network.When such media include in conjunction with microprocessor or
When other data processors realize the instruction or program of above step, the disclosure herein includes that these and other are different types of non-
Temporary computer readable storage medium.When programming according to the method for the present invention with technology, the invention also includes computer sheets
Body.
Computer program can be applied to input data to execute functions herein, be deposited to convert input data with generating
It stores up to the output data of nonvolatile memory.Output information can also be applied to one or more output equipment such as displays.
In the preferred embodiment of the invention, the data of conversion indicate physics and tangible object, including the physics generated on display
Describe with the particular visual of physical objects.
More than, only presently preferred embodiments of the present invention, the invention is not limited to above embodiment, as long as its with
Identical means reach technical effect of the invention, all within the spirits and principles of the present invention, any modification for being made, equivalent
Replacement, improvement etc., should be included within the scope of the present invention.Its within the scope of the present invention technical solution and/
Or embodiment can have a variety of different modifications and variations.
Claims (6)
1. a kind of split screen photographic device method for previewing, which is characterized in that method includes the following steps:
S1 detects the preview figure layer of the display device based on SurfaceView in different split screen windows with corresponding side
Formula is cut and preview figure layer;
S2, when institute's preview figure layer switches translation between split screen window, the clipping region for recalculating window executes preview again.
2. split screen photographic device method for previewing according to claim 1, which is characterized in that the step S1 is specifically included:
Obtain multiple figure layers shown by display device;
Lookup includes the preview figure layer of video pictures, by preview figure layer carry out equal proportion cut and/be placed in former preview
Figure layer only shows the region of picture.
3. according to split screen photographic device method for previewing as claimed in claim 2, which is characterized in that obtain more shown by display device
A figure layer is obtained especially by calling SurfaceView interface.
4. split screen photographic device method for previewing according to claim 1, which is characterized in that the step S2 is specifically included:
Monitor display device preview figure layer dynamic in real time;
When preview figure layer occur by other interfaces and/figure layer stop when, recalculate preview figure layer spare area, to include view
The preview figure layer of frequency picture cut and spare area is shown.
5. split screen photographic device method for previewing according to claim 1 according to claim 1, which is characterized in that described aobvious
Showing device is V66/V40 automobile data recorder.
6. a kind of require any split screen photographic device prebrowsing system of 1-5 for perform claim, which is characterized in that the system
Include:
First cuts module, for detecting the preview figure layer of the display device based on SurfaceView in different split screen windows
Preview figure layer is cut in a corresponding way when mouth;
Second cuts module, for recalculating the Crop Area of window when institute's preview figure layer switches translation between split screen window
Domain executes preview again.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811534103.0A CN109510942A (en) | 2018-12-14 | 2018-12-14 | A kind of split screen photographic device method for previewing and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811534103.0A CN109510942A (en) | 2018-12-14 | 2018-12-14 | A kind of split screen photographic device method for previewing and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109510942A true CN109510942A (en) | 2019-03-22 |
Family
ID=65753340
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811534103.0A Pending CN109510942A (en) | 2018-12-14 | 2018-12-14 | A kind of split screen photographic device method for previewing and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109510942A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113190306A (en) * | 2021-04-12 | 2021-07-30 | 沈阳中科创达软件有限公司 | Display level switching method, device, equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101059756A (en) * | 2007-05-16 | 2007-10-24 | 珠海金山软件股份有限公司 | Device and method for user operating sheltered area |
CN104615418A (en) * | 2014-07-25 | 2015-05-13 | 腾讯科技(北京)有限公司 | Slideable play window implementation method and device |
CN104951271A (en) * | 2015-07-03 | 2015-09-30 | 上海与德通讯技术有限公司 | Split screen display method and electronic equipment |
CN105677351A (en) * | 2016-01-06 | 2016-06-15 | 福州瑞芯微电子股份有限公司 | Multi-window compatible display method and device |
CN106126027A (en) * | 2016-06-24 | 2016-11-16 | 北京奇虎科技有限公司 | The multi-screen display method of terminal screen, device and terminal |
CN106210629A (en) * | 2016-07-13 | 2016-12-07 | 深圳市爱培科技术股份有限公司 | The system and method that double record shooting single screens of a kind of intelligent back vision mirror show |
CN107092684A (en) * | 2017-04-21 | 2017-08-25 | 腾讯科技(深圳)有限公司 | Image processing method and device, storage medium |
US20170357437A1 (en) * | 2016-06-10 | 2017-12-14 | Apple Inc. | Device, Method, and Graphical User Interface for Manipulating Windows in Split Screen Mode |
US20180034979A1 (en) * | 2016-07-26 | 2018-02-01 | Adobe Systems Incorporated | Techniques for capturing an image within the context of a document |
-
2018
- 2018-12-14 CN CN201811534103.0A patent/CN109510942A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101059756A (en) * | 2007-05-16 | 2007-10-24 | 珠海金山软件股份有限公司 | Device and method for user operating sheltered area |
CN104615418A (en) * | 2014-07-25 | 2015-05-13 | 腾讯科技(北京)有限公司 | Slideable play window implementation method and device |
CN104951271A (en) * | 2015-07-03 | 2015-09-30 | 上海与德通讯技术有限公司 | Split screen display method and electronic equipment |
CN105677351A (en) * | 2016-01-06 | 2016-06-15 | 福州瑞芯微电子股份有限公司 | Multi-window compatible display method and device |
US20170357437A1 (en) * | 2016-06-10 | 2017-12-14 | Apple Inc. | Device, Method, and Graphical User Interface for Manipulating Windows in Split Screen Mode |
CN106126027A (en) * | 2016-06-24 | 2016-11-16 | 北京奇虎科技有限公司 | The multi-screen display method of terminal screen, device and terminal |
CN106210629A (en) * | 2016-07-13 | 2016-12-07 | 深圳市爱培科技术股份有限公司 | The system and method that double record shooting single screens of a kind of intelligent back vision mirror show |
US20180034979A1 (en) * | 2016-07-26 | 2018-02-01 | Adobe Systems Incorporated | Techniques for capturing an image within the context of a document |
CN107092684A (en) * | 2017-04-21 | 2017-08-25 | 腾讯科技(深圳)有限公司 | Image processing method and device, storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113190306A (en) * | 2021-04-12 | 2021-07-30 | 沈阳中科创达软件有限公司 | Display level switching method, device, equipment and storage medium |
CN113190306B (en) * | 2021-04-12 | 2024-02-20 | 沈阳中科创达软件有限公司 | Display hierarchy switching method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8217990B2 (en) | Stereoscopic picture generating apparatus | |
US10031636B2 (en) | Remoting desktop displays using move regions | |
US9305398B2 (en) | Methods for creating and displaying two and three dimensional images on a digital canvas | |
US20060087556A1 (en) | Stereoscopic image display device | |
JP2021507388A (en) | Instance segmentation methods and devices, electronics, programs and media | |
US20090244269A1 (en) | Method, apparatus, and program for displaying stereoscopic images | |
CN103702032B (en) | Image processing method, device and terminal equipment | |
US11875108B2 (en) | Annotating documents on a mobile device | |
US11233935B2 (en) | Multi-camera post-capture image processing | |
JP2018156640A (en) | Learning method and program | |
US11314400B2 (en) | Unified digital content selection system for vector and raster graphics | |
JP2012104114A (en) | Perspective transformation of two-dimensional images | |
US20220207655A1 (en) | System and method for synthetic depth-of-field effect rendering for videos | |
US20180046361A1 (en) | Fitting Content to a Resized Frame | |
US20210365742A1 (en) | Determining Video Cuts in Video Clips | |
US20130335597A1 (en) | Apparatus and method for providing image | |
CN109510942A (en) | A kind of split screen photographic device method for previewing and system | |
EP3151243B1 (en) | Accessing a video segment | |
US8035658B2 (en) | Bifocal display device and bifocal display method | |
CN112819927A (en) | Video generation method and device based on pictures | |
KR102227853B1 (en) | Apparatus and method for generating vehicle around-view video | |
CN104639969A (en) | Full screen page display method and device | |
CN104517273A (en) | Image super-resolution processing method and apparatus | |
KR102526113B1 (en) | Apparatus and method for visualizing congestion degree | |
CN108333570B (en) | Method and device for convolution smooth rendering of radar echo picture |
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: 20190322 |
|
RJ01 | Rejection of invention patent application after publication |