CN106604105A - Method and device for calculating image size of HBBTV application - Google Patents
Method and device for calculating image size of HBBTV application Download PDFInfo
- Publication number
- CN106604105A CN106604105A CN201611219437.XA CN201611219437A CN106604105A CN 106604105 A CN106604105 A CN 106604105A CN 201611219437 A CN201611219437 A CN 201611219437A CN 106604105 A CN106604105 A CN 106604105A
- Authority
- CN
- China
- Prior art keywords
- pixel
- hbbtv
- valid pixel
- application image
- image
- 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
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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
-
- 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/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4782—Web browsing, e.g. WebTV
-
- 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/47—End-user applications
- H04N21/485—End-user interface for client configuration
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention discloses a method for calculating an image size of an HBBTV application. The method comprises the steps of: acquiring a current application image of the HBBTV application on a television display layer; acquiring non-empty pixels of the current application image, and regarding each non-empty pixel having a non-empty pixel in the adjacent pixels as an effective pixel; and determining an effective image size of the HBBTV application according to distributed positions of the effective pixels. The invention further discloses a device for calculating the image size of the HBBTV application. The method and the device solve the technical problem that the existing HBBTV application requires full screen display.
Description
Technical field
The present invention relates to TV technology, more particularly to a kind of method and device of calculating HBBTV application image sizes.
Background technology
With the development of the industry technologies such as TV and Set Top Box, various New functions are applied to TV domain,
HBBTV (Hybrid Broadcast/Broadband TV mix broadcast broadband TV) is also that current domestic and international application is more wide
General one kind application standard.The application of HBBTV typically all web application, is all generally full screen display, and this is just needed
The resource of whole one layer of OSD (on-screen display, screen menu type regulative mode) is wanted, but also has the page of many applications
Face is not full frame, and if do not need flood OSD when also take flood OSD, that may result in the waste of resource.
The content of the invention
Present invention is primarily targeted at providing a kind of method and device of calculating HBBTV application image sizes, it is intended to solve
The application of certainly existing HBBTV needs the technical problem of full screen display.
For achieving the above object, a kind of method of calculating HBBTV application image sizes that the present invention is provided includes following step
Suddenly:
When HBBTV applications start, acquisition HBBTV applies the current application image in TV show layers;
The non-NULL pixel of the current application image is obtained, and the non-NULL pixel that there is non-NULL pixel in neighbor is made
For valid pixel;
According to the distributing position of each valid pixel, the effective picture size of the HBBTV applications is determined.
Preferably, the distributing position according to each valid pixel, determines the effective image of the HBBTV applications
The step of size, includes:
From top to bottom first valid pixel of the current application image is obtained, and is defined as the effective picture in coboundary
Element;
From bottom to up first valid pixel of the current application image is obtained, and is defined as the effective picture of lower boundary
Element;
From left to right first valid pixel of the current application image is obtained, and is defined as the effective picture of left margin
Element;
Dextrosinistral first valid pixel of the current application image is obtained, and is defined as the effective picture of right margin
Element;
According to the coboundary valid pixel, lower boundary valid pixel, left margin valid pixel and the effective picture of right margin that obtain
Element determines the effective picture size of the HBBTV applications.
Preferably, it is described to obtain the non-NULL pixel of the current application image, and will there is non-NULL pixel in neighbor
Non-NULL pixel as valid pixel the step of include:
It is zero pixel to obtain transparency in the current application image, and it is non-to define the pixel that the transparency is zero
Empty pixel;
Using the non-NULL pixel that there are at least two non-NULL pixels in neighbor as valid pixel.
Preferably, described when HBBTV applications start, acquisition HBBTV applies the current application figure in TV show layers
The step of picture, includes:
When HBBTV applications start, acquisition HBBTV applies the original image in TV show layers;
Sampled operational is carried out to the original image according to default sample rate, to obtain the pixel compression figure of original image
Picture, and pixel is compressed image as current application image;
The distributing position according to each valid pixel, determines the effective picture size of the HBBTV applications
Step includes:
According to the distributing position and sample rate of each valid pixel, the effective image chi of the HBBTV applications is determined
It is very little.
Preferably, the distributing position according to each valid pixel, determines the effective image of the HBBTV applications
Also include after the step of size:
Judge the effective picture size of the HBBTV applications whether less than pre-set dimension;
If so, then the effective picture size that the HBBTV is applied is stored in into default storage module, and will be described
The effective picture size of HBBTV applications is broadcasted to other HBBTV applications.
Additionally, for achieving the above object, the present invention also provides a kind of device of calculating HBBTV application image sizes, including:
Current application image collection module, when HBBTV applications start, to obtain HBBTV and apply in TV display figure
The current application image of layer;
Valid pixel acquisition module, to the non-NULL pixel for obtaining the current application image, and will deposit in neighbor
Non-NULL pixel non-NULL pixel as valid pixel;
Computing module, to the distributing position according to each valid pixel, determines the effectively figure of the HBBTV applications
As size.
Preferably, the computing module includes:
Acquiring unit, to obtain from top to bottom first valid pixel of the current application image, and is defined as
Coboundary valid pixel;From bottom to up first valid pixel of the current application image is obtained, and is defined as lower boundary
Valid pixel;From left to right first valid pixel of the current application image is obtained, and is defined as the effective picture of left margin
Element;Dextrosinistral first valid pixel of the current application image is obtained, and is defined as right margin valid pixel;
Determining unit, to according to obtain coboundary valid pixel, lower boundary valid pixel, left margin valid pixel and
Right margin valid pixel determines the effective picture size of the HBBTV applications.
Preferably, the valid pixel acquisition module includes:
Non-NULL pixel acquisition unit, to obtain the current application image in transparency be zero pixel, and define institute
It is non-NULL pixel to state the pixel that transparency is zero;
Valid pixel acquiring unit, to using the non-NULL pixel that there are at least two non-NULL pixels in neighbor as having
Effect pixel.
Preferably, the current application image collection module includes:
Original image acquiring unit, when HBBTV applications start, to obtain HBBTV and apply in TV show layers
Original image;
Sampled operational unit, to carry out sampled operational to the original image according to default sample rate, to obtain original
The pixel compression image of beginning image, and pixel is compressed image as current application image;
The computing module also to the distributing position and sample rate according to each valid pixel, it is determined that described
The effective picture size of HBBTV applications.
Preferably, the device of the calculating HBBTV application image sizes also includes:
Judge module, to judge the effective picture size of the HBBTV applications whether less than pre-set dimension;
Broadcast module, to be less than pre-set dimension when the effective picture size for judging the HBBTV applications, then will be described
The effective picture size of HBBTV applications is stored in default storage module, and the effective picture size that the HBBTV is applied is wide
Cast to other HBBTV applications.
In the technical scheme that the present invention is provided, when HBBTV applications start, obtain HBBTV and apply in TV show layers
Current application image;The non-NULL pixel of the current application image is obtained, and will there is the non-of non-NULL pixel in neighbor
Empty pixel is used as valid pixel;According to the distributing position of each valid pixel, the effective image of the HBBTV applications is determined
Size, applies to the effective picture size of HBBTV applications, then need not take the resource of flood OSD so that OSD's
Resource can be utilized preferably, also be enabled a user to while watch the display image of multiple HBBTV application, user friendly
Viewing experience, while also causing the user interface of terminal more attractive in appearance.
Description of the drawings
Fig. 1 is the schematic flow sheet of the method first embodiment that the present invention calculates HBBTV application image sizes;
Fig. 2 is that described image data are carried out in the method second embodiment for calculating HBBTV application image sizes of the invention
The refinement schematic flow sheet of calculation procedure;
Fig. 3 is to judge that the non-NULL pixel is in the method 3rd embodiment for calculating HBBTV application image sizes of the invention
The no refinement schematic flow sheet for valid pixel step;
Fig. 4 is that described image data step is obtained in the method fourth embodiment for calculating HBBTV application image sizes of the invention
Rapid refinement schematic flow sheet;
Fig. 5 is the schematic flow sheet of the embodiment of method the 5th that the present invention calculates HBBTV application image sizes;
Fig. 6 is the high-level schematic functional block diagram of the device first embodiment that the present invention calculates HBBTV application image sizes;
Fig. 7 is the refinement function of computing module in the device second embodiment for calculating HBBTV application image sizes of the invention
Module diagram;
Fig. 8 is the refinement function of judging unit in the device 3rd embodiment for calculating HBBTV application image sizes of the invention
Module diagram;
Fig. 9 is the refinement function of acquisition module in the device fourth embodiment for calculating HBBTV application image sizes of the invention
Module diagram;
Figure 10 is the high-level schematic functional block diagram of the embodiment of device the 5th that the present invention calculates HBBTV application image sizes.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
The present invention provides a kind of method of calculating HBBTV application image sizes, with reference to Fig. 1, in one embodiment, the calculating
The method of HBBTV application image sizes includes:
Step S10, when HBBTV applications start, acquisition HBBTV applies the current application image in TV show layers;
It is to be appreciated that HBBTV's (Hybrid Broadcast/Broadband TV mix broadcast broadband TV) should
With typically all web application, when application starts, the HBBTV interface widgets are actually a browser page, when having
During HBBTV related service information, the application can be in the HBBTV interface widgets loading related web page.Usually, the interface of HBBTV
Forms are full screen display interfaces, are also accomplished by taking OSD (on-screen display, the screen menu type regulation side of a flood
Formula) resource.
In the present embodiment, when startup HBBTV is applied, acquisition HBBTV applies the current application figure in TV show layers
Picture.For example, it is assumed that current application image is 720*576 in OSD show layers pixel size, then obtains HBBTV and apply in TV
The current application image of show layers is the application image of 720*576 pixel sizes.
Step S20, obtains the non-NULL pixel of the current application image, and will there is the non-of non-NULL pixel in neighbor
Empty pixel is used as valid pixel;
In the present embodiment, the non-NULL pixel is the pixel that transparency is zero, namely lighttight pixel.
Specifically, the current application image in TV show layers is applied according to HBBTV, obtains the current application image
Middle transparency is zero pixel, and using the transparency in neighbor be also zero pixel as valid pixel.It is to be appreciated that
In a kind of embodiment of the present embodiment, when two adjacent pixels are all non-NULL pixel, then two non-NULL pixels
It is defined as valid pixel.
Step S30, according to the distributing position of each valid pixel, determines the effective image chi of the HBBTV applications
It is very little.
It is to be appreciated that the non-NULL pixel of the current application image is non-one, then the valid pixel there is also it is multiple,
According to the distributing position of each valid pixel, then the effective picture size of the HBBTV applications is can determine that.
It should be noted that it is one overall continuous that HBBTV applies the current application image in TV show layers
Image, and then also just illustrate, the valid pixel of the current application image is continuous pixel, also just there is no individualism
Single valid pixel.Further, according to the distributing position of each continuous valid pixel, then can determine that the HBBTV should
Effective picture size.
In the present embodiment, when HBBTV applications start, acquisition HBBTV applies the current application figure in TV show layers
Picture, obtains the non-NULL pixel of the current application image, and using the non-NULL pixel that there is non-NULL pixel in neighbor as having
Effect pixel, and then according to the distributing position of each valid pixel, determine the effective picture size of the HBBTV applications.It is right
The effective picture size of the HBBTV applications is applied, then need not take the resource of flood OSD so that the resource of OSD can be obtained
To preferably utilization, also enable a user to while watching the display image of multiple HBBTV applications, user friendly viewing body
Test, while also causing the user interface of terminal more attractive in appearance.
Further, Fig. 2 is refer to, based on above-described embodiment, in the present embodiment, step S30 includes:
Step S31, obtains from top to bottom first valid pixel of the current application image, and is defined as coboundary
Valid pixel;
Step S32, obtains from bottom to up first valid pixel of the current application image, and is defined as lower boundary
Valid pixel;
Step S33, obtains from left to right first valid pixel of the current application image, and is defined as left margin
Valid pixel;
Step S34, obtains dextrosinistral first valid pixel of the current application image, and is defined as right margin
Valid pixel;
Step S35, according to coboundary valid pixel, lower boundary valid pixel, left margin valid pixel and the right for obtaining
Boundary's valid pixel determines the effective picture size of the HBBTV applications.
Specifically, after current application image is obtained, scanning from top to bottom is carried out to the current application image, and is worked as
When scanning to first non-NULL pixel, judge whether the non-NULL pixel is valid pixel.It should be noted that when scanning to first
During individual non-NULL pixel, search with the presence or absence of non-NULL pixel in four adjacent pixels of the non-NULL pixel, if four adjacent pixels
At least two non-NULL pixels of middle presence, then judge the non-NULL pixel as valid pixel.If the first non-NULL pixel for scanning is not
It is valid pixel, i.e., there is no or only exist a non-NULL pixel in the neighbor of the non-NULL pixel, the non-NULL pixel is nothing
Effect pixel, then continue scanning downwards, till first valid pixel is found.
When carrying out scanning from top to bottom to the current application image, and when first valid pixel for scanning,
Then determine that the currently active pixel is coboundary valid pixel, and stop the scanning to the current application image from top to bottom, and
Scanning from bottom to up is immediately converted as, according to the same decision rule to valid pixel, until scanning is arrived from bottom to up
First valid pixel, and then it is defined as lower boundary valid pixel.Further, advised according to the judgement similarly to valid pixel
Then, successively scanning from left to right and dextrosinistral scanning are carried out to the current application image, described working as is obtained respectively
The left margin valid pixel and right margin valid pixel of front application image.
The coboundary valid pixel, lower boundary valid pixel, left margin valid pixel and right margin according to obtaining has
Effect pixel determines the effective picture size of the HBBTV applications.It should be noted that according to the top of the current application image
Boundary's valid pixel, lower boundary valid pixel, left margin valid pixel and right margin valid pixel can determine that a square effectively figure
As size.
In the present embodiment, further provide according to obtaining the coboundary valid pixel of the current application image, following
Boundary's valid pixel, left margin valid pixel and right margin valid pixel are determining the effective picture size of HBBTV application
Technical scheme, and then cause calculating more specificization of the HBBTV application images size, it is ensured that the HBBTV application images
Size it is more accurate.
Further, Fig. 3 is refer to, based on embodiment two, in the present embodiment, step S20 includes:
Step S21, it is zero pixel to obtain transparency in the current application image, and it is zero to define the transparency
Pixel is non-NULL pixel;
Step S22, using the non-NULL pixel that there are at least two non-NULL pixels in neighbor as valid pixel.
Specifically, the pixel that transparency in the current application image is zero, namely lighttight pixel are obtained, and is defined
It is non-NULL pixel that the transparency is zero pixel.
Further, transparency is zero pixel in the current application image is obtained, and judges the transparency as zero
Pixel neighbor in whether there is at least two non-NULL pixels, namely the neighbor of the pixel that the transparency is zero
In with the presence or absence of at least two transparencys be zero pixel;If so, then judge there are at least two non-NULL pixels in neighbor
Non-NULL pixel as valid pixel.If it is to be appreciated that a non-NULL picture is only existed in the neighbor of the non-NULL pixel
There is no non-NULL pixel in element, then the non-NULL pixel can not be judged as valid pixel.
In a kind of preferred embodiment of the present embodiment, will there is the non-NULL pixel of four non-NULL pixels in neighbor
As valid pixel.
In the technical scheme that the present embodiment is provided, the decision rule of valid pixel is further defined, and then caused to working as
Front application viewing area size is accurately calculated.
Further, Fig. 4 is refer to, based on embodiment one, in the present embodiment, the calculating HBBTV application image sizes
Method include:
Step S11, when HBBTV applications start, acquisition HBBTV applies the original image in TV show layers;
Step S12, sampled operational is carried out according to default sample rate to the original image, to obtain the picture of original image
Element compression image, and pixel is compressed image as current application image;
Step S20, obtains the non-NULL pixel of the current application image, and will there is the non-of non-NULL pixel in neighbor
Empty pixel is used as valid pixel;
Step S301, according to the distributing position and sample rate of each valid pixel, determines having for the HBBTV applications
Effect picture size.
Specifically, when startup HBBTV is applied, acquisition HBBTV applies the original image in TV show layers, Ye Jiwei
The original image of any process of Jing.Sampled operational is carried out to the original image according to default sample rate, to obtain original graph
The pixel compression image of picture, and pixel is compressed image as current application image.
In an embodiment of the present embodiment, it is assumed that the original image of current application be 720*576 pixel sizes, institute
It is 50% to state default sample rate, namely needs for the original image to be compressed to half size, then according to default sampling algorithm:
A width of Tw of target image after compression, a height of Th, target pixel points (Tx, Ty);Position on the original image is Sx=Tx*
(Sw/Tw), Sy=Ty* (Sh/Th);Wherein, the wide Tw of target image, the high Th of target image, the wide Sw of original image, original
The high Sh of image and the pixel (Sx, Sy) of original image are given value, then can obtain the target image after compression
Pixel (Tx, Ty), and then the pixel compression image after compression is obtained, and pixel is compressed image as current application image.
Further, the non-NULL pixel of the current application image after compression is obtained, and according to the non-NULL picture
Element determines the valid pixel of the current application image, according to the distributing position and sample rate of each valid pixel, it is determined that
The effective picture size of the HBBTV applications.For example, in a kind of embodiment of the present embodiment, it is assumed that the sample rate is
50%, namely half sampling has been carried out to the original image, then the current application image after compressing is the one of original image
Half, when the distributing position for obtaining each effective image, according to 50% sample rate, the current application image need to be expanded
One times, and then obtain the view data with raw image format consistent size before compression.
In the technical scheme that the present embodiment is provided, when HBBTV applications start, should to HBBTV according to default sample rate
Original image used in TV show layers carries out sampled operational, and with the pixel for obtaining original image image is compressed, and by pixel
Compression image is used as current application image;And then can obtain smaller current application image, raising subsequently to process it is fast
Degree, also saves taking up room for the current application image.
Further, Fig. 5 is refer to, based on above-described embodiment, in the present embodiment, the calculating HBBTV application image chis
Very little method includes:
Step S10, when HBBTV applications start, acquisition HBBTV applies the current application image in TV show layers;
Step S20, obtains the non-NULL pixel of the current application image, and will there is the non-of non-NULL pixel in neighbor
Empty pixel is used as valid pixel;
Step S30, according to the distributing position of each valid pixel, determines the effective image chi of the HBBTV applications
It is very little;
Whether step S40, judge the effective picture size of the HBBTV applications less than pre-set dimension;
Step S50, if so, then by the effective picture size that the HBBTV is applied is stored in default storage module, and will
The effective picture size of the HBBTV applications is broadcasted to other HBBTV applications.
Specifically, when it is determined that the effective picture size of HBBTV applications, determines whether having for the HBBTV applications
Whether effect picture size is less than pre-set dimension.In the present embodiment, the pre-set dimension can be the size of HBBTV application figure layers,
Such as when the size of HBBTV application figure layers is 720*576 pixels, then the effective picture size of the HBBTV applications should be less than
720*576 pixels.
Further, when the effective picture size for judging the HBBTV applications is less than pre-set dimension, then by the HBBTV
Using effective picture size be stored in default storage module, and by the effective picture size that the HBBTV is applied broadcast to
Other HBBTV applications.And then when the current HBBTV applications need to be run with other application simultaneously, then can be from default storage
The effective picture size of HBBTV applications described in storing module direct access, without taking flood OSD resource so that OSD resources
Can be better profited from, also be enabled a user to while the display image for watching multiple HBBTV to apply, further improves user
Experience.
The present invention also provides a kind of device of calculatings HBBTV application image sizes, reference Fig. 6, in one embodiment, this
The device of the calculating HBBTV application image sizes of bright offer includes:
Current application image collection module 10, to when HBBTV applications start, acquisition HBBTV is applied and shown in TV
The current application image of figure layer;
It is to be appreciated that HBBTV's (Hybrid Broadcast/Broadband TV mix broadcast broadband TV) should
With typically all web application, when application starts, the HBBTV interface widgets are actually a browser page, when having
During HBBTV related service information, the application can be in the HBBTV interface widgets loading related web page.Usually, the interface of HBBTV
Forms are full screen display interfaces, are also accomplished by taking OSD (on-screen display, the screen menu type regulation side of a flood
Formula) resource.
In the present embodiment, when startup HBBTV is applied, current application image collection module 10 obtains HBBTV and applies in electricity
Depending on the current application image of show layers.For example, it is assumed that current application image is 720*576 in OSD show layers pixel size,
Then obtaining HBBTV applies the current application image in TV show layers to be the application image of 720*576 pixel sizes.
Valid pixel acquisition module 20, to the non-NULL pixel for obtaining the current application image, and by neighbor
There is the non-NULL pixel of non-NULL pixel as valid pixel;
In the present embodiment, the non-NULL pixel is the pixel that transparency is zero, namely lighttight pixel.
Specifically, the current application image in TV show layers, valid pixel acquisition module 20 is applied to obtain according to HBBTV
Take the pixel that transparency in the current application image is zero, and using the transparency in neighbor be also zero pixel as having
Effect pixel.It is to be appreciated that in a kind of embodiment of the present embodiment, when two adjacent pixels are all non-NULL pixel, then
Two non-NULL pixels may be defined as valid pixel.
Computing module 30, to the distributing position according to each valid pixel, determines the effective of the HBBTV applications
Picture size.
It is to be appreciated that the non-NULL pixel of the current application image is non-one, then the valid pixel there is also it is multiple,
According to the distributing position of each valid pixel, then the effective picture size of the HBBTV applications is can determine that.
It should be noted that it is one overall continuous that HBBTV applies the current application image in TV show layers
Image, and then also just illustrate, the valid pixel of the current application image is continuous pixel, also just there is no individualism
Single valid pixel.Further, computing module 30 then can determine that institute according to the distributing position of each continuous valid pixel
State the effective picture size of HBBTV applications.
In the present embodiment, when HBBTV applications start, acquisition HBBTV applies the current application figure in TV show layers
Picture, obtains the non-NULL pixel of the current application image, and using the non-NULL pixel that there is non-NULL pixel in neighbor as having
Effect pixel, and then according to the distributing position of each valid pixel, determine the effective picture size of the HBBTV applications.It is right
The effective picture size of the HBBTV applications is applied, then need not take the resource of flood OSD so that the resource of OSD can be obtained
To preferably utilization, also enable a user to while watching the display image of multiple HBBTV applications, user friendly viewing body
Test, while also causing the user interface of terminal more attractive in appearance.
Further, Fig. 7 is refer to, based on above-described embodiment, in the present embodiment, the computing module 30 includes:
Acquiring unit 31, to obtain from top to bottom first valid pixel of the current application image, and determines
For coboundary valid pixel;From bottom to up first valid pixel of the current application image is obtained, and is defined as following
Boundary's valid pixel;From left to right first valid pixel of the current application image is obtained, and it is effective to be defined as left margin
Pixel;Dextrosinistral first valid pixel of the current application image is obtained, and is defined as right margin valid pixel;
Determining unit 32, to according to coboundary valid pixel, lower boundary valid pixel, the left margin valid pixel for obtaining
With the effective picture size that right margin valid pixel determines the HBBTV applications.
Specifically, after current application image is obtained, the current application image of acquiring unit 31 pairs is carried out from top to bottom
Scanning, and when scanning to first non-NULL pixel when, judge whether the non-NULL pixel is valid pixel.It should be noted that
When scanning is to first non-NULL pixel, search with the presence or absence of non-NULL pixel in four adjacent pixels of the non-NULL pixel, if phase
There are at least two non-NULL pixels in four adjacent pixels, then judge the non-NULL pixel as valid pixel.If scan first
Individual non-NULL pixel is not valid pixel, i.e., there is no or only exist a non-NULL pixel in the neighbor of the non-NULL pixel, should
Non-NULL pixel is inactive pixels, then continue scanning downwards, till first valid pixel is found.
The current application image of acquiring unit 31 pairs carries out scanning from top to bottom, and works as first for scanning effectively
During pixel, it is determined that the currently active pixel is coboundary valid pixel, and is stopped to the current application image from top to bottom
Scanning, and scanning from bottom to up is immediately converted as, according to the same decision rule to valid pixel, until scanning is arrived under
First supreme valid pixel, and then it is defined as lower boundary valid pixel.Further, according to similarly to valid pixel
Decision rule, carries out scanning from left to right and dextrosinistral scanning to the current application image successively, obtains respectively
The left margin valid pixel and right margin valid pixel of the current application image.
Determining unit 32 is according to the coboundary valid pixel, lower boundary valid pixel, the left margin valid pixel for obtaining
With the effective picture size that right margin valid pixel determines the HBBTV applications.It should be noted that according to the current application
The coboundary valid pixel of image, lower boundary valid pixel, left margin valid pixel and right margin valid pixel can determine that a side
The effective picture size of shape.
In the present embodiment, further provide according to obtaining the coboundary valid pixel of the current application image, following
Boundary's valid pixel, left margin valid pixel and right margin valid pixel are determining the effective picture size of HBBTV application
Technical scheme, and then cause calculating more specificization of the HBBTV application images size, it is ensured that the HBBTV application images
Size it is more accurate.
Further, Fig. 8 is refer to, based on embodiment two, in the present embodiment, the valid pixel acquisition module 20 is wrapped
Include:
Non-NULL pixel acquisition unit 21, to obtain the current application image in transparency be zero pixel, and define
It is non-NULL pixel that the transparency is zero pixel;
Valid pixel acquiring unit 22, to the non-NULL pixel that will there are at least two non-NULL pixels in neighbor as
Valid pixel.
Specifically, non-NULL pixel acquisition unit 21 obtains the pixel that transparency in the current application image is zero, namely
Lighttight pixel, and it is non-NULL pixel to define the pixel that the transparency is zero.
Further, transparency is zero pixel in the current application image is obtained, valid pixel acquiring unit 22
With the presence or absence of at least two non-NULL pixels in judging the transparency as the neighbor of zero pixel, namely the transparency is
With the presence or absence of the pixel that at least two transparencys are zero in the neighbor of zero pixel;If so, then valid pixel acquiring unit
There is the non-NULL pixel of at least two non-NULL pixels as valid pixel in 22 judgement neighbors.If it is to be appreciated that described
A non-NULL pixel is only existed in the neighbor of non-NULL pixel or there is no non-NULL pixel, then the non-NULL pixel can not be judged to
It is set to valid pixel.
In a kind of preferred embodiment of the present embodiment, will there is the non-NULL pixel of four non-NULL pixels in neighbor
As valid pixel.
In the technical scheme that the present embodiment is provided, the decision rule of valid pixel is further defined, and then caused to working as
Front application viewing area size is accurately calculated.
Further, Fig. 9 is refer to, based on above-described embodiment, in the present embodiment, the current application image collection module
10 include:
Original image acquiring unit 11, when HBBTV applications start, to obtain HBBTV and apply in TV show layers
Original image;
Sampled operational unit 12, to carry out sampled operational to the original image according to default sample rate, to obtain
The pixel compression image of original image, and pixel is compressed image as current application image.
Specifically, when startup HBBTV is applied, original image acquiring unit 11 obtains HBBTV and applies in TV display figure
The original image of layer, namely without the original image of any process.Sampled operational unit 12 is according to default sample rate to described
Original image carries out sampled operational, compresses image with the pixel for obtaining original image, and pixel is compressed image and answer as current
Use image.
In an embodiment of the present embodiment, it is assumed that the original image of current application be 720*576 pixel sizes, institute
It is 50% to state default sample rate, namely needs for the original image to be compressed to half size, then according to default sampling algorithm:
A width of Tw of target image after compression, a height of Th, target pixel points (Tx, Ty);Position on the original image is Sx=Tx*
(Sw/Tw), Sy=Ty* (Sh/Th);Wherein, the wide Tw of target image, the high Th of target image, the wide Sw of original image, original
The high Sh of image and the pixel (Sx, Sy) of original image are given value, then can obtain the target image after compression
Pixel (Tx, Ty), and then the pixel compression image after compression is obtained, and pixel is compressed image as current application image.
It should be noted that in the present embodiment, the computing module 30 is also to dividing according to each valid pixel
Cloth position and sample rate, determine the effective picture size of the HBBTV applications.
Further, the non-NULL pixel of the current application image after compression is obtained, and according to the non-NULL picture
Element determines the valid pixel of the current application image, according to the distributing position and sample rate of each valid pixel, it is determined that
The effective picture size of the HBBTV applications.For example, in a kind of embodiment of the present embodiment, it is assumed that the sample rate is
50%, namely half sampling has been carried out to the original image, then the current application image after compressing is the one of original image
Half, when the distributing position for obtaining each effective image, according to 50% sample rate, the current application image need to be expanded
One times, and then obtain the view data with raw image format consistent size before compression.
In the technical scheme that the present embodiment is provided, when HBBTV applications start, should to HBBTV according to default sample rate
Original image used in TV show layers carries out sampled operational, and with the pixel for obtaining original image image is compressed, and by pixel
Compression image is used as current application image;And then can obtain smaller current application image, raising subsequently to process it is fast
Degree, also saves taking up room for the current application image.
Further, Figure 10 is refer to, based on above-described embodiment, in the present embodiment, the calculating HBBTV application image chis
Very little device includes:
Current application image collection module 10, to when HBBTV applications start, acquisition HBBTV is applied and shown in TV
The current application image of figure layer;
Valid pixel acquisition module 20, to the non-NULL pixel for obtaining the current application image, and by neighbor
There is the non-NULL pixel of non-NULL pixel as valid pixel;
Computing module 30, to the distributing position according to each valid pixel, determines the effective of the HBBTV applications
Picture size;
Judge module 40, to judge the effective picture size of the HBBTV applications whether less than pre-set dimension;
Broadcast module 50, to be less than pre-set dimension when the effective picture size for judging the HBBTV applications, then will be described
The effective picture size of HBBTV applications is stored in default storage module, and the effective picture size that the HBBTV is applied is wide
Cast to other HBBTV applications.
Specifically, when it is determined that the effective picture size of HBBTV applications, judge module 40 determines whether described
Whether the effective picture size of HBBTV applications is less than pre-set dimension.In the present embodiment, the pre-set dimension can be answered for HBBTV
With the size of figure layer, such as when the size of HBBTV application figure layers is 720*576 pixels, the then effective image that the HBBTV is applied
Size should be less than 720*576 pixels.
Further, when judge module 40 judges that the effective picture size of the HBBTV applications is less than pre-set dimension, then extensively
The effective picture size that the HBBTV is applied is stored in default storage module by broadcasting module 50, and the HBBTV is applied
Effective picture size is broadcasted to other HBBTV applications.And then when simultaneously the current HBBTV applications need to be run with other application
When, then can be from the effective picture size of HBBTV applications described in default storage module direct access, without taking flood
OSD resources so that OSD resources can be better profited from, also enable a user to while watching the display of multiple HBBTV applications
Image, further improves Consumer's Experience.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, it is every using this
Equivalent structure or equivalent flow conversion that bright description 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 method of calculating HBBTV application image sizes, it is characterised in that comprise the following steps:
When HBBTV applications start, acquisition HBBTV applies the current application image in TV show layers;
Obtain the non-NULL pixel of the current application image, and using the non-NULL pixel that there is non-NULL pixel in neighbor as having
Effect pixel;
According to the distributing position of each valid pixel, the effective picture size of the HBBTV applications is determined.
2. the method for calculating HBBTV application image sizes as claimed in claim 1, it is characterised in that described according to each institute
The distributing position of valid pixel is stated, is included the step of the effective picture size for determining HBBTV application:
From top to bottom first valid pixel of the current application image is obtained, and is defined as coboundary valid pixel;
From bottom to up first valid pixel of the current application image is obtained, and is defined as lower boundary valid pixel;
From left to right first valid pixel of the current application image is obtained, and is defined as left margin valid pixel;
Dextrosinistral first valid pixel of the current application image is obtained, and is defined as right margin valid pixel;
It is true according to coboundary valid pixel, lower boundary valid pixel, left margin valid pixel and the right margin valid pixel for obtaining
The effective picture size of the fixed HBBTV applications.
3. the method for calculating HBBTV application image sizes as claimed in claim 1, it is characterised in that work as described in the acquisition
The non-NULL pixel of front application image, and the non-NULL pixel that there is non-NULL pixel in neighbor is wrapped as the step of valid pixel
Include:
It is zero pixel to obtain transparency in the current application image, and it is non-NULL picture to define the pixel that the transparency is zero
Element;
Using the non-NULL pixel that there are at least two non-NULL pixels in neighbor as valid pixel.
4. the method for calculating HBBTV application image sizes as claimed in claim 1, it is characterised in that described when HBBTV applications
During startup, obtaining HBBTV and applying includes the step of the current application image of TV show layers:
When HBBTV applications start, acquisition HBBTV applies the original image in TV show layers;
Sampled operational is carried out to the original image according to default sample rate, image is compressed with the pixel for obtaining original image,
And pixel is compressed image as current application image;
The distributing position according to each valid pixel, the step of determine the effective picture size of HBBTV application
Including:
According to the distributing position and sample rate of each valid pixel, the effective picture size of the HBBTV applications is determined.
5. the method for the calculating HBBTV application image sizes as any one of Claims 1-4, it is characterised in that described
According to the distributing position of each valid pixel, the step of determine the effective picture size of the HBBTV applications after also wrap
Include:
Judge the effective picture size of the HBBTV applications whether less than pre-set dimension;
If so, then the effective picture size that the HBBTV is applied is stored in into default storage module, and should by the HBBTV
Effective picture size is broadcasted to other HBBTV applications.
6. a kind of device of calculating HBBTV application image sizes, it is characterised in that include:
Current application image collection module, when HBBTV applications start, to obtain HBBTV and apply in TV show layers
Current application image;
Valid pixel acquisition module, it is to the non-NULL pixel for obtaining the current application image and non-by existing in neighbor
The non-NULL pixel of empty pixel is used as valid pixel;
Computing module, to the distributing position according to each valid pixel, determines the effective image chi of the HBBTV applications
It is very little.
7. the device of HBBTV application image sizes is calculated as claimed in claim 6, it is characterised in that the computing module bag
Include:
Acquiring unit, to obtain from top to bottom first valid pixel of the current application image, and is defined as top
Boundary's valid pixel;From bottom to up first valid pixel of the current application image is obtained, and it is effective to be defined as lower boundary
Pixel;From left to right first valid pixel of the current application image is obtained, and is defined as left margin valid pixel;Obtain
Dextrosinistral first valid pixel of the current application image is taken, and is defined as right margin valid pixel;
Determining unit, to according to coboundary valid pixel, lower boundary valid pixel, left margin valid pixel and the right for obtaining
Boundary's valid pixel determines the effective picture size of the HBBTV applications.
8. the device of HBBTV application image sizes is calculated as claimed in claim 7, it is characterised in that the valid pixel is obtained
Delivery block includes:
Non-NULL pixel acquisition unit, to obtain the current application image in transparency be zero pixel, and define described
It is non-NULL pixel that lightness is zero pixel;
Valid pixel acquiring unit, to will there are at least two non-NULL pixels in neighbor non-NULL pixel as effective picture
Element.
9. the device of HBBTV application image sizes is calculated as claimed in claim 1, it is characterised in that the current application figure
As acquisition module includes:
Original image acquiring unit, when HBBTV applications start, to obtain HBBTV and apply in the original of TV show layers
Image;
Sampled operational unit, to carry out sampled operational to the original image according to default sample rate, to obtain original graph
The pixel compression image of picture, and pixel is compressed image as current application image;
The computing module determines that the HBBTV should also to the distributing position and sample rate according to each valid pixel
Effective picture size.
10. the device of the calculating HBBTV application image sizes as any one of claim 6 to 9, it is characterised in that institute
Stating the device of calculating HBBTV application image sizes also includes:
Judge module, to judge the effective picture size of the HBBTV applications whether less than pre-set dimension;
Broadcast module, to be less than pre-set dimension when the effective picture size for judging the HBBTV applications, then by the HBBTV
Using effective picture size be stored in default storage module, and by the effective picture size that the HBBTV is applied broadcast to
Other HBBTV applications.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611219437.XA CN106604105B (en) | 2016-12-26 | 2016-12-26 | Calculate the method and device of HBBTV application image size |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611219437.XA CN106604105B (en) | 2016-12-26 | 2016-12-26 | Calculate the method and device of HBBTV application image size |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106604105A true CN106604105A (en) | 2017-04-26 |
CN106604105B CN106604105B (en) | 2019-10-29 |
Family
ID=58604077
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611219437.XA Active CN106604105B (en) | 2016-12-26 | 2016-12-26 | Calculate the method and device of HBBTV application image size |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106604105B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108322805A (en) * | 2018-02-05 | 2018-07-24 | 青岛海信传媒网络技术有限公司 | A kind of processing method and processing device that HBBTV is shown |
CN108900832A (en) * | 2018-06-22 | 2018-11-27 | 青岛海信电器股份有限公司 | Form display control method, device, equipment and medium based on HBBTV |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102469369A (en) * | 2010-11-15 | 2012-05-23 | Lg电子株式会社 | Image display apparatus and method of operating the same |
CN103222274A (en) * | 2010-11-18 | 2013-07-24 | Lg电子株式会社 | Web-browsing method, and image display device using same |
CN103702223A (en) * | 2013-12-25 | 2014-04-02 | 深圳Tcl新技术有限公司 | Method and device for fusing HBBTV (Hybrid Broadcast Broadband TV) interface and UI (user interface) |
CN104902318A (en) * | 2015-04-29 | 2015-09-09 | 小米科技有限责任公司 | Playing control method and terminal device |
-
2016
- 2016-12-26 CN CN201611219437.XA patent/CN106604105B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102469369A (en) * | 2010-11-15 | 2012-05-23 | Lg电子株式会社 | Image display apparatus and method of operating the same |
CN103222274A (en) * | 2010-11-18 | 2013-07-24 | Lg电子株式会社 | Web-browsing method, and image display device using same |
CN103702223A (en) * | 2013-12-25 | 2014-04-02 | 深圳Tcl新技术有限公司 | Method and device for fusing HBBTV (Hybrid Broadcast Broadband TV) interface and UI (user interface) |
CN104902318A (en) * | 2015-04-29 | 2015-09-09 | 小米科技有限责任公司 | Playing control method and terminal device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108322805A (en) * | 2018-02-05 | 2018-07-24 | 青岛海信传媒网络技术有限公司 | A kind of processing method and processing device that HBBTV is shown |
CN108322805B (en) * | 2018-02-05 | 2020-07-17 | 青岛海信传媒网络技术有限公司 | HBBTV display processing method and device |
CN108900832A (en) * | 2018-06-22 | 2018-11-27 | 青岛海信电器股份有限公司 | Form display control method, device, equipment and medium based on HBBTV |
Also Published As
Publication number | Publication date |
---|---|
CN106604105B (en) | 2019-10-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9894287B2 (en) | Method and apparatus for acquiring a high dynamic image using multiple cameras | |
CN103546715A (en) | Method and device for adjusting proportion of picture of smart television | |
WO2017211250A1 (en) | Image overlay display method and system | |
CN105898615A (en) | Video display window switching method and device | |
US20170353704A1 (en) | Environment-Aware Supervised HDR Tone Mapping | |
CN107591134B (en) | MURA phenomenon compensation method, television and computer readable storage medium | |
CN109658427B (en) | Image processing method and device | |
CN103514241A (en) | Image loading method and system | |
CN105872419A (en) | Display method, device and liquid crystal television | |
CN106878631B (en) | Image display method and device | |
US11069322B2 (en) | Display method and display device, visible light communication transmission method and device | |
WO2020056744A1 (en) | Smear evaluation and improvement method and electronic device | |
CN104202646A (en) | Television picture display method and device, and television | |
WO2014030405A1 (en) | Display device, display method, television receiver, and display control device | |
CN109599054A (en) | The control method and device of display panel brightness | |
CN103700062B (en) | Image processing method and device | |
CN103561312A (en) | Method and device for adjusting video playing interface | |
CN113905268A (en) | Black edge removing method for screen projection display of mobile terminal | |
WO2017107737A1 (en) | Method, apparatus and device for adjusting screen turn-off time of terminal, and computer storage media | |
CN106561044B (en) | Processing method and system for black edge of vertical screen video on android system | |
CN103501413A (en) | Method and system for controlling post camera to focus and take pictures with front camera | |
CN105100870A (en) | Screenshot method and terminal equipment | |
JP5585494B2 (en) | Image processing apparatus, image processing program, and image processing method | |
CN106604105A (en) | Method and device for calculating image size of HBBTV application | |
CN104299252A (en) | Picture display switching transition method and system thereof |
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 |