WO2016201848A1 - Transmission method and device for hdmi audio/video signal - Google Patents

Transmission method and device for hdmi audio/video signal Download PDF

Info

Publication number
WO2016201848A1
WO2016201848A1 PCT/CN2015/092707 CN2015092707W WO2016201848A1 WO 2016201848 A1 WO2016201848 A1 WO 2016201848A1 CN 2015092707 W CN2015092707 W CN 2015092707W WO 2016201848 A1 WO2016201848 A1 WO 2016201848A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
signal
audio
video signal
signals
Prior art date
Application number
PCT/CN2015/092707
Other languages
French (fr)
Chinese (zh)
Inventor
成理
李志光
任乐枫
Original Assignee
深圳市美德医疗电子技术有限公司
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 深圳市美德医疗电子技术有限公司 filed Critical 深圳市美德医疗电子技术有限公司
Publication of WO2016201848A1 publication Critical patent/WO2016201848A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects

Definitions

  • the present invention relates to the field of signal transmission, and in particular, to a method and device for transmitting HDMI audio and video signals.
  • the subject views the video information on the liquid crystal display device through the head coil mirror. Because of the relationship of the coil mirror, the video information seen by the subject is a mirror image. Flip, which makes the subject's viewing inconvenient; sometimes the subject directly watches the video information on the liquid crystal display device, the video information seen by the subject is not mirrored, and there is no flexibility in the prior art. Products that meet the needs of different subjects.
  • the technical problem to be solved by the present invention is that it is inconvenient for the above-mentioned subjects to view the inconvenience of the subject, and cannot flexibly satisfy the defects of different subjects, and provides a convenient viewing for the subject. Flexible to meet the needs of different subjects HDMI High Definition Multimedia Interface, a method and device for transmitting audio and video signals.
  • the technical solution adopted by the present invention to solve the technical problem thereof is: constructing a transmission method of an HDMI audio and video signal, comprising the following steps:
  • step C) judging whether the currently received video signal reaches the next line of video signals, and if so, processing the count of the video buffer counter, performing step D ); otherwise, perform step D);
  • step D) Determine if the video signal needs to be flipped, and if so, perform step E ; otherwise, encoding the separated video signal and audio signal into a first HDMI audio and video output signal, and performing step F);
  • step F Storing two lines of video signals, and outputting the two lines of video signals in reverse order, and then encoding the two lines of the video signals and the separated audio signals outputted in the reverse order into the first HDMI audio and video output signals, and performing step F );
  • G reading resolution setting information, and encoding the currently separated video signal and audio signal according to the resolution setting information to obtain a second HDMI audio and video output signals, and output the second HDMI audio and video output signals.
  • the separated video signal includes RGB Signal, video line signal and video field signal.
  • the step C) further includes:
  • step C1) determining whether the currently received video signal reaches the next line of video signals, and if so, performing step C2); otherwise, performing step D );
  • the video buffer includes a first video buffer and a second video buffer.
  • the step E) further includes:
  • step E1 Determine if the count of the video buffer counter is equal to 1 If yes, the current line video signal is stored in the second video buffer, step E2); otherwise, the current line video signal is stored in the first video buffer, step E3);
  • the resolution is 1920*1080.
  • the present invention also relates to an apparatus for implementing the above method for transmitting an HDMI audio and video signal, comprising:
  • Signal acquisition decoding unit for acquiring an HDMI audio and video input signal, and for the HDMI Audio and video input signals are decoded to separate video signals and audio signals;
  • the current signal receiving determining unit is configured to determine whether the currently received video signal is a video signal, and if yes, perform a subsequent step; otherwise, store the audio signal;
  • Line video signal determining unit for determining whether the currently received video signal reaches the next line of video signals
  • Flipping determining unit for judging whether the video signal needs to be flipped, and if so, performing the subsequent steps; otherwise, encoding the separated video signal and the audio signal into a first HDMI audio and video output signal;
  • a signal storage unit configured to store two lines of video signals, and output the two lines of video signals in reverse, and then encode the two lines of the video signals and the separated audio signals that are output in the reverse order into the first HDMI Audio and video output signal;
  • Output signal decoding separation unit for acquiring the first HDMI Audio and video output signals and decode them to separate video signals and audio signals;
  • Reading coding unit for reading resolution setting information, and encoding the currently separated video signal and audio signal according to the resolution setting information, obtaining a second HDMI audio and video output signal, and the second The HDMI audio and video output signals are output.
  • the separated video signals include RGB signals, video line signals, and video field signals.
  • the line video signal determining unit further includes:
  • Line video signal receiving and determining module configured to determine whether the currently received video signal is to the next line of video signals
  • the buffer count judging module is configured to determine whether the count of the video buffer counter is equal to 1, and if so, the count of the video buffer counter is equal to 2; otherwise, the count of the video buffer counter is equal to 1; the video buffer includes a first video buffer and a second video buffer.
  • the signal storage unit further includes:
  • Count judgment module used to determine whether the count of the video buffer counter is equal to 1 If yes, storing the current line video signal in the positive sequence to the second video buffer; otherwise, storing the current line video signal in the first video buffer;
  • a first reverse order reading module configured to read the video signal of the first video buffer in reverse order
  • a second reverse sequence reading module configured to read the video signal of the second video buffer in reverse order
  • a reverse reading encoding module configured to encode the reverse read video signal and the separated audio signal into the first HDMI Audio and video output signals.
  • the resolution is 1920*1080.
  • the method and apparatus for transmitting HDMI audio and video signals embodying the present invention have the following beneficial effects: since HDMI is first acquired Audio and video input signals, and HDMI The audio and video input signals are decoded to separate the video signal and the audio signal; when the video signal needs to be flipped, two lines of video signals are stored, and two lines of video signals are output in reverse, and then the two lines of video signals output in reverse order are separated and separated.
  • the audio signal is encoded into the first HDMI audio and video output signal, if the image flip is not required, encode the separated video signal and audio signal into the first HDMI audio and video output signal; then obtain the first HDMI
  • the audio and video output signals are decoded and separated, and the video signal and the audio signal are separated.
  • the resolution setting information is read, and the currently separated video signal and audio signal are encoded according to the resolution setting information to obtain a second HDMI audio and video output signal, and the second HDMI
  • the audio and video output signals are output, so that it is possible to select whether or not to mirror the video according to specific needs, so that it is convenient for the subject to watch and can flexibly meet the needs of different subjects.
  • FIG. 1 is a flowchart of a method in an embodiment of a method and an apparatus for transmitting an HDMI audio and video signal according to the present invention
  • FIG. 2 is a specific flowchart of determining whether a currently received video signal reaches a next line of video signals in the embodiment
  • image 3 For the embodiment, two lines of video signals are stored, and two lines of video signals are output in reverse, and then two lines of video signals and separated audio signals output in reverse order are encoded into a first HDMI. a specific flow chart of the audio and video output signals;
  • Figure 4 is a schematic view showing the structure of the apparatus in the embodiment.
  • the method for transmitting the HDMI audio and video signal includes the following steps:
  • Step S01 Obtain the HDMI audio and video input signal and HDMI
  • the audio and video input signals are decoded to separate the video signal and the audio signal: in this step, the HDMI audio and video input signal is obtained, and the HDMI is obtained.
  • the audio and video input signals are decoded to separate the video signal and the audio signal.
  • Step S02 It is determined whether the currently received video signal is: in this step, it is determined whether the currently received video signal is a video signal. If the result of the determination is yes, step S04 is performed; otherwise, step S03 is performed.
  • Step S03 stores the audio signal: if the above step S02 The result of the determination is no, that is, the current reception is not a video signal, that is, the audio signal is currently received. In this step, an audio signal is stored. After performing this step, go to step S04.
  • Step S04 Determining whether the currently received video signal reaches the next line of video signal: in this step, determining whether the currently received video signal reaches the next line of video signals, and if the result of the determination is yes, executing step S05; otherwise, performing steps S06. It is worth mentioning that when the video signal is received, it is received line by line. In this embodiment, when there is a new line of video signals, it is stored.
  • Step S05 processes the count of the video buffer counter: if the above step S04 If the result of the determination is yes, then this step is performed. In this step, the count of the video buffer counter is processed, and the specific processing is described later. After performing this step, go to step S06.
  • Step S06 determining whether the video signal needs to be flipped: in this step, according to the state of the tumble switch, It is determined whether the video signal needs to be flipped. If the result of the determination is yes, step S08 is performed; otherwise, step S07 is performed.
  • Step S07 encodes the separated video signal and audio signal into a first HDMI audio and video output signal: if the above step S06 If the result of the determination is no, perform this step. In this step, the separated video signal and audio signal are encoded into a first HDMI audio and video output signal. After performing this step, go to step S09.
  • Step S08 Store two lines of video signals, and output two lines of video signals in reverse order, and then encode the two lines of video signals and the separated audio signals of the reverse order into the first HDMI audio and video output signals: if the above step S06 If the result of the determination is yes, then this step is performed. In this step, the two lines of video signals are stored, and two lines of video signals are output in reverse, and then the two lines of video signals and the separated audio signals output in reverse order are encoded into a first HDMI. Audio and video output signals. After performing this step, go to step S09.
  • Step S09 Get the first HDMI
  • the audio and video output signals are decoded and separated from the video signal and the audio signal: in this step, the first HDMI audio and video output signal is obtained, and the first HDMI is obtained.
  • the audio and video output signals are decoded to separate the video signal and the audio signal. After performing this step, go to step S10.
  • Step S10 reads the resolution setting information, and encodes the currently separated video signal and audio signal according to the resolution setting information to obtain a second HDMI audio and video output signal, and the second HDMI Audio and video output signal output:
  • the resolution setting information is read, and the currently separated video signal and audio signal are encoded according to the resolution setting information to obtain a second HDMI. Audio and video output signals, and output the second HDMI audio and video output signals.
  • the separated video signal includes RGB. Signal, video line signal and video field signal.
  • the ping-pong storage output method is used to store two lines of video signals, and the video signal is output in reverse; if the video signal does not need to be flipped, the original video signal is output.
  • the invention can select whether the video needs to be mirrored and flipped according to specific needs, so that it brings convenience to the subject's viewing and can flexibly meet the needs of different subjects. It is worth mentioning that in this embodiment, the resolution is 1920*1080.
  • the above steps S04 to S05 can be further refined, and the refined flowchart is as shown in FIG. 2 .
  • the above steps S04 to S05 further include:
  • Step S41 Determining whether the currently received video signal reaches the next line of video signal: in this step, determining whether the currently received video signal reaches the next line of video signals, and if the result of the determination is yes, executing step S42; otherwise, performing steps S06.
  • the video buffer includes a first video buffer and a second video buffer.
  • step S08 can be further refined, and the refined flowchart is shown in FIG. 3.
  • the above steps S08 further includes:
  • Step S82 Store the current line video signal in the positive sequence to the second video buffer: if the above step S81 If the result of the determination is yes, then this step is performed. In this step, the current line video signal is stored in the positive sequence to the second video buffer. It is worth mentioning that, in this embodiment, the line video signal includes 1080. The video data, in this step, is actually storing the 1080 video data in the current line video signal in the same order, and sequentially storing them in the second video buffer. After performing this step, go to step S83. .
  • Step S83 The video signal of the first video buffer is read in reverse: in this step, the video signal of the first video buffer is read in reverse order. After performing this step, go to step S86.
  • Step S84 Store the current line video signal in the first video buffer: if the above step S81 If the result of the determination is no, perform this step. In this step, the current line video signal is stored in the first video buffer in the positive sequence. After performing this step, go to step S85.
  • Step S85 The video signal of the second video buffer is read in reverse: in this step, the video signal of the second video buffer is read in reverse order. After performing this step, go to step S86.
  • Step S86 encodes the reverse read video signal and the separated audio signal into the first HDMI Audio and video output signal:
  • the video signal including the RGB signal, the video line signal and the video field signal
  • the separated audio signal read in the reverse order are encoded into the first HDMI. Audio and video output signals.
  • the embodiment further relates to an apparatus for implementing the above-mentioned HDMI audio and video signal transmission method, and a schematic structural diagram thereof is shown in FIG. Figure 4
  • the apparatus includes a signal acquisition decoding unit 1, a current signal reception determination unit 2, a line video signal determination unit 3, a flip determination unit 4, a signal storage unit 5, and an output signal decoding separation unit 6 And reading coding unit 7; wherein signal acquisition decoding unit 1 is used to acquire HDMI audio and video input signals and to HDMI The audio and video input signals are decoded to separate the video signal and the audio signal; the current signal receiving judging unit 2 For determining whether the currently received video signal is a video signal, if yes, performing the subsequent steps; otherwise, storing the audio signal; the line video signal determining unit 3 is configured to determine whether the currently received video signal is to the next line of the video signal; 4 is used to determine whether the video signal needs to be flipped, and if so, perform the subsequent steps; otherwise, the separated video signal and audio signal are encoded into the first HDMI audio and video output signal; the
  • the above separated video signals include RGB signals, video line signals, and video field signals, and the above resolution is 1920*1080.
  • the invention can select whether the video needs to be mirrored and flipped according to specific needs, so that it brings convenience to the subject's viewing and can flexibly meet the needs of different subjects.
  • the line video signal determining unit 3 further includes a line video signal receiving determining module 31 and a buffer count determining module 32.
  • the line video signal receiving determining module 31 is configured to determine whether the currently received video signal is to the next line of video signals; the buffer count determining module 32 is configured to determine whether the count of the video buffer counter is equal to 1 If so, the count of the video buffer counter is equal to 2; otherwise, the count of the video buffer counter is equal to 1; the video buffer includes the first video buffer and the second video buffer.
  • the signal storage unit 5 further includes a count determination module 51, a first reverse sequence read module 52, and a second reverse sequence read module. And a reverse reading encoding module 54; wherein the counting determining module 51 is configured to determine whether the count of the video buffer counter is equal to 1 If yes, the current line video signal is stored in the positive sequence to the second video buffer; otherwise, the current line video signal is stored in the first video buffer; the first reverse order reading module 52 The video signal for reading the first video buffer in reverse order; the second reverse reading module 53 is configured to read the video signal of the second video buffer in reverse order; and read the encoding module in reverse order.
  • the video signal and the separated audio signal for reading in reverse order are encoded into a first HDMI audio and video output signal.
  • HDMI audio and video signals are transmitted over optical fibers, ensuring 24 hours of continuous operation without loss of picture in an MRI environment.

Abstract

The present invention discloses a transmission method and device for an HDMI audio/video signal. The method comprises: obtaining and decoding an HDMI audio/video input signal to separate and obtain a video signal from an audio signal; if a video signal is received, then performing the next step, and otherwise storing the audio signal; if the video signal is of a next row and is to be flipped, then storing two rows of video signals and outputting the same in a reverse order to perform encoding with the audio signal to generate a first HDMI audio/video output signal, and otherwise, encoding the video signal and the audio signal to generate a first HDMI audio/video output signal; obtaining and decoding the first HDMI audio/video output signal to separate and obtain a video signal from an audio signal; and reading resolution configuration information, and encoding the video signal and audio signal to obtain and output a second HDMI audio/video signal. Implementing the transmission method and device for an HDMI audio/video signal of the present invention can improve viewing convenience for test subjects and flexibly meet demands of different test subjects.

Description

一种HDMI音视频信号的传输方法及装置  Method and device for transmitting HDMI audio and video signals 一种HDMI音视频信号的传输方法及装置  Method and device for transmitting HDMI audio and video signals
技术领 域 Technical field
本发明涉及信号传输领域,特别涉及一种 HDMI 音视频信号的传输方法及装置。 The present invention relates to the field of signal transmission, and in particular, to a method and device for transmitting HDMI audio and video signals.
背景技术 Background technique
随着信息技术的发展,医院和科研单位都希望能在核磁共振室能够配备高清视频传输,并且带有镜像翻转功能的产品。而这个领域,目前,国内外市面上,能满足高清 1080p 视频镜像翻转的产品是空白的,高清 1080p 视频镜像翻转 + 光纤传输就更是空白的。因此,能够带有视频镜像翻转功能,并且能够传输真正的 1080p 高清视频,同时还可以使用光纤进行光电传输的产品是很有必要的,而目前是没有这种产品的。 With the development of information technology, hospitals and research institutes hope to be able to equip the MRI room with high-definition video transmission and products with mirror flip function. And this field, currently, at home and abroad, can meet HD 1080p Video image flipping products are blank, HD 1080p video mirroring flip + fiber transmission is even more blank. Therefore, it is capable of video image flipping and is capable of transmitting true 1080p High-definition video, and products that can also be optically transmitted using optical fiber are necessary, and there is currently no such product.
目前,在核磁共振室环境内,在实验过程中,有时候被试者通过头线圈反射镜观看液晶显示装置上的视频信息,因为线圈反射镜的关系,被试者看到的视频信息是镜像翻转的,这样对被试者的观看带来不便;而有时候被试者直接观看液晶显示装置上的视频信息,被试者看到的视频信息是没有镜像的,现有技术中没有可以灵活满足不同被试者需求的产品。 At present, in the environment of the nuclear magnetic resonance room, sometimes during the experiment, the subject views the video information on the liquid crystal display device through the head coil mirror. Because of the relationship of the coil mirror, the video information seen by the subject is a mirror image. Flip, which makes the subject's viewing inconvenient; sometimes the subject directly watches the video information on the liquid crystal display device, the video information seen by the subject is not mirrored, and there is no flexibility in the prior art. Products that meet the needs of different subjects.
发明内容 Summary of the invention
本发明要解决的技术问题在于,针对现有技术的上述对被试者的观看带来不便、不能灵活满足不同被试者需求的缺陷,提供一种能给被试者的观看带来方便、能灵活满足不同被试者需求的 HDMI High Definition Multimedia Interface ,高清晰度多媒体接口)音视频信号的传输方法及装置。 The technical problem to be solved by the present invention is that it is inconvenient for the above-mentioned subjects to view the inconvenience of the subject, and cannot flexibly satisfy the defects of different subjects, and provides a convenient viewing for the subject. Flexible to meet the needs of different subjects HDMI High Definition Multimedia Interface, a method and device for transmitting audio and video signals.
本发明解决其技术问题所采用的技术方案是:构造一种 HDMI 音视频信号的传输方法,包括如下步骤: The technical solution adopted by the present invention to solve the technical problem thereof is: constructing a transmission method of an HDMI audio and video signal, comprising the following steps:
A )获取 HDMI 音视频输入信号,并对所述 HDMI 音视频输入信号进行解码,分离出视频信号和音频信号; A) Get the HDMI audio and video input signal and the HDMI Audio and video input signals are decoded to separate video signals and audio signals;
B )判断当前接收的是否是视频信号,如是,执行步骤 C );否则,存储音频信号,执行步骤 C ); B) judging whether the currently received video signal is, if yes, performing step C); otherwise, storing the audio signal, performing step C );
C )判断当前接收的视频信号是否到下一行视频信号,如是,对视频缓冲区计数器的计数进行处理,执行步骤 D );否则,执行步骤 D ); C) judging whether the currently received video signal reaches the next line of video signals, and if so, processing the count of the video buffer counter, performing step D ); otherwise, perform step D);
D )判断是否需要对视频信号进行翻转,如是,执行步骤 E );否则,对分离出的视频信号和音频信号进行编码成第一 HDMI 音视频输出信号,并执行步骤 F ); D) Determine if the video signal needs to be flipped, and if so, perform step E ; otherwise, encoding the separated video signal and audio signal into a first HDMI audio and video output signal, and performing step F);
E )存储两行视频信号,并逆序输出所述两行视频信号,然后对所述逆序输出的两行视频信号和分离出的音频信号编码成所述第一 HDMI 音视频输出信号,执行步骤 F ); E Storing two lines of video signals, and outputting the two lines of video signals in reverse order, and then encoding the two lines of the video signals and the separated audio signals outputted in the reverse order into the first HDMI audio and video output signals, and performing step F );
F )获取所述第一 HDMI 音视频输出信号并对其进行解码,分离出视频信号和音频信号; F) acquiring the first HDMI audio and video output signal and decoding the same, separating the video signal and the audio signal;
G )读取分辨率设置信息,并根据所述分辨率设置信息对当前分离出的视频信号和音频信号进行编码,得到第二 HDMI 音视频输出信号,并将所述第二 HDMI 音视频输出信号进行输出。 G) reading resolution setting information, and encoding the currently separated video signal and audio signal according to the resolution setting information to obtain a second HDMI audio and video output signals, and output the second HDMI audio and video output signals.
在本发明所述的 HDMI 音视频信号的传输方法中,所述分离出的视频信号包括 RGB 信号、视频行信号和视频场信号。 In the method for transmitting an HDMI audio and video signal according to the present invention, the separated video signal includes RGB Signal, video line signal and video field signal.
在本发明所述的 HDMI 音视频信号的传输方法中,所述步骤 C )进一步包括: In the method for transmitting an HDMI audio and video signal according to the present invention, the step C) further includes:
C1 )判断当前接收的视频信号是否到下一行视频信号,如是,执行步骤 C2 );否则,执行步骤 D ); C1) determining whether the currently received video signal reaches the next line of video signals, and if so, performing step C2); otherwise, performing step D );
C2 )判断视频缓冲区计数器的计数是否等于 1 ,如是,令所述视频缓冲区计数器的计数等于 2 ,执行步骤 D );否则,令所述视频缓冲区计数器的计数等于 1 ,执行步骤 D );所述视频缓冲区包括第一视频缓冲区和第二视频缓冲区。 C2) determining whether the count of the video buffer counter is equal to 1, and if so, setting the count of the video buffer counter equal to 2, performing steps D); otherwise, the count of the video buffer counter is equal to 1, and step D) is performed; the video buffer includes a first video buffer and a second video buffer.
在本发明所述的 HDMI 音视频信号的传输方法中,所述步骤 E )进一步包括: In the method for transmitting an HDMI audio and video signal according to the present invention, the step E) further includes:
E1 )判断视频缓冲区计数器的计数是否等于 1 ,如是,将当前行视频信号正序存储到第二视频缓冲区,执行步骤 E2 );否则,将当前行视频信号正序存储到第一视频缓冲区,执行步骤 E3 ); E1) Determine if the count of the video buffer counter is equal to 1 If yes, the current line video signal is stored in the second video buffer, step E2); otherwise, the current line video signal is stored in the first video buffer, step E3);
E2 )逆序读取所述第一视频缓冲区的视频信号,执行步骤 E4 ); E2) reading the video signal of the first video buffer in reverse order, performing step E4);
E3 )逆序读取所述第二视频缓冲区的视频信号,执行步骤 E4 ); E3) reading the video signal of the second video buffer in reverse order, performing step E4);
E4 )对所述逆序读取的视频信号和分离出的音频信号编码成所述第一 HDMI 音视频输出信号。 E4) encoding the reverse read video signal and the separated audio signal into the first HDMI audio and video output signal.
在本发明所述的 HDMI 音视频信号的传输方法中,所述分辨率为 1920*1080 。 In the method of transmitting an HDMI audio and video signal according to the present invention, the resolution is 1920*1080.
本发明还涉及一种实现上述 HDMI 音视频信号的传输方法的装置,包括: The present invention also relates to an apparatus for implementing the above method for transmitting an HDMI audio and video signal, comprising:
信号获取解码单元:用于获取 HDMI 音视频输入信号,并对所述 HDMI 音视频输入信号进行解码,分离出视频信号和音频信号; Signal acquisition decoding unit: for acquiring an HDMI audio and video input signal, and for the HDMI Audio and video input signals are decoded to separate video signals and audio signals;
当前信号接收判断单元:用于判断当前接收的是否是视频信号,如是,执行后续步骤;否则,存储音频信号; The current signal receiving determining unit is configured to determine whether the currently received video signal is a video signal, and if yes, perform a subsequent step; otherwise, store the audio signal;
行视频信号判断单元:用于判断当前接收的视频信号是否到下一行视频信号; Line video signal determining unit: for determining whether the currently received video signal reaches the next line of video signals;
翻转判断单元:用于判断是否需要对视频信号进行翻转,如是,执行后续步骤;否则,对分离出的视频信号和音频信号进行编码成第一 HDMI 音视频输出信号; Flipping determining unit: for judging whether the video signal needs to be flipped, and if so, performing the subsequent steps; otherwise, encoding the separated video signal and the audio signal into a first HDMI audio and video output signal;
信号存储单元:用于存储两行视频信号,并逆序输出所述两行视频信号,然后对所述逆序输出的两行视频信号和分离出的音频信号编码成所述第一 HDMI 音视频输出信号; a signal storage unit: configured to store two lines of video signals, and output the two lines of video signals in reverse, and then encode the two lines of the video signals and the separated audio signals that are output in the reverse order into the first HDMI Audio and video output signal;
输出信号解码分离单元:用于获取所述第一 HDMI 音视频输出信号并对其进行解码,分离出视频信号和音频信号; Output signal decoding separation unit: for acquiring the first HDMI Audio and video output signals and decode them to separate video signals and audio signals;
读取编码单元:用于读取分辨率设置信息,并根据所述分辨率设置信息对当前分离出的视频信号和音频信号进行编码,得到第二 HDMI 音视频输出信号,并将所述第二 HDMI 音视频输出信号进行输出。 Reading coding unit: for reading resolution setting information, and encoding the currently separated video signal and audio signal according to the resolution setting information, obtaining a second HDMI audio and video output signal, and the second The HDMI audio and video output signals are output.
在本发明所述的装置中,所述分离出的视频信号包括 RGB 信号、视频行信号和视频场信号。 In the apparatus of the present invention, the separated video signals include RGB signals, video line signals, and video field signals.
在本发明所述的装置中,所述行视频信号判断单元进一步包括: In the device of the present invention, the line video signal determining unit further includes:
行视频信号接收判断模块:用于判断当前接收的视频信号是否到下一行视频信号; Line video signal receiving and determining module: configured to determine whether the currently received video signal is to the next line of video signals;
缓冲区计数判断模块:用于判断视频缓冲区计数器的计数是否等于 1 ,如是,令所述视频缓冲区计数器的计数等于 2 ;否则,令所述视频缓冲区计数器的计数等于 1 ;所述视频缓冲区包括第一视频缓冲区和第二视频缓冲区。 The buffer count judging module is configured to determine whether the count of the video buffer counter is equal to 1, and if so, the count of the video buffer counter is equal to 2; otherwise, the count of the video buffer counter is equal to 1; the video buffer includes a first video buffer and a second video buffer.
在本发明所述的装置中,所述信号存储单元进一步包括: In the device of the present invention, the signal storage unit further includes:
计数判断模块:用于判断视频缓冲区计数器的计数是否等于 1 ,如是,将当前行视频信号正序存储到第二视频缓冲区;否则,将当前行视频信号正序存储到第一视频缓冲区; Count judgment module: used to determine whether the count of the video buffer counter is equal to 1 If yes, storing the current line video signal in the positive sequence to the second video buffer; otherwise, storing the current line video signal in the first video buffer;
第一逆序读取模块:用于逆序读取所述第一视频缓冲区的视频信号; a first reverse order reading module: configured to read the video signal of the first video buffer in reverse order;
第二逆序读取模块:用于逆序读取所述第二视频缓冲区的视频信号; a second reverse sequence reading module: configured to read the video signal of the second video buffer in reverse order;
逆序读取编码模块:用于对所述逆序读取的视频信号和分离出的音频信号编码成所述第一 HDMI 音视频输出信号。 And a reverse reading encoding module: configured to encode the reverse read video signal and the separated audio signal into the first HDMI Audio and video output signals.
在本发明所述的装置中,所述分辨率为 1920*1080 。 In the apparatus of the present invention, the resolution is 1920*1080.
实施本发明的 HDMI 音视频信号的传输方法及装置,具有以下有益效果:由于首先获取 HDMI 音视频输入信号,并对 HDMI 音视频输入信号进行解码,分离出视频信号和音频信号;当需要对视频信号进行翻转时,存储两行视频信号,并逆序输出两行视频信号,然后对逆序输出的两行视频信号和分离出的音频信号编码成第一 HDMI 音视频输出信号,如果不需要镜像翻转,则对分离出的视频信号和音频信号进行编码成第一 HDMI 音视频输出信号;然后获取第一 HDMI 音视频输出信号并对其进行解码,分离出视频信号和音频信号;最后读取分辨率设置信息,并根据分辨率设置信息对当前分离出的视频信号和音频信号进行编码,得到第二 HDMI 音视频输出信号,并将第二 HDMI 音视频输出信号进行输出,这样就能根据具体需要选择是否需要对视频进行镜像翻转,所以其给被试者的观看带来方便、能灵活满足不同被试者需求。 The method and apparatus for transmitting HDMI audio and video signals embodying the present invention have the following beneficial effects: since HDMI is first acquired Audio and video input signals, and HDMI The audio and video input signals are decoded to separate the video signal and the audio signal; when the video signal needs to be flipped, two lines of video signals are stored, and two lines of video signals are output in reverse, and then the two lines of video signals output in reverse order are separated and separated. The audio signal is encoded into the first HDMI audio and video output signal, if the image flip is not required, encode the separated video signal and audio signal into the first HDMI audio and video output signal; then obtain the first HDMI The audio and video output signals are decoded and separated, and the video signal and the audio signal are separated. Finally, the resolution setting information is read, and the currently separated video signal and audio signal are encoded according to the resolution setting information to obtain a second HDMI audio and video output signal, and the second HDMI The audio and video output signals are output, so that it is possible to select whether or not to mirror the video according to specific needs, so that it is convenient for the subject to watch and can flexibly meet the needs of different subjects.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图 1 为本发明 HDMI 音视频信号的传输方法及装置一个实施例中方法的流程图; 1 is a flowchart of a method in an embodiment of a method and an apparatus for transmitting an HDMI audio and video signal according to the present invention;
图 2 为所述实施例中判断当前接收的视频信号是否到下一行视频信号的具体流程图; 2 is a specific flowchart of determining whether a currently received video signal reaches a next line of video signals in the embodiment;
图 3 为所述实施例中存储两行视频信号,并逆序输出两行视频信号,然后对逆序输出的两行视频信号和分离出的音频信号编码成第一 HDMI 音视频输出信号的具体流程图; image 3 For the embodiment, two lines of video signals are stored, and two lines of video signals are output in reverse, and then two lines of video signals and separated audio signals output in reverse order are encoded into a first HDMI. a specific flow chart of the audio and video output signals;
图 4 为所述实施例中装置的结构示意图。 Figure 4 is a schematic view showing the structure of the apparatus in the embodiment.
具体实施方式 detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
在本发明 HDMI 音视频信号的传输方法及装置实施例中,其 HDMI 音视频信号的传输方法的流程图如图 1 所示。图 1 中,该 HDMI 音视频信号的传输方法包括如下步骤: In the embodiment of the method and device for transmitting HDMI audio and video signals of the present invention, a flowchart of a method for transmitting the HDMI audio and video signals is as shown in the figure 1 is shown. In Figure 1, the method for transmitting the HDMI audio and video signal includes the following steps:
步骤 S01 获取 HDMI 音视频输入信号,并对 HDMI 音视频输入信号进行解码,分离出视频信号和音频信号:本步骤中,获取 HDMI 音视频输入信号,并对 HDMI 音视频输入信号进行解码,分离出视频信号和音频信号。 Step S01 Obtain the HDMI audio and video input signal and HDMI The audio and video input signals are decoded to separate the video signal and the audio signal: in this step, the HDMI audio and video input signal is obtained, and the HDMI is obtained. The audio and video input signals are decoded to separate the video signal and the audio signal.
步骤 S02 判断当前接收的是否是视频信号:本步骤中,判断当前接收的是否是视频信号,如果判断的结果为是,则执行步骤 S04 ;否则,执行步骤 S03 。 Step S02 It is determined whether the currently received video signal is: in this step, it is determined whether the currently received video signal is a video signal. If the result of the determination is yes, step S04 is performed; otherwise, step S03 is performed.
步骤 S03 存储音频信号:如果上述步骤 S02 的判断结果为否,即当前接收的不是视频信号,也就是当前接收的是音频信号。本步骤中,存储音频信号。执行完本步骤,执行步骤 S04 。 Step S03 stores the audio signal: if the above step S02 The result of the determination is no, that is, the current reception is not a video signal, that is, the audio signal is currently received. In this step, an audio signal is stored. After performing this step, go to step S04.
步骤 S04 判断当前接收的视频信号是否到下一行视频信号:本步骤中,判断当前接收的视频信号是否到下一行视频信号,如果判断的结果为是,则执行步骤 S05 ;否则,执行步骤 S06 。值得一提的是,在接收视频信号时,是一行一行接收的,本实施例中,当有新的一行视频信号,则对其进行存储。 Step S04 Determining whether the currently received video signal reaches the next line of video signal: in this step, determining whether the currently received video signal reaches the next line of video signals, and if the result of the determination is yes, executing step S05; otherwise, performing steps S06. It is worth mentioning that when the video signal is received, it is received line by line. In this embodiment, when there is a new line of video signals, it is stored.
步骤 S05 对视频缓冲区计数器的计数进行处理:如果上述步骤 S04 的判断结果为是,则执行本步骤。本步骤中,对视频缓冲区计数器的计数进行处理,具体怎么处理,后续会进行详细描述。执行完本步骤,执行步骤 S06 。 Step S05 processes the count of the video buffer counter: if the above step S04 If the result of the determination is yes, then this step is performed. In this step, the count of the video buffer counter is processed, and the specific processing is described later. After performing this step, go to step S06.
步骤 S06 判断是否需要对视频信号进行翻转:本步骤中,根据翻转开关的状态, 判断是否需要对视频信号进行翻转,如果判断的结果为是,则执行步骤 S08 ;否则,执行步骤 S07 。 Step S06: determining whether the video signal needs to be flipped: in this step, according to the state of the tumble switch, It is determined whether the video signal needs to be flipped. If the result of the determination is yes, step S08 is performed; otherwise, step S07 is performed.
步骤 S07 对分离出的视频信号和音频信号进行编码成第一 HDMI 音视频输出信号:如果上述步骤 S06 的判断结果为否,则执行本步骤。本步骤中,对分离出的视频信号和音频信号进行编码成第一 HDMI 音视频输出信号。执行完本步骤,执行步骤 S09 。 Step S07 encodes the separated video signal and audio signal into a first HDMI audio and video output signal: if the above step S06 If the result of the determination is no, perform this step. In this step, the separated video signal and audio signal are encoded into a first HDMI audio and video output signal. After performing this step, go to step S09.
步骤 S08 存储两行视频信号,并逆序输出两行视频信号,然后对逆序输出的两行视频信号和分离出的音频信号编码成第一 HDMI 音视频输出信号:如果上述步骤 S06 的判断结果为是,则执行本步骤。本步骤中,存储上述两行视频信号,并逆序输出两行视频信号,然后对逆序输出的两行视频信号和分离出的音频信号编码成第一 HDMI 音视频输出信号。执行完本步骤,执行步骤 S09 。 Step S08 Store two lines of video signals, and output two lines of video signals in reverse order, and then encode the two lines of video signals and the separated audio signals of the reverse order into the first HDMI audio and video output signals: if the above step S06 If the result of the determination is yes, then this step is performed. In this step, the two lines of video signals are stored, and two lines of video signals are output in reverse, and then the two lines of video signals and the separated audio signals output in reverse order are encoded into a first HDMI. Audio and video output signals. After performing this step, go to step S09.
步骤 S09 获取第一 HDMI 音视频输出信号并对其进行解码,分离出视频信号和音频信号:本步骤中,获取第一 HDMI 音视频输出信号,并对第一 HDMI 音视频输出信号进行解码,分离出视频信号和音频信号。执行完本步骤,执行步骤 S10 。 Step S09 Get the first HDMI The audio and video output signals are decoded and separated from the video signal and the audio signal: in this step, the first HDMI audio and video output signal is obtained, and the first HDMI is obtained. The audio and video output signals are decoded to separate the video signal and the audio signal. After performing this step, go to step S10.
步骤 S10 读取分辨率设置信息,并根据分辨率设置信息对当前分离出的视频信号和音频信号进行编码,得到第二 HDMI 音视频输出信号,并将第二 HDMI 音视频输出信号进行输出:本步骤中,读取分辨率设置信息,并根据分辨率设置信息对当前分离出的视频信号和音频信号进行编码,得到第二 HDMI 音视频输出信号,并将第二 HDMI 音视频输出信号进行输出。值得一提的是,本实施例中,上述分离出的视频信号包括 RGB 信号、视频行信号和视频场信号。本实施例中,假如视频信号需要翻转,就用乒乓存储输出方法,存储两行视频信号,并逆序输出该视频信号;假如视频信号不需要进行翻转,就将原始视频信号输出。本发明能根据具体需要选择是否需要对视频进行镜像翻转,所以其给被试者的观看带来方便、能灵活满足不同被试者需求。值得一提的是,本实施例中,分辨率为 1920*1080 。 Step S10 reads the resolution setting information, and encodes the currently separated video signal and audio signal according to the resolution setting information to obtain a second HDMI audio and video output signal, and the second HDMI Audio and video output signal output: In this step, the resolution setting information is read, and the currently separated video signal and audio signal are encoded according to the resolution setting information to obtain a second HDMI. Audio and video output signals, and output the second HDMI audio and video output signals. It is worth mentioning that, in this embodiment, the separated video signal includes RGB. Signal, video line signal and video field signal. In this embodiment, if the video signal needs to be flipped, the ping-pong storage output method is used to store two lines of video signals, and the video signal is output in reverse; if the video signal does not need to be flipped, the original video signal is output. The invention can select whether the video needs to be mirrored and flipped according to specific needs, so that it brings convenience to the subject's viewing and can flexibly meet the needs of different subjects. It is worth mentioning that in this embodiment, the resolution is 1920*1080.
对于本实施例而言,上述步骤 S04 至步骤 S05 还可进一步细化,其细化后的流程图如图 2 所示。图 2 中,上述步骤 S04 至步骤 S05 进一步包括: For the embodiment, the above steps S04 to S05 can be further refined, and the refined flowchart is as shown in FIG. 2 . figure 2 The above steps S04 to S05 further include:
步骤 S41 判断当前接收的视频信号是否到下一行视频信号:本步骤中,判断当前接收的视频信号是否到下一行视频信号,如果判断的结果为是,则执行步骤 S42 ;否则,执行步骤 S06 。 Step S41 Determining whether the currently received video signal reaches the next line of video signal: in this step, determining whether the currently received video signal reaches the next line of video signals, and if the result of the determination is yes, executing step S42; otherwise, performing steps S06.
步骤 S42 判断视频缓冲区计数器的计数是否等于 1 :如果上述步骤 S41 的判断结果为是,则执行本步骤。本步骤中,判断视频缓冲区计数器的计数是否等于 1 ,本实施例中,令视频缓冲区计数器的计数为 M ,本步骤中,也就是判断是否满足 M=1 ,如果判断的结果为是,则执行步骤 S43 ;否则,执行步骤 S44 。 Step S42: determining whether the count of the video buffer counter is equal to 1: if the above step S41 If the result of the determination is yes, then this step is performed. In this step, it is determined whether the count of the video buffer counter is equal to 1. In this embodiment, the count of the video buffer counter is M. In this step, it is determined whether the content is satisfied. M=1, if the result of the determination is YES, step S43 is performed; otherwise, step S44 is performed.
步骤 S43 令视频缓冲区计数器的计数等于 2 :如果上述步骤 S42 的判断结果为是,则执行本步骤。本步骤中,令视频缓冲区计数器的计数等于 2 ,也就是令 M=2 。执行完本步骤,执行步骤 S06 。 Step S43, the count of the video buffer counter is equal to 2: if the above step S42 If the result of the determination is yes, then this step is performed. In this step, the count of the video buffer counter is equal to 2, that is, let M=2. After performing this step, go to step S06.
步骤 S44 令视频缓冲区计数器的计数等于 1 :如果上述步骤 S42 的判断结果为否,则执行本步骤。本步骤中,令视频缓冲区计数器的计数等于 1 ,也就是令 M=1 。执行完本步骤,执行步骤 S06 。值得一提的是,本实施例中,视频缓冲区包括第一视频缓冲区和第二视频缓冲区。 Step S44, the count of the video buffer counter is equal to 1: if the above step S42 If the result of the determination is no, perform this step. In this step, the count of the video buffer counter is equal to 1, that is, let M=1. After performing this step, go to step S06. . It is worth mentioning that in this embodiment, the video buffer includes a first video buffer and a second video buffer.
对于本实施例而言,上述步骤 S08 还可进一步细化,其细化后的流程图如图 3 所示。图 3 中,上述步骤 S08 进一步包括: For the embodiment, the above step S08 can be further refined, and the refined flowchart is shown in FIG. 3. In Figure 3, the above steps S08 further includes:
步骤 S81 判断视频缓冲区计数器的计数是否等于 1 :本步骤中,判断视频缓冲区计数器的计数是否等于 1 ,也就是判断是否满足 M=1 ,如果判断的结果为是,则执行步骤 S82 ;否则,执行步骤 S84 。 Step S81: determining whether the count of the video buffer counter is equal to 1: In this step, determining whether the count of the video buffer counter is equal to 1 That is, it is judged whether M=1 is satisfied, and if the result of the determination is YES, step S82 is performed; otherwise, step S84 is performed.
步骤 S82 将当前行视频信号正序存储到第二视频缓冲区:如果上述步骤 S81 的判断结果为是,则执行本步骤。本步骤中,将当前行视频信号正序存储到第二视频缓冲区。值得一提的是,本实施例中,行视频信号包括 1080 个视频数据,本步骤中,其实就是将当前行视频信号中的 1080 个视频数据按照正序存储的方式,依次存储到第二视频缓冲区中。执行完本步骤,执行步骤 S83 。 Step S82: Store the current line video signal in the positive sequence to the second video buffer: if the above step S81 If the result of the determination is yes, then this step is performed. In this step, the current line video signal is stored in the positive sequence to the second video buffer. It is worth mentioning that, in this embodiment, the line video signal includes 1080. The video data, in this step, is actually storing the 1080 video data in the current line video signal in the same order, and sequentially storing them in the second video buffer. After performing this step, go to step S83. .
步骤 S83 逆序读取第一视频缓冲区的视频信号:本步骤中,逆序读取第一视频缓冲区的视频信号。执行完本步骤,执行步骤 S86 。 Step S83 The video signal of the first video buffer is read in reverse: in this step, the video signal of the first video buffer is read in reverse order. After performing this step, go to step S86.
步骤 S84 将当前行视频信号正序存储到第一视频缓冲区:如果上述步骤 S81 的判断结果为否,则执行本步骤。本步骤中,将当前行视频信号正序存储到第一视频缓冲区。执行完本步骤,执行步骤 S85 。 Step S84: Store the current line video signal in the first video buffer: if the above step S81 If the result of the determination is no, perform this step. In this step, the current line video signal is stored in the first video buffer in the positive sequence. After performing this step, go to step S85.
步骤 S85 逆序读取第二视频缓冲区的视频信号:本步骤中,逆序读取第二视频缓冲区的视频信号。执行完本步骤,执行步骤 S86 。 Step S85 The video signal of the second video buffer is read in reverse: in this step, the video signal of the second video buffer is read in reverse order. After performing this step, go to step S86.
步骤 S86 对逆序读取的视频信号和分离出的音频信号编码成第一 HDMI 音视频输出信号:本步骤中,对上述逆序读取的视频信号(包括 RGB 信号、视频行信号和视频场信号)和分离出的音频信号进行编码成第一 HDMI 音视频输出信号。 Step S86 encodes the reverse read video signal and the separated audio signal into the first HDMI Audio and video output signal: In this step, the video signal (including the RGB signal, the video line signal and the video field signal) and the separated audio signal read in the reverse order are encoded into the first HDMI. Audio and video output signals.
本实施例还涉及一种实现上述 HDMI 音视频信号的传输方法的装置,其结构示意图如图 4 所示。图 4 中,该装置包括信号获取解码单元 1 、当前信号接收判断单元 2 、行视频信号判断单元 3 、翻转判断单元 4 、信号存储单元 5 、输出信号解码分离单元 6 和读取编码单元 7 ;其中,信号获取解码单元 1 用于获取 HDMI 音视频输入信号,并对 HDMI 音视频输入信号进行解码,分离出视频信号和音频信号;当前信号接收判断单元 2 用于判断当前接收的是否是视频信号,如是,执行后续步骤;否则,存储音频信号;行视频信号判断单元 3 用于判断当前接收的视频信号是否到下一行视频信号;翻转判断单元 4 用于判断是否需要对视频信号进行翻转,如是,执行后续步骤;否则,对分离出的视频信号和音频信号进行编码成第一 HDMI 音视频输出信号;信号存储单元 5 用于存储两行视频信号,并逆序输出两行视频信号,然后对逆序输出的两行视频信号和分离出的音频信号编码成第一 HDMI 音视频输出信号;输出信号解码分离单元 6 用于获取第一 HDMI 音视频输出信号并对其进行解码,分离出视频信号和音频信号;读取编码单元 7 用于读取分辨率设置信息,并根据分辨率设置信息对当前分离出的视频信号和音频信号进行编码,得到第二 HDMI 音视频输出信号,并将第二 HDMI 音视频输出信号进行输出。上述分离出的视频信号包括 RGB 信号、视频行信号和视频场信号,上述分辨率为 1920*1080 。本发明能根据具体需要选择是否需要对视频进行镜像翻转,所以其给被试者的观看带来方便、能灵活满足不同被试者需求。 The embodiment further relates to an apparatus for implementing the above-mentioned HDMI audio and video signal transmission method, and a schematic structural diagram thereof is shown in FIG. Figure 4 The apparatus includes a signal acquisition decoding unit 1, a current signal reception determination unit 2, a line video signal determination unit 3, a flip determination unit 4, a signal storage unit 5, and an output signal decoding separation unit 6 And reading coding unit 7; wherein signal acquisition decoding unit 1 is used to acquire HDMI audio and video input signals and to HDMI The audio and video input signals are decoded to separate the video signal and the audio signal; the current signal receiving judging unit 2 For determining whether the currently received video signal is a video signal, if yes, performing the subsequent steps; otherwise, storing the audio signal; the line video signal determining unit 3 is configured to determine whether the currently received video signal is to the next line of the video signal; 4 is used to determine whether the video signal needs to be flipped, and if so, perform the subsequent steps; otherwise, the separated video signal and audio signal are encoded into the first HDMI audio and video output signal; the signal storage unit 5 It is used for storing two lines of video signals, and outputting two lines of video signals in reverse order, and then encoding the two lines of video signals and the separated audio signals outputted in reverse order into a first HDMI audio and video output signal; the output signal decoding and separating unit 6 For acquiring and decoding the first HDMI audio and video output signal, separating the video signal and the audio signal; reading the coding unit 7 It is used to read the resolution setting information, and encode the currently separated video signal and audio signal according to the resolution setting information to obtain a second HDMI audio and video output signal, and the second HDMI The audio and video output signals are output. The above separated video signals include RGB signals, video line signals, and video field signals, and the above resolution is 1920*1080. . The invention can select whether the video needs to be mirrored and flipped according to specific needs, so that it brings convenience to the subject's viewing and can flexibly meet the needs of different subjects.
本实施例中,行视频信号判断单元 3 进一步包括行视频信号接收判断模块 31 和缓冲区计数判断模块 32 ;其中,行视频信号接收判断模块 31 用于判断当前接收的视频信号是否到下一行视频信号;缓冲区计数判断模块 32 用于判断视频缓冲区计数器的计数是否等于 1 ,如是,令视频缓冲区计数器的计数等于 2 ;否则,令视频缓冲区计数器的计数等于 1 ;视频缓冲区包括第一视频缓冲区和第二视频缓冲区。 In this embodiment, the line video signal determining unit 3 further includes a line video signal receiving determining module 31 and a buffer count determining module 32. The line video signal receiving determining module 31 is configured to determine whether the currently received video signal is to the next line of video signals; the buffer count determining module 32 is configured to determine whether the count of the video buffer counter is equal to 1 If so, the count of the video buffer counter is equal to 2; otherwise, the count of the video buffer counter is equal to 1; the video buffer includes the first video buffer and the second video buffer.
本实施例中,信号存储单元 5 进一步包括计数判断模块 51 、第一逆序读取模块 52 、第二逆序读取模块 53 和逆序读取编码模块 54 ;其中,计数判断模块 51 用于判断视频缓冲区计数器的计数是否等于 1 ,如是,将当前行视频信号正序存储到第二视频缓冲区;否则,将当前行视频信号正序存储到第一视频缓冲区;第一逆序读取模块 52 用于逆序读取第一视频缓冲区的视频信号;第二逆序读取模块 53 用于逆序读取第二视频缓冲区的视频信号;逆序读取编码模块 54 用于对逆序读取的视频信号和分离出的音频信号编码成第一 HDMI 音视频输出信号。 In this embodiment, the signal storage unit 5 further includes a count determination module 51, a first reverse sequence read module 52, and a second reverse sequence read module. And a reverse reading encoding module 54; wherein the counting determining module 51 is configured to determine whether the count of the video buffer counter is equal to 1 If yes, the current line video signal is stored in the positive sequence to the second video buffer; otherwise, the current line video signal is stored in the first video buffer; the first reverse order reading module 52 The video signal for reading the first video buffer in reverse order; the second reverse reading module 53 is configured to read the video signal of the second video buffer in reverse order; and read the encoding module in reverse order. The video signal and the separated audio signal for reading in reverse order are encoded into a first HDMI audio and video output signal.
总之,在本实施例中,如要实现视频水平反转,则需要做到存储行视频信号,反序输出,经过翻转的视频分辨率达到 1920*1080 。另外, HDMI 音视频信号通过光纤传输,能在核磁共振环境下保证 24 小时连续运转无丢失画面。 In summary, in this embodiment, if video horizontal inversion is to be implemented, it is necessary to store the line video signal, and the reverse order output, and the inverted video resolution is achieved. 1920*1080. In addition, HDMI audio and video signals are transmitted over optical fibers, ensuring 24 hours of continuous operation without loss of picture in an MRI environment.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., which are included in the spirit and scope of the present invention, should be included in the present invention. Within the scope of protection.

Claims (10)

  1. 一种HDMI音视频信号的传输方法,其特征在于,包括如下步骤: A method for transmitting an HDMI audio and video signal, comprising the steps of:
    A)获取HDMI音视频输入信号,并对所述HDMI音视频输入信号进行解码,分离出视频信号和音频信号;A) acquiring an HDMI audio and video input signal, and decoding the HDMI audio and video input signal to separate the video signal and the audio signal;
    B)判断当前接收的是否是视频信号,如是,执行步骤C);否则,存储音频信号,执行步骤C);B) judging whether the currently received video signal is, if yes, performing step C); otherwise, storing the audio signal, performing step C);
    C)判断当前接收的视频信号是否到下一行视频信号,如是,对视频缓冲区计数器的计数进行处理,执行步骤D);否则,执行步骤D);C) judging whether the currently received video signal reaches the next line of video signals, and if so, processing the count of the video buffer counter, performing step D); otherwise, performing step D);
    D)判断是否需要对视频信号进行翻转,如是,执行步骤E);否则,对分离出的视频信号和音频信号进行编码成第一HDMI音视频输出信号,并执行步骤F);D) determining whether the video signal needs to be flipped, if yes, performing step E); otherwise, encoding the separated video signal and audio signal into a first HDMI audio and video output signal, and performing step F);
    E)存储两行视频信号,并逆序输出所述两行视频信号,然后对所述逆序输出的两行视频信号和分离出的音频信号编码成所述第一HDMI音视频输出信号,执行步骤F);E) storing two lines of video signals, and outputting the two lines of video signals in reverse order, and then encoding the two lines of the video signals and the separated audio signals outputted in the reverse order into the first HDMI audio and video output signals, and performing step F );
    F)获取所述第一HDMI音视频输出信号并对其进行解码,分离出视频信号和音频信号;F) acquiring the first HDMI audio and video output signal and decoding the same, separating the video signal and the audio signal;
    G)读取分辨率设置信息,并根据所述分辨率设置信息对当前分离出的视频信号和音频信号进行编码,得到第二HDMI音视频输出信号,并将所述第二HDMI音视频输出信号进行输出。 G) reading resolution setting information, and encoding the currently separated video signal and audio signal according to the resolution setting information, obtaining a second HDMI audio and video output signal, and outputting the second HDMI audio and video output signal Make the output.
  2. 根据权利要求1所述的HDMI音视频信号的传输方法,其特征在于,所述分离出的视频信号包括RGB信号、视频行信号和视频场信号。The method for transmitting an HDMI audio and video signal according to claim 1, wherein the separated video signal comprises an RGB signal, a video line signal, and a video field signal.
  3. 根据权利要求2所述的HDMI音视频信号的传输方法,其特征在于,所述步骤C)进一步包括:The method for transmitting an HDMI audio and video signal according to claim 2, wherein the step C) further comprises:
    C1)判断当前接收的视频信号是否到下一行视频信号,如是,执行步骤C2);否则,执行步骤D);C1) determining whether the currently received video signal reaches the next line of video signals, and if so, performing step C2); otherwise, performing step D);
    C2)判断视频缓冲区计数器的计数是否等于1,如是,令所述视频缓冲区计数器的计数等于2,执行步骤D);否则,令所述视频缓冲区计数器的计数等于1,执行步骤D);所述视频缓冲区包括第一视频缓冲区和第二视频缓冲区。C2) determining whether the count of the video buffer counter is equal to 1, if so, letting the count of the video buffer counter equal to 2, performing step D); otherwise, causing the count of the video buffer counter to be equal to 1, performing step D) The video buffer includes a first video buffer and a second video buffer.
  4. 根据权利要求3所述的HDMI音视频信号的传输方法,其特征在于,所述步骤E)进一步包括:The method for transmitting an HDMI audio and video signal according to claim 3, wherein the step E) further comprises:
    E1)判断视频缓冲区计数器的计数是否等于1,如是,将当前行视频信号正序存储到第二视频缓冲区,执行步骤E2);否则,将当前行视频信号正序存储到第一视频缓冲区,执行步骤E3);E1) determining whether the count of the video buffer counter is equal to 1, if yes, storing the current line video signal in the positive sequence to the second video buffer, performing step E2); otherwise, storing the current line video signal in the first order to the first video buffer Zone, perform step E3);
    E2)逆序读取所述第一视频缓冲区的视频信号,执行步骤E4);E2) reading the video signal of the first video buffer in reverse order, performing step E4);
    E3)逆序读取所述第二视频缓冲区的视频信号,执行步骤E4);E3) reading the video signal of the second video buffer in reverse order, performing step E4);
    E4)对所述逆序读取的视频信号和分离出的音频信号编码成所述第一HDMI音视频输出信号。E4) encoding the reverse read video signal and the separated audio signal into the first HDMI audio and video output signal.
  5. 根据权利要求4所述的HDMI音视频信号的传输方法,其特征在于,所述分辨率为1920*1080。The method of transmitting an HDMI audio/video signal according to claim 4, wherein the resolution is 1920*1080.
  6. 一种实现如权利要求1所述的HDMI音视频信号的传输方法的装置,其特征在于,包括:An apparatus for implementing a method for transmitting an HDMI audio and video signal according to claim 1, comprising:
    信号获取解码单元:用于获取HDMI音视频输入信号,并对所述HDMI音视频输入信号进行解码,分离出视频信号和音频信号;a signal acquisition decoding unit: configured to acquire an HDMI audio and video input signal, and decode the HDMI audio and video input signal to separate the video signal and the audio signal;
    当前信号接收判断单元:用于判断当前接收的是否是视频信号,如是,执行后续步骤;否则,存储音频信号;The current signal receiving determining unit is configured to determine whether the currently received video signal is a video signal, and if yes, perform a subsequent step; otherwise, store the audio signal;
    行视频信号判断单元:用于判断当前接收的视频信号是否到下一行视频信号;Line video signal determining unit: for determining whether the currently received video signal reaches the next line of video signals;
    翻转判断单元:用于判断是否需要对视频信号进行翻转,如是,执行后续步骤;否则,对分离出的视频信号和音频信号进行编码成第一HDMI音视频输出信号;Flipping determining unit: for judging whether the video signal needs to be flipped, and if so, performing the subsequent steps; otherwise, encoding the separated video signal and the audio signal into the first HDMI audio and video output signal;
    信号存储单元:用于存储两行视频信号,并逆序输出所述两行视频信号,然后对所述逆序输出的两行视频信号和分离出的音频信号编码成所述第一HDMI音视频输出信号;a signal storage unit: configured to store two lines of video signals, and output the two lines of video signals in reverse, and then encode the two lines of the video signals and the separated audio signals that are output in the reverse order into the first HDMI audio and video output signals. ;
    输出信号解码分离单元:用于获取所述第一HDMI音视频输出信号并对其进行解码,分离出视频信号和音频信号;An output signal decoding separation unit: configured to acquire and decode the first HDMI audio and video output signal, and separate the video signal and the audio signal;
    读取编码单元:用于读取分辨率设置信息,并根据所述分辨率设置信息对当前分离出的视频信号和音频信号进行编码,得到第二HDMI音视频输出信号,并将所述第二HDMI音视频输出信号进行输出。Reading coding unit: for reading resolution setting information, and encoding the currently separated video signal and audio signal according to the resolution setting information, obtaining a second HDMI audio and video output signal, and the second The HDMI audio and video output signals are output.
  7. 根据权利要求6所述的装置,其特征在于,所述分离出的视频信号包括RGB信号、视频行信号和视频场信号。The apparatus of claim 6 wherein said separated video signals comprise RGB signals, video line signals, and video field signals.
  8. 根据权利要求7所述的装置,其特征在于,所述行视频信号判断单元进一步包括:The device according to claim 7, wherein the line video signal determining unit further comprises:
    行视频信号接收判断模块:用于判断当前接收的视频信号是否到下一行视频信号;Line video signal receiving and determining module: configured to determine whether the currently received video signal is to the next line of video signals;
    缓冲区计数判断模块:用于判断视频缓冲区计数器的计数是否等于1,如是,令所述视频缓冲区计数器的计数等于2;否则,令所述视频缓冲区计数器的计数等于1;所述视频缓冲区包括第一视频缓冲区和第二视频缓冲区。a buffer count determination module: configured to determine whether the count of the video buffer counter is equal to 1, and if so, the count of the video buffer counter is equal to 2; otherwise, the count of the video buffer counter is equal to 1; The buffer includes a first video buffer and a second video buffer.
  9. 根据权利要求8所述的装置,其特征在于,所述信号存储单元进一步包括:The device according to claim 8, wherein the signal storage unit further comprises:
    计数判断模块:用于判断视频缓冲区计数器的计数是否等于1,如是,将当前行视频信号正序存储到第二视频缓冲区;否则,将当前行视频信号正序存储到第一视频缓冲区;The counting judging module is configured to determine whether the count of the video buffer counter is equal to 1, if yes, store the current line video signal in the positive sequence to the second video buffer; otherwise, store the current line video signal in the first video buffer. ;
    第一逆序读取模块:用于逆序读取所述第一视频缓冲区的视频信号;a first reverse order reading module: configured to read the video signal of the first video buffer in reverse order;
    第二逆序读取模块:用于逆序读取所述第二视频缓冲区的视频信号;a second reverse sequence reading module: configured to read the video signal of the second video buffer in reverse order;
    逆序读取编码模块:用于对所述逆序读取的视频信号和分离出的音频信号编码成所述第一HDMI音视频输出信号。The reverse reading encoding module is configured to encode the reverse read video signal and the separated audio signal into the first HDMI audio and video output signal.
  10. 根据权利要求9所述的装置,其特征在于,所述分辨率为1920*1080。The apparatus of claim 9 wherein said resolution is 1920*1080.
PCT/CN2015/092707 2015-06-15 2015-10-23 Transmission method and device for hdmi audio/video signal WO2016201848A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510331294.0 2015-06-15
CN201510331294.0A CN104954722B (en) 2015-06-15 2015-06-15 A kind of transmission method and device of HDMI audio-video signals

Publications (1)

Publication Number Publication Date
WO2016201848A1 true WO2016201848A1 (en) 2016-12-22

Family

ID=54169023

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/092707 WO2016201848A1 (en) 2015-06-15 2015-10-23 Transmission method and device for hdmi audio/video signal

Country Status (2)

Country Link
CN (1) CN104954722B (en)
WO (1) WO2016201848A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954722B (en) * 2015-06-15 2018-04-27 深圳市美德医疗电子技术有限公司 A kind of transmission method and device of HDMI audio-video signals
CN108055576A (en) * 2017-12-27 2018-05-18 安徽科创智慧知识产权服务有限公司 Suitable for separating the device of vision signal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040001694A1 (en) * 2002-06-28 2004-01-01 Evans Glenn F. Methods and systems for processing digital data rate and directional playback changes
CN101013565A (en) * 2007-02-05 2007-08-08 深圳市芯智科技有限公司 Video reversal method of liquid crystal display
CN101075425A (en) * 2004-05-06 2007-11-21 佳能株式会社 Image signal processing circuit and image display apparatus
CN202383657U (en) * 2011-12-27 2012-08-15 紫光股份有限公司 Screen mirror image wireless transmission device for computer
CN104954722A (en) * 2015-06-15 2015-09-30 深圳市美德医疗电子技术有限公司 Method and device for transmitting HDMI (High-Definition Multimedia Interface) audio-video signal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100258314B1 (en) * 1997-02-06 2000-06-01 장항석 Image/sound signal switching circuit
CN1269020C (en) * 2004-03-19 2006-08-09 北京中星微电子有限公司 Image rotation processing system for liquid crystal display screens
CN103347157A (en) * 2013-06-25 2013-10-09 杭州士兰微电子股份有限公司 Method and device for real-time input digital image mirroring storage
CN103750805B (en) * 2014-01-02 2016-07-06 上海大学 High definition medical endoscope video process apparatus and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040001694A1 (en) * 2002-06-28 2004-01-01 Evans Glenn F. Methods and systems for processing digital data rate and directional playback changes
CN101075425A (en) * 2004-05-06 2007-11-21 佳能株式会社 Image signal processing circuit and image display apparatus
CN101013565A (en) * 2007-02-05 2007-08-08 深圳市芯智科技有限公司 Video reversal method of liquid crystal display
CN202383657U (en) * 2011-12-27 2012-08-15 紫光股份有限公司 Screen mirror image wireless transmission device for computer
CN104954722A (en) * 2015-06-15 2015-09-30 深圳市美德医疗电子技术有限公司 Method and device for transmitting HDMI (High-Definition Multimedia Interface) audio-video signal

Also Published As

Publication number Publication date
CN104954722A (en) 2015-09-30
CN104954722B (en) 2018-04-27

Similar Documents

Publication Publication Date Title
WO2014116088A1 (en) Source device, content providing method using the source device, sink device and controlling method of the sink device
WO2016029596A1 (en) Audio/video signal synchronization method and apparatus
EP3574395A1 (en) Display device for visualizing contents as the display is rotated and control method thereof
WO2018120622A1 (en) Method and device for displaying multiple images
WO2017090848A1 (en) Photographing device and operating method of the same
WO2016201848A1 (en) Transmission method and device for hdmi audio/video signal
WO2014059723A1 (en) Video image quality diagnostic system and method thereof
WO2018131806A1 (en) Electronic apparatus and method of operating the same
WO2017142143A1 (en) Method and apparatus for providing summary information of a video
WO2018053962A1 (en) Method and apparatus for automatically acquiring time zone of smart television
EP3766254A1 (en) Electronic apparatus and controlling method thereof
WO2020105979A1 (en) Image processing apparatus and control method thereof
WO2018088784A1 (en) Electronic apparatus and operating method thereof
WO2018034535A1 (en) Display apparatus and content display method thereof
WO2016090650A1 (en) Terminal and method for advertising through video applications
WO2021045404A1 (en) Display apparatus and method of controlling thereof
WO2021107293A1 (en) Electronic apparatus and control method thereof
WO2019124622A1 (en) Method, apparatus, and computer program for correcting optical axis of zoom lens
WO2016107228A1 (en) Method, display terminal and system for carrying hidden information in display picture
WO2018076532A1 (en) Signal source switching control method and device
WO2017007102A1 (en) Imaging device and method of operating the same
WO2017122961A1 (en) Display apparatus and operating method thereof
WO2018070638A1 (en) Display apparatus and method for generating capture image
WO2019031771A1 (en) Display device for visualizing contents as the display is rotated and control method thereof
WO2021137372A1 (en) Display device and method for controlling thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15895417

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15895417

Country of ref document: EP

Kind code of ref document: A1