CN100492510C - Method for generating interrupt signal in time of decoding poor image plane - Google Patents

Method for generating interrupt signal in time of decoding poor image plane Download PDF

Info

Publication number
CN100492510C
CN100492510C CNB2004100531488A CN200410053148A CN100492510C CN 100492510 C CN100492510 C CN 100492510C CN B2004100531488 A CNB2004100531488 A CN B2004100531488A CN 200410053148 A CN200410053148 A CN 200410053148A CN 100492510 C CN100492510 C CN 100492510C
Authority
CN
China
Prior art keywords
subframe
stage
bag
data
mentioned
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.)
Expired - Fee Related
Application number
CNB2004100531488A
Other languages
Chinese (zh)
Other versions
CN1728261A (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.)
Shanghai LG Electronics Co Ltd
Original Assignee
Shanghai LG Electronics 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 Shanghai LG Electronics Co Ltd filed Critical Shanghai LG Electronics Co Ltd
Priority to CNB2004100531488A priority Critical patent/CN100492510C/en
Publication of CN1728261A publication Critical patent/CN1728261A/en
Application granted granted Critical
Publication of CN100492510C publication Critical patent/CN100492510C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The present invention relates to a method for generating interruption signals for controlling the decoding of poor image data recorded in a DVD. When software is used for decoding poor images of DVD vA method for generating interruption signal when subpicture is decoded includes two ways to make it as one way of using picture element to generate interruption signal by comparing subpicture element ideos, interruption signals are generated by the following two methods: interruption signals are generated with image units by a system decoder through the comparison of the size of poor image units asize to ES part size of subpicture packet through system decoder and the other way of using subpicture element as unit to generate interruption signal by utilizing PTS - DTS - flags in subpicture packnd the size of an ES part of a poor image packet, and interruption signals are generated with image units taken as units by using PTS-DTS-flags positioned in the poor image packet. A poor image decodeet. r can easily read poor image data from a buffer store, effectively carry out decoding, and improve the performance of a software poor image decoder.

Description

Look-at-me production method during the subframe decoding
Technical field
The invention relates to the look-at-me production method of the decoding of the subframe data that write down among the control DVD.
Background technology
Generally, the international standard MPEG1 (Moving PictureExperts Group) and the MPEG2 of image and speech data compression are widely applied in a lot of fields, as the moving image data of recording compressed and the medium of speech data, the medium that is called as DVD (Digital Video Disc and Digital Versatile Disc) now, after the community that is made up of 10 companies participates in exploitation, DVD player is worldwide popularized rapidly and is come, finally replaced audio frequency CD, the video record band, CD-ROM, videodisc (LD), video-game boxlike tape, video tape cassettes, printed article (books) etc.
And DVD not only supports simulated television and Digital Television, also supports terleaved video and progressive video simultaneously, also supports standard television and panavision.Thus, such DVD has the double action of not only supporting old technology but also supporting new technology.
The function of nearest DVD player except having the common DVD captions also has CD-R simultaneously, CD-RW, and the playing function of CDDA, some devices also have support DVD-Audio, SACD, VCD, SVCD, DVD-R, DVD ± RW, HDCD, MP3 function.
Such DVD video is except having common playing function, also support the audio stream adjustment, camera angle is adjusted, subframe stream is adjusted F.F. (fast forward), rewind down (fast rcverse) slow-motion (slow forward), slowly move back (slow reverse), open and suspend (pauscon), close time-out (pause off), the speical play of closing still frame (still off) and choosing arbitrarily.Can climb over next and turn over skip functions but also have to last.Simultaneously, also have various buttons and relevant user's operation (user operation) function.In user's operating function, also comprise and to select captions (title), master menu (root), subframe (sub_picture), audio frequency, the menu function (menu call) of focal length menus such as (angle).And, also have the controls playing function that is not suitable for the scene that child views and admires to being difficult for watching such as the juvenile etc.
And, can store maximum 8 audio streams, support Linear PCM, Dolby AC-3, mpeg audio by option, is supported DTS (Digital Theater System).
Also have, the DVD video data stream is by big video, audio frequency, and subframe constitutes.Subframe has maximum 32 data stream.Subframe comprises subframe (captions), menu, and captions, Karaoke, contents such as simple cartoon, normal use is subframe and menu in general captions.
Fig. 1 is made of following several parts: leading section 110 as the skeleton diagram of the general structure that shows such DVD player; DVD data processing division 120; System decoder 130; Memory buffer 140; Subframe demoder 150; OSD storer 160; OSD handling part 170; Audio/video decoder 180; Frequency mixer 190 and navigation manager.
Among Fig. 1, leading section 110 is as the optical instrument of common DVD machine, control light picker 112 physics near and the CD 111 of record storage data.Promptly, light picker 112 is under the control of servocontrol portion 115, thing lens (not shown) are mapped to the light beam that focuses on the signal magnetic track of CD 111, the light that will reflect from signal recording surface, after passing through once more to thing lens light harvesting, convert electric signal to, to RF and servo fault generating unit 113 and 115 outputs of servocontrol portion.RF and servo fault generating unit 113 generate the RF signal that is used for data reproduction from the electric signal of being imported, and to prime amplifier 114 outputs.Prime amplifier 114 is signal digitalized with RF, after the amplification, to 120 outputs of DVD data processing division.
Above-mentioned servocontrol portion 115 is from the electrical signal detection of the input rub-out signal that goes out to focus, behind the trail-and-error signal, for making light picker 112 can correctly read the data of CD 111 records, generate the focusing drive signal from the focusing rub-out signal, the focusing gearing in the control light picker 112; Generate the tracking drive signal from the trail-and-error signal, the tracking drive device in the control light picker 112.
Above-mentioned DVD data processing division 120 will carry out detection (demodulation) in the digitized RF state DVD data that leading section 110 physics read, after error correcting (ECC) and the decoding (descramble), to system decoder 130 outputs.
At this moment, above-mentioned CD has write down expression data (Presentation Data) and navigation data for 111 li.Expression data comprises the audio frequency of playing object and the subframe data of video data and subtitle image etc.Here, in DVD, with PS bag (Pack) unit with 2048 byte records sizes expression data is write down and reads, the PS bag is made of the packet head of 14 bytes and the packet of 2034 bytes.Packet is made of the packet of record data packet head and audio/video/subframe/navigation data once more.
That is, shown in the structure of the DVD video packets of Fig. 2, above-mentioned packet head is by the packet start code of 4 bytes and the SCR of 6 bytes (System Clock Reference), the program mux_latc of 3 bytes, and the stuffing_length of 1 byte forms.
Such as, the formation of subframe bag as shown in Figure 2, by the packet head of 14 bytes with represent the subframe packet of 2034 bytes of PES to form.
From Fig. 3, we can see the structure of subframe packet in the subframe bag in detail.Here, subframe packet (SP_PKT) is by the packet header of * I byte and the dialogue traffic identifier of 1 byte, and 1 byte is above or the subframe data of 2024 bytes following (1byte or more, and 2024bytes or less) constitute.Herein, the subframe data division demonstrates ES (Elementary Stream).And the size of the * I video data packet head of Fig. 3 can have the value from 9 bytes to 24 bytes.The size of packet header as shown in Figure 4, according to P-STD_buffcr_scale and P-STD_buffer_size, PTS (Presentation time-stamp), Stuffing has variable value.
At this moment, if the length of subframe bag is 2048 bytes, as the bag length less than 2048 bytes, by in packet header, inserting filling byte (stuffing byte) or filler data bag (padding packet) being pasted the tail end of packet, make the length of bag remain 2048 bytes always.
And subframe unit (SPU) is made of the subframe bag of a plurality of 2048 bytes.That is, a plurality of packages that are made of 2048 bytes are closed, constituted a subframe unit (SPU) of forming captions.
At this moment, a bag can constitute a subframe unit, and plural bag also can constitute a subframe unit together.In fact, the subframe unit is by packet head and packet header except the subframe bag, and dialogue traffic identifier (sub_stream_id) pure subframe data ES in addition constitutes.
Therefore, system decoder 130 carries out multiple signals with the DVD data of DVD data processing division 120 outputs to be separated, and is separated into and expresses flow data and navigation flow data.Above-mentioned stating expressed after flow data is separated into audio/video/subframe flow data once more, with the audio/video stream data of separating to audio/video decoder 180 outputs, and the subframe flow data by memory buffer 140 to 150 outputs of subframe demoder.At this moment, the navigation flow data outputs to navigation manager, and navigation manager and servocontrol portion 115 interlocks, whole flow processs that control DVD plays.Above-mentioned audio/video decoder 180 is used relevant decoding algorithm for the audio/video stream data of input, finish symbolism respectively after, to frequency mixer 190 outputs.
Promptly, the DVD data that input to said system demoder 130 are program flow (PS), the video of 130 pairs of program flows of said system demoder, audio frequency, after the subframe data are carried out the multiple signals separation, export to audio/video/subframe demoder 180,150 with PES (Packetized Elementary Stream) state or ES (Elementary Stream) state respectively.At this moment, system decoder 130 transmits with which kind of mode in PES grade and the ES grade to audio/video/subframe demoder 180,150, be according to the deviser's of design DVD hardware intention and difference to some extent.
If we suppose that the subframe data that system decoder 130 separates export according to the PES grade, the subframe data of such PES grade are by memory buffer 140, to 150 outputs of subframe demoder.Here, above-mentioned memory buffer 140 can be to distribute to the field of subframe data on the SDRAM, also can be the memory buffer of temporarily storing the subframe data.
If above-mentioned subframe demoder 150 is software subframe demoders, when above-mentioned subframe demoder 150 produces look-at-mes at system decoder 130, reads the subframe data and decode from buffering storer 140.For this reason, said system demoder 130 during to 140 li of memory buffer, produces look-at-me in set mode, to 150 outputs of subframe demoder with the subframe data storage according to the PES grade.
The look-at-me producing method of system decoder 130 comprises two kinds: a kind of almost of being ful1 mode, another kind are the modes that produces look-at-me to a bag unit.
Almost full mode is a memory buffer 140 when almost being full of (almostfull) as shown in Figure 5, produces the mode of look-at-me, is the mode of the empty grade (empty level) that can at random adjust memory buffer 140.
Such as, the size of memory buffer 140 is set at 3 kilobyte, if the empty level of memory buffer 140 is 1 kilobyte, if memory buffer 140 remaining space are below 1 kilobyte, promptly, if the data that memory buffer 140 has write down are more than 2 kilobyte, be in almost full state, system decoder 130 will produce look-at-me.
At this moment, said system demoder 130 uses the unit of subframe data to be decided to be PES unit memory buffer 140, and Fig. 6 shows is in order to use storer effectively, promptly, memory buffer 140, the example of the almost full mode when not containing the filler data bag.
As shown in Figure 6, the place that produces look-at-me is assumed to be in the middle of the ES data of the 2nd PES, and first PES depicts a SPU, and the 2nd PES constituted another SPU.At this moment, in fact, because above-mentioned subframe demoder 150 need be in the place that produces look-at-me, from buffering storer 140 reading of data, will be up to the data till the place that produces look-at-me, be after first SPU and the 2nd SPU take out from buffering storer 140, the 1st SPU to be decoded.And, because the 2nd SPU is not completely,, just can decode so will produce by the time after the next look-at-me.At this moment, not to decode according to the sequencing of data, but after memory buffer 140 writes down a SPU fully, just decode, its reason as shown in Figure 7, be because in the rear end of the data that constitute SPU, exist the complete list (SP_DCSQT) of the subframe display device of this SPU of control.That is,, just can not show SPU if there is not the SP_DCSQT complete list.So, have only store the SP_DCSQT complete list into memory buffer 140 after, can decode to relevant SPU.
, Almost full mode has problems.SPU as the front speak of, generally in the DVD video, represent 1 captions, occasion at Fig. 6, owing to produced look-at-me in the centre of the 2nd SPU, data to the 2nd SPU only write down a part, when decoding, just appearance can not be aimed at the problem of the PTS (Presentation TimeStamp) of the 1st SPU exactly.And, in the last part of stream,, can not produce look-at-me, so the look-at-me of the Pack unit of very difficult last captions of generation also can't be decoded because the data volume of memory buffer 140 accumulation can't reach almost full state.
In addition, the mode that produces look-at-me to a bag unit as shown in Figure 8, be that a kind of state with memory buffer 140 is irrelevant, use (being actually 1 packet that does not comprise filler), just can unconditionally produce the mode of look-at-me as long as 1 bag of subframe is cushioned storer 140.If produce such look-at-me, whether 150 decisions of subframe demoder decode from buffering storer 140 reading of data.
That is, take out a bag if then decode in a subframe unit,, take out a bag again as not being just when the next look-at-me from buffering storer 140.At this moment, too, former bag and present bag if can constitute a subframe unit, then decode, otherwise wait for next look-at-me.
Equally, after memory buffer 140 all write down a SPU, the reason of just decoding was as previously mentioned, in the rear end of the data that constitute SPU, to exist the subframe display device control sequence complete list (SP_DCSQT) that the control subframe shows.
Summary of the invention
Such mode (to the mode of a bag unit generation look-at-me) when being applied in the common DVD captions, big problem can not occurred, and such as Karaoke, occasions such as DVD, aforesaid way is the lower generation look-at-me method of efficient.
That is, the situation of NTSC DVD, 720 X, 480 size major parts are among the Karaoke DVD of the lyrics, maximum tens data packages close and constitute 1 subframe unit.In this case, for the SPU that decodes, need to produce tens look-at-mes, efficient is very low, can bring very big burden to CPU.
The present invention to its objective is to the user provides a kind of when using the subframe of software decode DVD video in order addressing the above problem, produce the method for look-at-me with SPU unit in system decoder.
Look-at-me production method when for achieving the above object, the present invention's subframe is decoded is made of following several stages:
A, read the DVD video data of putting down in writing among the DVD, and after being separated into expression data and navigation data, above-mentioned expression data is separated into once more the stage of audio/video/subframe data;
B, the subframe data of above-mentioned separation are temporarily stored into stage of memory buffer;
C, the stage that produces look-at-me to the subframe unit of cells; And
D, at above-mentioned c in the stage, if produce look-at-me, the stage of from above-mentioned memory buffer, reading relevant subframe unit and decoding.
Above-mentioned subframe unit is made of the subframe bag more than 1 at least.
In stage, it is characterized in that at above-mentioned c the size of subframe unit and the ES size partly of subframe bag are compared, and picture unit is that unit produces look-at-me in proper order.
Above-mentioned c phase characteristic is that the PTS_DTS_flags in the use subframe bag, the following picture unit are that unit produces look-at-me.
In sum, the present invention is the look-at-me production method when subframe is decoded.When the subframe of DVD video is carried out software decode, in system decoder, in proper order picture unit is that unit produces look-at-me, and the subframe demoder is got the subframe data and decoded effectively from the buffering memory read, can improve the performance of software subframe demoder.And the present invention produces look-at-me with SPU unit, can solve in almost full mode the inconsistent problem of the PTS of generation and can be effectively the Karaoke DVD that is made of a SPU several bags etc. be carried out the subframe decoding.
Description of drawings
Fig. 1 is the block scheme of the schematic configuration of common DVD machine.
Fig. 2 is the synoptic diagram of common DVD video packets structure.
Fig. 3 is the synoptic diagram of common subframe pack arrangement.
Fig. 4 is the complete list of header size of the subframe packet of Fig. 3.
Fig. 5 is the system decoder among Fig. 1 produces look-at-me according to current almost full mode an embodiment synoptic diagram.
Fig. 6 is the system decoder among Fig. 1 produces look-at-me according to current almost full mode another embodiment synoptic diagram.
Fig. 7 is the structure accompanying drawing of common subframe unit.
Fig. 8 be among Fig. 1 system decoder according to current be the embodiment synoptic diagram that unit produces look-at-me with the bag.
Fig. 9 is that the following picture unit of the system decoder among Fig. 1 is that unit produces look-at-me, one embodiment of the present of invention synoptic diagram.
Figure 10 is according to the 1st embodiment of the present invention, uses PTS_DTS_flags, and picture unit is the embodiment synoptic diagram that unit produces look-at-me in proper order.
Figure 11 is according to the 1st embodiment of the present invention, uses PTS_DTS_flags, and picture unit is the action flow chart that unit produces an example of look-at-me in proper order.
Figure 12 is according to the 2nd embodiment of the present invention, uses the subframe size, and picture unit is the synoptic diagram that unit produces an example of look-at-me in proper order
* accompanying drawing major part symbol description *
110: leading section 111:DVD
112: light picker 113:RF and servo fault generating unit
114: prime amplifier 115: servocontrol portion
120:DVD data processing division 130: system decoder
140: memory buffer 150: the subframe demoder
160:OSD storer 170:OSD handling part
180: audio/video decoder 190: frequency mixer
Embodiment
Other purposes of the present invention, feature are that advantage will can fully understand by the detailed description of accompanying drawing to embodiment.
Below, structure and effect to example of the present invention is illustrated with reference to the accompanying drawings, structure of the present invention and effect according to description of drawings describe as just an embodiment, and above-mentioned technological thought of the present invention and core constitute and effect is not limited thereto.
The present invention is in order to reduce the burden of hardware, when the subframe of DVD video is carried out software decode by using CPU, system decoder such as Fig. 9, picture unit (SPU) is unit generation look-at-me in proper order, the subframe demoder can be got the subframe data from the buffering memory read easily, decodes.Promptly provide, as long as memory buffer uses a subframe unit, the present invention just can unconditionally produce look-at-me, the look-at-me producing method of SPU unit.
The invention provides the look-at-me production method of the SPU unit of 2 kinds of modes, will be illustrated respectively by the 1st, the 2 embodiment.
That is, the 1st embodiment utilizes PTS_DTS_flag, and with the method for SPU unit's generation look-at-me, the 2nd embodiment utilizes SPU_SZ (sub_picture unit size), produces the method for look-at-me with SPU unit.
The 1st embodiment:
Figure 10 utilizes the 1st embodiment PTS_DTS_flag of the present invention, produces the synoptic diagram of look-at-me.
General subframe packet is the contexture by following table 1.
[table 1]
Figure C200410053148D00161
Figure C200410053148D00171
* * * *: decoding subframe stream number
That is, in above-mentioned table 1, the subframe packet is made of following each several part: the packet_start_code_prefix of 3 bytes; The stream_id of 1 byte; The PES_packet_length of 2 bytes; The mark of 2 bits (marker) bit; The PES_scrambling_control of 2 bits; The PES_priority of 1 bit; The data_alignment_indicator of 1 bit; The copyright of 1 bit; The original_or_copy of 1 bit; The PTS_DTS_flags of 2 bits; The ESCR_flag of 1 bit; The ES_rate_flag of 1 bit; The DSM_trick_mode_flag of 1 bit; The additional_copy_info_flag of 1 bit, the PES_CRC_flag of 1 bit; The PES_extension_flag of 1 bit; The PES_header_data_length of 1 byte, the market bit of 4 bits; The PTS[32..30 of 3 bits]; The market bit of 1 bit; The PTS[29..15 of 15 bits]; The market bit of 1 bit; The PTS[14..0 of 15 bits]; The market bit of 1 bit; The PES_private_data_flag of 1 bit; The pack_header_field_flag of 1 bit; The program_packet_sequence_counter_flag of 1 bit; The P-STD_buffer_flag of 1 bit; The reserved bit of 3 bits; The PES_extension_flag_2 of 1 bit, the market bit of 2 bits, the P-STD_buffer_scale of 1 bit, the P-STD_buffer_size of 13 bits; The stuffing_byte of 0~7 byte; The sub_stream_id of 1 byte and subframe data.
As the subframe packet structure of above-mentioned table 1 in, the PES_packet_length of 2 bytes illustrates except packet_start_code_prefix and stream_id, PES_packet_length length of data package in addition.
In subframe, PTS_DTS_flags can have 2 and 0 value, if the value of PTS_DTS_flags is 2, represents that it is the 1st bag that constitutes the subframe unit, in fact, also can therefrom obtain pts value.That is, if PTS_DTS_flag is 2, this bag is exactly the 1st bag that constitutes SPU.Such as, supposing that a subframe unit is made of 3 bags, the PTS_DTS_flags of the 1st bag is 2, the PTS_DTS_flags of the 2nd and the 3rd bag is exactly 0 so.
Therefore, system decoder of the present invention as shown in figure 10, during the PTS_DTS_flag=2 of the 1st bag, if the PTS_DTS_flag of the 2nd bag is 2, will produce look-at-me, the value of storage when the 1st end-of-packet in memory buffer 140 is then to 150 outputs of subframe demoder.In fact, the value when the pure packet that does not comprise packet head and filler finishes all is stored in the memory buffer 140, the look-at-me that subframe demoder 150 reading system demoders 130 send is taken out memory buffer 140 recorded data.
On the other hand, when the PTS_DTS_flag=2 of the 1st bag, if the PTS_DTS_flag of the 2nd bag is 0, investigate the 3rd bag, if the PTS_DTS_flag of the 3rd bag is 2, will produce look-at-me, the data storage in the time of will arriving the 2nd end-of-packet is in memory buffer 140.If the PTS_DTS_flag of the 3rd bag is 0, investigate the 4th bag, carry out such process repeatedly, can reach when a SPU finishes, produce the effect of look-at-me.
Figure 11 is according to the 1st embodiment of the present invention, and during the subframe decoding, the action flow chart of look-at-me production method uses and the same hardware of Fig. 1 among the embodiment.
Promptly, system decoder 130 is separated into expression data and navigation data with the PS of input, expression data is separated into (stage 201) after audio/video/subframe data once more, with the subframe data of separating according to PES class stores (stage 202) in memory buffer 140.Simultaneously, system decoder 130 examines whether the PTS_DTS_flag of the subframe bag of storing in memory buffer 140 was 2 (stages 203).In the above-mentioned stage 203, if the PTS_DTS_flag of dialogue bag is 2, whether the PTS_DTS_flag that just examines next subframe bag was 2 (stages 204).In the stage 204, if judge that PTS_DTS_flag is 2, just produce look-at-me, store the bag of examining before this (that is, be included in the stage 203, the PTS_DTS_flag value through examining is 2 bag) in the memory buffer 140 (stage 205).In the above-mentioned stage 204, if judge that PTS_DTS_flag is not 2, whether the PTS_DTS_flag that examine next bag once more is 2.It is 2 o'clock that the PTS_DTS_flag that such process repeats to bag always is verified.So repeatedly process is judged as 2 bag if detect PTS_DTS_flag, will produce look-at-me, will up to this bag before examine end-of-packet the time the subframe data storage in memory buffer 140.
Through above-mentioned process, if produce look-at-me in system decoder 130, subframe demoder 150 reads the subframe data and decodes (stage 206) from above-mentioned memory buffer 140, then, in order to show, store into (stage 207) in the OSD storer 160.
According to the 1st above-mentioned embodiment, in order to judge SPU, need the PTS_DTS_flag of next one bag be confirmed, produce the delay of 1 bag so naturally.
The 2nd embodiment:
Figure 12 is according to the 2nd embodiment of the present invention, utilizes the action flow chart of the look-at-me production method of SPU size, uses and the same hardware of Fig. 1.
That is, system decoder 130 is separated into expression data and navigation data with the PS of input, and expression data is separated into (stage 301) after audio/video/subframe data once more, with the subframe data storage (stage 302) in memory buffer 140 of separating.Simultaneously, the ES size of 130 pairs of the 1st bags of the SPU of storage in memory buffer 140 of system decoder is calculated (stage 303) according to following formula 1.
[formula 1]
The ES size=(PES_packet_length)-3-(PES_header_data_length)-(sub_stream_id)
In above-mentioned formula 1, numeral 3 is to be made of following each several part: the mark of 2 bits (marker) bit as 3 bytes; The PES_scrambling_control of 2 bits; The PES_priority of 1 bit; The data_alignment_indicator of 1 bit; The copyright of 1 bit; The original_or_copy of 1 bit; The PTS_DTS_flags of 2 bits; The ESCR_flag of 1 bit; The ES_rate_flag of 1 bit; The DSM_trick_mode_flag of 1 bit; The additional_copy_info_flag of 1 bit; The PES_CRC_flag of 1 bit; The PES_extension_flag of 1 bit; The PES_header_data_length of 1 byte.This structure is presented in the table 1.
That is, in the subframe pack arrangement as Fig. 3, the ES size refers to removes packet head and packet header, dialogue stream ID, and filler data wraps in the size of outer pure packet data.At this moment, if read first 2 byte of ES of the 1st bag of SPU, just can know the size (SPU_SZ) of SPU.That is, in the 1st 2 bytes of the ES of the 1st bag of SPU, writing down the size (SPU_SZ) of SPU.
Therefore, whether the ES of the 1st bag of the SPU that relatively calculates in the above-mentioned stage 303 size and the SPU_SZ that extracts out in the above-mentioned stage 304 the same (stage 305), if be judged to be, when the 1st end-of-packet, just produce look-at-me (stage 309).This is the example that SPU is made of 1 bag.
On the other hand, in the above-mentioned stage 305,, constitute by the bag more than 2, calculate the ES size (stage 306) of next bag and SPU is minimum if judge that ES is big or small and SPU_SZ is different.And, the ES size and the ES size addition of SPU accumulative total now that calculate 306 li of above-mentioned stages, thus whole ES sizes (stage 307) obtained.
Then, whole ES size and SPU_SZ whether the same (stage 308).If be judged to be equally, in the above-mentioned stage 305, when in the above-mentioned stage 305, being used for the end-of-packet of ES size calculating, for example, when the 2nd end-of-packet, produce look-at-me (stage 309); If be judged to be differently, turn back to the stage 306, be example with next one bag, calculate the ES size of the 3rd bag after, be accumulated in the former ES size, and then repetition and SPU_SZ process relatively.Such as, if judge that SPU is made of 4 bags, move three times repeatedly from the stage 306 to 308, produce look-at-me then.
Through above-mentioned process, if produce look-at-me in system decoder 130, subframe demoder 150 reads the subframe data of the bag that produces up to look-at-me from buffering storer 140, and the subframe data are decoded (stage 310).Then, in order to show store into (stage 311) in the OSD storer 160.
The bag of the 2nd embodiment SPU of the present invention can in time be decoded to subframe, only produces look-at-me one time to each subframe unit, can realize the efficient activity of the simplification and the decoding of software configuration.
By above-mentioned description, the related work personnel can carry out various change and modification fully in the scope that does not depart from this invention technological thought.
Therefore, the technical scope of this invention is not limited to the content on the instructions, must determine its technical scope according to interest field.

Claims (2)

  1. Look-at-me production method when 1, a kind of subframe is decoded comprised with the next stage:
    A, read the DVD video data of putting down in writing among the DVD, and after it is separated into expression data and navigation data, expression data is separated into once more the stage of audio/video/subframe data;
    B, will temporarily be stored into the stage of memory buffer in the subframe data that above-mentioned stage separates;
    C, the following picture unit are the stage that unit produces look-at-me, and this stage also comprises,
    The stage of the ES size of the 1st subframe bag of c1, the subframe unit that utilizes following formula 1 to calculate to store in the memory buffer;
    Formula 1:
    The ES size=(PES_packet_length)-3-(PES_header_data_length)-(sub_stream_id), wherein the unit of ES size is a byte, the ES size of above-mentioned subframe bag is except the packet head of relevant subframe bag, packet header, dialogue stream ID, filler data bag, the size of pure packet data;
    C2, partly detect stage of the relevant subframe cell size that has write down from the ES of the 1st subframe bag of described subframe unit;
    The stage whether ES that c3, more above-mentioned two stages are drawn size and subframe cell size be consistent;
    If it is identical that c4 is judged to be in the stage at c3, just when the 1st subframe end-of-packet, produce the stage of look-at-me;
    If c5 is judged to be difference at c3 in the stage, just calculate the ES size of next subframe bag after, be accumulated in the former ES size of relevant subframe unit, thereby calculate stage of whole ES sizes;
    The stage that c6, whole ES size big or small and the subframe unit of trying to achieve in the stage at above-mentioned c5 compare;
    If it is identical that c7 is judged to be in the stage at above-mentioned c6, produce the stage of look-at-me when then trying to achieve the subframe end-of-packet of ES size in the c5 stage;
    If c8 is judged to be difference at above-mentioned c6 in the stage, then turn back to the above-mentioned c5 stage again, try to achieve the ES size of next subframe bag, calculate whole ES sizes once more, compare with the subframe cell size, such process continue to proceed to always whole ES size identical with the subframe cell size till, when detecting whole ES sizes subframe bag identical with the subframe cell size, the stage of generation look-at-me during with regard to picture end-of-packet secondarily;
    D, at above-mentioned c in the stage, when producing look-at-me, from the buffering storer, read and stage of the relevant subframe unit of decoding,
    Wherein, described subframe unit is made of the subframe bag more than 1 at least.
  2. Look-at-me production method when 2, a kind of subframe is decoded comprised with the next stage:
    A, read the DVD video data of putting down in writing among the DVD, and after it is separated into expression data and navigation data, expression data is separated into once more the stage of audio/video/subframe data;
    B, will temporarily be stored into the stage of memory buffer in the subframe data that above-mentioned stage separates;
    C, the following picture unit are the stage that unit produces look-at-me, and the described c stage comprises,
    Whether c1, the PTS_DTS_flag that confirms the 1st subframe bag of the subframe unit stored in the above-mentioned memory buffer are 2 stage;
    C2, at above-mentioned c1 in the stage, if the PTS_DTS_flag of the 1st subframe bag is judged as 2, whether the PTS_DTS_flag that just judges the 2nd subframe bag is 2 stage;
    C3, in the stage, if the PTS_DTS_flag of the 2nd subframe bag is judged as 2, just produce look-at-me at above-mentioned c2, subframe data storing that will be when above-mentioned the 1st subframe end-of-packet is to the stage of memory buffer;
    C4, in the stage, be not 2 if the PTS_DTS_flag of the 2nd subframe bag is judged as at above-mentioned c2, whether the PTS_DTS_flag that just judges next subframe bag is 2 stage;
    C5, in the stage, be 2 if judge the PTS_DTS_flag of next subframe bag at above-mentioned c4, just produce look-at-me, subframe data storing that will be when subframe end-of-packet before this is to the stage of above-mentioned memory buffer;
    C6, at above-mentioned c4 in the stage, if being judged as, the PTS_DTS_flag of next subframe bag not 2, whether the PTS_DTS_flag that then judges next subframe bag is that 2 PTS_DTS_flag up to the subframe bag are judged as till 2, repeatedly after the operation, judge that PTS_DTS_flag is 2 subframe bag if detect, just produce look-at-me, subframe data storing that will be when the picture end-of-packet is to the stage of above-mentioned memory buffer;
    D, at above-mentioned c in the stage, when producing look-at-me, from the buffering storer, read and stage of the relevant subframe unit of decoding,
    Wherein, described subframe unit is made of the subframe bag more than 1 at least, and the ES size of above-mentioned subframe bag is except the packet head of relevant subframe bag, packet header, dialogue stream ID, filler data bag, the size of pure packet data.
CNB2004100531488A 2004-07-26 2004-07-26 Method for generating interrupt signal in time of decoding poor image plane Expired - Fee Related CN100492510C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100531488A CN100492510C (en) 2004-07-26 2004-07-26 Method for generating interrupt signal in time of decoding poor image plane

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100531488A CN100492510C (en) 2004-07-26 2004-07-26 Method for generating interrupt signal in time of decoding poor image plane

Publications (2)

Publication Number Publication Date
CN1728261A CN1728261A (en) 2006-02-01
CN100492510C true CN100492510C (en) 2009-05-27

Family

ID=35927476

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100531488A Expired - Fee Related CN100492510C (en) 2004-07-26 2004-07-26 Method for generating interrupt signal in time of decoding poor image plane

Country Status (1)

Country Link
CN (1) CN100492510C (en)

Also Published As

Publication number Publication date
CN1728261A (en) 2006-02-01

Similar Documents

Publication Publication Date Title
JP3816572B2 (en) Information recording apparatus, information recording method, information reproducing apparatus, and information reproducing method
JP4490914B2 (en) Data processing device
JP6226432B2 (en) Synchronized stream packing
TWI361430B (en) Playback apparatus and method
JP4210948B2 (en) Information processing apparatus and information processing method, program storage medium, and program
JP2020119623A (en) Reproducing method and reproducing device
JP2006522554A (en) Method and apparatus for reproducing and recording still image and audio data, and recording medium having data structure for managing reproduction of still image and audio data
JP6272533B2 (en) Reproduction method and reproduction apparatus
CN100492510C (en) Method for generating interrupt signal in time of decoding poor image plane
JP2007133938A (en) Information recording medium with flag showing propriety of audio mixing output, and device and method for reproducing the same
CN106463151B (en) Recording medium, reproduction device, and reproduction method
JP4142063B2 (en) Information recording medium, recording apparatus and method thereof, reproducing apparatus and method thereof, and information processing apparatus and method
CN106104687B (en) Recording medium, reproducing apparatus and method thereof
JP2007235185A (en) Information recording medium appropriate to random access, and recording/reproducing apparatus and recording/reproducing method thereof
JP2006050192A (en) Multiplexing method, information recording medium, and data reproducing method
JP3816862B2 (en) Information reproducing apparatus, information reproducing method, information recording apparatus, and information recording method
KR20040107302A (en) Method for generating interrupt in the case of sub_picture decoding
JP2005346911A (en) Information recording medium
JP2019067481A (en) Storage medium
JP2006013726A (en) Information recording medium, and recording / reproducing apparatus and recording / reproducing method thereof
JP2006073127A (en) Information recording medium suitable for random access and its recording/reproducing apparatus, recording/reproducing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090527

Termination date: 20100726