CN103685963B - image display processing method and device - Google Patents

image display processing method and device Download PDF

Info

Publication number
CN103685963B
CN103685963B CN201310745341.7A CN201310745341A CN103685963B CN 103685963 B CN103685963 B CN 103685963B CN 201310745341 A CN201310745341 A CN 201310745341A CN 103685963 B CN103685963 B CN 103685963B
Authority
CN
China
Prior art keywords
display layer
preset
preset display
layer
hide
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310745341.7A
Other languages
Chinese (zh)
Other versions
CN103685963A (en
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201310745341.7A priority Critical patent/CN103685963B/en
Publication of CN103685963A publication Critical patent/CN103685963A/en
Application granted granted Critical
Publication of CN103685963B publication Critical patent/CN103685963B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of image display processing method and device, described image display processing method comprises the following steps:When receiving the enabled instruction of user's input, foreground application display control interface is controlled, the painting canvas of the preview video picture for carrying camera acquisition is created, and the painting canvas is carried on preset display layer;The control instruction inputted according to user in the control interface, controls the preset display layer to show preview video picture or controls preset display layer to hide;Obtain the preview video picture shown in the preset display layer of show or hide on painting canvas.The present invention effectively prevent camera video data in front and back application display switching, and camera needs the action opened or closed, so as to cause the problem of video data transmission is interrupted.

Description

Image display processing method and device
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of image display processing method and device.
Background technology
More and more, all standard configuration shootings such as mobile phone, TV, the somatosensory device that camera is used in each terminal Head.And the function of camera is mainly monitoring, take pictures, video recording etc..In other instances, it is necessary to can both be run with foreground application, Can also background application operation.But it is due to that preview video picture is shown in the control of foreground application when foreground application is run On, and when camera video data are in front and back application display switching, camera needs the action opened or closed, so as to make The problem of being interrupted into video data transmission.
The content of the invention
It is a primary object of the present invention to provide a kind of image display processing method, it is intended to prevent camera video data from existing During front and back application display switching, camera needs the action opened or closed, so as to cause asking for video data transmission interruption Topic.
In order to realize goal of the invention, the present invention provides a kind of image display processing method, described image display processing method Comprise the following steps:
When receiving the enabled instruction of user's input, foreground application display control interface is controlled, creates and is taken the photograph for carrying As the painting canvas for the preview video picture that head is obtained, and the painting canvas is carried on preset display layer;
The control instruction inputted according to user in the control interface, controls the preset display layer to show that preview video is drawn Face controls preset display layer to hide;
Obtain the preview video picture shown in the preset display layer of show or hide on painting canvas.
Preferably, the preset display layer is the top layer of display layer.
Preferably, the preset display layer is controlled to show that preview video picture is specially:The preset display layer is set Display properties is display;
The preset display layer is controlled to hide specially:It is hiding to set the display properties of the preset display layer.
Preferably, the preset display layer is controlled to show that preview video picture is specially:Adjust the preset display layer Size is preset value;
The preset display layer is controlled to hide specially:The size for adjusting the preset display layer is 0.
Preferably, it is in the size that the size for adjusting the preset display layer is preset value or the adjustment preset display layer After 0, in addition to:
The position adjustment that the preset display layer is shown is to preset position.
The present invention also provides a kind of image display processor, and described image display processing unit includes:
Processing module, for when receiving the enabled instruction of user's input, controlling foreground application display control interface, wound The painting canvas of the preview video picture for carrying camera acquisition is built, and the painting canvas is carried on preset display layer;
Control module, for the control instruction inputted according to user in the control interface, controls the preset display layer Show preview video picture or control preset display layer to hide;
The preview video picture shown in acquisition module, the preset display layer for obtaining show or hide on painting canvas.
Preferably, the preset display layer is the top layer of display layer.
Preferably, the control module control preset display layer shows that preview video picture is specially:Set described The display properties of preset display layer is display;
The control module controls the preset display layer to hide:The display properties of the preset display layer is set It is hiding.
Preferably, the control module control preset display layer shows that preview video picture is specially:Adjustment is described The size of preset display layer is preset value;
The control module controls the preset display layer to hide:The size for adjusting the preset display layer is 0.
Preferably, described image display processing unit also includes:
Adjusting module, for the position adjustment that shows the preset display layer to preset position.
The present invention carries painting canvas by the preset display layer of setting one, and by controlling the dispaly state of preset display layer, it is real Show the display of preview screen and hide;So as to be grasped during foreground application with background application switching to painting canvas Control, painting canvas is carried by preset display layer in real time, therefore prevents camera video data in front and back application display switching, is taken the photograph As the action that head needs are opened or closed, so as to cause the problem of video data transmission is interrupted.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of image display processing method first embodiment of the present invention;
Fig. 2 is the structural representation of the embodiment of image display processor one of the present invention;
Fig. 3 is the structural representation of another embodiment of image display processor of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of image display processing method.
Reference picture 1, Fig. 1 is the schematic flow sheet of image display processing method first embodiment of the present invention, and the present embodiment is carried The image display processing method of confession comprises the following steps:
Step S10, when receiving the enabled instruction of user's input, controls foreground application display control interface, creates and use The painting canvas of the preview video picture obtained in carrying camera, and the painting canvas is carried on preset display layer;
In the present embodiment, above-mentioned image display processing method is applied in the electronic equipment with camera function, specifically, When user opens camera function, i.e., enabled instruction is inputted to electronic equipment, will now start foreground application simultaneously and backstage should With.One control interface is shown by foreground application, entrance is provided to camera control to user, for example, can be set in control interface Camera is opened, camera is closed, exits the function buttons such as foreground application.The preset display layer is used to show that preview video is drawn The preview screen in face, the position of its aspect can be configured according to actual needs.Specifically, above-mentioned preset display layer is linux It is used for the display layer of display picture in system(Layer), and different layers occupies different regions, and a upper display in video memory Layer can block next display layer.In the present embodiment preferably, the preset display layer is the top layer of display layer, the i.e. preset display layer For OVERLAY layers.OVERLAY layers are initialized by background application and painting canvas is created, and are transmitted to the shared drive of bottom on painting canvas The video data of display.It should be noted that when receiving the enabled instruction of user's input, now can directly open shooting Head, and control preset display layer to show preview video picture;Camera can also be directly opened, and controls preset display layer hidden Hide;Camera can not also be opened, and controls preset display layer to hide.
Step S20, the control instruction inputted according to user in the control interface controls the preset display layer to show in advance Look at and video pictures or control preset display layer to hide;
After display control interface, user can be controlled the input of instruction by control interface, such as when user's point When camera is opened in impact, foreground application will send EVENT_OPEN message to background application in the form of EVENT message events, after When platform application receives the EVENT_OPEN message, preset display layer will be controlled to show, so that the preview video on painting canvas Picture is shown by preset display layer.When user, which clicks on, exits foreground application, foreground application will be with EVENT message events Form send EVENT_CLOASE message to background application, when background application receives the EVENT_CLOASE message, will control Make preset display layer to hide, so that the preview video picture on painting canvas can not be shown by preset display layer, that is, use Family is without the preview video picture watched on painting canvas.
Step S30, obtains the preview video picture shown in the preset display layer of show or hide on painting canvas.
The call back function that background application is provided by calling system framework obtains the video counts of preview video picture on painting canvas According to data, in the call back function, the parameter as function such as data and the wide w of video data, high h, form format WriteVideo functions are supplied to, memory headroom is written to, then by way of shared drive, used for the algorithm of bottom, can To carry out corresponding image procossing.
The present invention carries painting canvas by the preset display layer of setting one, and by controlling the dispaly state of preset display layer, it is real Show the display of preview screen and hide;So as to be grasped during foreground application with background application switching to painting canvas Control, painting canvas is carried by preset display layer in real time, therefore prevents camera video data in front and back application display switching, is taken the photograph As the action that head needs are opened or closed, so as to cause the problem of video data transmission is interrupted.
It should be noted that the mode that the above-mentioned preset display layer of control shows and hidden can be set according to actual needs Put.In a second embodiment, can be by setting the display properties of preset display layer to be shown and hidden, in 3rd embodiment In, can be by setting the size of preset display layer to be shown and hidden.This is described in detail below:
In a second embodiment, the preset display layer is controlled to show that preview video picture is specially:Set described preset The display properties of display layer is display;
The preset display layer is controlled to hide specially:It is hiding to set the display properties of the preset display layer.
In the present embodiment, when background application receives the EVENT_OPEN message of foreground application transmission, it will preset The display properties of display layer is set to display(As show), so that the preview video picture on painting canvas passes through preset display Layer is shown.When background application receives the EVENT_CLOASE message of foreground application transmission, it will preset display layer Display properties be set to hide(As hide), so that the preview video picture on painting canvas can not pass through preset display layer It has been shown that, i.e., user is without the preview video picture watched on painting canvas.
In the third embodiment, the preset display layer is controlled to show that preview video picture is specially:Adjust described preset The size of display layer is preset value;
The preset display layer is controlled to hide specially:The size for adjusting the preset display layer is 0.
It should be noted that above-mentioned preset value can be configured according to actual needs, can be for example 100*100 pixel Point;The size of above-mentioned preset display layer is 0, i.e., preset display layer is shown as 1 pixel.
In the present embodiment, when background application receives the EVENT_OPEN message of foreground application transmission, it will preset The size of display layer is adjusted to 100*100 pixel, so that the preview video picture on painting canvas passes through preset display layer Shown.When background application receives the EVENT_CLOASE message of foreground application transmission, it will preset display layer Size is adjusted to 1 pixel, so that the preview video picture on painting canvas can not be shown by preset display layer, i.e., User is without the preview video picture watched on painting canvas.
Further, based on 3rd embodiment, in the present embodiment, the size of the preset display layer is being adjusted for preset value Or the size of the adjustment preset display layer is after 0, in addition to:
The position adjustment that the preset display layer is shown is to preset position.
, can be by adjusting preset display layer after the size for adjusting the preset display layer is preset value in the present embodiment The position of display, preview video picture is shown and watched in place for user.When adjusting the big of the preset display layer It is small to be after 0, therefore, can be by adjusting the position that preset display layer show because preset display layer also has 1 pixel, general Preset display layer is placed on the border of viewing area, so as to preferably hide preset display layer.
The present invention also provides a kind of image display processor, for realizing the above method.Reference picture 2, Fig. 2 is the present invention The structural representation of the embodiment of image display processor one.The image display processor that the present embodiment is provided includes:
Processing module 100, for when receiving the enabled instruction of user's input, controlling foreground application display control circle Face, creates the painting canvas of the preview video picture for carrying camera acquisition, and the painting canvas is carried on into preset display layer;
In the present embodiment, above-mentioned image display processing method is applied in the electronic equipment with camera function, specifically, When user opens camera function, i.e., enabled instruction is inputted to electronic equipment, will now start foreground application simultaneously and backstage should With.One control interface is shown by foreground application, entrance is provided to camera control to user, for example, can be set in control interface Camera is opened, camera is closed, exits the function buttons such as foreground application.The preset display layer is used to show that preview video is drawn The preview screen in face, the position of its aspect can be configured according to actual needs.Specifically, above-mentioned preset display layer is linux It is used for the display layer of display picture in system(Layer), and different layers occupies different regions, and a upper display in video memory Layer can block next display layer.In the present embodiment preferably, the preset display layer is the top layer of display layer, the i.e. preset display layer For OVERLAY layers.OVERLAY layers are initialized by the processing module 100 in background application and create painting canvas, and sharing to bottom The video data shown on internal memory transmission painting canvas.It should be noted that when receiving the enabled instruction of user's input, now may be used Directly to open camera, and preset display layer is controlled to show preview video picture;Camera can also be directly opened, and is controlled Preset display layer is hidden;Camera can not also be opened, and controls preset display layer to hide.
Control module 200, for the control instruction inputted according to user in the control interface, controls the preset display Layer shows preview video picture or controls preset display layer to hide;
After display control interface, user can be controlled the input of instruction by control interface, such as when user's point When camera is opened in impact, foreground application will send EVENT_OPEN message to background application in the form of EVENT message events, after When platform application receives the EVENT_OPEN message, by control module 200 preset display layer will be controlled to show, so that painting canvas On preview video picture shown by preset display layer.When user, which clicks on, exits foreground application, foreground application will be with The form of EVENT message events sends EVENT_CLOASE message to background application, and background application receives the EVENT_ During CLOASE message, by control module 200 preset display layer will be controlled to hide so that the preview video picture on painting canvas without Method shown by preset display layer, i.e., the preview video picture that user can not be watched on painting canvas.
Acquisition module 300, the preview video picture shown for obtaining on the painting canvas.
The call back function that acquisition module 300 in background application is provided by calling system framework obtains preview on painting canvas and regarded The video data data of frequency picture, in the call back function, data and the wide w of video data, high h, form format etc. WriteVideo functions are supplied to as the parameter of function, memory headroom is written to, then by way of shared drive, for bottom Algorithm use, corresponding image procossing can be carried out.
The present invention carries painting canvas by the preset display layer of setting one, and by controlling the dispaly state of preset display layer, it is real Show the display of preview screen and hide;So as to be grasped during foreground application with background application switching to painting canvas Control, painting canvas is carried by preset display layer in real time, therefore prevents camera video data in front and back application display switching, is taken the photograph As the action that head needs are opened or closed, so as to cause the problem of video data transmission is interrupted.
It should be noted that the mode that the above-mentioned preset display layer of control shows and hidden can be set according to actual needs Put.In a second embodiment, can be by setting the display properties of preset display layer to be shown and hidden, in 3rd embodiment In, can be by setting the size of preset display layer to be shown and hidden.This is described in detail below:
In a second embodiment, above-mentioned control module 200 controls the preset display layer to show that preview video picture is specific For:It is display to set the display properties of the preset display layer;
The control module 200 controls the preset display layer to hide:The display of the preset display layer is set Attribute is hiding.
In the present embodiment, when background application receives the EVENT_OPEN message of foreground application transmission, it will by controlling The display properties of preset display layer is set to display by module 200(As show), so that the preview video on painting canvas is drawn Face is shown by preset display layer., will when background application receives the EVENT_CLOASE message of foreground application transmission The display properties of preset display layer can be set to hide by control module 200(As hide), so that pre- on painting canvas Video pictures of looking at can not be shown that is, user is without the preview video picture watched on painting canvas by preset display layer.
In the third embodiment, above-mentioned control module 200 controls the preset display layer to show that preview video picture is specific For:The size for adjusting the preset display layer is preset value;
The control module 200 controls the preset display layer to hide:Adjust the size of the preset display layer For 0.
It should be noted that above-mentioned preset value can be configured according to actual needs, can be for example 100*100 pixel Point;The size of above-mentioned preset display layer is 0, i.e., preset display layer is shown as 1 pixel.
In the present embodiment, when background application receives the EVENT_OPEN message of foreground application transmission, it will by controlling The size of preset display layer is adjusted to 100*100 pixel by module 200, so that the preview video picture on painting canvas is logical Preset display layer is crossed to be shown.When background application receives the EVENT_CLOASE message of foreground application transmission, it will by The size of preset display layer is adjusted to 1 pixel by control module 200, so that the preview video picture on painting canvas can not Shown by preset display layer, i.e., user is without the preview video picture watched on painting canvas.
Further, with reference to reference picture 3, Fig. 3 is the structural representation of another embodiment of image display processor of the present invention Figure.Based on 3rd embodiment, in the present embodiment, above-mentioned image display processor also includes:
Adjusting module 400, for the position adjustment that shows the preset display layer to preset position.
In the present embodiment, after the size for adjusting the preset display layer is preset value, it can be adjusted by adjusting module 400 The position that preset display layer is shown, preview video picture is shown and watched in place for user.It is described preset when adjusting The size of display layer is that after 0, because preset display layer also has 1 pixel, therefore, can adjust pre- by adjusting module 400 The position that display layer is shown is put, preset display layer is placed on to the border of viewing area, so as to preferably hide preset display Layer.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of image display processing method, it is characterised in that comprise the following steps:
When receiving the enabled instruction of user's input, foreground application display control interface is controlled, is created for carrying camera The painting canvas of the preview video picture of acquisition, and the painting canvas is carried on preset display layer;
The control instruction inputted according to user in the control interface, control the preset display layer show preview video picture or Preset display layer is controlled to hide;
The video data of the preview video picture shown in the preset display layer of show or hide on painting canvas is obtained, with according to described Video data carries out corresponding image procossing.
2. image display processing method as claimed in claim 1, it is characterised in that the preset display layer is the top of display layer Layer.
3. image display processing method as claimed in claim 1, it is characterised in that the control preset display layer shows preview Video pictures are specially:It is display to set the display properties of the preset display layer;
The preset display layer is controlled to hide specially:It is hiding to set the display properties of the preset display layer.
4. image display processing method as claimed in claim 1, it is characterised in that the control preset display layer shows preview Video pictures are specially:The size for adjusting the preset display layer is preset value;
The preset display layer is controlled to hide specially:The size for adjusting the preset display layer is 0.
5. image display processing method as claimed in claim 4, it is characterised in that adjusting the size of the preset display layer It is after 0 for the size of preset value or the adjustment preset display layer, in addition to:
The position adjustment that the preset display layer is shown is to preset position.
6. a kind of image display processor, it is characterised in that including:
Processing module, for when receiving the enabled instruction of user's input, controlling foreground application display control interface, creating and use The painting canvas of the preview video picture obtained in carrying camera, and the painting canvas is carried on preset display layer;
Control module, for the control instruction inputted according to user in the control interface, controls the preset display layer to show Preview video picture controls preset display layer to hide;
The video counts of the preview video picture shown in acquisition module, the preset display layer for obtaining show or hide on painting canvas According to carry out corresponding image procossing according to the video data.
7. image display processor as claimed in claim 6, it is characterised in that the preset display layer is the top of display layer Layer.
8. image display processor as claimed in claim 6, it is characterised in that the control module control is described preset aobvious Show that layer shows that preview video picture is specially:It is display to set the display properties of the preset display layer;
The control module controls the preset display layer to hide:The display properties for setting the preset display layer is hidden Hide.
9. image display processor as claimed in claim 6, it is characterised in that the control module control is described preset aobvious Show that layer shows that preview video picture is specially:The size for adjusting the preset display layer is preset value;
The control module controls the preset display layer to hide:The size for adjusting the preset display layer is 0.
10. image display processor as claimed in claim 9, it is characterised in that described image display processing unit is also wrapped Include:
Adjusting module, for the position adjustment that shows the preset display layer to preset position.
CN201310745341.7A 2013-12-30 2013-12-30 image display processing method and device Active CN103685963B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310745341.7A CN103685963B (en) 2013-12-30 2013-12-30 image display processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310745341.7A CN103685963B (en) 2013-12-30 2013-12-30 image display processing method and device

Publications (2)

Publication Number Publication Date
CN103685963A CN103685963A (en) 2014-03-26
CN103685963B true CN103685963B (en) 2017-07-25

Family

ID=50322115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310745341.7A Active CN103685963B (en) 2013-12-30 2013-12-30 image display processing method and device

Country Status (1)

Country Link
CN (1) CN103685963B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630478B (en) * 2014-12-01 2019-11-26 阿里巴巴集团控股有限公司 A kind of method and apparatus for realizing page switching
CN104822077B (en) * 2014-12-04 2019-01-08 腾讯科技(北京)有限公司 The operation method and client of client
CN106161972A (en) * 2016-09-30 2016-11-23 深圳天珑无线科技有限公司 A kind of method and device of shooting
CN109714640B (en) * 2017-10-26 2022-01-21 创盛视联数码科技(北京)有限公司 Method for playing live video
CN107770449B (en) * 2017-11-02 2020-03-27 Oppo广东移动通信有限公司 Continuous shooting method, electronic device and storage medium
CN108268350B (en) * 2018-01-31 2021-04-09 Oppo广东移动通信有限公司 Control method and related product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006155109A (en) * 2004-11-26 2006-06-15 Yec Co Ltd Image processor
CN101403981A (en) * 2008-11-07 2009-04-08 中兴通讯股份有限公司 Management method and system for mobile phone application program running state
CN101795322A (en) * 2010-02-05 2010-08-04 华为终端有限公司 Preview method, device and cell phone
CN102957870A (en) * 2012-10-30 2013-03-06 中兴通讯股份有限公司 Photographing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006155109A (en) * 2004-11-26 2006-06-15 Yec Co Ltd Image processor
CN101403981A (en) * 2008-11-07 2009-04-08 中兴通讯股份有限公司 Management method and system for mobile phone application program running state
CN101795322A (en) * 2010-02-05 2010-08-04 华为终端有限公司 Preview method, device and cell phone
CN102957870A (en) * 2012-10-30 2013-03-06 中兴通讯股份有限公司 Photographing method and device

Also Published As

Publication number Publication date
CN103685963A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN103685963B (en) image display processing method and device
KR101864059B1 (en) Mobile terminal and shooting method thereof
EP3151548A1 (en) Video recording method and device
CN104836906A (en) Mobile terminal and method for acquiring images from short message operation interface in real time thereof
CN103533244A (en) Shooting device and automatic visual effect processing shooting method thereof
EP2446619A1 (en) Method and device for modifying a composite video signal layout
CN110798622B (en) Shared shooting method and electronic equipment
WO2014155670A1 (en) Stereoscopic video processing device, stereoscopic video processing method, and stereoscopic video processing program
WO2021013147A1 (en) Video processing method, device, terminal, and storage medium
CN111405339B (en) Split screen display method, electronic equipment and storage medium
CN101523481A (en) Image processing apparatus for superimposing windows displaying video data having different frame rates
CN112637515B (en) Shooting method and device and electronic equipment
US20200059597A1 (en) Shooting method and terminal
CN107566878B (en) Method and device for displaying pictures in live broadcast
CN105100870A (en) Screenshot method and terminal equipment
CN111083371A (en) Shooting method and electronic equipment
CN113938727A (en) Display device
CN115641824A (en) Picture adjustment device, display device, and picture adjustment method
CN113014804A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN106550261A (en) Lift the exhibiting method and system of video image clarity
US10440260B2 (en) Display control apparatus to enable a user to check a captured image after image processing
CN101489065B (en) Window television and method for implementing window therefor
CN104735353A (en) Method and device for taking panoramic photo
CN113691737B (en) Video shooting method and device and storage medium
CN103841329A (en) System for adjusting imaging effect of camera

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant