CN101860711B - Method and device for displaying small video on digital television - Google Patents

Method and device for displaying small video on digital television Download PDF

Info

Publication number
CN101860711B
CN101860711B CN 201010207564 CN201010207564A CN101860711B CN 101860711 B CN101860711 B CN 101860711B CN 201010207564 CN201010207564 CN 201010207564 CN 201010207564 A CN201010207564 A CN 201010207564A CN 101860711 B CN101860711 B CN 101860711B
Authority
CN
China
Prior art keywords
data
video
small video
video data
small
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
CN 201010207564
Other languages
Chinese (zh)
Other versions
CN101860711A (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 Ipanel TV Inc
Original Assignee
Shenzhen Ipanel TV Inc
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 Ipanel TV Inc filed Critical Shenzhen Ipanel TV Inc
Priority to CN 201010207564 priority Critical patent/CN101860711B/en
Publication of CN101860711A publication Critical patent/CN101860711A/en
Priority to HK11102445.4A priority patent/HK1148411A1/en
Application granted granted Critical
Publication of CN101860711B publication Critical patent/CN101860711B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention relates to a method and a device for displaying a small video on a digital television. The method comprises the following steps of: decoding standard-definition video data to obtain YUV data; down-sampling the standard-definition video YUV data to obtain small video YUV data; performing MPEG2 coding on the small video YUV data to obtain standard image data of the small video; and generating standard-definition background video data, embedding the standard image data of the small video into the standard-definition background video data, decoding the data through an MPEG2 decoder and outputting and displaying the data. The method and the device of the invention can display the small video of which the definition is lower than that of a standard-definition image on the digital television so as to enlarge the display range of the digital television and well promote the user experience.

Description

A kind of method of displaying small video on digital television and device
Technical field
The present invention relates to the digital television techniques field, relate in particular to a kind of method and device of displaying small video on digital television.
Background technology
Along with the develop rapidly of science and technology, DTV is more and more universal at present; And the video image on our DTV seen all is the SD image usually at present; Promptly all be that resolution is the image of 720 * 576 pixels usually; And traditional procedure for displaying of this kind SD image is: MPEG2 (Moving Pictures Experts Group; Dynamic image expert group) decoder receives the video file that external equipment transmits, and this video file is decoded, and then decoded image is presented on the display screen of DTV.
Simultaneously; Along with the development of Digital Display TV, the small video that various resolution are lower than the SD video also arises at the historic moment, and for example resolution is 176 * 144 video; And when facing different demands, often need this small video is shown on DTV; But; If according to the traditional image display mode; Behind the small video file that MPEG2 decoder reception external equipment transmits, if directly this small video file is carried out the decoding just like SD video image processing mode, then the result is that said decoder tends to this small video is done stretch processing; It is undesired perhaps possibly to cause showing, thereby makes the small video image normally not to be presented on the display screen of DTV.
Summary of the invention
In view of this; The embodiment of the invention provides a kind of method and device of displaying small video on digital television; Can be on DTV display resolution less than the small video of SD image, thereby increased the indication range of DTV, well promoted user experience.
For addressing the above problem, the technical scheme that the embodiment of the invention provides is following:
A kind of method of displaying small video on digital television comprises:
Through being decoded, the SD video data obtains yuv data;
Through being carried out down-sampling, the SD YUV video data obtains the small video yuv data;
The small video yuv data is carried out the standard image data that the MPEG2 coding obtains small video;
Generate SD background video data, the standard image data of said small video is embedded in the said SD background video data, output shows behind the MPEG2 decoder decode again.
A kind of device of displaying small video on digital television comprises: decoding unit, sampling unit, coding unit and generation display unit; Wherein,
Said decoding unit is used for obtaining yuv data through the SD video data is decoded;
Said sampling unit is used for carrying out down-sampling through the SD YUV video data that said decoding unit decodes is obtained and obtains the small video yuv data;
The small video yuv data that said coding unit is used for that said sampling unit is obtained carries out the MPEG2 coding, and the small video standard image data that obtains is sent into said generation display unit;
Said generation display unit is used to generate SD background video data, and the said small video standard image data that said coding unit is carried is embedded in the said SD background video data output demonstration behind the MPEG2 decoder decode again.
Can find out; Adopt the method and apparatus of the embodiment of the invention; Through generating SD video image picture as a setting, and small video to be shown is embedded in this big video, and then delivers to MPEG2 decoder place and decode; What make the execution of MPEG2 decoder is the decoding of SD video image, thereby makes decoded SD video image can normally show the small video image.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method flow sketch map of the embodiment of the invention 1 displaying small video on digital television;
Fig. 2 is the schematic flow sheet of reduction bit stream in the embodiment of the invention 1 method;
Fig. 3 is the apparatus structure sketch map of the embodiment of the invention 2 displaying small video on digital television.
Embodiment
Basic thought of the present invention is in order to let the MPEG2 decoder that small video is carried out normal decoder and normal the demonstration; Through generating resolution is 720 * 576 SD video images pictures as a setting; And small video to be shown is embedded in this big video; And then deliver to MPEG2 decoder place and decode, what make the execution of MPEG2 decoder is the decoding of SD video image, thereby makes decoded SD video image can normally show the small video image;
Wherein, it should be noted that the small video of mentioning in the embodiment of the invention is all the video image of resolution less than SD video resolution 720 * 576, hereinafter to be referred as " small video "; And big video is all the SD video image of resolution greater than small video resolution, hereinafter to be referred as " big video ".
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention will be carried out clear, intactly description; Obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention 1 provides a kind of method of displaying small video on digital television, and is as shown in Figure 1, and this method comprises:
Step 110: obtain yuv data through the SD video data is decoded;
Wherein, when the SD video data is decoded, mainly be that the bit stream after the SD video data compression is reduced into yuv data in the practical application; Concrete reduction mode can be passed through following steps and realize, and is as shown in Figure 2, but is not limited thereto:
S111: receive the bit stream after the SD video data compression, and the bit stream that receives is delivered to input-buffer;
S112: the bit stream in the input-buffer is successively carried out anti-Hafman decoding and inverse quantization handle;
S113: the output behind the inverse quantization is handled through anti-DCT (Discrete Cosine Transform, discrete cosine transform) obtained image information at last, promptly obtain yuv data.
Step 120: obtain the small video yuv data through the SD YUV video data is carried out down-sampling;
The down-sampling of mentioning in the present embodiment mainly is from the big yuv data of SD video data, to extract the part yuv data, has reduced the number of pixel, thereby has formed the lower YUV video data of new resolution, that is to say the yuv data of small video; For example: if former SD video data is the YUV420 form, resolution is 704 * 576, and wherein the Y component has 720 * 576 pixels; Be 176 * 144 small video yuv data then if will this SD YUV video data be obtained rate respectively through down-sampling; Because 704/176=4,576/144=4; So concrete extracting mode is that the process that wherein extracts all pixels is the process of down-sampling in level and vertical direction, every at a distance from pixel of 4 pixel extraction; In like manner, also similar for the UV component extraction process in the yuv data, repeat no more at this.
Step 130: the small video yuv data is carried out the standard image data that the MPEG2 coding obtains small video;
Wherein, the MPEG2 encoding operation of mentioning in the present embodiment includes but not limited to: the unpressed small video yuv data to obtaining through down-sampling compresses according to MPEG2 video standard agreement; Concrete cataloged procedure includes but not limited to:
S131: at first the unpressed small video yuv data that obtains through down-sampling is carried out DCT and quantification treatment;
S132: the video flowing of the data after the quantification treatment being exported compression after Huffman encoding.
Step 140: generate SD background video data, the standard image data of said small video is embedded in the said SD background video data, output shows behind the MPEG2 decoder decode again;
It should be noted that; The telescopiny of mentioning in the present embodiment is the process of filling macro block: successively in the SD video data, fill background data and small video data macro; The order of filling for from left to right, order filling from top to bottom; Can certainly adopt other modes to fill in proper order, repeat no more at this; Concrete filling process includes but not limited to following steps:
S141: extract background data macro block relevant parameter; Include but not limited to: address increment, macro block mode, quantification, motion vector, CBP and Block (piece) data etc.;
S142: calculate the ranks number that in the SD video data, needs filling, and be filled in the identical background data macro block of ranks number with this; For example 720 * 576 pixels of normal video because the wide height of macro block is 16 pixels, then need to fill the capable and 720/16=45 row background data macro block of 720/16=36 altogether; That is,
The data of first row: 00 00 01 01 macro blocks, 1 macro block 2 .... macro block 45;
The data of first row: 00 00 01 02 macro blocks, 1 macro block 2 .... macro block 45;
Wherein, 00 00 01 is initial code; Generated 36 row successively, promptly generated the data of a frame, by that analogy, present embodiment repeats no more.
S143: confirm the corner location of small video in background video, utilize then with the same process of above-mentioned S142 and fill the small video data macro, accomplish the embedding of small video;
It should be noted that; In the present embodiment after small video is embedded in the SD video; Because decode through the MPEG2 decoder and only be aimed at the SD video image this moment; So the decode procedure of this moment can adopt traditional decoding and display mode, thereby the real world images after the output is and has comprised the small video image in the SD video.
Can find out; Adopt the method for the foregoing description; Through generating SD video image picture as a setting, and small video to be shown is embedded in this big video, and then delivers to MPEG2 decoder place and decode; What make the execution of MPEG2 decoder is the decoding of SD video image, thereby makes decoded SD video image can normally show the small video image.
Based on above-mentioned thought, the embodiment of the invention 2 has proposed a kind of device of displaying small video on digital television again, and is as shown in Figure 3, and this device 300 comprises: decoding unit 310, sampling unit 320, coding unit 330 and generation display unit 340; Wherein,
Said decoding unit 310 is used for obtaining yuv data through the SD video data is decoded;
Said sampling unit 320 is used for carrying out down-sampling through the SD YUV video data that said decoding unit 310 decodings are obtained and obtains the small video yuv data;
Said coding unit 330 is used for the small video yuv data that said sampling unit 320 obtains is carried out the MPEG2 coding, and the small video standard image data that obtains is sent into said generation display unit 340;
Said generation display unit 340 is used to generate SD background video data, and the said small video standard image data that said coding unit 330 is carried is embedded in the said SD background video data output demonstration behind the MPEG2 decoder decode again.
Based on said structure, said decoding unit 310 also can comprise: receiver module, first processing module and second processing module; Wherein,
Said receiver module is used to receive the bit stream after the SD video data compression, and the bit stream that receives is delivered to input-buffer; Said first processing module is used for the bit stream of input-buffer is successively carried out the processing of anti-Hafman decoding and inverse quantization; Said second processing module is used for that the data of said first processing module output are carried out inverse discrete cosine transform and handles.
In addition, said sampling unit 320 also can comprise: determination module and extraction module; Wherein, said determination module is used to calculate the ratio of small video and SD video resolution; Said extraction module is used for extracting partial pixel according to the resolution ratio that said determination module is confirmed in level and vertical direction.
In addition, said coding unit 330 also can comprise: the 3rd processing module and is managed module everywhere; Wherein,
Said the 3rd processing module is used for the unpressed small video yuv data that obtains through down-sampling is carried out DCT and quantification treatment; Said the data of managing everywhere after module is used for said the 3rd processing module handled exports the video flowing that compresses after Huffman encoding.
It should be noted that the mechanical feature based on the foregoing description, the said generation display unit 340 in the embodiment of the invention 2 also can comprise: acquisition module, computing module and packing module; Wherein,
Said acquisition module is used to obtain background data and small video data macro relevant parameter;
Said computing module is used for calculating the ranks number of filling at SD video data needs, and is filled in the identical background data macro block of ranks number with this;
Said packing module is used for confirming the corner location of small video at background video, calculates the ranks number that in the background video data, needs filling then, and in the background video data, fills the small video data macro identical with the ranks number.
The professional can also further should be able to recognize; The unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein; Can realize with electronic hardware, computer software or the combination of the two; For the interchangeability of hardware and software clearly is described, the composition and the step of each example described prevailingly according to function in above-mentioned explanation.These functions still are that software mode is carried out with hardware actually, depend on the application-specific and the design constraint of technical scheme.The professional and technical personnel can use distinct methods to realize described function to each certain applications, but this realization should not thought the scope that exceeds the embodiment of the invention.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can be directly with the software modules of hardware, processor execution, and perhaps the combination of the two is implemented.Software module can place the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the technical field.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the embodiment of the invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined General Principle can realize under the situation of spirit that does not break away from the embodiment of the invention or scope in other embodiments among this paper.Therefore, the embodiment of the invention will can not be restricted to these embodiment shown in this paper, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.
The above is merely the preferred embodiment of the embodiment of the invention; Not in order to the restriction embodiment of the invention; All within the spirit and principle of the embodiment of the invention, any modification of being done, be equal to replacement, improvement etc., all should be included within the protection range of the embodiment of the invention.

Claims (11)

1. the method for a displaying small video on digital television is characterized in that, comprising:
Through being decoded, the SD video data obtains yuv data;
Through being carried out down-sampling, the SD YUV video data obtains the small video yuv data;
The small video yuv data is carried out the standard image data that the MPEG2 coding obtains small video;
Generate SD background video data, the standard image data of said small video is embedded in the said SD background video data, output shows behind the MPEG2 decoder decode again;
Said generation SD background video data; The standard image data of small video is embedded in the said SD background video data is specially: successively in the SD video data, fill background data and small video data macro, the order of filling for from left to right, filling in proper order from top to bottom;
Said filling process comprises: obtain background data and small video data macro relevant parameter; Calculating needs the ranks number of filling in the SD video data, and fills the background data identical with the ranks number with this; Confirm the corner location of small video in the SD background video, calculate the ranks number that in SD background video data, needs filling then, and in SD background video data, fill the small video data macro identical with the ranks number.
2. method according to claim 1 is characterized in that, the said SD video data is decoded is specially: the bit stream after the SD video data compression is reduced into yuv data.
3. method according to claim 2 is characterized in that, in the following manner the bit stream after the SD video data compression is reduced into yuv data:
Receive the bit stream after the SD video data compression, and the bit stream that receives is delivered to input-buffer;
Bit stream in the input-buffer is successively carried out anti-Hafman decoding and inverse quantization to be handled;
At last the output behind the inverse quantization is handled through inverse discrete cosine transform and obtained yuv data.
4. method according to claim 1 is characterized in that, saidly the SD YUV video data is carried out down-sampling is specially:
Calculate the ratio of small video and SD video resolution;
Ratio according to said resolution extracts partial pixel in level and vertical direction.
5. method according to claim 1 is characterized in that, saidly the small video yuv data is carried out MPEG2 coding is specially: the unpressed small video yuv data to obtaining through down-sampling compresses according to MPEG2 video standard agreement.
6. method according to claim 5 is characterized in that, realizes the small video yuv data is carried out the MPEG2 coding through following step:
Unpressed small video yuv data to obtaining through down-sampling carries out DCT and quantification treatment;
Data after the quantification treatment are exported the video flowing of compression after Huffman encoding.
7. method according to claim 1 is characterized in that, said macro block relevant parameter comprises: address increment, macro block mode, quantification, motion vector, CBP and blocks of data.
8. the device of a displaying small video on digital television is characterized in that, comprising: decoding unit, sampling unit, coding unit and generation display unit; Wherein,
Said decoding unit is used for obtaining yuv data through the SD video data is decoded;
Said sampling unit is used for carrying out down-sampling through the SD YUV video data that said decoding unit decodes is obtained and obtains the small video yuv data;
The small video yuv data that said coding unit is used for that said sampling unit is obtained carries out the MPEG2 coding, and the small video standard image data that obtains is sent into said generation display unit;
Said generation display unit is used to generate SD background video data, and the said small video standard image data that said coding unit is carried is embedded in the said SD background video data output demonstration behind the MPEG2 decoder decode again;
Said generation display unit comprises: acquisition module, computing module and packing module; Wherein, said acquisition module is used to obtain background data and small video data macro relevant parameter; Said computing module is used for calculating the ranks number of filling at SD video data needs, and is filled in the identical background data macro block of ranks number with this; Said packing module is used for confirming the corner location of small video at background video, calculates the ranks number that in the background video data, needs filling then, and in the background video data, fills the small video data macro identical with the ranks number.
9. device according to claim 8 is characterized in that, said decoding unit comprises: receiver module, first processing module and second processing module; Wherein,
Said receiver module is used to receive the bit stream after the SD video data compression, and the bit stream that receives is delivered to input-buffer;
Said first processing module is used for the bit stream of input-buffer is successively carried out the processing of anti-Hafman decoding and inverse quantization;
Said second processing module is used for that the data of said first processing module output are carried out inverse discrete cosine transform and handles.
10. device according to claim 8 is characterized in that, said sampling unit comprises: determination module and extraction module; Wherein,
Said determination module is used to calculate the ratio of small video and SD video resolution;
Said extraction module is used for extracting partial pixel according to the resolution ratio that said determination module is confirmed in level and vertical direction.
11. device according to claim 8 is characterized in that, said coding unit comprises: the 3rd processing module and is managed module everywhere; Wherein,
Said the 3rd processing module is used for the unpressed small video yuv data that obtains through down-sampling is carried out DCT and quantification treatment;
Said the data of managing everywhere after module is used for said the 3rd processing module handled exports the video flowing that compresses after Huffman encoding.
CN 201010207564 2010-06-13 2010-06-13 Method and device for displaying small video on digital television Active CN101860711B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 201010207564 CN101860711B (en) 2010-06-13 2010-06-13 Method and device for displaying small video on digital television
HK11102445.4A HK1148411A1 (en) 2010-06-13 2011-03-10 Method and device for displaying small video on digital television

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010207564 CN101860711B (en) 2010-06-13 2010-06-13 Method and device for displaying small video on digital television

Publications (2)

Publication Number Publication Date
CN101860711A CN101860711A (en) 2010-10-13
CN101860711B true CN101860711B (en) 2012-01-11

Family

ID=42946315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010207564 Active CN101860711B (en) 2010-06-13 2010-06-13 Method and device for displaying small video on digital television

Country Status (2)

Country Link
CN (1) CN101860711B (en)
HK (1) HK1148411A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10070098B2 (en) * 2016-10-06 2018-09-04 Intel Corporation Method and system of adjusting video quality based on viewer distance to a display
CN108989849B (en) * 2018-08-01 2021-01-29 广州长嘉电子有限公司 DVB-T2+ S2 television signal processing method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1309868A (en) * 1998-07-31 2001-08-22 汤姆森特许公司 Decimation of high definition video signal
CN1973535A (en) * 2004-06-21 2007-05-30 皇家飞利浦电子股份有限公司 Device and method of downscaling and blending two high resolution images
CN101065962A (en) * 2004-12-02 2007-10-31 汤姆森许可贸易公司 Method and apparatus for encoding and for decoding a main video signal and one or more auxiliary video signals

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070127846A1 (en) * 2005-12-07 2007-06-07 Yi-Kuo Wei Apparatus and method for sub-picture processing by performing at least scaling and pixel data encoding

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1309868A (en) * 1998-07-31 2001-08-22 汤姆森特许公司 Decimation of high definition video signal
CN1973535A (en) * 2004-06-21 2007-05-30 皇家飞利浦电子股份有限公司 Device and method of downscaling and blending two high resolution images
CN101065962A (en) * 2004-12-02 2007-10-31 汤姆森许可贸易公司 Method and apparatus for encoding and for decoding a main video signal and one or more auxiliary video signals

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
肖进胜等.视频会议中的多画面码流合成的研究与实现.《计算机应用研究》.2005,(第1期),全文. *

Also Published As

Publication number Publication date
HK1148411A1 (en) 2011-09-02
CN101860711A (en) 2010-10-13

Similar Documents

Publication Publication Date Title
CN105432083B (en) Method and system for hybrid backward compatible signal encoding and decoding
KR101650635B1 (en) Coding of last significant transform coefficient
US11232598B2 (en) Distinct encoding and decoding of stable information and transient/stochastic information
TWI590662B (en) Decoder and method
CN102244783B (en) Method and system for data processing
TWI439138B (en) Enhanced compression in representing non-frame-edge blocks of image frames
KR20170118463A (en) Encoding apparatus, decoding apparatus and method thereof
US20190082179A1 (en) Video coding method and apparatus
CN113557729B (en) Video code stream decoding method, system, device and electronic equipment
CN106534859B (en) Image transmission method and device based on SPICE protocol
JP7332605B2 (en) Video bitstream decoding, generation method and apparatus, storage medium, electronic equipment
TW201540045A (en) Adaptive processing of video streams with reduced color resolution
US10997795B2 (en) Method and apparatus for processing three dimensional object image using point cloud data
CN113228663A (en) Method, device, computer program and computer readable medium for scalable image coding
CN101860711B (en) Method and device for displaying small video on digital television
CN113508598B (en) Method and apparatus for decoding video stream encoded using video point cloud encoding
CN113228665A (en) Method, device, computer program and computer-readable medium for processing configuration data
CN102577412B (en) Image coding method and device
KR100580876B1 (en) Method and Apparatus for Image Compression and Decoding using Bitstream Map, and Recording Medium thereof
WO2020007554A1 (en) Compact description of region-wise packing information
WO2022110870A1 (en) Image encoding and decoding method, encoding and decoding apparatus, encoder, and decoder
CN106664387B (en) Computer device and method for post-processing video image frame and computer readable medium
US8094951B2 (en) Coding system and method for a bit-plane
CN107172425B (en) Thumbnail generation method and device and terminal equipment
CN104995661A (en) Context based histogram map coding for visual search

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1148411

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1148411

Country of ref document: HK