Communication apparatus and method of operating communication apparatus

Information

  • Patent Application
  • 20010033325
  • Publication Number
    20010033325
  • Date Filed
    April 24, 2001
    23 years ago
  • Date Published
    October 25, 2001
    22 years ago
Abstract
A packet communication device (sending side) sends audio and/or video signals coded by a first coding method and audio and/or video signals coded by a second coding method until the other communicating party gets ready completely when a coding method is switched from the first coding method to the second coding method during communication with the other communicating party. The packet communication apparatus (receiving side) outputs audio and/or video signals decoded by using a second decoding method after decoding processes of the second decoding method corresponding to the second coding method gets stable. Having this construction can prevent the occurrence of noise, turbulence of video, and/or interruption of audio and/or video even when the coding method is switched during communication with the other communicating party.
Description


BACKGROUND OF THE INVENTION

[0001] (a) Field of the Invention


[0002] The present invention relates to a communication apparatus including several kinds of coding methods or decoding methods and a method of operating the same.


[0003] (b) Description of the Related Art


[0004] As a method for switching a coding method during communication with the other communicating party, following method are known, for example: A first method performs switching after sending a switching request. A second method performs switching after receiving a response for a switching request.


[0005] However, in the first method, since, during a period from a time when a communication apparatus at the sending side switches a coding method to a time when a communication apparatus at the receiving side switches a decoding method, the communication apparatus at the receiving side decodes audio and/or video data coded in the coding method after switched by using a decoding method corresponding to the coding method before switched, problems regarding the occurrence of noise and/or turbulence of video are raised.


[0006] On the other hand, in the second method, during the period from a time when a communication apparatus at the receiving side switches a decoding method to a time when a communication apparatus at the sending side switches a coding method, since the receiving communication apparatus decodes audio and/or video data coded in a coding method before switched by using a decoding method corresponding to a coding method after switched, problems regarding the occurrence of noise and/or turbulence of video are raised.


[0007] Thus, recently, for example, a method is proposed that an audio and/or video data is muted for a certain period of time when a coding method is switched and then the audio and/or video data is output gradually in order to suppress the occurrence of noise and/or turbulence of video. However, in this method, the occurrence of noise can be suppressed, but another problem is raised that voice and/or video are interrupted.


[0008] Further, among coding methods or decoding methods, there exists a method that feeds back past information for coding or decoding. In this method, if a coding method or a decoding method is switched before coding processing or decoding processing become stable, problems regarding the occurrence of noise and/or turbulence of video are raised.



SUMMARY OF THE INVENTION

[0009] An object of the present invention is to solve the above-described problems. As one preferred embodiment under such a object, a communication apparatus of the present invention includes a first coding unit for creating a first coded data including audio signals coded by using a first coding method, a second coding unit for creating a second coded data including audio signals coded by using a second coding method that is different from the first coding method, and a sending unit for sending at least one of the first coded data and the second coded data. In this case, the sending unit sends the first coded data and the second coded data when a coding method is switched from the first coding method to the second coding method during communication with the other communicating party.


[0010] Also, as another embodiment, a method of operating a communication apparatus of the present invention includes a first coding step for creating first coded data including audio signals coded by using a first coding method, a second coding step for creating second coded data including audio signals coded by using a second coding method that is different from the first coding method, and a sending step for sending at least one of the first coded data and the second coded data. In this case, the sending step sends the first coded data and the second coded data when a coding method is switched from the first coding method to the second coding method during communication with the other communicating party.


[0011] Further, as another embodiment, a communication apparatus of the present invention includes a receiving unit for sending at least one of first coded data including audio signals coded by using a first coding method and second data including audio signals coded by using a second coding method that is different from the first coding method, a first decoding unit for decoding the first coding method, a second decoding unit for the second coded data, and an output unit for outputting either one of audio signals output from the first decoding unit and audio signals output from the second decoding unit. In this case, wherein the receiving unit receives the first coded data and the second coded data when a coding method is switched from the first coding method to the second coding method during communication with the other communicating party.


[0012] Furthermore, as another embodiment, a method of operating a communication apparatus of the present invention includes a receiving step for receiving at least one of first coded data including audio signals coded by using a first coding method and second data including audio signals coded by using a second coding method that is different from the first coding method, a first decoding step for decoding the first coding method, a second decoding step for decoding the second coded data, and an output step for outputting either one of audio signals output from the first decoding unit and audio signals output from the second decoding unit. In this case, the receiving step receives the first coded data and the second coded data when a coding method is switched from the first coding method to the second coding method during communication with the other communicating party.


[0013] Still other objects of the present invention, and the advantages thereof, will become fully apparent from the following detailed description of the embodiments.







BRIEF DESCRIPTION OF THE DRAWINGS

[0014]
FIG. 1 is a block diagram showing a main construction of a packet communication apparatus (sending side) according to a first embodiment of the present invention;


[0015]
FIG. 2 is a block diagram showing a main construction of a packet communication apparatus (receiving side) according to the first embodiment of the present invention;


[0016]
FIG. 3 is a diagram for describing one example of main processing steps of a packet communication apparatus according to the first embodiment of the present invention;


[0017]
FIG. 4 is a diagram for describing another example of main processing steps of a packet communication apparatus according to the first embodiment of the present invention;


[0018]
FIG. 5 is a flowchart for describing main processing steps of a packet communication apparatus according to the first embodiment of the present invention;


[0019]
FIG. 6 is a flowchart for describing main processing steps of a packet communication apparatus according to the first embodiment of the present invention;


[0020]
FIG. 7 is a flowchart for describing main processing steps of a packet communication apparatus according to the first embodiment of the present invention;


[0021]
FIG. 8 is a diagram showing a construction of a data packet according to the first embodiment of the present invention;


[0022]
FIG. 9 is a diagram showing a construction of a data packet according to a second embodiment of the present invention;


[0023]
FIG. 10 is a diagram showing an example of main processing steps of a packet communication apparatus according to the second embodiment of the present invention; and


[0024]
FIG. 11 is a diagram showing another example of main processing steps of a packet communication apparatus according to the second embodiment of the present invention.







DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0025] The preferred embodiments of the present invention will now be described in detail hereinafter with reference to the accompanying drawings.


[0026] Embodiment 1


[0027]
FIG. 1 is a block diagram showing one construction example of a packet communication apparatus (sending side) according to a first embodiment of the present invention.


[0028]
FIG. 1 includes a packet communication apparatus (sending side) 100 according to a first embodiment, an audio processing apparatus 101, a packet network 112, and an image processing apparatus 113. The audio processing apparatus 101 includes a microphone or a voice playback apparatus, for example, and outputs analog audio signals in a predetermined audio format. The packet network 112 includes a Local Area Network (LAN), a Wide Area Network (WAN), Internet, a satellite communication line, a serial bus or wireless LAN compliant with the IEEE1394-1995 standard, for example. The image processing apparatus 113 includes a video camera or a video playback apparatus and outputs analog video signals in a predetermined video format. The audio processing apparatus 101 and/or the image processing apparatus 113 may be within the packet communication apparatus 100, for example.


[0029] Further, FIG. 1 includes an input portion 102, a select portion 103, and a control portion 109. The input portion 102 converts analog audio signals output from the audio processing apparatus 101 to digital audio signals and/or analog video signals output from the video processing apparatus 113 to digital video signals. The select portion 103 supplies audio and/or video signals output from the input portion 102 to at least one coding portion 104-i (i=1 to N (N is an integer of 2 or above)) in accordance with an instruction from the control portion 109.


[0030] Each coding portion 104-i (i=1 to N) codes audio or/and video signals having a same content by using a coding method each has. An audio coding method that each coding portion 104-i (i=1 to N) has may be Moving Picture Experts Group (MPEG) 1 audio method compliant with the ISO/IEC 13818-3 standard, Adaptive Differential PCM (ADPCM) method, Sub-band ADPCM (SB-ADPCM) method, or Low-Delay Code Excited Linear Prediction(LD-CELP) method, for example. Further, a video coding method that each coding portion 104-i (i=1 to N) includes may be the MPEG 1 method compliant with the ISO/IEC11172-2 standard or the MPEG 2 method compliant with the ISO/IEC 13818-2 standard, for example. It should be noted that the combination of the audio coding method and video coding method that each coding portion 104-i (i=1 to N) has differs for every coding portion 104-i (i=1 to N).


[0031] Further, FIG. 1 includes a select portion 105, a communication portion 106, an operating portion 114, and a timer 115. The select portion 105 supplies coded data output from at least one coding portion 104-i (i=1 to N) in accordance with an instruction from a control portion 109.


[0032] The communication portion 106 creates a data packet including coded data output from the select portion 105 and sends the created data packet to the other packet communication apparatus. Further, the communication portion 106 creates a control packet including control data (switching request, switching response, switching confirmation, for example, described below) output from the control portion 109 and sends the created control packet to the other packet communication apparatus. Furthermore, the communication apparatus 106 receives a control packet sent from the other packet communication apparatus and supplies control data (switching request, switching response, switching confirmation, for example, described below) included in the received control packet to the control portion 109. The communication portion 106 includes a LAN controller, a Transmission Control Protocol/Internet Protocol (TCP/IP) Protocol stack, a serial bus controller or a wireless LAN controller, for example.


[0033] The control portion 109 controls an operation of the packet communication apparatus 100 (sending side) by following processing steps described below. It should be noted that the control portion 109 includes a microcomputer, a memory and different kinds of control programs). The operating portion 114 displays a currently selected coding method, displays a selectable coding method, or inquires of a user about a coding method after switched. The timer 115 measures a time that is enough for processing steps of the switched coding method to be stable.


[0034]
FIG. 2 is a block diagram showing one construction example of a packet communication apparatus (receiving side) according to the first embodiment of the present invention.


[0035]
FIG. 2 includes a packet communication apparatus (receiving side) 200, an audio processing apparatus 201, and an image processing apparatus 213. The audio processing apparatus 201 includes a speaker or an audio recording apparatus. The image processing apparatus 213 includes a video recording apparatus or a display apparatus such as a CRT, a liquid crystal panel, and a plasma display panel. The audio processing apparatus 201 and/or the image processing apparatus 213 may be within the packet communication apparatus 200.


[0036] Further, the packet communication apparatus 200 includes a communication portion 206, a select portion 205, and a control portion 209. The communication portion 206 receives a data packet sent from the other packet communication apparatus and supplies coded data included in the received data packet to the select portion 205. Further, the communication portion 206 receives a control packet sent from the other packet communication apparatus and supplies control data (switching request, switching response, switching confirmation, for example, described below) included in the received control packet to the control portion 209. Further, the communication portion 206 creates a control packet including the control data (switching request, switching response, switching confirmation, for example, described below) supplied from the control portion 209 and sends the created control packet to the other packet communication apparatus. The communication portion 206 includes a LAN controller, a Transmission Control Protocol/Internet Protocol (TCP/IP) Protocol stack, a serial bus controller or a wireless LAN controller, for example.


[0037] The select portion 205 supplies coded data output from the communication portion 206 to at least one decoding portion 204-i (i=1 to N (N is an integer of 2 or above)) in accordance with an instruction from the control portion 209.


[0038] Each decoding portion 204-i (i=1 to N) decodes audio or/and video signals having a same content by using a decoding method each has. An audio decoding method that each decoding portion 204-i (i=1 to N) includes corresponds to an audio coding method that each coding portion 104-i (i−1 to N) includes. Further, a video coding method that each decoding portion 204-i (i=1 to N) includes corresponds to a video coding method that each coding portion 104-i (i=1 to N) includes. It should be noted that the combination of the audio decoding method and video decoding method that each decoding portion 204-i (i−1 to N) has differs for every decoding portion 204-i (i=1 to N).


[0039] The select portion 203 supplies audio and/or video signals output from at least one decoding portion 204-i (i=1 to N) to an output 202 in accordance with an instruction from the control portion 209.


[0040] The output portion 202 converts digital audio signals output from the select portion 203 to analog audio signals and supplies the converted analog audio signals to the audio processing apparatus 201.


[0041] The output portion 202 converts digital video signals output from the select portion 203 to analog video signals and supplies the converted analog video signals to the video processing apparatus 213.


[0042] The control portion 209 controls an operation of the packet communication apparatus 200 (receiving side) by following processing steps described below. It should be noted that the control portion 209 includes a microcomputer, a memory and different kinds of control programs. The operating portion 214 displays a currently selected coding method, displays a selectable coding method, or inquires of a user about a coding method after switched. The timer 215 measures a time that is enough for processing steps of the switched coding method to be stable.


[0043] Next, by referring to FIG. 8, a construction of a data packet according to a first embodiment of the present invention will be described.


[0044] As shown in FIG. 8, a data packet 800 according to the first embodiment includes a header 801, coding method information 802, coded data 803, and footer 804. The header 801 includes information for identifying the other communicating party, for example. The coding method information 802 includes information indicating a coding method for the coded data 803 and a decoding method corresponding thereto. The coded data 803 includes audio and/or video signals coded by using a coding method before switched (a first coding method that a first coding portion 104-1 includes). The footer 804 includes information for detecting or correcting an error occurred in a data packet, for example.


[0045] Further, as shown in FIG. 8, a data packet 810 according to the first embodiment includes a header 811, coding method information 812, coded data 813 and a footer 814. The header 811 includes information for identifying the other communicating party, for example. The coding method information 812 includes information indicating a decoding method for the coded data 813 and a decoding method corresponding thereto. The coded data 813 includes audio and/or video signals coded by using a coding method after switched (a second coding method that a second coding portion 104-2 includes). The footer 814 includes information for detecting or correcting an error occurred in a data packet, for example.


[0046] Next, by referring to FIG. 3, it will be described one example of main processing steps of packet communication apparatuses 100 and 200 according to the first embodiment. In FIG. 3, it will be described processing steps in a case where, during communication with the packet communication apparatus 200 (receiving side), the packet communication apparatus 100 (sending side) requests switching of a coding method. Further, in FIG. 3, a case will be described where the coding method before switched is a first coding method that a first coding portion 104-1 includes, for example, while the coding method after switched is a second coding method that a second coding portion 104-2 includes, for example.


[0047] First of all, a processing step of a step S301 will be described. The input portion 102 converts analog audio signals output from the audio processing apparatus 101 to digital audio signals. Also, the input portion 102 converts the analog video signals output from the video processing apparatus 113 to digital video signals. The select portion 103 supplies audio and/or video signals output from the input portion 102 to the first coding portion 104-1. The first coding portion 104-1 codes the audio and/or video signals supplied from the select portion 103 and creates coded data 803, sequentially. The select portion 105 supplies the coded data 803 output from the first coding portion 104-1. The communication portion 106 creates a data packet 800 including the coded data 803 sequentially, and sends it to the packet communication apparatus 200 sequentially.


[0048] The communication portion 206 sequentially receives the data packet 800 sent from the packet communication apparatus 100 and supplies coding method information 802 to the control portion 209. The control portion 209 determines a coding method for the coded data 803 and a decoding method corresponding thereto based on the coding method information 802. The select portion 205 sequentially supplies the coded data 803 to the first decoding portion 204-1. The first decoding portion 204-1 decodes the coded data 803 by using a first decoding method corresponding to the first coding method and creates audio and/or video signals. The select portion 203 supplies audio and/or video signals output from the first decoding portion 204-1 to the output portion 202. The output portion 202 converts the digital audio signals from the select portion 203 to the analog audio signals or digital video signals from the select portion 203 to the analog video signals. Then, The output portion 202 supplies the analog audio signals to the audio processing apparatus 201 and/or the analog video signals to the video processing apparatus 213.


[0049] Next, a processing step of a step S302 will be described. the control portion 109 determines whether or not the coding method needs to be switched from the first coding method to the second coding method. For example, when the control portion 109 detects a change in traffic in the packet network 112 and automatically determines that the coding methods needs to be changed from the first method to the second method, the control portion 109 switches the coding method from the first coding method to the second coding method. Further, when a user manipulates the operating portion 114 in order to instruct to change the coding method from the first coding method to the second coding method, for example, the control portion 109 switches the coding method from the first coding method to the second coding method. When the coding method is switched from the first coding method to the second coding method, the control portion 109 starts preparation for coding audio and/or video signals having a same content by using a coding method before switched and a coding method after switched. The timer 115 starts measuring a predetermined time T1 (a time enough for the operation by the coding portion 104-2 to be stable) in accordance with an instruction from the control portion 109. The select portion 103 supplies the audio and/or video signals having a same content to the first coding portion 104-1 and the second coding portion 104-2 in accordance with an instruction from the control portion 109. The select portion 105 supplies the coded data 803 output from the first coding portion 104-1 to the communication 106 in accordance with an instruction from the control portion 109. However, the select portion 105 does not supply the coded data 813 output from the second coding portion 104-2 to the communication portion 106. It should be noted that, until the predetermined time T1 passes (a time enough for the operation of the second coding portion 104-2 to be stable), the coded data 813 output from the second coding portion 104-2 is prevented from being supplied to the communication portion 106.


[0050] Next, a processing step of a step S303 will be described. After the predetermined time T1 has passed (that is, after the coding processing of the second coding portion 104-2 has become stable), the control portion 109 supplies control data for requesting switching of the coding method (called switching response below) to the communication portion 106. The communication portion 106 creates a control packet including a switching request and sends this to the packet communication apparatus 200.


[0051] The communication apparatus 206 receives a control packet (including the switching request) sent from the packet communication apparatus 100. The control portion 209 starts preparation for switching the coding method from the first coding method to the second coding method after receiving the switching request. Further, the timer 215 starts measuring a predetermined time T2 (a time enough for an operation of the second decoding portion 204-2 to be stable) in accordance with an instruction from the control portion 209.


[0052] Next, a processing step of a step S304 will be described. The select portion 105 supplies to the communication portion 106 the coded data 803 output from the first coding portion 104-1 and the coded data 813 output from the second coding portion 104-2 in accordance with the control portion 109. The communication portion 106 creates a data packet 800 including the coded data 803 and a data packet 810 including the coded data 813 sequentially and sends them to the packet communication apparatus 200 sequentially. It should be noted that the communication portion 106 starts sending the data packet 800 and the data packet 810 without connecting a new call with the packet communication apparatus 200.


[0053] The communication portion 206 sequentially receives the data packet 800 and the data packet 810 sent from the packet communication apparatus 100 and supplies the coded data 803 and the coded data 813 to the select portion 205 and the coding method information 802 and 812 to the control portion 209. The control portion 209 determines a coding method for the coded data 803 and a decoding method corresponding thereto based on the coding method information 802 and determines a coding method for the coded data 813 and a decoding method corresponding thereto based on the coding method information 812. The select portion 205 supplies the coded data 803 to the first decoding portion 204-1 and coded data 813 to the second decoding portion 204-2 in accordance with an instruction from the control portion 209. The select portion 203 supplies audio and/or video signals output from the first decoding portion 204-1 to the output portion 202 in accordance with an instruction from the control portion 209. However, the audio and/or video signals output from the second decoding portion 204-2 is prevented from being supplied to the output portion 202. The select portion 203 does not supply audio and/or video signals output from the second decoding portion 204-2 until the predetermined time T2 (a time enough for an operation of the second decoding portion 204-2 to be stable) has passed.


[0054] Next, a processing step of a step S305 will be described. After the predetermined time T2 has passed (that is, after the decoding processing by the second decoding portion 204-2 gets stable), the select portion 203 supplies audio and/or video signals output from the second decoding portion 204-2 to the output portion 202 in accordance with an instruction from the control portion 209. However, audio and/or video signals output from the first decoding portion 204-1 is prevented from being supplied to the output portion 202. The output portion 202 converts digital audio signals from the select portion 203 to analog audio signals and the digital video signals from the select portion 203 to the analog video signals. Then, the output portion 202 supplies the analog audio signals to the audio output apparatus 201 and analog video signals to the video apparatus 213. Further, the control portion 209 supplies control data corresponding to a switching request (called “switching response” below) to the communication portion 206. The communication portion 206 creates a control packet including the switching response and then sends it to the packet communication apparatus 100.


[0055] The communication portion 106 receives the control packet (including the switching response) sent from the packet communication apparatus 200. The control portion 109 receives the switching response and then terminates processing for coding audio and/or video signals by using the first coding method.


[0056] Next, a processing step of a step S306 will be described. The control portion 109 receives the switching response and then supplies a switching confirmation to the communication portion 106. The communication portion 106 creates a control packet including the switching confirmation and then sends it to the packet communication apparatus 200.


[0057] Next, a processing step of a step S307 will be described. The select portion 103 supplies audio and/or video signals output from the input portion 102 to the second coding portion 104-2 but not to the first coding portion 104-1 in accordance with an instruction from the control portion 109. Further, the select portion 105 supplies coded data 813 output from the second coding portion 104-2 to the communication portion 106 in accordance with an instruction from the control portion 109. The communication portion 106 sequentially creates a data packet 810 including the coded data 813 and sequentially sends it to the packet communication apparatus 200. Since the packet communication apparatus 200 switches the coding method from the first coding method to the second coding method, the data packet 810 sent from the packet communication apparatus 100 can be decoded without any problems, which also can prevent the occurrence of noise, video turbulence and/or audio and/or video interruption.


[0058] Next, by referring to FIG. 4, another example of main processing steps by the packet communication apparatuses 100 and 200 according to the first embodiment will be described. In FIG. 4, during communication with the packet communication apparatus 100 (sending side), it will be described processing steps where the packet communication apparatus 200 (receiving side) requests for switching a coding method. Further, in FIG. 4, like the description on FIG. 3, it will be described a case where it is assumed that the coding method before switched is a first coding method included by the first coding portion 104-1, for example, and the coding method after switched is a second coding method included by the second coding method, for example.


[0059] First of all, a processing step of a step S401 will be described. In the processing step at the step S401 is the same as the processing step at the step S301, and the description will be omitted here.


[0060] Next, a processing step of a step S 402 will be described. The control portion 209 determines whether or not the coding method must be switched from the first coding method to the second coding method. For example, when the control portion 209 detects a change in traffic in the packet network 112 and automatically determines that the coding method must be changed from the first coding method to the second coding method, the control portion 209 switches the coding method from the first coding method to the second coding method. Further, when a user manipulates the operating portion 214 to change the coding method from the first coding method to the second coding method, the control portion 209 switches the coding method from the first coding method to the second coding method. When the coding method has been switched from the first coding method to the second coding method, the control portion 209 supplies control data for requesting switching of the coding method (called “switching request” below) to the communication portion 206. The communication portion 206 creates a control packet including the switching request and then sends it to the packet communication apparatus 100.


[0061] The communication portion 106 receives the control packet (including the switching request) sent from the packet communication apparatus 200. After receiving the switching request, the control portion 109 starts preparation for coding audio and/or video signals having a same content by using the first and second coding methods.


[0062] Further, the timer 115 starts measuring a predetermined time T1 (a time enough for the operation of the second coding portion 104-2 to be stable) in accordance with an instruction from the control portion 109. The select portion 103 supplies the audio and/or video signals having a same content to the first coding portion 104-1 and the second coding portion 104-2 in accordance with an instruction from the control portion 109. The select portion 105 supplies coded data 803 from the first coding portion 104-1 to the communication portion 106 in accordance with an instruction from the control portion 109 but prevents coded data 813 output from the second coding portion 104-2 to be supplied to the communication portion 106. It should be noted that, until the predetermined time T1 passes (a time enough for the operation of the second coding portion 104-2 to be stable), the coded data 813 output from the second coding portion 104-2 is prevented from being supplied to the communication portion 106.


[0063] Next, a processing step of a step S403 will be described. After the predetermined time T1 has passed (that is, after the coding processing of the second coding portion 104-2 has become stable), the control portion 109 supplies a switching response to the communication portion 106. The communication portion 106 creates a control packet including the switching response and sends this to the packet communication apparatus 200.


[0064] The communication portion 206 receives the control packet (including the switching response) sent from the packet communication apparatus 100. The control portion 209 starts preparation for switching the coding method from the first coding method to the second coding method after receiving the switching response. Further, the timer 215 starts measuring a predetermined time T2 (a time enough for an operation of the second decoding portion 204-2 to be stable) in accordance with an instruction from the control portion 209.


[0065] Next, a processing step of a step S404 will be described. The select portion 105 supplies to the communication portion 106 the coded data 803 output from the first coding portion 104-1 and the coded data 813 output from the second coding portion 104-2 in accordance with the control portion 109. The communication portion 106 creates a data packet 800 including the coded data 803 and a data packet 810 including the coded data 813 sequentially and sends them to the packet communication apparatus 200 sequentially. It should be noted that the communication portion 106 starts sending the data packet 800 and the data packet 810 without connecting a new call with the packet communication apparatus 200.


[0066] The communication portion 206 sequentially receives the data packet 800 and the data packet 810 sent from the packet communication apparatus 100 and supplies the coded data 803 and the coded data 813 to the select portion 205 and the coding method information 802 and 812 to the control portion 209. The control portion 209 determines a coding method for the coded data 803 and a decoding method corresponding thereto based on the coding method information 802 and determines a coding method for the coded data 813 and a decoding method corresponding thereto based on the coding method information 812. The select portion 205 supplies the coded data 803 to the first decoding portion 204-1 and coded data 813 to the second decoding portion 204-2 in accordance with an instruction from the control portion 209. The select portion 203 supplies audio and/or video signals output from the first decoding portion 204-1 to the output portion 202 in accordance with an instruction from the control portion 209. However, the audio and/or video signals output from the second decoding portion 204-2 is prevented from being supplied to the output portion 202. The select portion 203 does not supply audio and/or video signals output from the second decoding portion 204-2 until the predetermined time T2 (a time enough for an operation of the second decoding portion 204-2 to be stable) has passed.


[0067] Next, a processing step of a step S405 will be described. After the predetermined time T2 has passed (that is, after the decoding processing by the second decoding portion 204-2 gets stabilized), the select portion 203 supplies audio and/or video signals output from the second decoding portion 204-2 to the output portion 202 in accordance with an instruction from the control portion 209. However, audio and/or video signals output from the first decoding portion 204-1 is prevented from being supplied to the output portion 202. The output portion 202 converts digital audio signals from the select portion 203 to analog audio signals and the digital video signals from the select portion 203 to the analog video signals. Then, the output portion 202 supplies the analog audio signals to the audio output apparatus 201 and analog video signals to the video apparatus 213. Further, the control portion 209 supplies a switching confirmation to the communication portion 206. The communication portion 206 creates a control packet including the switching confirmation and then sends it to the packet communication apparatus 100.


[0068] The communication portion 106 receives the control packet (including the switching confirmation) sent from the packet communication apparatus 200 and supplies the switching confirmation included in the control packet to the control portion 109. The control portion 109 receives the switching confirmation and then terminates processing for coding audio and/or video signals by using the first coding method.


[0069] Next, a processing step of a step S406 will be described. The select portion 103 supplies audio and/or video signals output from the input portion 102 to the second coding portion 104-2 but not to the first coding portion 104-1 in accordance with an instruction from the control portion 109. Further, the select portion 105 supplies coded data 813 output from the second coding portion 104-2 to the communication portion 106 in accordance with an instruction from the control portion 109. The communication portion 106 sequentially creates a data packet 810 including the coded data 813 and sequentially sends it to the packet communication apparatus 200. Since the packet communication apparatus 200 switches the coding method from the first coding method to the second coding method, the data packet 810 sent from the packet communication apparatus 100 can be decoded without any problems, which also can prevent the occurrence of noise, video turbulence and/or audio and/or video interruption.


[0070] Next, a main processing step of the packet communication apparatus 100 (sending side) according to the first embodiment will be described by referring to the flowchart in FIG. 5.


[0071] In a step S501, the control portion 109 determines whether or not the coding method must be switched from the first coding method to the second coding method. When the coding method is switched, the flowchart goes to a step S503. On the other hand, when the coding method is not switched, the flowchart goes to a step S502.


[0072] In the step S502, the control portion 109 determines whether or not a control packet including a switching request has been received or not. When the switching request has been received, the flowchart goes to a step S504. On the other hand, when the switching request has not been received, the flowchart goes to a step S501.


[0073] Next, a processing step of a step S503 in FIG. 5 will be described by referring to a flowchart in FIG. 6.


[0074] In a step S601, the control portion 109 starts preparation for coding audio and/or video signals having a same content by using a coding method before switched and a coding method after switched.


[0075] In a step S602, the control portion 109 determines whether or not a predetermined time T1 (a time enough for the coding processing by the coding portion 104-2 to be stable) has passed. If the predetermined time has passed, the flowchart goes to a step S603.


[0076] In the step S603, the control portion 109 supplies a switching request to the communication portion 106. the communication portion 106 creates a control packet including the switching request and the sends it to the packet communication apparatus 200. After sending the switching request, the communication portion 106 starts sending audio and/or video signals coded by using the coding method before switched and audio/video signals coded by using the coding method after switched.


[0077] In a step S604, the control portion 109 determines whether or not the control packet including a switching response could be received within a predetermined time. If the switching response could be received, the flowchart goes to a step S606. On the other hand, if the switching request could not be received, the flowchart goes to a step S605.


[0078] In the step S605, the control portion 109 controls the audio and/or video signals coded by using the coding method before switched to be sent to the packet communication apparatus 200. Further, the control portion 109 controls the audio/video signals coded by using the coding method after switched not to be sent to the packet communication apparatus 200.


[0079] In the step S606, the control portion 109 controls the audio and/or video signals coded by using the coding method before switched not to be sent to the packet communication apparatus 200. Further, the control portion 109 controls the audio and/or video signals coded after switched to be sent to the packet communication apparatus 200.


[0080] In a step S607, the control portion 109 supplies a switching confirmation to the communication portion 106. The communication portion 106 creates a control packet including the switching confirmation and then sends it to the packet communication apparatus 200.


[0081] Next, a processing step of a step S504 in FIG. 5 will be described by referring to a flowchart in FIG. 7.


[0082] In a step S701, the control portion 109 starts preparation for coding audio and/or video signals having a same content by using a coding method before switched and a coding method after switched.


[0083] In a step S702, the control portion 109 determines whether or not a predetermined time T1 (a time enough for a coding process by the coding portion 104-2 to be stable) has passed. If the predetermined time has passed, the flowchart goes to a step S703.


[0084] In the step S703, the control portion 109 supplies a switching response to the communication portion 106. The communication portion 106 creates a control packet including the switching response and then sends it to the communication apparatus 200. After sending the switching response, the communication portion 106 starts sending audio and/or video signals coded by the coding method before switched and audio and/or video signals coded by using the coding method after switched.


[0085] In a step S704, the control portion 109 determines whether or not the control packet including a switching confirmation could be received within a predetermined time. If the switching confirmation could be received, the flowchart goes to a step S706. On the other hand, if the switching confirmation could not be received, the flowchart goes to a step S705.


[0086] In the step S705, the control portion 109 controls the audio and/or video signals coded by using the coding method before switched to be sent to the packet communication apparatus 200. Further the control portion 109 controls the audio/video signals coded by using the coding method after switched not to be sent to the packet communication apparatus 200.


[0087] In the step S706, the control portion 109 controls the audio and/or video signals coded by using the coding method before switched not to be sent to the packet communication apparatus 200. Further the control portion 109 controls the audio and/or video signals coded by using the coding method after received to be sent to the packet communication apparatus 200.


[0088] As described above, according to the first embodiment, even when a coding method is switched during communication with the other party, the occurrence of noise, turbulence of video, interruption of audio and/or video could be prevented.


[0089] Further, according to the first embodiment, the audio and/or video signals coded by using a coding method after switched is not sent until a coding process gets stable. Thus, even when a coding method feeding back past information is switched, the occurrence of noise, turbulence of video, interruption of audio and/or video could be prevented.


[0090] Furthermore, according to the first embodiment, audio and/or video signals coded by using a coding method after switched can be sent without connecting a new call, which eliminates a need for complicated communication processes. Thus, the communication efficiency can be improved.


[0091] Embodiment 2


[0092] In the first embodiment, a case has been described where audio and/or video signals coded by using a coding method before switched and audio and/or video signals coded by using a coding method after switched are packetized to separate data packets.


[0093] On the other hand, in a second embodiment, a case will be described where audio and/or video signals coded by using a coding method before switched and audio and/or video signals coded by using a coding method after switched are packetized to a same data packet.


[0094] Next, a construction of data packet according to the second embodiment will be described by referring to FIG. 9.


[0095] As shown in FIG. 9, a data packet 900 according to the second embodiment includes a header 901, coding method information 802, coded data 803, coding method information 812, coded data 813 and a footer 904. The header 901 includes information for identifying the other communicating party, for example. The coding method information 802 includes information indicating a coding method for the coded data 803 and a decoding method corresponding thereto. The coded data 803 includes audio and/or video signals coded by using a coding method before switched (a first coding method that a first coding portion 104-1 includes, for example). The coding method information 812 includes information indicating a coding method for coded data 813 and a decoding method corresponding thereto. the coded data 813 includes audio and/or video signals coded by using a coding method after switched (a second coding method that a second coding portion 104-2 includes, for example). The footer 904 includes information for detecting or correcting an error occurred in a data packet, for example.


[0096] Next, by referring to FIG. 10, it will be described one example of main processing steps of packet communication apparatuses 100 and 200 according to the second embodiment. In FIG. 10, it will be described processing steps in a case where, during communication with the packet communication apparatus 200 (receiving side), the packet communication apparatus 100 (sending side) requests switching of a coding method. Further, in FIG. 10, it is assumed that the coding method before switched is a first coding method that a first coding portion 104-1 includes, for example, while it is assumed that the coding method after switched is a second coding method that a second coding portion 104-2 includes, for example. It should be noted that processing steps will be described in detail which are different from the processing steps shown in FIG. 3, and the same reference numerals will be given to the processing steps that are similar to those in FIG. 3 and the description thereof will be omitted here.


[0097] A processing step of a step S1001 will be described. The select portion 105 supplies coded data 803 output from the first coding portion 104-1 and coded data 813 output from the second coding portion 104-2 to the communication portion 106 in accordance with an instruction from the control portion 109. The communication portion 106 creates a data packet 900 including the coded data 803 and the coded data 813 sequentially, and sends them to the packet communication apparatus 200 sequentially. The communication portion 106 starts sending the data packet 900 without connecting a new call with the packet communication apparatus 200.


[0098] The communication portion 206 sequentially receives the data packet 900 sent from the packet communication apparatus 100 and supplies coded data 803 and coded data 813 to the select portion 205 and coding method information 802 and 812 to the control portion 209. The control portion 209 determines a coding method for the coded data 803 and a decoding method corresponding thereto based on the coding method information 802. The select portion 205 supplies the coded data 803 to the first decoding portion 204-1 and supplies the coded data 813 to the second decoding portion 204-2 in accordance with an instruction from the control portion 209. The select portion 203 supplies audio and/or video signals output from the first decoding portion 204-1 to the output portion 202 but does not supply audio and/or video signals output from the second decoding portion 204-2 to the output portion 202 in accordance with an instruction from the control portion 209. The select portion 203 does not supply audio and/or video signals output from the second decoding portion 204-2 to the output portion 202 until a predetermined time T2 (a time enough for an operation of the second decoding portion 204-2 to be stable) has passed.


[0099] Next, by referring to FIG. 11, it will be described another example of main processing steps of packet communication apparatuses 100 and 200 according to the second embodiment. In FIG. 11, it will be described processing steps in a case where, during communication with the packet communication 100 (sending side), the packet communication apparatus 200 (receiving side) requests switching of a coding method. Further, in FIG. 11, in the same manner as the description for FIG. 10, it is assumed that the coding method before switched is a first coding method that a first coding portion 104-1 includes, for example, while it is assumed that the coding method after switched is a second coding method that a second coding portion 104-2 includes, for example. It should be noted that processing steps will be described in detail in FIG. 11, which are different from the processing steps shown in FIG. 4, and the same reference numerals will be given to the processing steps that are similar to those in FIG. 4 and the description thereof will be omitted here.


[0100] A processing step of a step S1101 will be described. The select portion 105 supplies coded data 803 output from the first coding portion 104-1 and coded data 813 output from the second coding portion 104-2 to the communication portion 106 in accordance with an instruction from the control portion 109. The communication portion 106 creates a data packet 900 including the coded data 803 and the coded data 813 sequentially, and sends them to the packet communication apparatus 200 sequentially. The communication portion 106 starts sending the data packet 900 without connecting a new call with the packet communication apparatus 200.


[0101] The communication portion 206 sequentially receives the data packet 900 sent from the packet communication apparatus 100 and supplies coded data 803 and coded data 813 to the select portion 205 and coding method information 802 and 813 to the control portion 209. The control portion 209 determines a coding method for the coded data 803 and a decoding method corresponding thereto based on the coding method information 802. The select portion 205 supplies the coded data 803 to the first decoding portion 204-1 and supplies the coded data 813 to the second decoding portion 204-2 in accordance with an instruction from the control portion 209. The select portion 203 supplies audio and/or video signals output from the first decoding portion 204-1 to the output portion 202 but does not supply audio and/or video signals output from the second decoding portion 204-1 to the output portion 202 in accordance with an instruction from the control portion 209. The select portion 203 does not supply audio and/or video signals output from the second decoding portion 204-2 to the output portion 202 until a predetermined time T2 (a time enough for an operation of the second decoding portion 204-2 to be stable) has passed.


[0102] As described above, according to the second embodiment, like the first embodiment, even when a coding method is switched during communication with the other party, the occurrence of noise, turbulence of video, interruption of audio and/or video could be prevented.


[0103] Further, according to the second embodiment, audio and/or video signals coded by a coding method before switched and audio and/or video signals coded by a coding method after switched can be packetized in a same data packet. Thus, the communication efficient can be improved more than that in the first embodiment.


[0104] Further, according to the second embodiment, like the first embodiment, the coding decoding method is not switched until a decoding process of a decoding method after switched gets stable. Thus, even when the decoding method after switched is a decoding method feeding back past information, the occurrence of noise, turbulence of video, interruption of audio and/or video could be prevented.


[0105] Furthermore, according to the second embodiment, audio and/or video signals coded by using a coding method after switched can be sent without connecting a new call, which eliminates a need for complicated communication processes. Thus, the communication efficiency can be improved.


[0106] Another Embodiment


[0107] A part or all of functions described in each of the above-described embodiments can be implemented by a control program. In such a case, the control portion within an apparatus described in each or the above-described embodiments uses a control program for implementing a part or all of functions described in each of the above-described embodiments to implement a part or all of functions described in each of the above-described embodiments. In this case, a memory medium for storing the control program may be a floppy disk, a hard disk, an optical disk, a photomagnetic disk, a CD-ROM, a magnetic tape, a nonvolatile memory card, or a ROM, for example.


[0108] The invention may be embodied in other specific forms without departing from essential characteristics thereof.


[0109] For example, in the above-described embodiments, a case has been described where a coding method before switched is a first coding method and a coding method after switched is a second coding method. However, the present invention is limited thereto. It is possible that the coding method before switched is an ath (a=1 to N) coding method and the coding method after switched is bth (b=1 to N, b≠a).


[0110] Therefore, the above-mentioned embodiments are merely examples in all respects, and must not be construed to limit the invention.


[0111] The scope of the present invention is defined by the scope of the appended claims, and is not limited at all by the specific descriptions of this specification. Furthermore, all the modifications and changes belonging to equivalents of the claims are considered to fall within the scope of the present invention.


Claims
  • 1. A communication apparatus, comprising: first coding means for creating a first coded data including audio signals coded by using a first coding method; second coding means for creating a second coded data including audio signals coded by using a second coding method that is different from said first coding method; and sending means for sending at least one of said first coded data and said second coded data, wherein said sending means sends said first coded data and said second coded data when a coding method is switched from said first coding method to said second coding method during communication with the other communicating party.
  • 2. A communication apparatus according to claim 1, wherein said sending means sends said first coded data and said second coded data that are packetized in separate packets when said first coded data and said second coded data are sent.
  • 3. A communication apparatus according to claim 1, wherein said sending means sends said first coded data and said second coded data that are packetized in a same packet when said first coded data and said second coded data are sent.
  • 4. A communication apparatus according to claim 1, wherein said sending means sends said first coded data and said second coded data without connecting a new call.
  • 5. A communication apparatus according to claim 1, wherein said sending means does not send said second coded data until a predetermined time has passes since said second coding means starts creating said second coded data.
  • 6. A communication apparatus according to claim 1, wherein said first coded data includes video signals coded by using said first coding method while said second coded data includes video signals coded by using said second coding method.
  • 7. A method of operating a communication apparatus, comprising: a first coding step for creating first coded data including audio signals coded by using a first coding method; a second coding step for creating second coded data including audio signals coded by using a second coding method that is different from said first coding method; and a sending step for sending at least one of said first coded data and said second coded data, wherein said sending step sends said first coded data and said second coded data when a coding method is switched from said first coding method to said second coding method during communication with the other communicating party.
  • 8. A method according to claim 7, wherein said sending step sends said first coded data and said second coded data that are packetized in separate packets when said first coded data and said second coded data are sent.
  • 9. A method according to claim 7, wherein said sending step sends said first coded data and said second coded data that are packetized in a same packet when said first coded data and said second coded data are sent.
  • 10. A method according to claim 7, wherein said sending step sends said first coded data and said second coded data without connecting a new call.
  • 11. A method according to claim 7, wherein said sending step does not send said second coded data until a predetermined time passes since said second coding means starts creating said second coded data.
  • 12. A method according to claim 7, wherein said first coded data includes video signals coded by using said first coding method while said second coded data includes video signals coded by using said second coding method.
  • 13. A communication apparatus, comprising: receiving means for sending at least one of first coded data including audio signals coded by using a first coding method and second data including audio signals coded by using a second coding method that is different from said first coding method; first decoding means for decoding said first coding method; second decoding means for said second coded data; and output means for outputting either one of audio signals output from said first decoding mean and audio signals output from said second decoding means, wherein said receiving means receives said first coded data and said second coded data when a coding method is switched from said first coding method to said second coding method during communication with the other communicating party.
  • 14. A communication apparatus according to claim 13, wherein said receiving means receives said first coded data and said second coded data that are packetized in separate packets when said first coded data and said second coded data are received.
  • 15. A communication apparatus according to claim 13, wherein said receiving means receives said first coded data and said second coded data that are packetized in a same packet when said first coded data and said second coded data are received.
  • 16. A communication apparatus according to claim 13, wherein said receiving means receives said first coded data and said second coded data without connecting a new call.
  • 17. A communication apparatus according to claim 13, wherein said receiving means does not output audio signals output from said second decoding means until a predetermined time has passes since said second decoding means starts decoding said second coded data.
  • 18. A communication apparatus according to claim 13, wherein said first coded data includes video signals coded by using said first coding method while said second coded data includes video signals coded by using said second coding method.
  • 19. A method of operating a communication apparatus, comprising: a receiving step for receiving at least one of first coded data including audio signals coded by using a first coding method and second data including audio signals coded by using a second coding method that is different from said first coding method; a first decoding step for decoding said first coding method; a second decoding step for decoding said second coded data; and an output step for outputting either one of audio signals output from said first decoding mean and audio signals output from said second decoding means, wherein said receiving step receives said first coded data and said second coded data when a coding method is switched from said first coding method to said second coding method during communication with the other communicating party.
  • 20. A method according to claim 19, wherein said receiving step receives said first coded data and said second coded data that are packetized in separate packets when said first coded data and said second coded data are received.
  • 21. A method according to claim 19, wherein said receiving step receives said first coded data and said second coded data that are packetized in a same packet when said first coded data and said second coded data are received.
  • 22. A method according to claim 19, wherein said receiving step receives said first coded data and said second coded data without connecting a new call.
  • 23. A method according to claim 19, wherein said receiving step does not output audio signals output from said second decoding means until a predetermined time has passes since said second decoding means starts decoding said second coded data.
  • 24. A method according to claim 19, wherein said first coded data includes video signals coded by using said first coding method while said second coded data includes video signals coded by using said second coding method.
Priority Claims (3)
Number Date Country Kind
124808/2000 Apr 2000 JP
381263/2000 Dec 2000 JP
092387/2001 Mar 2001 JP