KR102589858B1 - Encoding apparatus and operating method for the same, and AI up scaling apparatus and operating method for the same - Google Patents

Encoding apparatus and operating method for the same, and AI up scaling apparatus and operating method for the same Download PDF

Info

Publication number
KR102589858B1
KR102589858B1 KR1020210114124A KR20210114124A KR102589858B1 KR 102589858 B1 KR102589858 B1 KR 102589858B1 KR 1020210114124 A KR1020210114124 A KR 1020210114124A KR 20210114124 A KR20210114124 A KR 20210114124A KR 102589858 B1 KR102589858 B1 KR 102589858B1
Authority
KR
South Korea
Prior art keywords
image
data
information
dnn
upscale
Prior art date
Application number
KR1020210114124A
Other languages
Korean (ko)
Other versions
KR20210110275A (en
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 KR20210110275A publication Critical patent/KR20210110275A/en
Application granted granted Critical
Publication of KR102589858B1 publication Critical patent/KR102589858B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • H04N21/43632Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wired protocol, e.g. IEEE 1394
    • H04N21/43635HDMI
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Artificial Intelligence (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Image Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

복호화 장치에 관한 것으로, 원본 영상의 AI 다운스케일 및 제1 부호화 결과 생성된, AI 부호화 데이터를 수신하는 통신부, AI 부호화 데이터를 영상 데이터와 AI 데이터로 구분하는 프로세서, 및 입/출력부를 포함하고, 프로세서는, 영상 데이터에 기초하여, 원본 영상을 AI 다운스케일한 제1 영상을 제 1 복호화하여 제2 영상을 획득하고, 제2 영상 및 AI 데이터를 외부 장치로 전송하도록 입/출력부를 제어할 수 있다.It relates to a decoding device, comprising a communication unit that receives AI encoded data generated as a result of AI downscaling and first encoding of the original video, a processor that separates the AI encoded data into video data and AI data, and an input/output unit, Based on the image data, the processor may control the input/output unit to obtain a second image by first decoding the first image obtained by AI downscaling the original image and transmit the second image and AI data to an external device. there is.

Description

복호화 장치 및 그 동작방법, 및 AI 업 스케일 장치 및 그 동작방법{Encoding apparatus and operating method for the same, and AI up scaling apparatus and operating method for the same}Decoding apparatus and operating method thereof, and AI up scaling apparatus and operating method {Encoding apparatus and operating method for the same, and AI up scaling apparatus and operating method for the same}

다양한 실시예들은 압축된 영상을 복호화하는 복호화 장치 및 그 동작방법, 및 영상을 AI 업스케일하는 딥 뉴럴 네트워크를 포함하는 AI 업 스케일 장치 및 그 동작방법에 관한 것이다.Various embodiments relate to a decoding device and operating method for decoding a compressed image, and an AI upscaling device and operating method including a deep neural network for AI upscaling an image.

영상은 소정의 데이터 압축 표준, 예를 들어 MPEG (Moving Picture Expert Group) 표준 등을 따르는 코덱(codec)에 의해 부호화된 후 비트스트림의 형태로 기록매체에 저장되거나 통신 채널을 통해 전송된다.The video is encoded by a codec that complies with a certain data compression standard, for example, the MPEG (Moving Picture Expert Group) standard, and is then stored in a recording medium in the form of a bitstream or transmitted through a communication channel.

고해상도/고화질의 영상을 재생, 저장할 수 있는 하드웨어의 개발 및 보급에 따라, 고해상도/고화질의 영상을 효과적으로 부호화 및 복호화할 수 있는 코덱의 필요성이 증대하고 있다.With the development and distribution of hardware that can play and store high-resolution/high-quality images, the need for codecs that can effectively encode and decode high-resolution/high-quality images is increasing.

다양한 실시예들은, 압축된 영상을 복원하고, 복원된 영상과 복원된 영상의 AI 업 스케일에 필요한 데이터를 AI 업 스케일 장치로 전송할 수 있는 복호화 장치 및 그 동작방법을 제공할 수 있다.Various embodiments may provide a decoding device and a method of operating the same that can restore a compressed image and transmit the restored image and data necessary for AI upscaling of the restored image to the AI upscale device.

또한, 복호화 장치로부터 영상과 AI 데이터를 수신하고, 업 스케일용 DNN을 이용하여, 영상을 AI 업 스케일할 수 있는 AI 업 스케일 장치 및 그 동작방법을 제공할 수 있다.In addition, it is possible to provide an AI upscale device and an operating method that can receive video and AI data from a decoding device and AI upscale the video using a DNN for upscaling.

일 실시예에 따른 복호화 장치는, 원본 영상의 AI 다운스케일 및 제1 부호화 결과 생성된, AI 부호화 데이터를 수신하는 통신부, 상기 AI 부호화 데이터를 영상 데이터와 AI 데이터로 구분하는 프로세서, 및 입/출력부를 포함하고, 상기 프로세서는, 상기 영상 데이터에 기초하여, 상기 원본 영상을 상기 AI 다운스케일한 제1 영상을 제 1 복호화하여 제2 영상을 획득하고, 상기 제2 영상 및 상기 AI 데이터를 외부 장치로 전송하도록 상기 입/출력부를 제어할 수 있다. A decoding device according to an embodiment includes a communication unit that receives AI encoded data generated as a result of AI downscaling and first encoding of an original image, a processor that separates the AI encoded data into image data and AI data, and input/output a unit, wherein the processor obtains a second image by first decoding the first image obtained by AI downscaling the original image based on the image data, and transmits the second image and the AI data to an external device. The input/output unit can be controlled to transmit to .

일 실시예에 따른 입/출력부는 HDMI(High Definition Multimedia Interface)를 포함하고, 상기 프로세서는, 상기 제2 영상 및 상기 AI 데이터를 상기 HDMI를 통해, 상기 외부 장치로 전송할 수 있다.The input/output unit according to an embodiment includes a High Definition Multimedia Interface (HDMI), and the processor may transmit the second image and the AI data to the external device through the HDMI.

일 실시예에 따른 프로세서는, 상기 AI 데이터를, VSIF(Vendor Specific InfoFrame) 패킷의 형태로 전송할 수 있다.The processor according to one embodiment may transmit the AI data in the form of a VSIF (Vendor Specific InfoFrame) packet.

일 실시예에 따른 입/출력부는 DP(Display Port)를 포함하고, 상기 프로세서는 상기 제2 영상 및 상기 AI 데이터를 상기 DP를 통해, 상기 외부 장치로 전송할 수 있다.The input/output unit according to one embodiment includes a DP (Display Port), and the processor may transmit the second image and the AI data to the external device through the DP.

일 실시예에 따른 AI 데이터는, 상기 원본 영상의 상기 AI 다운스케일과 관련된 데이터일 수 있다.AI data according to one embodiment may be data related to the AI downscaling of the original image.

일 실시예에 따른 AI 데이터는 상기 제2 영상에 AI 업 스케일이 적용되는지 여부를 나타내는 정보 및 상기 AI 다운스케일에 대응하여 상기 제2 영상을 업 스케일하기 위한 DNN에 관한 정보 중 적어도 하나를 포함할 수 있다.AI data according to one embodiment may include at least one of information indicating whether AI upscaling is applied to the second image and information about a DNN for upscaling the second image in response to the AI downscaling. You can.

일 실시예에 따른 복호화 장치의 동작 방법은, 원본 영상의 AI 다운스케일 및 제1 부호화 결과 생성된, AI 부호화 데이터를 수신하는 단계, 상기 AI 부호화 데이터를 영상 데이터와 AI 데이터로 구분하는 단계, 상기 영상 데이터에 기초하여, 상기 원본 영상을 상기 AI 다운스케일한 제1 영상을 제1 복호화하여 제2 영상을 획득하는 단계, 및 입/출력 인터페이스를 통하여, 상기 제2 영상 및 상기 AI 데이터를 외부 장치로 전송하는 단계를 포함할 수 있다.A method of operating a decoding device according to an embodiment includes receiving AI encoded data generated as a result of AI downscaling and first encoding of an original image, dividing the AI encoded data into image data and AI data, Based on the image data, obtaining a second image by first decoding the first image obtained by AI downscaling the original image, and transmitting the second image and the AI data to an external device through an input/output interface. It may include the step of transmitting to .

일 실시예에 따른 AI 업스케일 장치는, 제1 DNN을 이용하여, 원본 영상을 AI 다운스케일한 제1 영상에 대응하는 제2 영상, 및 상기 AI 다운스케일과 관련된 AI 데이터를 수신하는 입/출력부, 하나 이상의 인스트럭션들을 저장하는 메모리, 및 상기 메모리에 저장된 상기 하나 이상의 인스트럭션들을 실행하는 프로세서를 포함하고, 상기 프로세서는, 상기 AI 데이터에 기초하여, 상기 제1 DNN에 대응하는 제2 DNN에 관한 정보를 획득하고, 상기 획득된 정보에 따라 결정된 상기 제2 DNN을 이용하여, 상기 제2 영상을 AI 업스케일하고, 상기 입/출력부는, HDMI(High Definition Multimedia Interface)를 포함하고, 상기 제2 영상 및 상기 AI 데이터는 상기 HDMI를 통해 수신되며, 상기 AI 데이터는, VSIF(Vendor Specific InfoFrame) 패킷의 형태로 수신될 수 있다.An AI upscaling device according to an embodiment is an input/output device that uses a first DNN to receive a second image corresponding to a first image obtained by AI downscaling an original image, and AI data related to the AI downscaling. a unit, a memory storing one or more instructions, and a processor executing the one or more instructions stored in the memory, wherein the processor, based on the AI data, relates to a second DNN corresponding to the first DNN. Obtain information, AI upscale the second image using the second DNN determined according to the obtained information, and the input/output unit includes a High Definition Multimedia Interface (HDMI), and the second DNN Video and the AI data are received through the HDMI, and the AI data may be received in the form of a VSIF (Vendor Specific InfoFrame) packet.

일 실시예에 따른 복호화 장치는, 입/출력 인터페이스를 통하여, AI 업 스케일 장치로 복원된 영상 및 AI 데이터를 효율적으로 전송할 수 있다.The decoding device according to one embodiment can efficiently transmit the restored image and AI data to the AI upscale device through an input/output interface.

일 실시예에 따른 AI 업 스케일 장치는, 입/출력 인터페이스를 통하여, 복호화 장치로부터 복원 영상 및 AI 데이터를 효율적으로 수신할 수 있다.An AI upscale device according to an embodiment can efficiently receive restored images and AI data from a decoding device through an input/output interface.

도 1은 일 실시예에 따른 AI 부호화 과정 및 AI 복호화 과정을 설명하기 위한 도면이다.
도 2는 일 실시예에 따른 AI 복호화 장치의 구성을 나타내는 블록도이다.
도 3은 제 2 영상의 AI 업스케일을 위한 제 2 DNN을 나타내는 예시적인 도면이다.
도 4는 컨볼루션 레이어에 의한 컨볼루션 연산을 설명하기 위한 도면이다.
도 5는 여러 영상 관련 정보들과 여러 DNN 설정 정보들 사이의 매핑 관계를 나타내는 예시적인 도면이다.
도 6은 복수의 프레임으로 구성된 제 2 영상을 도시하는 도면이다.
도 7은 일 실시예에 따른 AI 부호화 장치의 구성을 나타내는 블록도이다.
도 8은 원본 영상의 AI 다운스케일을 위한 제 1 DNN을 나타내는 예시적인 도면이다.
도 9는 제 1 DNN 및 제 2 DNN을 훈련시키는 방법을 설명하기 위한 도면이다.
도 10는 훈련 장치에 의한 제 1 DNN 및 제 2 DNN의 훈련 과정을 설명하기 위한 도면이다.
도 11은 원본 영상의 AI 다운스케일을 위한 장치 및 제 2 영상의 AI 업스케일을 위한 장치를 도시하는 예시적인 도면이다.
도 12은 일 실시예에 따른 AI 복호화 시스템을 나타내는 도면이다.
도 13은 일 실시예에 따른 복호화 장치의 구성을 나타내는 도면이다.
도 14는, 일 실시예에 따른 메타 데이터 형태의 AI 데이터를 나타낸다.
도 15은 일 실시예에 따른 AI 데이터가 비트스트림 형태로 수신되는 경우를 나타내는 도면이다.
도 16는 일 실시예에 따른 AI 코덱 신택스 테이블을 나타낸다.
도 17는 일 실시예에 따른 AI 업 스케일 장치의 구성을 나타내는 블록도이다.
도 18은 일 실시예에 따른 복호화 장치와 AI 업 스케일 장치가 HDMI를 통해 데이터를 송수신하는 예를 나타내는 도면이다.
도 19은 일 실시예에 따른 EDID 정보에 포함되는 HF-VSDB를 나타내는 도면이다.
도 20은 일 실시예에 따른 VSIF(Vendor Specific InfoFrame) 패킷의 헤더 구조 및 컨텐츠 구조를 나타내는 도면이다.
도 21는 일 실시예에 따른 AI 데이터가 VSIF 패킷에 정의되는 일 예를 나타내는 도면이다.
도 22은 일 실시예에 따른 복호화 장치의 동작방법을 나타내는 흐름도이다.
도 23은 일 실시예에 따른 복호화 장치가 HDMI를 통하여, 제2 영상 및 AI 데이터를 전송하는 방법을 나타내는 흐름도이다.
도 24는 일 실시예에 따른 AI 업 스케일 장치의 동작방법을 나타내는 흐름도이다.
도 25은 일 실시예에 따른 복호화 장치의 구성을 나타내는 블록도이다.
도 26는 일 실시예에 따른 AI 업 스케일 장치의 구성을 나타내는 블록도이다.
Figure 1 is a diagram for explaining an AI encoding process and an AI decoding process according to an embodiment.
Figure 2 is a block diagram showing the configuration of an AI decoding device according to an embodiment.
Figure 3 is an exemplary diagram showing a second DNN for AI upscaling of a second image.
Figure 4 is a diagram for explaining a convolution operation by a convolution layer.
Figure 5 is an exemplary diagram showing the mapping relationship between various image-related information and various DNN setting information.
Figure 6 is a diagram showing a second image composed of a plurality of frames.
Figure 7 is a block diagram showing the configuration of an AI encoding device according to an embodiment.
Figure 8 is an exemplary diagram showing a first DNN for AI downscaling of an original image.
Figure 9 is a diagram for explaining a method of training the first DNN and the second DNN.
Figure 10 is a diagram for explaining the training process of the first DNN and the second DNN by the training device.
FIG. 11 is an exemplary diagram illustrating a device for AI downscaling of an original image and a device for AI upscaling of a second image.
Figure 12 is a diagram showing an AI decoding system according to an embodiment.
Figure 13 is a diagram showing the configuration of a decoding device according to an embodiment.
Figure 14 shows AI data in the form of metadata according to an embodiment.
Figure 15 is a diagram showing a case where AI data is received in bitstream form according to an embodiment.
Figure 16 shows an AI codec syntax table according to one embodiment.
Figure 17 is a block diagram showing the configuration of an AI upscale device according to an embodiment.
Figure 18 is a diagram illustrating an example in which a decoding device and an AI upscale device transmit and receive data through HDMI, according to an embodiment.
Figure 19 is a diagram showing HF-VSDB included in EDID information according to an embodiment.
Figure 20 is a diagram showing the header structure and content structure of a VSIF (Vendor Specific InfoFrame) packet according to an embodiment.
Figure 21 is a diagram illustrating an example in which AI data is defined in a VSIF packet according to an embodiment.
Figure 22 is a flowchart showing a method of operating a decoding device according to an embodiment.
Figure 23 is a flowchart showing a method by which a decoding device transmits a second video and AI data through HDMI according to an embodiment.
Figure 24 is a flowchart showing a method of operating an AI upscale device according to an embodiment.
Figure 25 is a block diagram showing the configuration of a decoding device according to an embodiment.
Figure 26 is a block diagram showing the configuration of an AI upscale device according to an embodiment.

본 개시는 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고, 이를 상세한 설명을 통해 상세히 설명하고자 한다. 그러나, 이는 본 개시의 실시 형태에 대해 한정하려는 것이 아니며, 본 개시는 여러 실시예들의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다.Since the present disclosure can make various changes and have various embodiments, specific embodiments will be illustrated in the drawings and described in detail through detailed description. However, this is not intended to limit the embodiments of the present disclosure, and the present disclosure should be understood to include all changes, equivalents, and substitutes included in the spirit and technical scope of the various embodiments.

실시예를 설명함에 있어서, 관련된 공지 기술에 대한 구체적인 설명이 본 개시의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다. 또한, 명세서의 설명 과정에서 이용되는 숫자(예를 들어, 제 1, 제 2 등)는 하나의 구성요소를 다른 구성요소와 구분하기 위한 식별기호에 불과하다.In describing the embodiments, if it is determined that detailed descriptions of related known technologies may unnecessarily obscure the gist of the present disclosure, the detailed descriptions will be omitted. In addition, numbers (eg, first, second, etc.) used in the description of the specification are merely identifiers to distinguish one component from another component.

또한, 본 명세서에서, 일 구성요소가 다른 구성요소와 "연결된다" 거나 "접속된다" 등으로 언급된 때에는, 상기 일 구성요소가 상기 다른 구성요소와 직접 연결되거나 또는 직접 접속될 수도 있지만, 특별히 반대되는 기재가 존재하지 않는 이상, 중간에 또 다른 구성요소를 매개하여 연결되거나 또는 접속될 수도 있다고 이해되어야 할 것이다.In addition, in this specification, when a component is referred to as "connected" or "connected" to another component, the component may be directly connected or directly connected to the other component, but specifically Unless there is a contrary description, it should be understood that it may be connected or connected through another component in the middle.

또한, 본 명세서에서 '~부(유닛)', '모듈' 등으로 표현되는 구성요소는 2개 이상의 구성요소가 하나의 구성요소로 합쳐지거나 또는 하나의 구성요소가 보다 세분화된 기능별로 2개 이상으로 분화될 수도 있다. 또한, 이하에서 설명할 구성요소 각각은 자신이 담당하는 주기능 이외에도 다른 구성요소가 담당하는 기능 중 일부 또는 전부의 기능을 추가적으로 수행할 수도 있으며, 구성요소 각각이 담당하는 주기능 중 일부 기능이 다른 구성요소에 의해 전담되어 수행될 수도 있음은 물론이다.In addition, in this specification, components expressed as 'unit (unit)', 'module', etc. are two or more components combined into one component, or one component is divided into two or more components for each more detailed function. It may be differentiated into In addition, each of the components described below may additionally perform some or all of the functions of other components in addition to the main functions that each component is responsible for, and some of the main functions of each component may be different from other components. Of course, it can also be performed exclusively by a component.

또한, 본 명세서에서, '영상(image)' 또는 '픽처'는 정지영상, 복수의 연속된 정지영상(또는 프레임)으로 구성된 동영상, 또는 비디오를 나타낼 수 있다.Additionally, in this specification, 'image' or 'picture' may refer to a still image, a moving image consisting of a plurality of consecutive still images (or frames), or a video.

또한, 본 명세서에서 'DNN(deep neural network)'은 뇌 신경을 모사한 인공신경망 모델의 대표적인 예시로써, 특정 알고리즘을 사용한 인공신경망 모델로 한정되지 않는다.Additionally, in this specification, 'DNN (deep neural network)' is a representative example of an artificial neural network model that simulates brain nerves, and is not limited to an artificial neural network model using a specific algorithm.

또한, 본 명세서에서 '파라미터'는 뉴럴 네트워크를 이루는 각 레이어의 연산 과정에서 이용되는 값으로서 예를 들어, 입력 값을 소정 연산식에 적용할 때 이용되는 가중치를 포함할 수 있다. 또한, 파라미터는 매트릭스 형태로 표현될 수 있다. 파라미터는 훈련의 결과로 설정되는 값으로서, 필요에 따라 별도의 훈련 데이터(training data)를 통해 갱신될 수 있다.Additionally, in this specification, 'parameter' is a value used in the calculation process of each layer forming a neural network and may include, for example, a weight used when applying an input value to a predetermined calculation equation. Additionally, parameters can be expressed in matrix form. Parameters are values set as a result of training, and can be updated through separate training data as needed.

또한, 본 명세서에서 '제 1 DNN'은 영상의 AI 다운스케일을 위해 이용되는 DNN을 의미하고, '제 2 DNN'은 영상의 AI 업스케일을 위해 이용되는 DNN을 의미한다.Additionally, in this specification, 'first DNN' refers to a DNN used for AI downscaling of an image, and 'second DNN' refers to a DNN used for AI upscaling of an image.

또한, 본 명세서에서 'DNN 설정 정보'는 DNN을 구성하는 요소와 관련된 정보로서 전술한 파라미터를 포함한다. DNN 설정 정보를 이용하여 제 1 DNN 또는 제 2 DNN이 설정될 수 있다.Additionally, in this specification, 'DNN setting information' is information related to elements constituting a DNN and includes the parameters described above. The first DNN or the second DNN can be set using the DNN setting information.

또한, 본 명세서에서 '원본 영상'은 AI 부호화의 대상이 되는 영상을 의미하고, '제 1 영상'은 AI 부호화 과정에서 원본 영상의 AI 다운스케일 결과 획득된 영상을 의미한다. 또한, '제 2 영상'은 AI 복호화 과정에서 제 1 복호화를 통해 획득된 영상을 의미하고, '제 3 영상'은 AI 복호화 과정에서 제 2 영상을 AI 업스케일하여 획득된 영상을 의미한다.Additionally, in this specification, 'original image' refers to an image that is the subject of AI encoding, and 'first image' refers to an image obtained as a result of AI downscaling of the original image during the AI encoding process. In addition, the 'second image' refers to an image obtained through first decoding in the AI decoding process, and the 'third image' refers to an image obtained by AI upscaling the second image in the AI decoding process.

또한, 본 명세서에서 'AI 다운스케일'은 AI 기반으로 영상의 해상도를 감소시키는 처리를 의미하고, '제 1 부호화'는 주파수 변환 기반의 영상 압축 방법에 의한 부호화 처리를 의미한다. 또한, '제 1 복호화'는 주파수 변환 기반의 영상 복원 방법에 의한 복호화 처리를 의미하고, 'AI 업스케일'은 AI 기반으로 영상의 해상도를 증가시키는 처리를 의미한다.Additionally, in this specification, 'AI downscale' refers to a process that reduces the resolution of an image based on AI, and 'first encoding' refers to an encoding process using a frequency transformation-based image compression method. Additionally, 'first decoding' refers to decoding processing using a frequency conversion-based image restoration method, and 'AI upscale' refers to processing that increases the resolution of the image based on AI.

도 1은 일 실시예에 따른 AI(artificial intelligence) 부호화 과정 및 AI 복호화 과정을 설명하기 위한 도면이다.FIG. 1 is a diagram illustrating an artificial intelligence (AI) encoding process and an AI decoding process according to an embodiment.

전술한 바와 같이 영상의 해상도가 급격히 커짐에 따라 부호화/복호화를 위한 정보 처리량이 많아지게 되고, 이에 따라 영상의 부호화 및 복호화 효율을 향상시키기 위한 방안이 필요하다. As mentioned above, as the resolution of an image rapidly increases, the amount of information processed for encoding/decoding increases, and accordingly, a method to improve the efficiency of encoding and decoding the image is needed.

도 1에 도시된 바와 같이, 본 개시의 일 실시예에 따르면, 해상도가 큰 원본 영상(105)을 AI 다운스케일(110)하여 제 1 영상(115)을 획득한다. 그리고, 상대적으로 작은 해상도의 제 1 영상(115)을 대상으로 하여 제 1 부호화(120) 및 제 1 복호화(130)를 수행하므로, 원본 영상(105)을 대상으로 하여 제 1 부호화(120) 및 제 1 복호화(130)를 수행하는 경우에 비해 처리되는 비트레이트를 크게 감소시킬 수 있다. As shown in FIG. 1, according to an embodiment of the present disclosure, the first image 115 is obtained by AI downscaling (110) the original image (105) with high resolution. In addition, since the first encoding 120 and the first decoding 130 are performed on the first image 115 of relatively small resolution, the first encoding 120 and the first decoding are performed on the original image 105. Compared to the case of performing the first decoding 130, the processing bit rate can be significantly reduced.

도 1을 참조하여 상세히 설명하면, 일 실시예는 AI 부호화 과정에서, 원본 영상(105)을 AI 다운스케일(110)하여 제 1 영상(115)을 획득하고, 제 1 영상(115)을 제 1 부호화(120)한다. AI 복호화 과정에서는, AI 부호화 결과 획득된 AI 데이터와 영상 데이터를 포함하는 AI 부호화 데이터를 수신하고, 제 1 복호화(130)를 통해 제 2 영상(135)을 획득하고, 제 2 영상(135)을 AI 업스케일(140)하여 제 3 영상(145)을 획득한다.As described in detail with reference to FIG. 1, in one embodiment, in the AI encoding process, the original image 105 is AI downscaled (110) to obtain the first image (115), and the first image (115) is converted to the first image (115). Encode (120). In the AI decoding process, AI encoded data including AI data and image data obtained as a result of AI encoding is received, a second image 135 is obtained through the first decoding 130, and the second image 135 is The third image 145 is obtained through AI upscaling (140).

AI 부호화 과정을 좀 더 상세히 살펴보면, 원본 영상(105)을 입력받으면, 소정 해상도 또는 소정 화질의 제 1 영상(115)을 획득하기 위해 원본 영상(105)을 AI 다운스케일(110)한다. 이때, AI 다운스케일(110)은 AI 기반으로 수행되는데, AI 다운스케일(110)을 위한 AI는 제 2 영상(135)의 AI 업스케일(140)을 위한 AI와 연계되어 훈련되어야(joint trained ) 한다. 왜냐하면, AI 다운스케일(110)을 위한 AI와 AI 업스케일(140)을 위한 AI가 분리되어 훈련되는 경우, AI 부호화 대상인 원본 영상(105)과 AI 복호화를 통해 복원된 제 3 영상(145) 사이의 차이가 커지게 되기 때문이다.Looking at the AI encoding process in more detail, when the original image 105 is input, the original image 105 is AI downscaled (110) to obtain the first image 115 of a certain resolution or quality. At this time, AI downscale 110 is performed based on AI, and AI for AI downscale 110 must be joint trained with AI for AI upscale 140 of the second image 135. do. This is because, when AI for AI downscaling (110) and AI for AI upscaling (140) are trained separately, between the original image (105) that is subject to AI encoding and the third image (145) restored through AI decoding This is because the difference increases.

본 개시의 실시예에서는, AI 부호화 과정과 AI 복호화 과정에서 이러한 연계 관계를 유지하기 위해, AI 데이터를 이용할 수 있다. 따라서, AI 부호화 과정을 통해 획득된 AI 데이터는 업스케일 타겟을 나타내는 정보를 포함하여야 하고, AI 복호화 과정에서는 AI 데이터에 기초하여 확인되는 업스케일 타겟에 따라 제 2 영상(135)을 AI 업스케일(140)하여야 한다.In an embodiment of the present disclosure, AI data can be used to maintain this linkage during the AI encoding process and AI decoding process. Therefore, the AI data acquired through the AI encoding process must include information representing the upscale target, and in the AI decoding process, the second image 135 is AI upscaled ( 140) must be done.

AI 다운스케일(110)을 위한 AI 및 AI 업스케일(140)을 위한 AI는 DNN(deep neural network)으로 구현될 수 있다. 도 9를 참조하여 후술하는 바와 같이, 제 1 DNN과 제 2 DNN은 소정 타겟 하에 손실 정보의 공유를 통해 연계 훈련되므로, AI 부호화 장치는 제 1 DNN과 2 DNN이 연계 훈련할 때 이용된 타겟 정보를 AI 복호화 장치로 제공하고, AI 복호화 장치는 제공받은 타겟 정보에 기초하여 제 2 영상(135)을 타겟하는 해상도로 AI 업스케일(140)할 수 있다.AI for AI downscale (110) and AI for AI upscale (140) can be implemented with a deep neural network (DNN). As described later with reference to FIG. 9, the first DNN and the second DNN are jointly trained by sharing loss information under a predetermined target, so the AI encoding device uses the target information used when the first DNN and the second DNN are jointly trained. is provided to the AI decoding device, and the AI decoding device can AI upscale 140 to the target resolution of the second image 135 based on the provided target information.

도 1에 도시된 제 1 부호화(120) 및 제 1 복호화(130)에 대해 상세히 설명하면, 원본 영상(105)으로부터 AI 다운스케일(110)된 제 1 영상(115)은 제 1 부호화(120)를 통해 정보량이 감축될 수 있다. 제 1 부호화(120)는, 제 1 영상(115)을 예측하여 예측 데이터를 생성하는 과정, 제 1 영상(115)과 예측 데이터 사이의 차이에 해당하는 잔차 데이터를 생성하는 과정, 공간 영역 성분인 잔차 데이터를 주파수 영역 성분으로 변환(transformation)하는 과정, 주파수 영역 성분으로 변환된 잔차 데이터를 양자화(quantization)하는 과정 및 양자화된 잔차 데이터를 엔트로피 부호화하는 과정 등을 포함할 수 있다. 이와 같은 제 1 부호화 과정(120)은 MPEG-2, H.264 AVC(Advanced Video Coding), MPEG-4, HEVC(High Efficiency Video Coding), VC-1, VP8, VP9 및 AV1(AOMedia Video 1) 등 주파수 변환을 이용한 영상 압축 방법 중의 하나를 통해 구현될 수 있다.Describing the first encoding 120 and the first decoding 130 shown in FIG. 1 in detail, the first image 115 that has been AI downscaled (110) from the original image (105) is the first encoding (120). The amount of information can be reduced through . The first encoding 120 includes a process of predicting the first image 115 and generating prediction data, a process of generating residual data corresponding to the difference between the first image 115 and the prediction data, and a spatial domain component. It may include a process of transforming the residual data into frequency domain components, a process of quantizing the residual data converted to frequency domain components, and a process of entropy encoding the quantized residual data. This first encoding process 120 includes MPEG-2, H.264 AVC (Advanced Video Coding), MPEG-4, HEVC (High Efficiency Video Coding), VC-1, VP8, VP9, and AV1 (AOMedia Video 1). It can be implemented through one of the image compression methods using frequency transformation.

제 1 영상(115)에 대응하는 제 2 영상(135)은 영상 데이터의 제 1 복호화(130)를 통해 복원될 수 있다. 제 1 복호화(130)는, 영상 데이터를 엔트로피 복호화하여 양자화된 잔차 데이터를 생성하는 과정, 양자화된 잔차 데이터를 역양자화하는 과정, 주파수 영역 성분의 잔차 데이터를 공간 영역 성분으로 변환하는 과정, 예측 데이터를 생성하는 과정 및 예측 데이터와 잔차 데이터를 이용하여 제 2 영상(135)을 복원하는 과정 등을 포함할 수 있다. 이와 같은 제 1 복호화(130) 과정은 제 1 부호화(120) 과정에서 사용된 MPEG-2, H.264, MPEG-4, HEVC, VC-1, VP8, VP9 및 AV1 등 주파수 변환을 이용한 영상 압축 방법 중의 하나에 대응되는 영상 복원 방법을 통해 구현될 수 있다.The second image 135 corresponding to the first image 115 may be restored through the first decoding 130 of the image data. The first decoding 130 includes a process of entropy decoding image data to generate quantized residual data, a process of dequantizing the quantized residual data, a process of converting residual data of a frequency domain component into a spatial domain component, and prediction data. It may include a process of generating and a process of restoring the second image 135 using prediction data and residual data. This first decoding (130) process is image compression using frequency conversion such as MPEG-2, H.264, MPEG-4, HEVC, VC-1, VP8, VP9, and AV1 used in the first encoding (120) process. It can be implemented through an image restoration method corresponding to one of the methods.

AI 부호화 과정을 통해 획득된 AI 부호화 데이터는, 제 1 영상(115)의 제 1 부호화(120) 결과 획득된 영상 데이터 및 원본 영상(105)의 AI 다운스케일(110)과 관련된 AI 데이터를 포함할 수 있다. 영상 데이터는 제 1 복호화(130) 과정에서 이용될 수 있으며, AI 데이터는 AI 업스케일(140) 과정에서 이용될 수 있다.The AI encoded data acquired through the AI encoding process may include image data obtained as a result of the first encoding 120 of the first image 115 and AI data related to the AI downscale 110 of the original image 105. You can. Image data can be used in the first decoding (130) process, and AI data can be used in the AI upscaling (140) process.

영상 데이터는 비트스트림 형태로 전송될 수 있다. 영상 데이터는 제 1 영상(115) 내 픽셀 값들에 기초하여 획득되는 데이터, 예를 들어, 제 1 영상(115)과 제 1 영상(115)의 예측 데이터 사이의 차이인 잔차 데이터를 포함할 수 있다. 또한, 영상 데이터는 제 1 영상(115)의 제 1 부호화(120) 과정에서 이용된 정보들을 포함한다. 예를 들어, 영상 데이터는 제 1 영상(115)을 제 1 부호화(120)하는데 이용된 예측 모드(mode) 정보, 움직임 정보, 및 제 1 부호화(120)에서 이용된 양자화 파라미터 관련 정보 등을 포함할 수 있다. 영상 데이터는 MPEG-2, H.264 AVC, MPEG-4, HEVC, VC-1, VP8, VP9 및 AV1 등 주파수 변환을 이용하는 영상 압축 방법 중 제 1 부호화(120) 과정에서 이용된 영상 압축 방법의 규칙, 예를 들어, 신택스(syntax)에 따라 생성될 수 있다.Video data may be transmitted in bitstream form. The image data may include data obtained based on pixel values in the first image 115, for example, residual data that is the difference between the first image 115 and the predicted data of the first image 115. . Additionally, the image data includes information used in the first encoding 120 process of the first image 115. For example, the image data includes prediction mode information used to first encode the first image 115 (120), motion information, and information related to quantization parameters used in the first encoding (120). can do. The video data is the video compression method used in the first encoding 120 process among video compression methods using frequency transformation, such as MPEG-2, H.264 AVC, MPEG-4, HEVC, VC-1, VP8, VP9, and AV1. It may be generated according to rules, for example, syntax.

AI 데이터는 제 2 DNN에 기반한 AI 업스케일(140)에 이용된다. 전술한 바와 같이, 제 1 DNN과 제 2 DNN은 연계 훈련되기 때문에, AI 데이터는 제 2 DNN을 통한 제 2 영상(135)의 정확한 AI 업스케일(140)이 수행될 수 있게 하는 정보를 포함한다. AI 복호화 과정에서는 AI 데이터에 기반하여 제 2 영상(135)을 타겟하는 해상도 및/또는 화질로 AI 업스케일(140)할 수 있다.AI data is used for AI upscaling (140) based on the second DNN. As described above, since the first DNN and the second DNN are trained in conjunction, the AI data includes information that allows accurate AI upscaling 140 of the second image 135 through the second DNN to be performed. . In the AI decoding process, the second image 135 may be AI upscaled 140 to the target resolution and/or image quality based on AI data.

AI 데이터는 비트스트림의 형태로 영상 데이터와 함께 전송될 수 있다. 또는, 구현예에 따라, AI 데이터는 프레임이나 패킷 형태로 영상 데이터와 구분되어 전송될 수도 있다. AI 부호화 결과 획득된 영상 데이터와 AI 데이터는 동일한 네트워크 또는 서로 상이한 네트워크를 통해 전송될 수 있다.AI data can be transmitted along with video data in the form of a bitstream. Alternatively, depending on the implementation, AI data may be transmitted separately from video data in the form of frames or packets. Image data and AI data obtained as a result of AI encoding may be transmitted through the same network or different networks.

도 2는 일 실시예에 따른 AI 복호화 장치(200)의 구성을 도시하는 블록도이다.Figure 2 is a block diagram showing the configuration of an AI decoding device 200 according to an embodiment.

도 2를 참조하면, 일 실시예에 따른 AI 복호화 장치(200)는 수신부(210) 및 AI 복호화부(230)를 포함할 수 있다. 수신부(210)는 통신부(212), 파싱부(214) 및 출력부(216)를 포함할 수 있다. AI 복호화부(230)는 제 1 복호화부(232) 및 AI 업스케일부(234)를 포함할 수 있다.Referring to FIG. 2, the AI decoding device 200 according to an embodiment may include a receiving unit 210 and an AI decoding unit 230. The receiving unit 210 may include a communication unit 212, a parsing unit 214, and an output unit 216. The AI decoding unit 230 may include a first decoding unit 232 and an AI upscaling unit 234.

수신부(210)는 AI 부호화 결과 획득된 AI 부호화 데이터를 수신 및 파싱하고, 영상 데이터와 AI 데이터를 구분하여 AI 복호화부(230)로 출력한다.The receiving unit 210 receives and parses the AI-encoded data obtained as a result of AI encoding, separates image data from AI data, and outputs it to the AI decoder 230.

구체적으로, 통신부(212)는 네트워크를 통해 AI 부호화 결과 획득된 AI 부호화 데이터를 수신한다. AI 부호화 결과 획득된 AI 부호화 데이터는 영상 데이터와 AI 데이터를 포함한다. 영상 데이터와 AI 데이터는 동종 네트워크 또는 이종 네트워크를 통해 수신될 수 있다.Specifically, the communication unit 212 receives AI encoded data obtained as a result of AI encoding through the network. AI encoded data obtained as a result of AI encoding includes image data and AI data. Video data and AI data can be received through homogeneous or heterogeneous networks.

파싱부(214)는 통신부(212)를 통해 수신된 AI 부호화 데이터를 전달받아 파싱(parsing)하여 영상 데이터와 AI 데이터로 구분한다. 예를 들어, 통신부(212)로부터 획득된 데이터의 헤더를 읽어, 해당 데이터가 영상 데이터인지 또는 AI 데이터인지를 구분할 수 있다. 일 예에서, 파싱부(214)는 통신부(212)를 통해 수신된 데이터의 헤더를 통해 영상 데이터와 AI 데이터를 구분하여 출력부(216)로 전달하고, 출력부(216)는 각각의 구분된 데이터를 제 1 복호화부(232) 및 AI 업스케일부(234)로 전달한다. 이 때, AI 부호화 데이터에 포함된 영상 데이터가 소정의 코덱(예를 들어, MPEG-2, H.264, MPEG-4, HEVC, VC-1, VP8, VP9 또는 AV1)을 통해 획득된 영상 데이터인 것으로 확인할 수도 있다. 이 경우, 영상 데이터가 상기 확인된 코덱으로 처리될 수 있도록, 출력부(216)를 통해 해당 정보를 제 1 복호화부(232)로 전달할 수 있다.The parsing unit 214 receives the AI encoded data received through the communication unit 212, parses it, and divides it into image data and AI data. For example, by reading the header of data obtained from the communication unit 212, it is possible to distinguish whether the data is video data or AI data. In one example, the parsing unit 214 separates image data and AI data through the header of the data received through the communication unit 212 and transmits it to the output unit 216, and the output unit 216 separates the image data from the AI data. Data is transmitted to the first decoding unit 232 and the AI upscaling unit 234. At this time, the image data included in the AI encoded data is image data acquired through a certain codec (e.g., MPEG-2, H.264, MPEG-4, HEVC, VC-1, VP8, VP9 or AV1) It can also be confirmed that it is. In this case, the corresponding information can be transmitted to the first decoding unit 232 through the output unit 216 so that the video data can be processed with the confirmed codec.

일 실시예에서, 파싱부(214)가 파싱하는 AI 부호화 데이터는, 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체, CD-ROM 및 DVD와 같은 광기록 매체, 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical medium) 등을 포함하는 데이터 저장 매체로부터 획득된 것일 수도 있다.In one embodiment, the AI-encoded data parsed by the parsing unit 214 includes magnetic media such as hard disks, floppy disks, and magnetic tapes, optical recording media such as CD-ROMs and DVDs, and floptical disks. It may also be obtained from a data storage medium including the same magneto-optical medium.

제 1 복호화부(232)는 영상 데이터에 기초하여 제 1 영상(115)에 대응하는 제 2 영상(135)을 복원한다. 제 1 복호화부(232)에 의해 획득된 제 2 영상(135)은 AI 업스케일부(234)로 제공된다. 구현예에 따라서는, 영상 데이터에 포함된 예측 모드 정보, 움직임 정보, 양자화 파라미터 정보 등의 제 1 복호화 관련 정보가 AI 업스케일부(234)로 더 제공될 수 있다. The first decoder 232 restores the second image 135 corresponding to the first image 115 based on the image data. The second image 135 acquired by the first decoding unit 232 is provided to the AI upscaling unit 234. Depending on the implementation, first decoding-related information such as prediction mode information, motion information, and quantization parameter information included in the image data may be further provided to the AI upscale unit 234.

AI 데이터를 수신한 AI 업스케일부(234)는 AI 데이터에 기초하여 제 2 영상(135)을 AI 업스케일한다. 구현예에 따라서는, 영상 데이터에 포함된 예측 모드 정보, 양자화 파라미터 정보 등의 제 1 복호화 관련 정보를 더 이용하여 AI 업스케일 할 수 있다.The AI upscaling unit 234 that receives the AI data AI upscales the second image 135 based on the AI data. Depending on the implementation, AI upscaling may be performed by further using first decoding-related information such as prediction mode information and quantization parameter information included in the image data.

일 실시예에 따른 수신부(210) 및 AI 복호화부(230)는 개별적인 장치로 설명되었으나, 하나의 프로세서를 통해 구현될 수 있다. 이 경우, 수신부(210) 및 AI 복호화부(230)는 전용 프로세서로 구현될 수도 있고, AP 또는 CPU, GPU와 같은 범용 프로세서와 S/W의 조합을 통해 구현될 수도 있다. 또한, 전용 프로세서의 경우, 본 개시의 실시예를 구현하기 위한 메모리를 포함하여 구현되거나, 외부 메모리를 이용하기 위한 메모리 처리부를 포함하여 구현될 수 있다. Although the receiving unit 210 and the AI decoding unit 230 according to one embodiment are described as separate devices, they can be implemented through a single processor. In this case, the receiving unit 210 and the AI decoding unit 230 may be implemented as a dedicated processor, or may be implemented through a combination of a general-purpose processor such as an AP, CPU, or GPU and S/W. Additionally, in the case of a dedicated processor, it may be implemented including a memory for implementing an embodiment of the present disclosure, or may be implemented including a memory processing unit for using an external memory.

또한, 수신부(210) 및 AI 복호화부(230)는 복수의 프로세서로 구성될 수도 있다. 이 경우, 전용 프로세서들의 조합으로 구현될 수도 있고, AP 또는 CPU, GPU와 같은 다수의 범용 프로세서들과 S/W의 조합을 통해 구현될 수도 있다. 마찬가지로 AI 업스케일부(234)와 제 1 복호화부(232)도 각각 서로 다른 프로세서로 구현될 수 있다.Additionally, the receiving unit 210 and the AI decoding unit 230 may be composed of a plurality of processors. In this case, it may be implemented through a combination of dedicated processors, or it may be implemented through a combination of multiple general-purpose processors such as AP, CPU, and GPU and S/W. Likewise, the AI upscaling unit 234 and the first decoding unit 232 may each be implemented with different processors.

AI 업스케일부(234)로 제공되는 AI 데이터는, 제 2 영상(135)을 AI 업스케일할 수 있게 하는 정보들을 포함한다. 이때, 업스케일 타겟은 제 1 DNN의 다운스케일에 대응하여야 한다. 따라서, AI 데이터는 제 1 DNN의 다운스케일 타겟을 확인할 수 있는 정보가 포함되어야 한다.AI data provided to the AI upscaling unit 234 includes information that allows AI upscaling of the second image 135. At this time, the upscale target must correspond to the downscale of the first DNN. Therefore, AI data must include information that can confirm the downscale target of the first DNN.

AI 데이터에 포함된 정보를 구체적으로 예시하면, 원본 영상(105)의 해상도와 제 1 영상(115)의 해상도의 차이 정보, 제 1 영상(115) 관련 정보가 있다. Specific examples of information included in AI data include information on the difference between the resolution of the original image 105 and the resolution of the first image 115, and information related to the first image 115.

차이 정보는, 원본 영상(105) 대비 제 1 영상(115)의 해상도 변환 정도에 대한 정보(예를 들어, 해상도 변환률 정보)로 표현될 수 있다. 그리고, 복원된 제 2 영상(135)의 해상도를 통해 제 1 영상(115)의 해상도를 알게 되고 이를 통해 해상도 변환 정도를 확인할 수 있기 때문에, 차이 정보는 원본 영상(105)의 해상도 정보만으로 표현될 수도 있다. 여기서 해상도 정보는 가로/세로의 화면 사이즈로 표현될 수도 있고, 비율(16:9, 4:3 등)과 한 축의 사이즈로 표현될 수도 있다. 또한, 기 설정된 해상도 정보가 있는 경우는 인덱스 또는 플래그의 형태로 표현될 수도 있다.The difference information may be expressed as information about the degree of resolution conversion of the first image 115 compared to the original image 105 (for example, resolution conversion rate information). And, because the resolution of the first image 115 can be known through the resolution of the restored second image 135 and the degree of resolution conversion can be confirmed through this, the difference information can be expressed only with the resolution information of the original image 105. It may be possible. Here, resolution information may be expressed as horizontal/vertical screen size, or as a ratio (16:9, 4:3, etc.) and the size of one axis. Additionally, if there is preset resolution information, it may be expressed in the form of an index or flag.

그리고, 제 1 영상(115) 관련 정보는, 제 1 영상(115)의 제 1 부호화 결과 획득된 영상 데이터의 비트레이트 및 제 1 영상(115)의 제 1 부호화시 이용된 코덱 타입 중 적어도 하나에 대한 정보를 포함할 수 있다.In addition, the information related to the first image 115 includes at least one of the bitrate of the image data obtained as a result of the first encoding of the first image 115 and the codec type used during the first encoding of the first image 115. It may contain information about

AI 업스케일부(234)는 AI 데이터에 포함된 차이 정보 및 제 1 영상(115) 관련 정보 중 적어도 하나에 기초하여 제 2 영상(135)의 업스케일 타겟을 결정할 수 있다. 업스케일 타겟은 예를 들어, 제 2 영상(135)을 어느 정도의 해상도로 업스케일하여야 하는지를 나타낼 수 있다. AI 업스케일부(234)는 업스케일 타겟이 결정되면, 업스케일 타겟에 대응하는 제 3 영상(145)을 획득하기 위해 제 2 DNN을 통해 제 2 영상(135)을 AI 업스케일한다.The AI upscale unit 234 may determine an upscale target of the second image 135 based on at least one of difference information and information related to the first image 115 included in the AI data. For example, the upscale target may indicate to what resolution the second image 135 should be upscaled. When the upscale target is determined, the AI upscale unit 234 AI upscales the second image 135 through the second DNN to obtain the third image 145 corresponding to the upscale target.

AI 업스케일부(234)가 업스케일 타겟에 맞춰 제 2 영상(135)을 AI 업스케일하는 방법을 설명하기에 앞서, 제 2 DNN을 통한 AI 업스케일 과정에 대해 도 3 및 도 4를 참조하여 설명한다.Before explaining how the AI upscale unit 234 AI upscales the second image 135 to match the upscale target, refer to FIGS. 3 and 4 for the AI upscale process through the second DNN. Explain.

도 3은 제 2 영상(135)의 AI 업스케일을 위한 제 2 DNN(300)을 나타내는 예시적인 도면이고, 도 4는 도 3에 도시된 제 1 컨볼루션 레이어(310)에서의 컨볼루션 연산을 도시하고 있다. FIG. 3 is an exemplary diagram showing the second DNN 300 for AI upscaling of the second image 135, and FIG. 4 shows the convolution operation in the first convolution layer 310 shown in FIG. 3. It is showing.

도 3에 도시된 바와 같이, 제 2 영상(135)은 제 1 컨볼루션 레이어(310)로 입력된다. 도 3에 도시된 제 1 컨볼루션 레이어(310)에 표시된 3X3X4는 3 x 3의 크기의 4개의 필터 커널을 이용하여 1개의 입력 영상에 대해 컨볼루션 처리를 하는 것을 예시한다. 컨볼루션 처리 결과 4개의 필터 커널에 의해 4개의 특징 맵이 생성된다. 각 특징 맵은 제 2 영상(135)의 고유한 특성들을 나타낸다. 예를 들어, 각 특징 맵은 제 2 영상(135)의 수직 방향 특성, 수평 방향 특성 또는 에지 특성 등을 나타낼 수 있다.As shown in FIG. 3, the second image 135 is input to the first convolution layer 310. The 3 As a result of convolution processing, four feature maps are generated by four filter kernels. Each feature map represents unique characteristics of the second image 135. For example, each feature map may represent vertical characteristics, horizontal characteristics, or edge characteristics of the second image 135.

도 4를 참조하여, 제 1 컨볼루션 레이어(310)에서의 컨볼루션 연산에 대해 상세히 설명한다.Referring to FIG. 4, the convolution operation in the first convolution layer 310 will be described in detail.

제 1 컨볼루션 레이어(310)에서 이용되는 3 X 3의 크기를 갖는 필터 커널(430)의 파라미터들과 그에 대응하는 제 2 영상(135) 내 픽셀 값들 사이의 곱 연산 및 덧셈 연산을 통해 하나의 특징 맵(450)이 생성될 수 있다. 제 1 컨볼루션 레이어(310)에서는 4개의 필터 커널이 이용되므로, 4개의 필터 커널을 이용한 컨볼루션 연산 과정을 통해 4개의 특징 맵이 생성될 수 있다.Through multiplication and addition operations between the parameters of the filter kernel 430 with a size of 3 A feature map 450 may be created. Since four filter kernels are used in the first convolution layer 310, four feature maps can be generated through a convolution operation process using four filter kernels.

도 4에서 제 2 영상(135)에 표시된 I1 내지 I49는 제 2 영상(135)의 픽셀들을 나타내고, 필터 커널(430)에 표시된 F1 내지 F9는 필터 커널(430)의 파라미터들을 나타낸다. 또한, 특징 맵(450)에 표시된 M1 내지 M9는 특징 맵(450)의 샘플들을 나타낸다. In FIG. 4 , I1 to I49 displayed in the second image 135 represent pixels of the second image 135, and F1 to F9 displayed in the filter kernel 430 represent parameters of the filter kernel 430. Additionally, M1 to M9 displayed in the feature map 450 represent samples of the feature map 450.

도 4는 제 2 영상(135)이 49개의 픽셀을 포함하는 것으로 예시하고 있으나, 이는 하나의 예시일 뿐이며, 제 2 영상(135)이 4K의 해상도를 갖는 경우, 예를 들어, 3840 X 2160개의 픽셀을 포함할 수 있다.Figure 4 illustrates that the second image 135 includes 49 pixels, but this is only an example. If the second image 135 has a resolution of 4K, for example, 3840 Can contain pixels.

컨볼루션 연산 과정에서, 제 2 영상(135)의 I1, I2, I3, I8, I9, I10, I15, I16, I17의 픽셀 값들 각각과 필터 커널(430)의 F1, F2, F3, F4, F5, F6, F7, F8 및 F9 각각의 곱 연산이 수행되고, 곱 연산의 결과 값들을 조합(예를 들어, 덧셈 연산)한 값이 특징 맵(450)의 M1의 값으로 할당될 수 있다. 컨볼루션 연산의 스트라이드(stride)가 2라면, 제 2 영상(135)의 I3, I4, I5, I10, I11, I12, I17, I18, I19의 픽셀 값들 각각과 필터 커널(430)의 F1, F2, F3, F4, F5, F6, F7, F8 및 F9 각각의 곱 연산이 수행되고, 곱 연산의 결과 값들을 조합한 값이 특징 맵(450)의 M2의 값으로 할당될 수 있다.In the convolution operation process, pixel values of I1, I2, I3, I8, I9, I10, I15, I16, and I17 of the second image 135 and F1, F2, F3, F4, and F5 of the filter kernel 430 , F6, F7, F8, and F9, each multiplication operation is performed, and a value obtained by combining the result values of the multiplication operation (for example, an addition operation) may be assigned as the value of M1 of the feature map 450. If the stride of the convolution operation is 2, each of the pixel values of I3, I4, I5, I10, I11, I12, I17, I18, and I19 of the second image 135 and F1 and F2 of the filter kernel 430 , F3, F4, F5, F6, F7, F8, and F9 are each multiplied, and a value obtained by combining the resulting values of the multiplication operation may be assigned as the value of M2 of the feature map 450.

필터 커널(430)이 제 2 영상(135)의 마지막 픽셀에 도달할 때까지 스트라이드에 따라 이동하는 동안 제 2 영상(135) 내 픽셀 값들과 필터 커널(430)의 파라미터들 사이의 컨볼루션 연산이 수행됨으로써, 소정 크기를 갖는 특징 맵(450)이 획득될 수 있다.While the filter kernel 430 moves according to the stride until it reaches the last pixel of the second image 135, a convolution operation is performed between the pixel values in the second image 135 and the parameters of the filter kernel 430. By performing this, a feature map 450 having a predetermined size can be obtained.

본 개시에 따르면, 제 1 DNN과 제 2 DNN의 연계 훈련을 통해 제 2 DNN의 파라미터들, 예를 들어, 제 2 DNN의 컨볼루션 레이어들에서 이용되는 필터 커널의 파라미터들(예를 들어, 필터 커널(430)의 F1, F2, F3, F4, F5, F6, F7, F8 및 F9)의 값이 최적화될 수 있다. 전술한 바와 같이, AI 업스케일부(234)는 AI 데이터에 기초하여, 제 1 DNN의 다운스케일 타겟에 대응하는 업스케일 타겟을 결정하고, 결정된 업스케일 타겟에 대응하는 파라미터들을 제 2 DNN의 컨볼루션 레이어들에서 이용되는 필터 커널의 파라미터들로 결정할 수 있다.According to the present disclosure, through joint training of the first DNN and the second DNN, the parameters of the second DNN, for example, the parameters of the filter kernel used in the convolutional layers of the second DNN (e.g., the filter The values of F1, F2, F3, F4, F5, F6, F7, F8, and F9) of kernel 430 may be optimized. As described above, the AI upscale unit 234 determines an upscale target corresponding to the downscale target of the first DNN based on the AI data, and sets the parameters corresponding to the determined upscale target to the convolution of the second DNN. It can be determined by the parameters of the filter kernel used in the solution layers.

제 1 DNN 및 제 2 DNN에 포함된 컨볼루션 레이어들은 도 4와 관련하여 설명한 컨볼루션 연산 과정에 따른 처리를 할 수 있으나, 도 4에서 설명한 컨볼루션 연산 과정은 하나의 예시일 뿐이며, 이에 한정되는 것은 아니다.The convolution layers included in the first DNN and the second DNN can be processed according to the convolution operation process described in relation to FIG. 4, but the convolution operation process described in FIG. 4 is only an example and is limited thereto. That is not the case.

다시 도 3을 참조하면, 제 1 컨볼루션 레이어(310)에서 출력된 특징 맵들은 제 1 활성화 레이어(320)로 입력된다. Referring again to FIG. 3, the feature maps output from the first convolution layer 310 are input to the first activation layer 320.

제 1 활성화 레이어(320)는 각각의 특징 맵에 대해 비선형(Non-linear) 특성을 부여할 수 있다. 제 1 활성화 레이어(320)는 시그모이드 함수(sigmoid function), Tanh 함수, ReLU(Rectified Linear Unit) 함수 등을 포함할 수 있으나, 이에 한정되는 것은 아니다.The first activation layer 320 may provide non-linear characteristics to each feature map. The first activation layer 320 may include, but is not limited to, a sigmoid function, a Tanh function, and a Rectified Linear Unit (ReLU) function.

제 1 활성화 레이어(320)에서 비선형 특성을 부여하는 것은, 제 1 컨볼루션 레이어(310)의 출력인, 특징 맵의 일부 샘플 값을 변경하여 출력하는 것을 의미한다. 이때, 변경은 비선형 특성을 적용하여 수행된다.Giving nonlinear characteristics in the first activation layer 320 means changing and outputting some sample values of the feature map, which is the output of the first convolution layer 310. At this time, the change is performed by applying non-linear characteristics.

제 1 활성화 레이어(320)는 제 1 컨볼루션 레이어(310)로부터 출력되는 특징 맵들의 샘플 값들을 제 2 컨볼루션 레이어(330)로 전달할지 여부를 결정한다. 예를 들어, 특징 맵들의 샘플 값들 중 어떤 샘플 값들은 제 1 활성화 레이어(320)에 의해 활성화되어 제 2 컨볼루션 레이어(330)로 전달되고, 어떤 샘플 값들은 제 1 활성화 레이어(320)에 의해 비활성화되어 제 2 컨볼루션 레이어(330)로 전달되지 않는다. 특징 맵들이 나타내는 제 2 영상(135)의 고유 특성이 제 1 활성화 레이어(320)에 의해 강조된다.The first activation layer 320 determines whether to transfer sample values of feature maps output from the first convolution layer 310 to the second convolution layer 330. For example, some sample values of the feature maps are activated by the first activation layer 320 and transmitted to the second convolution layer 330, and some sample values are activated by the first activation layer 320. It is deactivated and is not transmitted to the second convolution layer 330. Unique characteristics of the second image 135 indicated by the feature maps are emphasized by the first activation layer 320.

제 1 활성화 레이어(320)에서 출력된 특징 맵들(325)은 제 2 컨볼루션 레이어(330)로 입력된다. 도 3에 도시된 특징 맵들(325) 중 어느 하나는 도 4와 관련하여 설명한 특징 맵(450)이 제 1 활성화 레이어(320)에서 처리된 결과이다. The feature maps 325 output from the first activation layer 320 are input to the second convolution layer 330. One of the feature maps 325 shown in FIG. 3 is a result of the feature map 450 described with reference to FIG. 4 processed in the first activation layer 320.

제 2 컨볼루션 레이어(330)에 표시된 3X3X4는 3 x 3의 크기의 4개의 필터 커널을 이용하여 입력된 특징 맵들(325)에 대해 컨볼루션 처리하는 것을 예시한다. 제 2 컨볼루션 레이어(330)의 출력은 제 2 활성화 레이어(340)로 입력된다. 제 2 활성화 레이어(340)는 입력 데이터에 대해 비선형 특성을 부여할 수 있다.3 The output of the second convolution layer 330 is input to the second activation layer 340. The second activation layer 340 may provide non-linear characteristics to input data.

제 2 활성화 레이어(340)에서 출력된 특징 맵들(345)은 제 3 컨볼루션 레이어(350)로 입력된다. 도 3에 도시된 제 3 컨볼루션 레이어(350)에 표시된 3X3X1는 3 x 3의 크기의 1개의 필터 커널을 이용하여 1개의 출력 영상을 만들기 위해 컨볼루션 처리를 하는 것을 예시한다. 제 3 컨볼루션 레이어(350)는 최종 영상을 출력하기 위한 레이어로서 1개의 필터 커널을 이용하여 1개의 출력을 생성한다. 본 개시의 예시에 따르면, 제 3 컨볼루션 레이어(350)는 컨벌루션 연산 결과를 통해 제 3 영상(145)을 출력할 수 있다.The feature maps 345 output from the second activation layer 340 are input to the third convolution layer 350. 3X3X1 shown in the third convolution layer 350 shown in FIG. 3 illustrates convolution processing to create one output image using one filter kernel of size 3 The third convolution layer 350 is a layer for outputting the final image and generates one output using one filter kernel. According to the example of the present disclosure, the third convolution layer 350 may output the third image 145 through the result of the convolution operation.

제 2 DNN(300)의 제 1 컨볼루션 레이어(310), 제 2 컨볼루션 레이어(330) 및 제 3 컨볼루션 레이어(350)의 필터 커널의 개수, 필터 커널의 파라미터 등을 나타내는 DNN 설정 정보는 후술하는 바와 같이 복수 개일 수 있는데, 복수의 DNN 설정 정보는 제 1 DNN의 복수의 DNN 설정 정보와 연계되어야 한다. 제 2 DNN의 복수의 DNN 설정 정보와 제 1 DNN의 복수의 DNN 설정 정보 사이의 연계는, 제 1 DNN 및 제 2 DNN의 연계 학습을 통해 구현될 수 있다. DNN setting information indicating the number of filter kernels, filter kernel parameters, etc. of the first convolution layer 310, second convolution layer 330, and third convolution layer 350 of the second DNN 300 is As will be described later, there may be a plurality of DNNs, and the plurality of DNN configuration information must be linked to the plurality of DNN configuration information of the first DNN. Linkage between the plurality of DNN configuration information of the second DNN and the plurality of DNN configuration information of the first DNN may be implemented through linked learning of the first DNN and the second DNN.

도 3은 제 2 DNN(300)이 세 개의 컨볼루션 레이어(310, 330, 350)와 두 개의 활성화 레이어(320, 340)를 포함하고 있는 것으로 도시하고 있으나, 이는 하나의 예시일 뿐이며, 구현예에 따라서, 컨볼루션 레이어 및 활성화 레이어의 개수는 다양하게 변경될 수 있다. 또한, 구현예에 따라서, 제 2 DNN(300)은 RNN(recurrent neural network)을 통해 구현될 수도 있다. 이 경우는 본 개시의 예시에 따른 제 2 DNN(300)의 CNN 구조를 RNN 구조로 변경하는 것을 의미한다.Figure 3 shows that the second DNN (300) includes three convolutional layers (310, 330, 350) and two activation layers (320, 340), but this is only an example and an implementation example. Depending on this, the number of convolutional layers and activation layers can be changed in various ways. Additionally, depending on the implementation, the second DNN 300 may be implemented through a recurrent neural network (RNN). In this case, it means changing the CNN structure of the second DNN 300 according to the example of the present disclosure to the RNN structure.

일 실시예에서, AI 업스케일부(234)는 전술한 컨볼루션 연산 및 활성화 레이어의 연산을 위한 적어도 하나의 ALU(Arithmetic logic unit)를 포함할 수 있다. ALU는 프로세서로 구현될 수 있다. 컨볼루션 연산을 위해, ALU는 제 2 영상(135) 또는 이전 레이어에서 출력된 특징 맵의 샘플 값들과 필터 커널의 샘플 값들 사이의 곱 연산을 수행하는 곱셈기 및 곱셈의 결과 값들을 더하는 가산기를 포함할 수 있다. 또한, 활성화 레이어의 연산을 위해, ALU는 미리 결정된 시그모이드 함수, Tanh 함수 또는 ReLU 함수 등에서 이용되는 가중치를 입력된 샘플 값에 곱하는 곱셈기, 및 곱한 결과와 소정 값을 비교하여 입력된 샘플 값을 다음 레이어로 전달할지를 판단하는 비교기를 포함할 수 있다.In one embodiment, the AI upscale unit 234 may include at least one Arithmetic logic unit (ALU) for the above-described convolution operation and activation layer operation. ALU can be implemented as a processor. For the convolution operation, the ALU may include a multiplier that performs a multiplication operation between sample values of the feature map output from the second image 135 or the previous layer and sample values of the filter kernel, and an adder that adds the resultant values of the multiplication. You can. In addition, for the operation of the activation layer, the ALU uses a multiplier that multiplies the input sample value by a weight used in a predetermined sigmoid function, Tanh function, or ReLU function, and compares the multiplication result with a predetermined value to determine the input sample value. It may include a comparator that determines whether to pass on to the next layer.

이하에서, AI 업스케일부(234)가 업스케일 타겟에 맞춰 제 2 영상(135)을 AI 업스케일하는 방법을 설명한다.Below, a method by which the AI upscale unit 234 AI upscales the second image 135 to match the upscale target will be described.

일 실시예에서, AI 업스케일부(234)는 제 2 DNN에 세팅 가능한 복수의 DNN 설정 정보를 저장할 수 있다.In one embodiment, the AI upscale unit 234 may store a plurality of DNN setting information that can be set in the second DNN.

여기서, DNN 설정 정보는 제 2 DNN에 포함되는 컨볼루션 레이어의 수, 컨볼루션 레이어별 필터 커널의 개수 및 각 필터 커널의 파라미터 중 적어도 하나에 대한 정보를 포함할 수 있다. 복수의 DNN 설정 정보는 다양한 업스케일 타겟에 각각 대응될 수 있으며, 특정 업스케일 타겟에 대응되는 DNN 설정 정보에 기반하여 제 2 DNN이 동작할 수 있다. DNN 설정 정보에 따라 제 2 DNN이 서로 다른 구조를 가질 수 있다. 예를 들어, 어느 DNN 설정 정보에 따라 제 2 DNN이 3개의 컨볼루션 레이어를 포함할 수 있고, 다른 DNN 설정 정보에 따라 제 2 DNN이 4개의 컨볼루션 레이어를 포함할 수 있다.Here, the DNN configuration information may include information about at least one of the number of convolutional layers included in the second DNN, the number of filter kernels for each convolutional layer, and the parameters of each filter kernel. A plurality of DNN configuration information may each correspond to various upscale targets, and the second DNN may operate based on DNN configuration information corresponding to a specific upscale target. The second DNN may have a different structure depending on the DNN configuration information. For example, depending on some DNN configuration information, the second DNN may include three convolutional layers, and depending on other DNN configuration information, the second DNN may include four convolutional layers.

일 실시예에서, DNN 설정 정보는 제 2 DNN에서 사용되는 필터 커널의 파라미터만을 포함할 수도 있다. 이 경우, 제 2 DNN의 구조는 변경되지 않는 대신, DNN 설정 정보에 따라 내부의 필터 커널의 파라미터만이 달라질 수 있다.In one embodiment, the DNN configuration information may include only parameters of the filter kernel used in the second DNN. In this case, the structure of the second DNN is not changed, but only the parameters of the internal filter kernel may vary depending on the DNN configuration information.

AI 업스케일부(234)는 복수의 DNN 설정 정보 중 제 2 영상(135)의 AI 업스케일을 위한 DNN 설정 정보를 획득할 수 있다. 여기서 사용되는 복수의 DNN 설정 정보 각각은 미리 결정된 해상도 및/또는 미리 결정된 화질의 제 3 영상(145)을 획득하기 위한 정보로, 제 1 DNN과 연계하여 훈련된 것이다. The AI upscaling unit 234 may obtain DNN setting information for AI upscaling of the second image 135 from among a plurality of DNN setting information. Each of the plurality of DNN setting information used here is information for acquiring the third image 145 of a predetermined resolution and/or predetermined image quality, and is trained in conjunction with the first DNN.

예를 들어, 복수의 DNN 설정 정보 중 어느 하나의 DNN 설정 정보는 제 2 영상(135)의 해상도보다 2배 큰 해상도의 제 3 영상(145), 예를 들어, 2K (2048*1080)의 제 2 영상(135)보다 2배 큰 4K(4096*2160)의 제 3 영상(145)을 획득하기 위한 정보들을 포함할 수 있고, 다른 하나의 DNN 설정 정보는 제 2 영상(135)의 해상도보다 4배 큰 해상도의 제 3 영상(145), 예를 들어, 2K (2048*1080)의 제 2 영상(135)보다 4배 큰 8K(8192*4320)의 제 3 영상(145)을 획득하기 위한 정보들을 포함할 수 있다. For example, any one of the plurality of DNN setting information may be a third image 145 with a resolution twice as large as that of the second image 135, for example, a second image of 2K (2048*1080). It may include information for acquiring the third image 145 of 4K (4096*2160), which is twice as large as the second image 135, and the other DNN setting information is 4K resolution higher than the resolution of the second image 135. Information for acquiring the third image 145 of twice the resolution, for example, the third image 145 of 8K (8192*4320), which is 4 times larger than the second image 135 of 2K (2048*1080). may include.

복수의 DNN 설정 정보 각각은 AI 부호화 장치(600)의 제 1 DNN의 DNN 설정 정보와 연계되어 만들어진 것이며, AI 업스케일부(234)는 제 1 DNN의 DNN 설정 정보의 축소 비율에 대응되는 확대 비율에 따라 복수의 DNN 설정 정보 중 하나의 DNN 설정 정보를 획득한다. 이를 위해, AI 업스케일부(234)는 제 1 DNN의 정보를 확인하여야 한다. 제 1 DNN의 정보를 AI 업스케일부(234)가 확인하기 위해, 일 실시예에 따른 AI 복호화 장치(200)는 AI 부호화 장치(600)로부터 제 1 DNN의 정보를 포함하는 AI 데이터를 수신한다. Each of the plurality of DNN setting information is created in connection with the DNN setting information of the first DNN of the AI encoding device 600, and the AI upscale unit 234 has an enlargement ratio corresponding to the reduction ratio of the DNN setting information of the first DNN. Accordingly, one DNN setting information among a plurality of DNN setting information is acquired. For this purpose, the AI upscale unit 234 must check the information of the first DNN. In order for the AI upscale unit 234 to confirm the information of the first DNN, the AI decoding device 200 according to an embodiment receives AI data including information of the first DNN from the AI encoding device 600. .

다시 말하면, AI 업스케일부(234)는 AI 부호화 장치(600)로부터 수신되는 정보들을 이용하여, 제 1 영상(115)을 획득하기 위해 이용된 제 1 DNN의 DNN 설정 정보가 타겟하는 정보를 확인하고, 그와 연계 훈련된 제 2 DNN의 DNN 설정 정보를 획득할 수 있는 것이다.In other words, the AI upscale unit 234 uses the information received from the AI encoding device 600 to confirm the information targeted by the DNN setting information of the first DNN used to obtain the first image 115. And, it is possible to obtain DNN setting information of the second DNN trained in conjunction with it.

복수의 DNN 설정 정보 중 제 2 영상(135)의 AI 업스케일을 위한 DNN 설정 정보가 획득되면, 획득된 DNN 설정 정보에 따라 동작하는 제 2 DNN에 기초하여 입력 데이터가 처리될 수 있다.When DNN setting information for AI upscaling of the second image 135 among the plurality of DNN setting information is obtained, input data may be processed based on the second DNN operating according to the obtained DNN setting information.

예를 들어, 어느 하나의 DNN 설정 정보가 획득되면, 도 3에 도시된 제 2 DNN(300)의 제 1 컨볼루션 레이어(310), 제 2 컨볼루션 레이어(330) 및 제 3 컨볼루션 레이어(350) 각각에 대해서, 각 레이어에 포함되는 필터 커널의 개수와 필터 커널의 파라미터들을, 상기 획득된 DNN 설정 정보에 포함된 값으로 설정한다.For example, when one DNN setting information is acquired, the first convolution layer 310, the second convolution layer 330, and the third convolution layer ( 350) For each, the number of filter kernels included in each layer and the parameters of the filter kernel are set to the values included in the obtained DNN configuration information.

구체적으로, 도 4에 도시된 제 2 DNN의 어느 하나의 컨볼루션 레이어에서 이용되는 3 X 3의 필터 커널의 파라미터들이 {1, 1, 1, 1, 1, 1, 1, 1, 1}로 세팅되도록 하고, 이후 DNN 설정 정보의 변경이 있는 경우, 이를 변경된 DNN 설정 정보에 포함된 파라미터들인 {2, 2, 2, 2, 2, 2, 2, 2, 2}로 교체할 수 있는 것이다.Specifically, the parameters of the 3 It is set, and if there is a change in the DNN setting information later, it can be replaced with {2, 2, 2, 2, 2, 2, 2, 2, 2}, which are parameters included in the changed DNN setting information.

AI 업스케일부(234)는 AI 데이터에 포함된 정보에 기초하여 복수의 DNN 설정 정보 중 제 2 영상(135)을 업스케일하기 위한 DNN 설정 정보를 획득할 수 있는데, DNN 설정 정보를 획득하는데 이용되는 AI 데이터에 대해 구체적으로 설명한다. The AI upscaling unit 234 can obtain DNN setting information for upscaling the second image 135 among a plurality of DNN setting information based on the information included in the AI data, and is used to obtain the DNN setting information. AI data that is used is explained in detail.

일 실시예에서, AI 업스케일부(234)는 AI 데이터에 포함된 차이 정보에 기초하여, 복수의 DNN 설정 정보 중 제 2 영상(135)을 업스케일하기 위한 DNN 설정 정보를 획득할 수 있다. 예를 들어, 차이 정보에 기초하여 원본 영상(105)의 해상도(예를 들어, 4K(4096*2160))가 제 1 영상(115)의 해상도(예를 들어, 2K (2048*1080))보다 2배 큰 것으로 확인된 경우, AI 업스케일부(234)는 제 2 영상(135)의 해상도를 2배 증가시킬 수 있는 DNN 설정 정보를 획득할 수 있다.In one embodiment, the AI upscaling unit 234 may obtain DNN setting information for upscaling the second image 135 among a plurality of DNN setting information based on difference information included in AI data. For example, based on the difference information, the resolution of the original image 105 (e.g., 4K (4096*2160)) is higher than the resolution of the first image 115 (e.g., 2K (2048*1080)). If it is confirmed to be twice as large, the AI upscale unit 234 can obtain DNN setting information that can increase the resolution of the second image 135 by two times.

다른 실시예에서, AI 업스케일부(234)는 AI 데이터에 포함된 제 1 영상(115) 관련 정보에 기초하여, 복수의 DNN 설정 정보 중 제 2 영상(135)을 AI 업스케일하기 위한 DNN 설정 정보를 획득할 수 있다. AI 업스케일부(234)는 영상 관련 정보들과 DNN 설정 정보들 사이의 매핑 관계를 미리 결정하고, 제 1 영상(115) 관련 정보에 매핑된 DNN 설정 정보를 획득할 수 있다.In another embodiment, the AI upscale unit 234 sets a DNN to AI upscale the second image 135 among a plurality of DNN setting information based on information related to the first image 115 included in the AI data. Information can be obtained. The AI upscale unit 234 may predetermine a mapping relationship between image-related information and DNN setting information and obtain DNN setting information mapped to information related to the first image 115.

도 5는 여러 영상 관련 정보들과 여러 DNN 설정 정보들 사이의 매핑 관계를 나타내는 예시적인 도면이다.Figure 5 is an exemplary diagram showing the mapping relationship between various image-related information and various DNN setting information.

도 5에 따른 실시예를 통해, 본 개시의 일 실시예의 AI 부호화/AI 복호화 과정은 해상도의 변화만을 고려하는 것이 아님을 알 수 있다. 도 5에 도시된 바와 같이, SD, HD, Full HD와 같은 해상도, 10Mbps, 15Mbps, 20Mbps와 같은 비트레이트, 그리고 AV1, H.264, HEVC와 같은 코덱 정보를 개별적으로 또는 모두 고려하여 DNN 설정 정보의 선택이 이루어질 수 있다. 이러한 고려를 위해서는 AI 훈련 과정에서 각각의 요소들을 고려한 훈련이 부호화, 복호화 과정에 연계되어 이루어져야 한다(도 9 참조).Through the embodiment according to FIG. 5, it can be seen that the AI encoding/AI decoding process of an embodiment of the present disclosure does not only consider changes in resolution. As shown in Figure 5, DNN setting information is provided by individually or all considering resolutions such as SD, HD, and Full HD, bitrates such as 10Mbps, 15Mbps, and 20Mbps, and codec information such as AV1, H.264, and HEVC. A choice can be made. To take this into account, training that considers each element in the AI training process must be conducted in conjunction with the encoding and decoding processes (see Figure 9).

따라서, 훈련 내용에 따라서 도 5에 도시된 바와 같이, 코덱 타입, 영상의 해상도 등을 포함하는 영상 관련 정보에 기반하여 복수의 DNN 설정 정보가 구비된 경우, AI 복호화 과정에서 전달받는 제 1 영상(115) 관련 정보에 기반하여 제 2 영상(135)의 AI 업스케일을 위한 DNN 설정 정보를 획득할 수 있다.Therefore, according to the training content, as shown in FIG. 5, when a plurality of DNN setting information is provided based on image-related information including codec type, image resolution, etc., the first image received in the AI decoding process ( 115) DNN setting information for AI upscaling of the second image 135 can be obtained based on the related information.

즉, AI 업스케일부(234)는 도 5에 도시된 표의 좌측에 도시된 영상 관련 정보와 표 우측의 DNN 설정 정보를 매칭하고 있음으로써, 영상 관련 정보에 따른 DNN 설정 정보를 사용할 수 있는 것이다.That is, the AI upscale unit 234 matches the image-related information shown on the left side of the table shown in FIG. 5 with the DNN setting information on the right side of the table, so that it can use DNN setting information according to the image-related information.

도 5에 예시된 바와 같이, 제 1 영상(115) 관련 정보로부터 제 1 영상(115)의 해상도가 SD이고, 제 1 영상(115)의 제 1 부호화 결과 획득된 영상 데이터의 비트레이트가 10Mbps이고, 제 1 영상(115)이 AV1 코덱으로 제 1 부호화된 것으로 확인되면, AI 업스케일부(234)는 복수의 DNN 설정 정보 중 A DNN 설정 정보를 사용할 수 있다. As illustrated in FIG. 5, from the information related to the first image 115, the resolution of the first image 115 is SD, and the bit rate of the image data obtained as a result of the first encoding of the first image 115 is 10 Mbps. , If it is confirmed that the first image 115 is first encoded with the AV1 codec, the AI upscale unit 234 may use A DNN setting information among a plurality of DNN setting information.

또한, 제 1 영상(115) 관련 정보로부터 제 1 영상(115)의 해상도가 HD이고, 제 1 부호화 결과 획득된 영상 데이터의 비트레이트가 15Mbps이고, 제 1 영상(115)이 H.264 코덱으로 제 1 부호화된 것으로 확인되면, AI 업스케일부(234)는 복수의 DNN 설정 정보 중 B DNN 설정 정보를 사용할 수 있다. In addition, from the information related to the first image 115, the resolution of the first image 115 is HD, the bit rate of the image data obtained as a result of the first encoding is 15Mbps, and the first image 115 is encoded with the H.264 codec. If it is confirmed that it has been first encoded, the AI upscale unit 234 can use the B DNN setting information among the plurality of DNN setting information.

또한, 제 1 영상(115) 관련 정보로부터 제 1 영상(115)의 해상도가 Full HD이고, 제 1 영상(115)의 제 1 부호화 결과 획득된 영상 데이터의 비트레이트가 20Mbps이고, 제 1 영상(115)이 HEVC 코덱으로 제 1 부호화된 것으로 확인되면, AI 업스케일부(234)는 복수의 DNN 설정 정보 중 C DNN 설정 정보를 사용하고, 제 1 영상(115)의 해상도가 Full HD이고, 제 1 영상(115)의 제 1 부호화 결과 획득된 영상 데이터의 비트레이트가 15Mbps이고, 제 1 영상(115)이 HEVC 코덱으로 제 1 부호화된 것으로 확인되면, AI 업스케일부(234)는 복수의 DNN 설정 정보 중 D DNN 설정 정보를 사용할 수 있다. 제 1 영상(115)의 제 1 부호화 결과 획득된 영상 데이터의 비트레이트가 20Mbps인지 또는 15Mbps인지에 따라 C DNN 설정 정보와 D DNN 설정 정보 중에서 어느 하나가 선택된다. 동일 해상도의 제 1 영상(115)을 동일 코덱으로 제 1 부호화하였을 때, 영상 데이터의 비트레이트가 서로 상이하다는 것은, 복원되는 영상의 화질이 서로 상이하다는 것을 의미한다. 따라서, 제 1 DNN과 제 2 DNN은 소정 화질에 기반하여 연계 훈련될 수 있으며, 이에 따라 AI 업스케일부(234)는 제 2 영상(135)의 화질을 나타내는, 영상 데이터의 비트레이트에 따라 DNN 설정 정보를 획득할 수 있다.In addition, from the information related to the first image 115, the resolution of the first image 115 is Full HD, the bit rate of the image data obtained as a result of the first encoding of the first image 115 is 20Mbps, and the first image ( If 115) is confirmed to be first encoded with the HEVC codec, the AI upscale unit 234 uses the C DNN setting information among the plurality of DNN setting information, the resolution of the first image 115 is Full HD, and the 1 If the bit rate of the image data obtained as a result of the first encoding of the image 115 is 15 Mbps and the first image 115 is confirmed to be first encoded with the HEVC codec, the AI upscale unit 234 uses a plurality of DNNs Among the setting information, D DNN setting information can be used. One of the C DNN setting information and the D DNN setting information is selected depending on whether the bit rate of the image data obtained as a result of the first encoding of the first image 115 is 20 Mbps or 15 Mbps. When the first image 115 of the same resolution is first encoded with the same codec, the bit rates of the image data are different, which means that the image quality of the restored images is different. Therefore, the first DNN and the second DNN can be trained in conjunction based on a predetermined image quality, and accordingly, the AI upscale unit 234 trains the DNN according to the bitrate of the image data, which represents the image quality of the second image 135. Setting information can be obtained.

또 다른 실시예에서, AI 업스케일부(234)는 제 1 복호화부(232)로부터 제공되는 정보(예측 모드 정보, 움직임 정보, 양자화 파라미터 정보 등)와 AI 데이터에 포함된 제 1 영상(115) 관련 정보를 모두 고려하여 복수의 DNN 설정 정보 중 제 2 영상(135)을 AI 업스케일하기 위한 DNN 설정 정보를 획득할 수도 있다. 예를 들어, AI 업스케일부(234)는 제 1 복호화부(232)로부터 제 1 영상(115)의 제 1 부호화 과정에서 이용된 양자화 파라미터 정보를 전달받고, AI 데이터로부터 제 1 영상(115)의 부호화 결과 획득된 영상 데이터의 비트레이트를 확인하고, 양자화 파라미터 및 비트레이트에 대응하는 DNN 설정 정보를 획득할 수도 있다. 동일한 비트레이트라도 영상의 복잡도에 따라 복원 영상의 화질 정도에 차이가 있을 수 있으며, 비트레이트는 제 1 부호화되는 제 1 영상(115) 전체를 대표하는 값으로서 제 1 영상(115) 내에서도 각 프레임의 화질이 서로 다를 수 있다. 따라서, 제 1 복호화부(232)로부터 각 프레임 별로 획득할 수 있는 예측 모드 정보, 움직임 정보 및/또는 양자화 파라미터를 함께 고려하면, AI 데이터만 이용하는 것에 비해 제 2 영상(135)에 보다 적합한 DNN 설정 정보를 획득할 수 있다. In another embodiment, the AI upscale unit 234 uses information provided from the first decoder 232 (prediction mode information, motion information, quantization parameter information, etc.) and the first image 115 included in the AI data. Considering all related information, DNN setting information for AI upscaling of the second image 135 from among the plurality of DNN setting information may be obtained. For example, the AI upscale unit 234 receives quantization parameter information used in the first encoding process of the first image 115 from the first decoder 232, and converts the first image 115 from the AI data. It is also possible to check the bitrate of the image data obtained as a result of encoding and obtain DNN setting information corresponding to the quantization parameters and bitrate. Even if the bit rate is the same, there may be differences in the quality of the restored image depending on the complexity of the image. The bit rate is a value representing the entire first image 115 to be encoded, and is the value of each frame within the first image 115. Image quality may vary. Therefore, considering the prediction mode information, motion information, and/or quantization parameters that can be obtained for each frame from the first decoder 232, a DNN setting more suitable for the second image 135 compared to using only AI data Information can be obtained.

또한, 구현예에 따라, AI 데이터는 상호 약속된 DNN 설정 정보의 식별자를 포함할 수 있다. DNN 설정 정보의 식별자는, 제 1 DNN의 다운스케일 타겟에 대응하는 업스케일 타겟으로, 제 2 영상(135)을 AI 업스케일할 수 있도록, 제 1 DNN과 제 2 DNN 간 연계 훈련된 DNN 설정 정보의 쌍을 구분하기 위한 정보이다. AI 업스케일부(234)는 AI 데이터에 포함된 DNN 설정 정보의 식별자를 획득한 후, DNN 설정 정보의 식별자에 대응하는 DNN 설정 정보를 사용하여 제 2 영상(135)을 AI 업스케일할 수 있다. 예를 들어, 제 1 DNN에 설정 가능한 복수의 DNN 설정 정보 각각을 가리키는 식별자와 제 2 DNN에 설정 가능한 복수의 DNN 설정 정보 각각을 가리키는 식별자가 미리 지정되어 있을 수 있다. 이 경우, 제 1 DNN 및 제 2 DNN 각각에 설정 가능한 DNN 설정 정보의 쌍에 대해 동일한 식별자가 지정될 수 있다. AI 데이터는 원본 영상(105)의 AI 다운스케일을 위해 제 1 DNN에 설정된 DNN 설정 정보의 식별자를 포함할 수 있다. AI 데이터를 수신한 AI 업스케일부(234)는 복수의 DNN 설정 정보 중 AI 데이터에 포함된 식별자가 가리키는 DNN 설정 정보를 이용하여 제 2 영상(135)을 AI 업스케일할 수 있다.Additionally, depending on the implementation, AI data may include an identifier of mutually promised DNN setting information. The identifier of the DNN setting information is an upscale target corresponding to the downscale target of the first DNN, and is DNN setting information trained in conjunction between the first DNN and the second DNN to AI upscale the second image 135. This is information to distinguish between pairs. After obtaining the identifier of the DNN setting information included in the AI data, the AI upscaling unit 234 can AI upscale the second image 135 using the DNN setting information corresponding to the identifier of the DNN setting information. . For example, an identifier indicating each of a plurality of DNN setting information configurable in the first DNN and an identifier indicating each of a plurality of DNN setting information configurable in the second DNN may be pre-designated. In this case, the same identifier may be designated for each pair of DNN setting information that can be set for each of the first DNN and the second DNN. The AI data may include an identifier of DNN setting information set in the first DNN for AI downscaling of the original image 105. The AI upscaling unit 234, which has received the AI data, may AI upscale the second image 135 using DNN setting information indicated by an identifier included in the AI data among a plurality of DNN setting information.

또한, 구현예에 따라, AI 데이터는 DNN 설정 정보를 포함할 수도 있다. AI 업스케일부(234)는 AI 데이터에 포함된 DNN 설정 정보를 획득한 후, 해당 DNN 설정 정보를 사용하여 제 2 영상(135)을 AI 업스케일할 수도 있다.Additionally, depending on the implementation, AI data may include DNN setting information. The AI upscaling unit 234 may obtain DNN setting information included in AI data and then AI upscale the second image 135 using the DNN setting information.

구현예에 따라, DNN 설정 정보를 구성하는 정보들(예를 들어, 컨볼루션 레이어의 수, 컨볼루션 레이어별 필터 커널의 개수, 각 필터 커널의 파라미터 등)들이 룩업 테이블 형태로 저장되어 있는 경우, AI 업스케일부(234)는 AI 데이터에 포함된 정보에 기초하여 룩업 테이블 값들 중에서 선택된 일부를 조합하여 DNN 설정 정보를 획득하고, 획득된 DNN 설정 정보를 사용하여 제 2 영상(135)을 AI 업스케일할 수도 있다.Depending on the implementation, if the information constituting the DNN setting information (e.g., the number of convolution layers, the number of filter kernels for each convolution layer, the parameters of each filter kernel, etc.) is stored in the form of a lookup table, The AI upscale unit 234 obtains DNN setting information by combining some of the lookup table values based on the information included in the AI data, and AI upscales the second image 135 using the obtained DNN setting information. It can also be scaled.

구현예에 따라, AI 업스케일부(234)는 업스케일 타겟에 대응되는 DNN의 구조가 결정되면, 결정된 DNN의 구조에 대응하는 DNN 설정 정보, 예를 들어, 필터 커널의 파라미터들을 획득할 수도 있다.Depending on the implementation, when the structure of the DNN corresponding to the upscale target is determined, the AI upscale unit 234 may obtain DNN setting information corresponding to the determined structure of the DNN, for example, parameters of the filter kernel. .

AI 업스케일부(234)는 제 1 DNN과 관련된 정보를 포함하는 AI 데이터를 통해 제 2 DNN의 DNN 설정 정보를 획득하고, 획득된 DNN 설정 정보로 세팅된 제 2 DNN을 통해 제 2 영상(135)을 AI 업스케일하는 데, 이는, 제 2 영상(135)의 특징을 직접 분석하여 업스케일하는 것과 비교하여 메모리 사용량과 연산량이 감소될 수 있다.The AI upscale unit 234 acquires DNN setting information of the second DNN through AI data including information related to the first DNN, and outputs the second image (135) through the second DNN set with the obtained DNN setting information. ) is AI upscaled, which can reduce memory usage and computation compared to upscaling by directly analyzing the characteristics of the second image 135.

일 실시예에서, 제 2 영상(135)이 복수의 프레임으로 구성된 경우, AI 업스케일부(234)는 소정 개수의 프레임 별로 DNN 설정 정보를 독립적으로 획득할 수 있고, 또는, 전체 프레임에 대해 공통된 DNN 설정 정보를 획득할 수도 있다.In one embodiment, when the second image 135 consists of a plurality of frames, the AI upscale unit 234 may independently obtain DNN setting information for each predetermined number of frames, or may provide common information for all frames. DNN configuration information can also be obtained.

도 6은 복수의 프레임으로 구성된 제 2 영상(135)을 도시하는 도면이다.FIG. 6 is a diagram illustrating a second image 135 composed of a plurality of frames.

도 6에 도시된 바와 같이, 제 2 영상(135)은 t0 내지 tn에 대응하는 프레임들로 이루어질 수 있다.As shown in FIG. 6, the second image 135 may be composed of frames corresponding to t0 to tn.

일 예시에서, AI 업스케일부(234)는 AI 데이터를 통해 제 2 DNN의 DNN 설정 정보를 획득하고, 획득한 DNN 설정 정보에 기초하여 t0 내지 tn에 대응하는 프레임들을 AI 업스케일할 수 있다. 즉, t0 내지 tn에 대응하는 프레임들이 공통된 DNN 설정 정보에 기초하여 AI 업스케일될 수 있다.In one example, the AI upscale unit 234 may obtain DNN configuration information of the second DNN through AI data and AI upscale the frames corresponding to t0 to tn based on the obtained DNN configuration information. That is, frames corresponding to t0 to tn may be AI upscaled based on common DNN configuration information.

다른 예시에서, AI 업스케일부(234)는 t0 내지 tn에 대응하는 프레임들 중 일부의 프레임들, 예를 들어, t0 내지 ta에 대응하는 프레임들을 AI 데이터로부터 획득한 'A' DNN 설정 정보로 AI 업스케일하고, ta+1 내지 tb에 대응하는 프레임들을 AI 데이터로부터 획득한 'B' DNN 설정 정보로 AI 업스케일할 수 있다. 또한, AI 업스케일부(234)는 tb+1 내지 tn에 대응하는 프레임들을 AI 데이터로부터 획득한 'C' DNN 설정 정보로 AI 업스케일할 수 있다. 다시 말하면, AI 업스케일부(234)는 복수의 프레임들 중 소정 개수의 프레임을 포함하는 그룹마다 DNN 설정 정보를 독립적으로 획득하고, 그룹 각각에 포함된 프레임들을 독립적으로 획득한 DNN 설정 정보로 AI 업스케일할 수 있다. In another example, the AI upscale unit 234 uses some of the frames corresponding to t0 to tn, for example, frames corresponding to t0 to ta, as 'A' DNN setting information obtained from AI data. AI can be upscaled, and frames corresponding to ta+1 to tb can be AI upscaled using 'B' DNN setting information obtained from AI data. Additionally, the AI upscaling unit 234 can AI upscale the frames corresponding to tb+1 to tn using 'C' DNN setting information obtained from AI data. In other words, the AI upscale unit 234 independently acquires DNN setting information for each group including a predetermined number of frames among a plurality of frames, and uses the independently acquired DNN setting information for the frames included in each group to provide AI It can be upscaled.

또 다른 예시에서, AI 업스케일부(234)는 제 2 영상(135)을 구성하는 프레임별로 DNN 설정 정보를 독립적으로 획득할 수도 있다. 즉, 제 2 영상(135)이 3개의 프레임으로 구성되어 있는 경우, AI 업스케일부(234)는 첫 번째 프레임과 관련하여 획득한 DNN 설정 정보로 첫 번째 프레임을 AI 업스케일하고, 두 번째 프레임과 관련하여 획득한 DNN 설정 정보로 두 번째 프레임을 AI 업스케일하고, 세 번째 프레임과 관련하여 획득한 DNN 설정 정보로 세 번째 프레임을 AI 업스케일할 수 있다. 전술한, 제 1 복호화부(232)로부터 제공되는 정보(예측 모드 정보, 움직임 정보, 양자화 파라미터 정보 등)와 AI 데이터에 포함된 제 1 영상(115) 관련 정보에 기초하여 DNN 설정 정보가 획득되는 방식에 따라, 제 2 영상(135)을 구성하는 프레임별로 DNN 설정 정보가 독립적으로 획득될 수 있다. 왜냐하면, 모드 정보, 양자화 파라미터 정보 등은 제 2 영상(135)을 구성하는 프레임마다 독립적으로 결정될 수 있기 때문이다.In another example, the AI upscale unit 234 may independently obtain DNN setting information for each frame constituting the second image 135. That is, if the second image 135 consists of three frames, the AI upscale unit 234 AI upscales the first frame with the DNN setting information obtained in relation to the first frame, and The second frame can be AI upscaled using the DNN setting information obtained in relation to and the third frame can be AI upscaled using the DNN setting information acquired in relation to the third frame. DNN setting information is obtained based on the information provided from the above-described first decoder 232 (prediction mode information, motion information, quantization parameter information, etc.) and information related to the first image 115 included in the AI data. Depending on the method, DNN setting information may be independently obtained for each frame constituting the second image 135. This is because mode information, quantization parameter information, etc. can be independently determined for each frame constituting the second image 135.

또 다른 예시에서, AI 데이터는 AI 데이터에 기초하여 획득되는 DNN 설정 정보가 어느 프레임까지 유효한 것인지를 나타내는 정보를 포함할 수 있다. 예를 들어, AI 데이터 내에 DNN 설정 정보가 ta 프레임까지 유효하다는 정보가 포함되어 있는 경우, AI 업스케일부(234)는 AI 데이터에 기초하여 획득한 DNN 설정 정보로 t0 내지 ta 프레임들을 AI 업스케일한다. 그리고, 다른 AI 데이터 내에 DNN의 설정 정보가 tn 프레임까지 유효하다는 정보가 포함되어 있는 경우, AI 업스케일부(234)는 상기 다른 AI 데이터에 기초하여 획득한 DNN 설정 정보로 ta+1 내지 tn 프레임들을 AI 업스케일할 수 있다. In another example, the AI data may include information indicating up to which frames the DNN setting information obtained based on the AI data is valid. For example, if the AI data includes information that the DNN setting information is valid up to the ta frame, the AI upscale unit 234 AI upscales t0 to ta frames with the DNN setting information obtained based on the AI data. do. And, if other AI data includes information that the DNN setting information is valid up to the tn frame, the AI upscale unit 234 uses the DNN setting information obtained based on the other AI data for ta+1 to tn frames. AI can be upscaled.

이하에서는, 도 7을 참조하여, 원본 영상(105)의 AI 부호화를 위한 AI 부호화 장치(600)에 대해 설명한다.Below, with reference to FIG. 7 , the AI encoding device 600 for AI encoding of the original image 105 will be described.

도 7은 일 실시예에 따른 AI 부호화 장치(600)의 구성을 도시하는 블록도이다.FIG. 7 is a block diagram showing the configuration of an AI encoding device 600 according to an embodiment.

도 7을 참조하면, AI 부호화 장치(600)는 AI 부호화부(610) 및 전송부(630)를 포함할 수 있다. AI 부호화부(610)는 AI 다운스케일부(612) 및 제 1 부호화부(614)를 포함할 수 있다. 전송부(630)는 데이터 처리부(632) 및 통신부(634)를 포함할 수 있다.Referring to FIG. 7, the AI encoding device 600 may include an AI encoding unit 610 and a transmitting unit 630. The AI encoder 610 may include an AI downscale unit 612 and a first encoder 614. The transmission unit 630 may include a data processing unit 632 and a communication unit 634.

도 7은 AI 부호화부(610) 및 전송부(630)를 개별적인 장치로 도시하고 있으나, AI 부호화부(610) 및 전송부(630)는 하나의 프로세서를 통해 구현될 수 있다. 이 경우, 전용 프로세서로 구현될 수도 있고, AP 또는 CPU, GPU와 같은 범용 프로세서와 S/W의 조합을 통해 구현될 수도 있다. 또한, 전용 프로세서의 경우, 본 개시의 실시예를 구현하기 위한 메모리를 포함하여 구현되거나, 외부 메모리를 이용하기 위한 메모리 처리부를 포함하여 구현될 수 있다.Figure 7 shows the AI encoder 610 and the transmitter 630 as separate devices, but the AI encoder 610 and the transmitter 630 can be implemented through one processor. In this case, it may be implemented with a dedicated processor, or it may be implemented through a combination of a general-purpose processor such as an AP, CPU, or GPU and S/W. Additionally, in the case of a dedicated processor, it may be implemented including a memory for implementing an embodiment of the present disclosure, or may be implemented including a memory processing unit for using an external memory.

또한, AI 부호화부(610) 및 전송부(630)는 복수의 프로세서로 구성될 수도 있다. 이 경우, 전용 프로세서들의 조합으로 구현될 수도 있고, AP 또는 CPU, GPU와 같은 다수의 범용 프로세서들과 S/W의 조합을 통해 구현될 수도 있다. AI 다운스케일부(612)와 제 1 부호화부(614)도 각각 서로 다른 프로세서로 구현될 수 있다.Additionally, the AI encoding unit 610 and the transmitting unit 630 may be composed of a plurality of processors. In this case, it may be implemented through a combination of dedicated processors, or it may be implemented through a combination of multiple general-purpose processors such as AP, CPU, and GPU and S/W. The AI downscale unit 612 and the first encoder 614 may also be implemented with different processors.

AI 부호화부(610)는 원본 영상(105)의 AI 다운스케일 및 제 1 영상(115)의 제 1 부호화를 수행하고, AI 데이터 및 영상 데이터를 전송부(630)로 전달한다. 전송부(630)는 AI 데이터 및 영상 데이터를 AI 복호화 장치(200)로 전송한다.The AI encoder 610 performs AI downscaling of the original image 105 and first encoding of the first image 115, and transmits the AI data and image data to the transmission unit 630. The transmission unit 630 transmits AI data and image data to the AI decoding device 200.

영상 데이터는 제 1 영상(115)의 제 1 부호화 결과 획득된 데이터를 포함한다. 영상 데이터는 제 1 영상(115) 내 픽셀 값들에 기초하여 획득되는 데이터, 예를 들어, 제 1 영상(115)과 제 1 영상(115)의 예측 데이터 사이의 차이인 잔차 데이터를 포함할 수 있다. 또한, 영상 데이터는 제 1 영상(115)의 제 1 부호화 과정에서 이용된 정보들을 포함한다. 예를 들어, 영상 데이터는 제 1 영상(115)을 제 1 부호화하는데 이용된 예측 모드 정보, 움직임 정보 및 제 1 영상(115)을 제 1 부호화하는데 이용된 양자화 파라미터 관련 정보 등을 포함할 수 있다.The image data includes data obtained as a result of first encoding of the first image 115. The image data may include data obtained based on pixel values in the first image 115, for example, residual data that is the difference between the first image 115 and the predicted data of the first image 115. . Additionally, the image data includes information used in the first encoding process of the first image 115. For example, the image data may include prediction mode information used to first encode the first image 115, motion information, and information related to quantization parameters used to first encode the first image 115. .

AI 데이터는, AI 업스케일부(234)가 제 1 DNN의 다운스케일 타겟에 대응하는 업스케일 타겟으로 제 2 영상(135)을 AI 업스케일할 수 있게 하는 정보들을 포함한다. 일 예에서, AI 데이터는 원본 영상(105)과 제 1 영상(115) 사이의 차이 정보를 포함할 수 있다. 또한, AI 데이터는 제 1 영상(115) 관련 정보를 포함할 수도 있다. 제 1 영상(115) 관련 정보는, 제 1 영상(115)의 해상도, 제 1 영상(115)의 제 1 부호화 결과 획득된 영상 데이터의 비트레이트 및 제 1 영상(115)의 제 1 부호화시 이용된 코덱 타입 중 적어도 하나에 대한 정보를 포함할 수 있다.The AI data includes information that allows the AI upscale unit 234 to AI upscale the second image 135 to an upscale target corresponding to the downscale target of the first DNN. In one example, the AI data may include difference information between the original image 105 and the first image 115. Additionally, AI data may include information related to the first image 115. Information related to the first image 115 includes the resolution of the first image 115, the bitrate of the image data obtained as a result of the first encoding of the first image 115, and the information used when first encoding the first image 115. It may contain information about at least one of the codec types provided.

일 실시예에서, AI 데이터는, 제 1 DNN의 다운스케일 타겟에 대응하는 업스케일 타겟으로 제 2 영상(135)이 AI 업스케일될 수 있도록, 상호 약속된 DNN 설정 정보의 식별자를 포함할 수 있다.In one embodiment, the AI data may include an identifier of mutually agreed DNN setting information so that the second image 135 can be AI upscaled to an upscale target corresponding to the downscale target of the first DNN. .

또한, 일 실시예에서, AI 데이터는 제 2 DNN에 세팅 가능한 DNN 설정 정보를 포함할 수도 있다.Additionally, in one embodiment, AI data may include DNN setting information that can be set to the second DNN.

AI 다운스케일부(612)는 제 1 DNN을 통해 원본 영상(105)으로부터 AI 다운스케일된 제 1 영상(115)을 획득할 수 있다. AI 다운스케일부(612)는 미리 결정된 기준에 기초하여 원본 영상(105)의 다운스케일 타겟을 결정할 수 있다.The AI downscale unit 612 may obtain the AI downscaled first image 115 from the original image 105 through the first DNN. The AI downscale unit 612 may determine the downscale target of the original image 105 based on a predetermined standard.

다운스케일 타겟에 부합하는 제 1 영상(115)의 획득을 위해, AI 다운스케일부(612)는 제 1 DNN에 세팅 가능한 복수의 DNN 설정 정보를 저장할 수 있다. AI 다운스케일부(612)는 복수의 DNN 설정 정보 중 다운스케일 타겟에 대응하는 DNN 설정 정보를 획득하고, 획득된 DNN 설정 정보로 세팅된 제 1 DNN을 통해 원본 영상(105)을 AI 다운스케일한다.In order to acquire the first image 115 that meets the downscale target, the AI downscale unit 612 may store a plurality of DNN setting information that can be set in the first DNN. The AI downscale unit 612 acquires DNN setting information corresponding to the downscale target among a plurality of DNN setting information, and AI downscales the original image 105 through the first DNN set with the obtained DNN setting information. .

상기 복수의 DNN 설정 정보 각각은 미리 결정된 해상도 및/또는 미리 결정된 화질의 제 1 영상(115)을 획득하기 위해 훈련된 것일 수 있다. 예를 들어, 복수의 DNN 설정 정보 중 어느 하나의 DNN 설정 정보는 원본 영상(105)의 해상도보다 1/2배만큼 작은 해상도의 제 1 영상(115), 예를 들어, 4K(4096*2160)의 원본 영상(105)보다 1/2배 작은 2K (2048*1080)의 제 1 영상(115)을 획득하기 위한 정보들을 포함할 수 있고, 다른 하나의 DNN 설정 정보는 원본 영상(105)의 해상도보다 1/4배만큼 작은 해상도의 제 1 영상(115), 예를 들어, 8K(8192*4320)의 원본 영상(105)보다 1/4배 작은 2K (2048*1080)의 제 1 영상(115)을 획득하기 위한 정보들을 포함할 수 있다.Each of the plurality of DNN setting information may be trained to obtain the first image 115 of a predetermined resolution and/or predetermined image quality. For example, one of the plurality of DNN setting information may be a first image 115 with a resolution that is 1/2 times smaller than the resolution of the original image 105, for example, 4K (4096*2160). It may include information for acquiring the first image 115 of 2K (2048*1080), which is 1/2 times smaller than the original image 105, and the other DNN setting information is the resolution of the original image 105. A first image 115 with a resolution that is 1/4 times smaller than the original image 105 of 8K (8192*4320). ) may include information to obtain.

구현예에 따라, DNN 설정 정보를 구성하는 정보들(예를 들어, 컨볼루션 레이어의 수, 컨볼루션 레이어별 필터 커널의 개수, 각 필터 커널의 파라미터 등)들이 룩업 테이블 형태로 저장되어 있는 경우, AI 다운스케일부(612)는 다운스케일 타겟에 따라 룩업 테이블 값들 중에서 선택된 일부를 조합하여 DNN 설정 정보를 획득하고, 획득된 DNN 설정 정보를 사용하여 원본 영상(105)을 AI 다운스케일할 수도 있다.Depending on the implementation, if the information constituting the DNN setting information (e.g., the number of convolution layers, the number of filter kernels for each convolution layer, the parameters of each filter kernel, etc.) is stored in the form of a lookup table, The AI downscale unit 612 may obtain DNN setting information by combining some selected lookup table values according to the downscale target, and may AI downscale the original image 105 using the obtained DNN setting information.

구현예에 따라, AI 다운스케일부(612)는 다운스케일 타겟에 대응되는 DNN의 구조를 결정하고, 결정된 DNN의 구조에 대응하는 DNN 설정 정보, 예를 들어, 필터 커널의 파라미터들을 획득할 수도 있다.Depending on the implementation, the AI downscale unit 612 may determine the structure of the DNN corresponding to the downscale target and obtain DNN setting information corresponding to the determined structure of the DNN, for example, parameters of the filter kernel. .

원본 영상(105)의 AI 다운스케일을 위한 복수의 DNN 설정 정보는, 제 1 DNN과 제 2 DNN이 연계 훈련됨으로써, 최적화된 값을 가질 수 있다. 여기서, 각 DNN 설정 정보는 제 1 DNN에 포함되는 컨볼루션 레이어의 수, 컨볼루션 레이어별 필터 커널의 개수 및 각 필터 커널의 파라미터 중 적어도 하나를 포함한다.The plurality of DNN setting information for AI downscaling of the original image 105 may have optimized values by jointly training the first DNN and the second DNN. Here, each DNN configuration information includes at least one of the number of convolution layers included in the first DNN, the number of filter kernels for each convolution layer, and the parameters of each filter kernel.

AI 다운스케일부(612)는 원본 영상(105)의 AI 다운스케일을 위해 결정된 DNN 설정 정보로 제 1 DNN을 세팅하여, 소정 해상도 및/또는 소정 화질의 제 1 영상(115)을 제 1 DNN을 통해 획득할 수 있다. 복수의 DNN 설정 정보 중 원본 영상(105)의 AI 다운스케일을 위한 DNN 설정 정보가 획득되면, 제 1 DNN 내 각 레이어는 DNN 설정 정보에 포함된 정보들에 기초하여 입력된 데이터를 처리할 수 있다.The AI downscale unit 612 sets the first DNN with the DNN setting information determined for AI downscaling of the original image 105, and uses the first DNN to display the first image 115 with a predetermined resolution and/or predetermined image quality. It can be obtained through When DNN setting information for AI downscaling of the original image 105 is obtained from among the plurality of DNN setting information, each layer in the first DNN can process the input data based on the information included in the DNN setting information. .

이하에서는, AI 다운스케일부(612)가 다운스케일 타겟을 결정하는 방법에 대해 설명한다. 상기 다운스케일 타겟은 예를 들어, 원본 영상(105)으로부터 얼마나 해상도가 감소한 제 1 영상(115)을 획득해야 하는지를 나타낼 수 있다.Below, a description will be given of how the AI downscale unit 612 determines the downscale target. For example, the downscale target may indicate how much the first image 115 whose resolution is reduced from the original image 105 should be obtained.

일 실시예에서, AI 다운스케일부(612)는 압축률(예를 들어, 원본 영상(105)과 제 1 영상(115) 사이의 해상도 차이, 타겟 비트레이트), 압축 품질(예를 들어, 비트레이트 타입), 압축 히스토리 정보 및 원본 영상(105)의 타입 중 적어도 하나에 기초하여 다운스케일 타겟을 결정할 수 있다. In one embodiment, the AI downscale unit 612 determines compression rate (e.g., resolution difference between the original image 105 and the first image 115, target bitrate), compression quality (e.g., bitrate The downscale target may be determined based on at least one of the type), compression history information, and the type of the original image 105.

일 예에서, AI 다운스케일부(612)는 미리 설정되거나, 사용자로부터 입력받은 압축률 또는 압축 품질 등에 기반하여 다운스케일 타겟을 결정할 수 있다. In one example, the AI downscale unit 612 may determine a downscale target based on a compression rate or compression quality that is preset or input from the user.

다른 예로, AI 다운스케일부(612)는 AI 부호화 장치(600)에 저장된 압축 히스토리 정보를 이용하여 다운스케일 타겟을 결정할 수도 있다. 예를 들어, AI 부호화 장치(600)가 이용할 수 있는 압축 히스토리 정보에 따르면, 사용자가 선호하는 부호화 품질 또는 압축률 등이 결정될 수 있으며, 압축 히스토리 정보에 기초하여 결정된 부호화 품질 등에 따라 다운스케일 타겟이 결정될 수 있다. 예를 들면, 압축 히스토리 정보에 따라 가장 많이 이용된 적이 있는 부호화 품질에 따라 제 1 영상(115)의 해상도, 화질 등이 결정될 수 있다. As another example, the AI downscale unit 612 may determine the downscale target using compression history information stored in the AI encoding device 600. For example, according to the compression history information available to the AI encoding device 600, the user's preferred encoding quality or compression rate may be determined, and the downscale target may be determined according to the encoding quality determined based on the compression history information. You can. For example, the resolution and quality of the first image 115 may be determined according to the most frequently used encoding quality according to compression history information.

또 다른 예로, AI 다운스케일부(612)는 압축 히스토리 정보에 따라 소정의 임계 값보다 많이 이용된 적이 있는 부호화 품질(예를 들면, 소정의 임계값보다 많이 이용된 적이 있는 부호화 품질의 평균 품질)에 기초하여 다운스케일 타겟을 결정할 수도 있다. As another example, the AI downscale unit 612 determines the encoding quality that has been used more than a predetermined threshold (for example, the average quality of the encoding quality that has been used more than a predetermined threshold) according to compression history information. The downscale target may be determined based on .

또 다른 예로, AI 다운스케일부(612)는 원본 영상(105)의 해상도, 타입(예를 들어, 파일의 형식)등에 기초하여 다운스케일 타겟을 결정할 수도 있다.As another example, the AI downscale unit 612 may determine the downscale target based on the resolution and type (eg, file format) of the original image 105.

일 실시예에서, 원본 영상(105)이 복수의 프레임으로 구성된 경우, AI 다운스케일부(612)는 소정 개수의 프레임 별로 다운스케일 타겟을 독립적으로 결정할 수 있고, 또는, 전체 프레임에 대해 공통된 다운스케일 타겟을 결정할 수도 있다.In one embodiment, when the original image 105 consists of a plurality of frames, the AI downscale unit 612 may independently determine a downscale target for each predetermined number of frames, or may use a common downscale for all frames. You can also decide on a target.

일 예시에서, AI 다운스케일부(612)는 원본 영상(105)을 구성하는 프레임들을 소정 개수의 그룹으로 구분하고, 각 그룹별로 다운스케일 타겟을 독립적으로 결정할 수 있다. 각 그룹에 대해 서로 동일하거나 서로 상이한 다운스케일 타겟이 결정될 수 있다. 그룹들에 포함된 프레임들의 개수는 그룹별로 동일하거나 상이할 수 있다.In one example, the AI downscale unit 612 may divide the frames constituting the original image 105 into a predetermined number of groups and independently determine a downscale target for each group. The same or different downscale targets may be determined for each group. The number of frames included in groups may be the same or different for each group.

다른 예시에서, AI 다운스케일부(612)는 원본 영상(105)을 구성하는 프레임별로 다운스케일 타겟을 독립적으로 결정할 수 있다. 각각의 프레임에 대해 서로 동일하거나 서로 상이한 다운스케일 타겟이 결정될 수 있다.In another example, the AI downscale unit 612 may independently determine a downscale target for each frame constituting the original image 105. The same or different downscale targets may be determined for each frame.

이하에서는, AI 다운스케일의 기반이 되는 제 1 DNN(700)의 예시적인 구조에 대해 설명한다.Below, an exemplary structure of the first DNN 700, which is the basis for AI downscale, will be described.

도 8은 원본 영상(105)의 AI 다운스케일을 위한 제 1 DNN(700)을 나타내는 예시적인 도면이다.FIG. 8 is an exemplary diagram showing a first DNN 700 for AI downscaling of the original image 105.

도 8에 도시된 바와 같이, 원본 영상(105)은 제 1 컨볼루션 레이어(710)로 입력된다. 제 1 컨볼루션 레이어(710)는 5 x 5의 크기의 32개의 필터 커널을 이용하여 원본 영상(105)에 대해 컨볼루션 처리를 한다. 컨볼루션 처리 결과 생성된 32개의 특징 맵은 제 1 활성화 레이어(720)로 입력된다. 제 1 활성화 레이어(720)는 32개의 특징 맵에 대해 비선형(Non-linear) 특성을 부여할 수 있다.As shown in FIG. 8, the original image 105 is input to the first convolution layer 710. The first convolution layer 710 performs convolution processing on the original image 105 using 32 filter kernels with a size of 5 x 5. The 32 feature maps generated as a result of convolution processing are input to the first activation layer 720. The first activation layer 720 can provide non-linear characteristics to 32 feature maps.

제 1 활성화 레이어(720)는 제 1 컨볼루션 레이어(710)로부터 출력되는 특징 맵들의 샘플 값들을 제 2 컨볼루션 레이어(730)로 전달할지 여부를 결정한다. 예를 들어, 특징 맵들의 샘플 값들 중 어떤 샘플 값들은 제 1 활성화 레이어(720)에 의해 활성화되어 제 2 컨볼루션 레이어(730)로 전달되고, 어떤 샘플 값들은 제 1 활성화 레이어(720)에 의해 비활성화되어 제 2 컨볼루션 레이어(730)로 전달되지 않는다. 제 1 컨볼루션 레이어(710)로부터 출력되는 특징 맵들이 나타내는 정보가 제 1 활성화 레이어(720)에 의해 강조된다.The first activation layer 720 determines whether to transfer sample values of feature maps output from the first convolution layer 710 to the second convolution layer 730. For example, some sample values of the feature maps are activated by the first activation layer 720 and transmitted to the second convolution layer 730, and some sample values are activated by the first activation layer 720. It is deactivated and is not transmitted to the second convolution layer 730. Information represented by the feature maps output from the first convolutional layer 710 is emphasized by the first activation layer 720.

제 1 활성화 레이어(720)의 출력(725)이 제 2 컨볼루션 레이어(730)로 입력된다. 제 2 컨볼루션 레이어(730)는 5 x 5의 크기의 32개의 필터 커널을 이용하여 입력 데이터에 대해 컨볼루션 처리를 한다. 컨볼루션 처리 결과 출력된 32개의 특징 맵은 제 2 활성화 레이어(740)로 입력되고, 제 2 활성화 레이어(740)는 32개의 특징 맵에 대해 비선형 특성을 부여할 수 있다. The output 725 of the first activation layer 720 is input to the second convolution layer 730. The second convolution layer 730 performs convolution processing on the input data using 32 filter kernels with a size of 5 x 5. The 32 feature maps output as a result of the convolution processing are input to the second activation layer 740, and the second activation layer 740 can provide non-linear characteristics to the 32 feature maps.

제 2 활성화 레이어(740)의 출력(745)은 제 3 컨볼루션 레이어(750)로 입력된다. 제 3 컨볼루션 레이어(750)는 5 x 5의 크기의 1개의 필터 커널을 이용하여 입력된 데이터에 대해 컨볼루션 처리를 한다. 컨볼루션 처리 결과 제 3 컨볼루션 레이어(750)로부터 1개의 영상이 출력될 수 있다. 제 3 컨볼루션 레이어(750)는 최종 영상을 출력하기 위한 레이어로서 1개의 필터 커널을 이용하여 1개의 출력을 획득한다. 본 개시의 예시에 따르면, 제 3 컨볼루션 레이어(750)는 컨벌루션 연산 결과를 통해 제 1 영상(115)을 출력할 수 있다.The output 745 of the second activation layer 740 is input to the third convolution layer 750. The third convolution layer 750 performs convolution processing on the input data using one filter kernel with a size of 5 x 5. As a result of convolution processing, one image may be output from the third convolution layer 750. The third convolution layer 750 is a layer for outputting the final image and obtains one output using one filter kernel. According to the example of the present disclosure, the third convolution layer 750 may output the first image 115 through the result of the convolution operation.

제 1 DNN(700)의 제 1 컨볼루션 레이어(710), 제 2 컨볼루션 레이어(730) 및 제 3 컨볼루션 레이어(750)의 필터 커널의 개수, 필터 커널의 파라미터 등을 나타내는 DNN 설정 정보는 복수 개일 수 있는데, 복수의 DNN 설정 정보는 제 2 DNN의 복수의 DNN 설정 정보와 연계되어야 한다. 제 1 DNN의 복수의 DNN 설정 정보와 제 2 DNN의 복수의 DNN 설정 정보 사이의 연계는, 제 1 DNN 및 제 2 DNN의 연계 학습을 통해 구현될 수 있다. DNN setting information indicating the number of filter kernels, filter kernel parameters, etc. of the first convolution layer 710, second convolution layer 730, and third convolution layer 750 of the first DNN 700 is There may be multiple DNNs, and the plurality of DNN configuration information must be linked to the plurality of DNN configuration information of the second DNN. Linkage between the plurality of DNN configuration information of the first DNN and the plurality of DNN configuration information of the second DNN may be implemented through linked learning of the first DNN and the second DNN.

도 8은 제 1 DNN(700)이 세 개의 컨볼루션 레이어(710, 730, 750)와 두 개의 활성화 레이어(720, 740)를 포함하고 있는 것으로 도시하고 있으나, 이는 하나의 예시일 뿐이며, 구현예에 따라서, 컨볼루션 레이어 및 활성화 레이어의 개수는 다양하게 변경될 수 있다. 또한, 구현예에 따라서, 제 1 DNN(700)은 RNN(recurrent neural network)을 통해 구현될 수도 있다. 이 경우는 본 개시의 예시에 따른 제 1 DNN(700)의 CNN 구조를 RNN 구조로 변경하는 것을 의미한다.Figure 8 shows that the first DNN (700) includes three convolutional layers (710, 730, 750) and two activation layers (720, 740), but this is only an example and an implementation example Depending on this, the number of convolutional layers and activation layers can be changed in various ways. Additionally, depending on the implementation, the first DNN 700 may be implemented through a recurrent neural network (RNN). In this case, it means changing the CNN structure of the first DNN 700 according to the example of the present disclosure to the RNN structure.

일 실시예에서, AI 다운스케일부(612)는 컨볼루션 연산 및 활성화 레이어의 연산을 위한 적어도 하나의 ALU를 포함할 수 있다. ALU는 프로세서로 구현될 수 있다. 컨볼루션 연산을 위해, ALU는 원본 영상(105) 또는 이전 레이어에서 출력된 특징 맵의 샘플 값들과 필터 커널의 샘플 값들 사이의 곱 연산을 수행하는 곱셈기 및 곱셈의 결과 값들을 더하는 가산기를 포함할 수 있다. 또한, 활성화 레이어의 연산을 위해, ALU는 미리 결정된 시그모이드 함수, Tanh 함수 또는 ReLU 함수 등에서 이용되는 가중치를 입력된 샘플 값에 곱하는 곱셈기, 및 곱한 결과와 소정 값을 비교하여 입력된 샘플 값을 다음 레이어로 전달할지를 판단하는 비교기를 포함할 수 있다.In one embodiment, the AI downscale unit 612 may include at least one ALU for convolution operation and activation layer operation. ALU can be implemented as a processor. For the convolution operation, the ALU may include a multiplier that performs a multiplication operation between the sample values of the original image 105 or the feature map output from the previous layer and the sample values of the filter kernel, and an adder that adds the resultant values of the multiplication. there is. In addition, for the operation of the activation layer, the ALU uses a multiplier that multiplies the input sample value by a weight used in a predetermined sigmoid function, Tanh function, or ReLU function, and compares the multiplication result with a predetermined value to determine the input sample value. It may include a comparator that determines whether to pass on to the next layer.

다시 도 7을 참조하면, AI 다운스케일부(612)로부터 제 1 영상(115)을 전달받은 제 1 부호화부(614)는 제 1 영상(115)을 제 1 부호화하여 제 1 영상(115)이 가지는 정보량을 감축시킬 수 있다. 제 1 부호화부(614)에 의한 제 1 부호화 결과 제 1 영상(115)에 대응하는 영상 데이터가 획득될 수 있다. Referring again to FIG. 7, the first encoder 614, which receives the first image 115 from the AI downscale unit 612, first encodes the first image 115 to produce the first image 115. The amount of information can be reduced. As a result of the first encoding by the first encoder 614, image data corresponding to the first image 115 may be obtained.

데이터 처리부(632)는 AI 데이터 및 영상 데이터 중 적어도 하나가 소정의 형태로 전송될 수 있게 처리한다. 예를 들어, AI 데이터 및 영상 데이터를 비트스트림 형태로 전송하여야 하는 경우, 데이터 처리부(632)는 AI 데이터가 비트스트림 형태로 표현되도록 AI 데이터를 처리하고, 통신부(634)를 통해 하나의 비트스트림 형태의 AI 데이터 및 영상 데이터를 전송한다. 다른 예로, 데이터 처리부(632)는 AI 데이터가 비트스트림 형태로 표현되도록 AI 데이터를 처리하고, 통신부(634)를 통해 AI 데이터에 해당하는 비트스트림 및 영상 데이터에 해당하는 비트스트림 각각을 통신부(634)를 통해 전송한다. 또 다른 예로, 데이터 처리부(632)는 AI 데이터가 프레임 또는 패킷으로 표현되도록 AI 데이터를 처리하고, 비트스트림 형태의 영상 데이터와, 프레임 또는 패킷 형태의 AI 데이터를 통신부(634)를 통해 전송한다.The data processing unit 632 processes at least one of AI data and image data so that it can be transmitted in a predetermined form. For example, when AI data and image data must be transmitted in the form of a bitstream, the data processing unit 632 processes the AI data so that the AI data is expressed in the form of a bitstream, and transmits one bitstream through the communication unit 634. Transmits AI data and video data in the form of As another example, the data processing unit 632 processes AI data so that the AI data is expressed in a bitstream form, and sends each of the bitstream corresponding to the AI data and the bitstream corresponding to the image data through the communication unit 634 to the communication unit 634. ) is transmitted through. As another example, the data processing unit 632 processes AI data so that the AI data is expressed as a frame or packet, and transmits image data in the form of a bitstream and AI data in the form of a frame or packet through the communication unit 634.

통신부(630)는 네트워크를 통해 AI 부호화 결과 획득된 AI 부호화 데이터를 전송한다. AI 부호화 결과 획득된 AI 부호화 데이터는 영상 데이터와 AI 데이터를 포함한다. 영상 데이터와 AI 데이터는 동종 네트워크 또는 이종 네트워크를 통해 전송될 수 있다.The communication unit 630 transmits AI encoded data obtained as a result of AI encoding through the network. AI encoded data obtained as a result of AI encoding includes image data and AI data. Video data and AI data can be transmitted through homogeneous or heterogeneous networks.

일 실시예에서, 데이터 처리부(632)의 처리 결과 획득된 AI 부호화 데이터는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체, CD-ROM 및 DVD와 같은 광기록 매체, 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical medium) 등을 포함하는 데이터 저장 매체에 저장될 수도 있다.In one embodiment, the AI-encoded data obtained as a result of processing by the data processing unit 632 is magnetic media such as hard disks, floppy disks, and magnetic tapes, optical recording media such as CD-ROMs and DVDs, and floptical disks. It may also be stored in a data storage medium including a magneto-optical medium such as.

이하에서는, 도 9를 참조하여, 제 1 DNN(700)과 제 2 DNN(300)을 연계 훈련시키는 방법에 대해 설명한다.Hereinafter, with reference to FIG. 9, a method of jointly training the first DNN 700 and the second DNN 300 will be described.

도 9는 제 1 DNN(700) 및 제 2 DNN(300)을 훈련시키는 방법을 설명하기 위한 도면이다.FIG. 9 is a diagram for explaining a method of training the first DNN 700 and the second DNN 300.

일 실시예에서 AI 부호화 과정을 통해 AI 부호화된 원본 영상(105)이 AI 복호화 과정을 통해 제 3 영상(145)으로 복원되는데, AI 복호화 결과 획득된 제 3 영상(145)과 원본 영상(105)과의 유사성을 유지하기 위해서는 AI 부호화 과정 및 AI 복호화 과정에 연관성이 필요하다. 즉, AI 부호화 과정에서 손실된 정보를 AI 복호화 과정에서 복원할 수 있어야 하는데, 이를 위해 제 1 DNN(700)과 제 2 DNN(300)의 연계 훈련이 요구된다.In one embodiment, the original image 105 encoded through the AI encoding process is restored as the third image 145 through the AI decoding process, and the third image 145 and the original image 105 obtained as a result of the AI decoding are In order to maintain similarity, correlation is required in the AI encoding process and AI decoding process. In other words, information lost in the AI encoding process must be able to be restored in the AI decoding process, and for this purpose, linked training of the first DNN (700) and the second DNN (300) is required.

정확한 AI 복호화를 위해서는 궁극적으로 도 9에 도시된 제 3 훈련 영상(804)과 원본 훈련 영상(801) 사이의 비교 결과에 대응하는 퀄리티 손실 정보(830)를 감소시킬 필요가 있다. 따라서, 퀄리티 손실 정보(830)는 제 1 DNN(700) 및 제 2 DNN(300)의 훈련 모두에 이용된다.For accurate AI decoding, it is ultimately necessary to reduce the quality loss information 830 corresponding to the comparison result between the third training image 804 and the original training image 801 shown in FIG. 9. Accordingly, the quality loss information 830 is used for training both the first DNN 700 and the second DNN 300.

먼저, 도 9에 도시된 훈련 과정에 대해 설명한다.First, the training process shown in Figure 9 will be described.

도 9에서, 원본 훈련 영상(original training image)(801)은 AI 다운스케일의 대상이 되는 영상이고, 제 1 훈련 영상(first training image)(802)은 원본 훈련 영상(801)로부터 AI 다운스케일된 영상이다. 또한, 제 3 훈련 영상(third training image)(804)은 제 1 훈련 영상(802)으로부터 AI 업스케일된 영상이다. In Figure 9, the original training image 801 is an image subject to AI downscaling, and the first training image 802 is an image that is AI downscaled from the original training image 801. It's a video. Additionally, the third training image 804 is an AI upscaled image from the first training image 802.

원본 훈련 영상(801)은 정지 영상 또는 복수의 프레임으로 이루어진 동영상을 포함한다. 일 실시예에서, 원본 훈련 영상(801)은 정지 영상 또는 복수의 프레임으로 이루어진 동영상으로부터 추출된 휘도 영상을 포함할 수도 있다. 또한, 일 실시예에서, 원본 훈련 영상(801)은 정지 영상 또는 복수의 프레임으로 이루어진 동영상에서 추출된 패치 영상을 포함할 수도 있다. 원본 훈련 영상(801)이 복수의 프레임으로 이루어진 경우, 제 1 훈련 영상(802), 제 2 훈련 영상 및 제 3 훈련 영상(804) 역시 복수의 프레임으로 구성된다. 원본 훈련 영상(801)의 복수의 프레임이 순차적으로 제 1 DNN(700)에 입력되면, 제 1 DNN(700) 및 제 2 DNN(300)을 통해 제 1 훈련 영상(802), 제 2 훈련 영상 및 제 3 훈련 영상(804)의 복수의 프레임이 순차적으로 획득될 수 있다.The original training image 801 includes a still image or a video consisting of multiple frames. In one embodiment, the original training image 801 may include a still image or a luminance image extracted from a video consisting of multiple frames. Additionally, in one embodiment, the original training image 801 may include a still image or a patch image extracted from a video consisting of multiple frames. When the original training image 801 consists of a plurality of frames, the first training image 802, the second training image, and the third training image 804 also consist of a plurality of frames. When a plurality of frames of the original training image 801 are sequentially input to the first DNN 700, the first training image 802 and the second training image are generated through the first DNN 700 and the second DNN 300. And a plurality of frames of the third training image 804 may be sequentially acquired.

제 1 DNN(700) 및 제 2 DNN(300)의 연계 훈련을 위해, 원본 훈련 영상(801)이 제 1 DNN(700)으로 입력된다. 제 1 DNN(700)으로 입력된 원본 훈련 영상(801)은 AI 다운스케일되어 제 1 훈련 영상(802)으로 출력되고, 제 1 훈련 영상(802)이 제 2 DNN(300)에 입력된다. 제 1 훈련 영상(802)에 대한 AI 업스케일 결과 제 3 훈련 영상(804)이 출력된다.For linked training of the first DNN 700 and the second DNN 300, the original training image 801 is input to the first DNN 700. The original training image 801 input to the first DNN 700 is AI downscaled and output as the first training image 802, and the first training image 802 is input to the second DNN 300. As a result of AI upscaling of the first training image 802, the third training image 804 is output.

도 9를 참조하면, 제 2 DNN(300)으로 제 1 훈련 영상(802)이 입력되고 있는데, 구현예에 따라, 제 1 훈련 영상(802)의 제 1 부호화 및 제 1 복호화 과정을 거쳐 획득된 제 2 훈련 영상(second training image)이 제 2 DNN(300)으로 입력될 수도 있다. 제 2 훈련 영상을 제 2 DNN으로 입력시키기 위해 MPEG-2, H.264, MPEG-4, HEVC, VC-1, VP8, VP9 및 AV1 중 어느 하나의 코덱이 이용될 수 있다. 구체적으로, 제 1 훈련 영상(802)의 제 1 부호화 및 제 1 훈련 영상(802)에 대응하는 영상 데이터의 제 1 복호화에, MPEG-2, H.264, MPEG-4, HEVC, VC-1, VP8, VP9 및 AV1 중 어느 하나의 코덱이 이용될 수 있다. Referring to FIG. 9, a first training image 802 is being input to the second DNN 300. Depending on the implementation, the image obtained through the first encoding and first decoding processes of the first training image 802 A second training image may be input to the second DNN 300. To input the second training image into the second DNN, any one of the codecs among MPEG-2, H.264, MPEG-4, HEVC, VC-1, VP8, VP9, and AV1 can be used. Specifically, in the first encoding of the first training image 802 and the first decoding of the image data corresponding to the first training image 802, MPEG-2, H.264, MPEG-4, HEVC, and VC-1 , any one of VP8, VP9, and AV1 codecs can be used.

도 9를 참조하면, 제 1 DNN(700)을 통해 제 1 훈련 영상(802)이 출력되는 것과 별개로, 원본 훈련 영상(801)으로부터 레거시 다운스케일된 축소 훈련 영상(803)이 획득된다. 여기서, 레거시 다운스케일은 바이리니어(bilinear) 스케일, 바이큐빅(bicubic) 스케일, 란조스(lanczos) 스케일 및 스테어 스탭(stair step) 스케일 중 적어도 하나를 포함할 수 있다. Referring to FIG. 9, separately from the first training image 802 being output through the first DNN 700, a legacy downscaled reduced training image 803 is obtained from the original training image 801. Here, the legacy downscale may include at least one of bilinear scale, bicubic scale, lanczos scale, and stair step scale.

원본 영상(105)의 구조적 특징을 기준으로 제 1 영상(115)의 구조적 특징이 크게 벗어나는 것을 방지하기 위해, 원본 훈련 영상(801)의 구조적 특징을 보존하는 축소 훈련 영상(803)을 획득하는 것이다.In order to prevent the structural features of the first image 115 from deviating significantly based on the structural features of the original image 105, a reduced training image 803 that preserves the structural features of the original training image 801 is obtained. .

훈련의 진행 전 제 1 DNN(700) 및 제 2 DNN(300)은 미리 결정된 DNN 설정 정보로 세팅될 수 있다. 훈련이 진행됨에 따라 구조적 손실 정보(810), 복잡성 손실 정보(820) 및 퀄리티 손실 정보(830)가 결정될 수 있다.Before training begins, the first DNN 700 and the second DNN 300 may be set to predetermined DNN configuration information. As training progresses, structural loss information 810, complexity loss information 820, and quality loss information 830 may be determined.

구조적 손실 정보(810)는 축소 훈련 영상(803)과 제 1 훈련 영상(802)의 비교 결과에 기초하여 결정될 수 있다. 일 예에서, 구조적 손실 정보(810)는 축소 훈련 영상(803)의 구조적 정보와 제 1 훈련 영상(802)의 구조적 정보 사이의 차이에 해당할 수 있다. 구조적 정보는, 영상의 휘도, 대비, 히스토그램 등 영상으로부터 추출 가능한 다양한 특징을 포함할 수 있다. 구조적 손실 정보(810)는 원본 훈련 영상(801)의 구조적 정보가 제 1 훈련 영상(802)에서 어느 정도로 유지되고 있는지를 나타낸다. 구조적 손실 정보(810)가 작을수록 제 1 훈련 영상(802)의 구조적 정보가 원본 훈련 영상(801)의 구조적 정보와 유사해진다.Structural loss information 810 may be determined based on a comparison result between the reduced training image 803 and the first training image 802. In one example, the structural loss information 810 may correspond to the difference between the structural information of the reduced training image 803 and the structural information of the first training image 802. Structural information may include various features that can be extracted from an image, such as image luminance, contrast, and histogram. Structural loss information 810 indicates the extent to which structural information of the original training image 801 is maintained in the first training image 802. The smaller the structural loss information 810, the more similar the structural information of the first training image 802 is to that of the original training image 801.

복잡성 손실 정보(820)는 제 1 훈련 영상(802)의 공간적 복잡도에 기반하여 결정될 수 있다. 일 예에서, 공간적 복잡도로서, 제 1 훈련 영상(802)의 총 분산(total variance)값이 이용될 수 있다. 복잡성 손실 정보(820)는 제 1 훈련 영상(802)을 제 1 부호화하여 획득한 영상 데이터의 비트레이트와 관련된다. 복잡성 손실 정보(820)가 작을수록 영상 데이터의 비트레이트가 작은 것으로 정의된다.Complexity loss information 820 may be determined based on the spatial complexity of the first training image 802. In one example, the total variance value of the first training image 802 may be used as the spatial complexity. Complexity loss information 820 is related to the bitrate of image data obtained by first encoding the first training image 802. It is defined that the smaller the complexity loss information 820 is, the smaller the bit rate of the image data is.

퀄리티 손실 정보(830)는 원본 훈련 영상(801)과 제 3 훈련 영상(804)의 비교 결과에 기초하여 결정될 수 있다. 퀄리티 손실 정보(830)는 원본 훈련 영상(801)과 제 3 훈련 영상(804)의 차이에 대한 L1-norm 값, L2-norm 값, SSIM(Structural Similarity) 값, PSNR-HVS(Peak Signal-To-Noise Ratio-Human Vision System) 값, MS-SSIM(Multiscale SSIM) 값, VIF(Variance Inflation Factor) 값 및 VMAF(Video Multimethod Assessment Fusion) 값 중 적어도 하나를 포함할 수 있다. 퀄리티 손실 정보(830)는 제 3 훈련 영상(804)이 원본 훈련 영상(801)과 어느 정도로 유사한지를 나타낸다. 퀄리티 손실 정보(830)가 작을수록 제 3 훈련 영상(804)이 원본 훈련 영상(801)에 더 유사해진다.Quality loss information 830 may be determined based on a comparison result between the original training image 801 and the third training image 804. The quality loss information 830 includes the L1-norm value, L2-norm value, SSIM (Structural Similarity) value, and PSNR-HVS (Peak Signal-To) value for the difference between the original training image 801 and the third training image 804. -It may include at least one of a Noise Ratio-Human Vision System) value, a Multiscale SSIM (MS-SSIM) value, a Variance Inflation Factor (VIF) value, and a Video Multimethod Assessment Fusion (VMAF) value. Quality loss information 830 indicates how similar the third training image 804 is to the original training image 801. The smaller the quality loss information 830 is, the more similar the third training image 804 is to the original training image 801.

도 9를 참조하면, 구조적 손실 정보(810), 복잡성 손실 정보(820) 및 퀄리티 손실 정보(830)가 제 1 DNN(700)의 훈련에 이용되고, 퀄리티 손실 정보(830)는 제 2 DNN(300)의 훈련에 이용된다. 즉, 퀄리티 손실 정보(830)는 제 1 DNN(700) 및 제 2 DNN(300)의 훈련에 모두 이용된다.Referring to FIG. 9, structural loss information 810, complexity loss information 820, and quality loss information 830 are used for training of the first DNN 700, and quality loss information 830 is used in the training of the second DNN (700). 300) is used for training. That is, the quality loss information 830 is used for training both the first DNN 700 and the second DNN 300.

제 1 DNN(700)은 구조적 손실 정보(810), 복잡성 손실 정보(820) 및 퀄리티 손실 정보(830)에 기초하여 결정된 최종 손실 정보가 감소 또는 최소화되도록 파라미터를 갱신할 수 있다. 또한, 제 2 DNN(300)은 퀄리티 손실 정보(830)가 감소 또는 최소화되도록 파라미터를 갱신할 수 있다.The first DNN 700 may update parameters so that the final loss information determined based on the structural loss information 810, complexity loss information 820, and quality loss information 830 is reduced or minimized. Additionally, the second DNN 300 may update parameters so that quality loss information 830 is reduced or minimized.

제 1 DNN(700) 및 제 2 DNN(300)의 훈련을 위한 최종 손실 정보는 아래의 수학식 1과 같이 결정될 수 있다.Final loss information for training of the first DNN 700 and the second DNN 300 can be determined as shown in Equation 1 below.

상기 수학식 1에서, LossDS는 제 1 DNN(700)의 훈련을 위해 감소 또는 최소화되어야 할 최종 손실 정보를 나타내고, LossUS는 제 2 DNN(300)의 훈련을 위해 감소 또는 최소화되어야 할 최종 손실 정보를 나타낸다. 또한, a, b, c, d는 미리 결정된 소정의 가중치에 해당할 수 있다.In Equation 1, LossDS represents the final loss information to be reduced or minimized for training of the first DNN (700), and LossUS represents the final loss information to be reduced or minimized for training of the second DNN (300). indicates. Additionally, a, b, c, and d may correspond to predetermined weights.

즉, 제 1 DNN(700)은 수학식 1의 LossDS가 감소되는 방향으로 파라미터들을 갱신하고, 제 2 DNN(300)은 LossUS가 감소되는 방향으로 파라미터들을 갱신하게 된다. 훈련 과정에서 도출된 LossDS에 따라 제 1 DNN(700)의 파라미터들이 갱신되면, 갱신된 파라미터에 기초하여 획득되는 제 1 훈련 영상(802)이 이전 훈련 과정에서의 제 1 훈련 영상(802)과 달라지게 되고, 그에 따라 제 3 훈련 영상(804) 역시 이전 훈련 과정에서의 제 3 훈련 영상(804)과 달라지게 된다. 제 3 훈련 영상(804)이 이전 훈련 과정에서의 제 3 훈련 영상(804)과 달라지게 되면, 퀄리티 손실 정보(830) 역시 새롭게 결정되며, 그에 따라 제 2 DNN(300)은 파라미터들을 갱신한다. 퀄리티 손실 정보(830)가 새롭게 결정되면, LossDS 역시 새롭게 결정되므로, 제 1 DNN(700)은 새롭게 결정된 LossDS에 따라 파라미터들을 갱신한다. 즉, 제 1 DNN(700)의 파라미터 갱신은, 제 2 DNN(300)의 파라미터 갱신을 야기하고, 제 2 DNN(300)의 파라미터 갱신은 제 1 DNN(700)의 파라미터 갱신을 야기하는 것이다. 다시 말하면, 제 1 DNN(700) 및 제 2 DNN(300)은 퀄리티 손실 정보(830)의 공유를 통해 연계 훈련되므로, 제 1 DNN(700)의 파라미터들과 제 2 DNN(300)의 파라미터들이 서로 연관성을 가지고 최적화될 수 있는 것이다.That is, the first DNN 700 updates parameters in a direction that reduces LossDS in Equation 1, and the second DNN 300 updates parameters in a direction that reduces LossUS. When the parameters of the first DNN 700 are updated according to the LossDS derived in the training process, the first training image 802 obtained based on the updated parameters is different from the first training image 802 in the previous training process. loses, and accordingly, the third training video 804 also becomes different from the third training video 804 from the previous training process. If the third training image 804 is different from the third training image 804 in the previous training process, quality loss information 830 is also newly determined, and the second DNN 300 updates the parameters accordingly. When the quality loss information 830 is newly determined, LossDS is also newly determined, so the first DNN 700 updates parameters according to the newly determined LossDS. That is, parameter update of the first DNN (700) causes parameter update of the second DNN (300), and parameter update of the second DNN (300) causes parameter update of the first DNN (700). In other words, the first DNN 700 and the second DNN 300 are trained in conjunction through sharing the quality loss information 830, so the parameters of the first DNN 700 and the parameters of the second DNN 300 are They can be optimized in relation to each other.

수학식 1을 참조하면, LossUS가 퀄리티 손실 정보(830)에 따라 결정되는 것을 알 수 있으나, 이는 하나의 예시이며, LossUS는 구조적 손실 정보(810) 및 복잡성 손실 정보(820) 중 적어도 하나와, 퀄리티 손실 정보(830)에 기초하여 결정될 수도 있다.Referring to Equation 1, it can be seen that LossUS is determined based on quality loss information 830, but this is just one example, and LossUS includes at least one of structural loss information 810 and complexity loss information 820, It may also be determined based on quality loss information 830.

앞서, AI 복호화 장치(200)의 AI 업스케일부(234) 및 AI 부호화 장치(600)의 AI 다운스케일부(612)는 복수의 DNN 설정 정보를 저장하는 것으로 설명하였는데, AI 업스케일부(234) 및 AI 다운스케일부(612)에 저장되는 복수의 DNN 설정 정보 각각을 훈련시키는 방법에 대해 설명한다.Previously, the AI upscale unit 234 of the AI decoding device 200 and the AI downscale unit 612 of the AI encoding device 600 were explained as storing a plurality of DNN setting information, and the AI upscale unit 234 ) and a method of training each of the plurality of DNN setting information stored in the AI downscale unit 612 will be described.

수학식 1과 관련하여 설명한 바와 같이, 제 1 DNN(700)의 경우, 제 1 훈련 영상(802)의 구조적 정보와 원본 훈련 영상(801)의 구조적 정보 사이의 유사 정도(구조적 손실 정보(810)), 제 1 훈련 영상(802)의 제 1 부호화 결과 획득되는 영상 데이터의 비트레이트(복잡성 손실 정보(820)) 및 제 3 훈련 영상(804)과 원본 훈련 영상(801) 사이의 차이(퀄리티 손실 정보(830))를 고려하여 파라미터를 갱신하게 된다. As described in relation to Equation 1, in the case of the first DNN 700, the degree of similarity between the structural information of the first training image 802 and the structural information of the original training image 801 (structural loss information 810) ), the bitrate of the image data obtained as a result of the first encoding of the first training image 802 (complexity loss information 820), and the difference between the third training image 804 and the original training image 801 (quality loss The parameters are updated taking the information 830 into consideration.

자세히 설명하면, 원본 훈련 영상(801)의 구조적 정보와 유사하면서, 제 1 부호화를 하였을 때 획득되는 영상 데이터의 비트레이트가 작은 제 1 훈련 영상(802)이 획득 가능하도록 하는 동시에, 제 1 훈련 영상(802)을 AI 업스케일하는 제 2 DNN(300)이 원본 훈련 영상(801)에 유사한 제 3 훈련 영상(804)을 획득할 수 있도록, 제 1 DNN(700)의 파라미터가 갱신될 수 있다. In detail, it is possible to obtain a first training image 802 that is similar to the structural information of the original training image 801 and has a low bitrate of the image data obtained when performing the first encoding, and at the same time, the first training image 802 is similar to the structural information of the original training image 801. Parameters of the first DNN 700 may be updated so that the second DNN 300, which AI upscales 802, can obtain a third training image 804 similar to the original training image 801.

수학식 1의 a, b, c의 가중치가 조절됨으로써, 제 1 DNN(700)의 파라미터들이 최적화되는 방향이 상이해지게 된다. 예를 들어, b의 가중치를 높게 결정하는 경우, 제 3 훈련 영상(804)의 퀄리티보다 비트레이트가 낮아지는 것에 더 중요도를 두고 제 1 DNN(700)의 파라미터가 갱신될 수 있다. 또한, c의 가중치를 높게 결정하는 경우, 비트레이트가 높아지는 것이나, 원본 훈련 영상(801)의 구조적 정보가 유지되는 것보다 제 3 훈련 영상(804)의 퀄리티가 증가하도록 하는 것에 더 중요도를 두고 제 1 DNN(700)의 파라미터가 갱신될 수 있다.By adjusting the weights of a, b, and c in Equation 1, the direction in which the parameters of the first DNN 700 are optimized becomes different. For example, when the weight of b is determined to be high, the parameters of the first DNN 700 may be updated with greater importance given to lowering the bit rate than to the quality of the third training image 804. In addition, when the weight of c is determined to be high, more importance is placed on increasing the quality of the third training image 804 than on increasing the bit rate or maintaining the structural information of the original training image 801. 1 Parameters of the DNN 700 may be updated.

또한, 제 1 훈련 영상(802)을 제 1 부호화하는데 이용되는 코덱의 타입에 따라 제 1 DNN(700)의 파라미터들이 최적화되는 방향이 상이해질 수 있다. 왜냐하면, 코덱의 종류에 따라, 제 2 DNN(300)으로 입력될 제 2 훈련 영상이 달라질 수 있기 때문이다.Additionally, the direction in which the parameters of the first DNN 700 are optimized may vary depending on the type of codec used to first encode the first training image 802. This is because, depending on the type of codec, the second training image to be input to the second DNN 300 may vary.

즉, 가중치 a, 가중치 b, 가중치 c 및 제 1 훈련 영상(802)의 제 1 부호화를 위한 코덱의 종류에 기반하여 제 1 DNN(700)의 파라미터들과 제 2 DNN(300)의 파라미터들이 연계하여 갱신될 수 있는 것이다. 따라서, 가중치 a, 가중치 b, 가중치 c 각각을 소정의 값으로 결정하고, 코덱의 종류를 소정의 종류로 결정한 후, 제 1 DNN(700)과 제 2 DNN(300)을 훈련시키면, 서로 연계되어 최적화된 제 1 DNN(700)의 파라미터들과 제 2 DNN(300)의 파라미터들이 결정될 수 있다. That is, the parameters of the first DNN 700 and the parameters of the second DNN 300 are linked based on weight a, weight b, weight c, and the type of codec for the first encoding of the first training image 802. So it can be updated. Therefore, when weight a, weight b, and weight c are each set to predetermined values, and the type of codec is determined to be a predetermined type, when the first DNN (700) and the second DNN (300) are trained, they are linked to each other. The optimized parameters of the first DNN 700 and the parameters of the second DNN 300 may be determined.

그리고, 가중치 a, 가중치 b, 가중치 c 및 코덱의 종류를 변경한 후, 제 1 DNN(700)과 제 2 DNN(300)을 훈련시키면, 서로 연계되어 최적화된 제 1 DNN(700)의 파라미터들과 제 2 DNN(300)의 파라미터들이 결정될 수 있다. 다시 말하면, 가중치 a, 가중치 b, 가중치 c 및 코덱의 종류 각각의 값을 변경하면서 제 1 DNN(700)과 제 2 DNN(300)을 훈련시키면 서로 연계되어 훈련된 복수의 DNN 설정 정보가 제 1 DNN(700) 및 제 2 DNN(300)에서 결정될 수 있는 것이다.Then, after changing the type of weight a, weight b, weight c, and codec, when the first DNN 700 and the second DNN 300 are trained, the parameters of the optimized first DNN 700 are linked to each other. and parameters of the second DNN 300 may be determined. In other words, if the first DNN 700 and the second DNN 300 are trained while changing the respective values of weight a, weight b, weight c, and codec type, the plurality of DNN settings information trained in conjunction with each other are converted into the first DNN 700 and the second DNN 300. This can be determined in the DNN 700 and the second DNN 300.

앞서, 도 5와 관련하여 설명한 바와 같이, 제 1 DNN(700) 및 제 2 DNN(300)의 복수의 DNN 설정 정보들은 제 1 영상 관련 정보들에 매핑되어 있을 수 있다. 이러한 매핑 관계의 설정을 위해, 제 1 DNN(700)에서 출력되는 제 1 훈련 영상(802)을 특정 비트레이트에 따라 특정 코덱으로 제 1 부호화하고, 제 1 부호화 결과 획득된 비트스트림을 제 1 복호화하여 획득한 제 2 훈련 영상을 제 2 DNN(300)으로 입력할 수 있다. 즉, 특정 해상도의 제 1 훈련 영상(802)이 특정 코덱에 의해 특정 비트레이트로 제 1 부호화되도록 환경을 설정한 후, 제 1 DNN(700) 및 제 2 DNN(300)을 훈련시킴으로써, 제 1 훈련 영상(802)의 해상도, 제 1 훈련 영상(802)의 제 1 부호화에 이용된 코덱의 종류 및 제 1 훈련 영상(802)의 제 1 부호화 결과 획득된 비트스트림의 비트레이트에 매핑된 DNN 설정 정보 쌍이 결정될 수 있는 것이다. 제 1 훈련 영상(802)의 해상도, 제 1 훈련 영상(802)의 제 1 부호화에 이용된 코덱의 종류 및 제 1 훈련 영상(802)의 제 1 부호화에 따라 획득되는 비트스트림의 비트레이트를 다양하게 변경시킴으로써, 제 1 DNN(700) 및 제 2 DNN(300)의 복수의 DNN 설정 정보들과 제 1 영상 관련 정보들 사이의 매핑 관계가 결정될 수 있다.As previously described with reference to FIG. 5 , a plurality of DNN setting information of the first DNN 700 and the second DNN 300 may be mapped to the first image-related information. To establish this mapping relationship, the first training image 802 output from the first DNN 700 is first encoded with a specific codec according to a specific bit rate, and the bitstream obtained as a result of the first encoding is first decoded. The obtained second training image can be input to the second DNN (300). That is, after setting the environment so that the first training image 802 of a specific resolution is first encoded at a specific bit rate by a specific codec, by training the first DNN 700 and the second DNN 300, the first DNN settings mapped to the resolution of the training image 802, the type of codec used for the first encoding of the first training image 802, and the bit rate of the bitstream obtained as a result of the first encoding of the first training image 802. Information pairs can be determined. The resolution of the first training image 802, the type of codec used for the first encoding of the first training image 802, and the bit rate of the bitstream obtained according to the first encoding of the first training image 802 are varied. By changing this, the mapping relationship between the plurality of DNN setting information of the first DNN 700 and the second DNN 300 and the first image-related information can be determined.

도 10는 훈련 장치(1000)에 의한 제 1 DNN(700) 및 제 2 DNN(300)의 훈련 과정을 설명하기 위한 도면이다.FIG. 10 is a diagram illustrating the training process of the first DNN 700 and the second DNN 300 by the training device 1000.

도 9와 관련하여 설명한 제 1 DNN(700) 및 제 2 DNN(300)의 훈련은 훈련 장치(1000)에 의해 수행될 수 있다. 훈련 장치(1000)는 제 1 DNN(700) 및 제 2 DNN(300)을 포함한다. 훈련 장치(1000)는 예를 들어, AI 부호화 장치(600) 또는 별도의 서버일 수 있다. 훈련 결과 획득된 제 2 DNN(300)의 DNN 설정 정보들은 AI 복호화 장치(200)에 저장된다.Training of the first DNN 700 and the second DNN 300 described with reference to FIG. 9 may be performed by the training device 1000. The training device 1000 includes a first DNN 700 and a second DNN 300. The training device 1000 may be, for example, the AI encoding device 600 or a separate server. The DNN setting information of the second DNN 300 obtained as a result of training is stored in the AI decoding device 200.

도 10를 참조하면, 훈련 장치(1000)는 제 1 DNN(700) 및 제 2 DNN(300)의 DNN 설정 정보를 초기 세팅한다(S840, S845). 이에 의해, 제 1 DNN(700) 및 제 2 DNN(300)은 미리 결정된 DNN 설정 정보에 따라 동작할 수 있다. DNN 설정 정보는 제 1 DNN(700) 및 2 DNN(300)에 포함되는 컨볼루션 레이어의 수, 컨볼루션 레이어별 필터 커널의 개수, 컨볼루션 레이어별 필터 커널의 크기 및 각 필터 커널의 파라미터 중 적어도 하나에 대한 정보를 포함할 수 있다.Referring to FIG. 10, the training device 1000 initially sets DNN configuration information of the first DNN 700 and the second DNN 300 (S840, S845). As a result, the first DNN 700 and the second DNN 300 can operate according to predetermined DNN setting information. The DNN setting information includes at least the number of convolution layers included in the first DNN (700) and the second DNN (300), the number of filter kernels for each convolution layer, the size of the filter kernel for each convolution layer, and the parameters of each filter kernel. It can contain information about one thing.

훈련 장치(1000)는 원본 훈련 영상(801)을 제 1 DNN(700)으로 입력한다(S850). 원본 훈련 영상(801)은 정지 영상 또는 동영상을 구성하는 적어도 하나의 프레임을 포함할 수 있다.The training device 1000 inputs the original training image 801 into the first DNN 700 (S850). The original training image 801 may include at least one frame constituting a still image or video.

제 1 DNN(700)은 초기 세팅된 DNN 설정 정보에 따라 원본 훈련 영상(801)을 처리하고, 원본 훈련 영상(801)으로부터 AI 다운스케일된 제 1 훈련 영상(802)을 출력한다(S855). 도 10은 제 1 DNN(700)으로부터 출력된 제 1 훈련 영상(802)이 제 2 DNN(300)으로 바로 입력되는 것으로 도시되어 있으나, 제 1 DNN(700)으로부터 출력된 제 1 훈련 영상(802)이 훈련 장치(1000)에 의해 제 2 DNN(300)으로 입력될 수 있다. 또한, 훈련 장치(1000)는 제 1 훈련 영상(802)을 소정의 코덱으로 제 1 부호화 및 제 1 복호화한 후, 제 2 훈련 영상을 제 2 DNN(300)으로 입력할 수 있다.The first DNN 700 processes the original training image 801 according to the initially set DNN setting information and outputs the first training image 802 that is AI downscaled from the original training image 801 (S855). Figure 10 shows that the first training image 802 output from the first DNN 700 is directly input to the second DNN 300, but the first training image 802 output from the first DNN 700 ) may be input into the second DNN (300) by the training device (1000). Additionally, the training device 1000 may first encode and first decode the first training image 802 using a predetermined codec, and then input the second training image into the second DNN 300.

제 2 DNN(300)은 제 1 훈련 영상(802) 또는 제 2 훈련 영상을 초기 세팅된 DNN 설정 정보에 따라 처리하고, 제 1 훈련 영상(802) 또는 제 2 훈련 영상으로부터 AI 업스케일된 제 3 훈련 영상(804)을 출력한다(S860).The second DNN 300 processes the first training image 802 or the second training image according to the initially set DNN setting information, and generates a third AI upscaled image from the first training image 802 or the second training image. The training video 804 is output (S860).

훈련 장치(1000)는 제 1 훈련 영상(802)에 기초하여 복잡성 손실 정보(820)를 산출한다(S865).The training device 1000 calculates complexity loss information 820 based on the first training image 802 (S865).

훈련 장치(1000)는 축소 훈련 영상(803)과 제 1 훈련 영상(802)을 비교하여 구조적 손실 정보(810)를 산출한다(S870).The training device 1000 compares the reduced training image 803 and the first training image 802 to calculate structural loss information 810 (S870).

훈련 장치(1000)는 원본 훈련 영상(801)과 제 3 훈련 영상(804)을 비교하여 퀄리티 손실 정보(830)를 산출한다(S875).The training device 1000 compares the original training image 801 and the third training image 804 and calculates quality loss information 830 (S875).

제 1 DNN(700)은 최종 손실 정보에 기초한 역전사(back propagation) 과정을 통해 초기 세팅된 DNN 설정 정보를 갱신한다(S880). 훈련 장치(1000)는 복잡성 손실 정보(820), 구조적 손실 정보(810) 및 퀄리티 손실 정보(830)에 기초하여 제 1 DNN(700)의 훈련을 위한 최종 손실 정보를 산출할 수 있다.The first DNN 700 updates the initially set DNN configuration information through a back propagation process based on the final loss information (S880). The training apparatus 1000 may calculate final loss information for training of the first DNN 700 based on complexity loss information 820, structural loss information 810, and quality loss information 830.

제 2 DNN(300)은 퀄리티 손실 정보 또는 최종 손실 정보에 기초한 역전사 과정을 통해 초기 세팅된 DNN 설정 정보를 갱신한다(S885). 훈련 장치(1000)는 퀄리티 손실 정보(830)에 기초하여 제 2 DNN(300)의 훈련을 위한 최종 손실 정보를 산출할 수 있다.The second DNN 300 updates the initially set DNN setting information through a reverse transcription process based on quality loss information or final loss information (S885). The training device 1000 may calculate final loss information for training the second DNN 300 based on the quality loss information 830.

이후, 훈련 장치(1000), 제 1 DNN(700) 및 제 2 DNN(300)은 최종 손실 정보들이 최소화될 때까지 S850 내지 S885 과정을 반복하면서 DNN 설정 정보를 갱신한다. 이 때, 각 반복 과정 동안 제 1 DNN(700) 및 제 2 DNN은 이전 과정에서 갱신된 DNN 설정 정보에 따라 동작한다.Thereafter, the training device 1000, the first DNN 700, and the second DNN 300 update the DNN configuration information by repeating processes S850 to S885 until the final loss information is minimized. At this time, during each iteration process, the first DNN 700 and the second DNN operate according to the DNN configuration information updated in the previous process.

아래의 표 1은 본 개시의 일 실시예에 따라 원본 영상(105)을 AI 부호화 및 AI 복호화한 경우와, HEVC로 원본 영상(105)을 부호화 및 복호화한 경우의 효과를 나타낸다.Table 1 below shows the effects of AI encoding and AI decoding of the original image 105 and of encoding and decoding the original image 105 with HEVC according to an embodiment of the present disclosure.

표 1에서 알 수 있듯이, 본 개시의 일 실시예에 따라 8K 해상도의 300개의 프레임들로 이루어진 컨텐츠들을 AI 부호화 및 AI 복호화한 경우의 주관적 화질이 HEVC로 부호화 및 복호화한 경우의 주관적 화질보다 높음에도, 비트레이트가 50% 이상 감소한 것을 알 수 있다.As can be seen in Table 1, although the subjective image quality when AI encoding and AI decoding content consisting of 300 frames of 8K resolution according to an embodiment of the present disclosure is higher than the subjective image quality when encoding and decoding with HEVC , it can be seen that the bit rate has decreased by more than 50%.

도 11은 원본 영상(105)의 AI 다운스케일을 위한 장치(20) 및 제 2 영상(135)의 AI 업스케일을 위한 장치(40)를 도시하는 예시적인 도면이다.FIG. 11 is an exemplary diagram illustrating an apparatus 20 for AI downscaling of the original image 105 and an apparatus 40 for AI upscaling of the second image 135.

장치(20)는 원본 영상(105)을 수신하고, AI 다운스케일부(1124) 및 변환 기반 부호화부(1126)를 이용하여 영상 데이터(25) 및 AI 데이터(30)를 장치(40)로 제공한다. 일 실시예에서, 영상 데이터(25)는 도 1의 영상 데이터에 대응하고, AI 데이터(30)는 도 1의 AI 데이터에 대응한다. 또한, 일 실시예에서, 변환 기반 부호화부(1126)는 도 7의 제 1 부호화부(614)에 대응하고, AI 다운스케일부(1124)는 도 7의 AI 다운스케일부(612)에 대응한다.The device 20 receives the original image 105 and provides image data 25 and AI data 30 to the device 40 using the AI downscale unit 1124 and the transformation-based encoding unit 1126. do. In one embodiment, image data 25 corresponds to the image data in FIG. 1 and AI data 30 corresponds to AI data in FIG. 1 . Additionally, in one embodiment, the transform-based encoder 1126 corresponds to the first encoder 614 of FIG. 7, and the AI downscale unit 1124 corresponds to the AI downscale unit 612 of FIG. 7. .

장치(40)는 AI 데이터(30) 및 영상 데이터(25)를 수신하고, 변환 기반 복호화부(1146) 및 AI 업스케일부(1144)를 이용하여 제 3 영상(145)을 획득한다. 일 실시예에서, 변환 기반 복호화부(1146)는 도 2의 제 1 복호화부(232)에 대응하고, AI 업스케일부(1144)는 도 2의 AI 업스케일부(234)에 대응한다.The device 40 receives the AI data 30 and the image data 25, and acquires the third image 145 using the transformation-based decoding unit 1146 and the AI upscaling unit 1144. In one embodiment, the transform-based decoding unit 1146 corresponds to the first decoding unit 232 of FIG. 2, and the AI upscaling unit 1144 corresponds to the AI upscaling unit 234 of FIG. 2.

일 실시예에서, 장치(20)는 CPU, 메모리 및 인스트럭션들을 포함하는 컴퓨터 프로그램을 포함한다. 컴퓨터 프로그램은 메모리에 저장된다. 일 실시예에서, CPU에 의한 컴퓨터 프로그램의 실행에 따라, 장치(20)는 도 11과 관련하여 설명할 기능을 수행한다. 일 실시예에서, 전용 하드웨어 칩 및/또는 CPU에 의해 도 11과 관련하여 설명할 기능이 수행된다.In one embodiment, device 20 includes a CPU, memory, and a computer program including instructions. Computer programs are stored in memory. In one embodiment, upon execution of a computer program by a CPU, device 20 performs the functions described with respect to FIG. 11 . In one embodiment, the functions described with respect to FIG. 11 are performed by dedicated hardware chips and/or CPUs.

일 실시예에서, 장치(40)는 CPU, 메모리 및 인스트럭션들을 포함하는 컴퓨터 프로그램을 포함한다. 컴퓨터 프로그램은 메모리에 저장된다. 일 실시예에서, CPU에 의한 컴퓨터 프로그램의 실행에 따라, 장치(40)는 도 11과 관련하여 설명할 기능을 수행한다. 일 실시예에서, 전용 하드웨어 칩 및/또는 CPU에 의해 도 11과 관련하여 설명할 기능이 수행된다.In one embodiment, device 40 includes a CPU, memory, and a computer program including instructions. Computer programs are stored in memory. In one embodiment, upon execution of a computer program by a CPU, device 40 performs the functions described with respect to FIG. 11 . In one embodiment, the functions described with respect to FIG. 11 are performed by dedicated hardware chips and/or CPUs.

도 11에서, 구성 제어부(1122)는 하나 이상의 입력 값(10)을 수신한다. 일 실시예에서, 하나 이상의 입력 값(10)은 AI 다운스케일부(1124) 및 AI 업스케일부(1144)를 위한 타겟 해상도 차이, 영상 데이터(25)의 비트레이트, 영상 데이터(25)의 비트레이트 타입(예를 들어, variable bitrate 타입, constant bitrate 타입 또는 average bitrate 타입 등) 및 변환 기반 부호화부(1126)를 위한 코덱 타입 중 적어도 하나를 포함할 수 있다. 하나 이상의 입력 값(10)은 장치(20)에 미리 저장되거나, 사용자로부터 입력받은 값을 포함할 수 있다.11, configuration control 1122 receives one or more input values 10. In one embodiment, one or more input values 10 include the target resolution difference for the AI downscale unit 1124 and the AI upscale unit 1144, the bit rate of the image data 25, and the bit rate of the image data 25. It may include at least one of a rate type (eg, variable bitrate type, constant bitrate type, or average bitrate type, etc.) and a codec type for the conversion-based encoder 1126. One or more input values 10 may be pre-stored in the device 20 or may include values input from a user.

구성 제어부(1122)는 수신된 입력 값(10)에 기초하여 AI 다운스케일부(1124) 및 변환 기반 부호화부(1126)의 동작을 제어한다. 일 실시예에서, 구성 제어부(1122)는 수신된 입력 값(10)에 따라 AI 다운스케일부(1124)를 위한 DNN 설정 정보를 획득하고, 획득한 DNN 설정 정보로 AI 다운스케일부(1124)를 세팅한다. 일 실시예에서, 구성 제어부(1122)는 수신된 입력 값(10)을 AI 다운스케일부(1124)로 전달하고, AI 다운스케일부(1124)는 수신된 입력 값(10)에 기초하여 원본 영상(105)을 AI 다운스케일하기 위한 DNN 설정 정보를 획득할 수 있다. 일 실시예에서, 구성 제어부(1122)는 입력 값(10)과 함께 추가 정보, 예를 들어, AI 다운스케일이 적용되는 컬러 포맷(휘도 성분, 색차 성분, 레드 성분, 그린 성분 또는 블루 성분 등) 정보, HDR(high dynamic range)의 톤 매핑(tone mapping) 정보 등을 AI 다운스케일부(1124)로 제공하고, AI 다운스케일부(1124)는 입력 값(10) 및 추가 정보를 고려하여 DNN 설정 정보를 획득할 수도 있다. 일 실시예에서, 구성 제어부(1122)는 수신된 입력 값(10)의 적어도 일부를 변환 기반 부호화부(1126)로 전달하여 변환 기반 부호화부(1126)가 특정 값의 비트레이트, 특정 타입의 비트레이트 및 특정 코덱으로 제 1 영상(115)을 제 1 부호화하게 한다.The configuration control unit 1122 controls the operations of the AI downscale unit 1124 and the transform-based encoding unit 1126 based on the received input value 10. In one embodiment, the configuration control unit 1122 obtains DNN setting information for the AI downscale unit 1124 according to the received input value 10, and configures the AI downscale unit 1124 with the obtained DNN setting information. Set it. In one embodiment, the configuration control unit 1122 transmits the received input value 10 to the AI downscale unit 1124, and the AI downscale unit 1124 determines the original image based on the received input value 10. DNN setting information for AI downscaling of (105) can be obtained. In one embodiment, the configuration control unit 1122 provides additional information along with the input value 10, such as the color format to which AI downscale is applied (luminance component, chrominance component, red component, green component, or blue component, etc.). Information, HDR (high dynamic range) tone mapping information, etc. are provided to the AI downscale unit 1124, and the AI downscale unit 1124 sets the DNN considering the input value (10) and additional information. Information can also be obtained. In one embodiment, the configuration control unit 1122 transfers at least a portion of the received input value 10 to the transform-based encoding unit 1126 so that the transform-based encoding unit 1126 generates a bit rate of a specific value and a specific type of bit. The first image 115 is first encoded at a rate and a specific codec.

AI 다운스케일부(1124)는 원본 영상(105)을 수신하고, 제 1 영상(115)을 획득하기 위해 도 1, 도 7, 도 8, 도 9 및 도 10 중 적어도 하나와 관련하여 설명한 동작을 수행한다.The AI downscale unit 1124 receives the original image 105 and performs the operation described in relation to at least one of FIGS. 1, 7, 8, 9, and 10 to obtain the first image 115. Perform.

일 실시예에서, AI 데이터(30)는 장치(40)로 제공된다. AI 데이터(30)는 원본 영상(105)과 제 1 영상(115) 사이의 해상도 차이 정보 및 제 1 영상(115) 관련 정보 중 적어도 하나를 포함할 수 있다. 해상도 차이 정보는 입력 값(10)의 타겟 해상도 차이에 기반하여 결정될 수 있고, 제 1 영상(115) 관련 정보는 타겟 비트레이트, 비트레이트 타입 및 코덱 타입 중 적어도 하나에 기반하여 결정될 수 있다. 일 실시예에서, AI 데이터(30)는 AI 업스케일 과정에 이용되는 파라미터들을 포함할 수도 있다. AI 데이터는 AI 다운스케일부(1124)로부터 장치(40)로 제공될 수도 있다.In one embodiment, AI data 30 is provided to device 40. The AI data 30 may include at least one of resolution difference information between the original image 105 and the first image 115 and information related to the first image 115. Resolution difference information may be determined based on the target resolution difference of the input value 10, and information related to the first image 115 may be determined based on at least one of target bitrate, bitrate type, and codec type. In one embodiment, AI data 30 may include parameters used in the AI upscaling process. AI data may be provided to the device 40 from the AI downscale unit 1124.

제 1 영상(105)은 변환 기반 부호화부(1126)에 의해 처리되어 영상 데이터(25)가 획득되고, 영상 데이터(25)는 장치(40)로 전달된다. 변환 기반 부호화부(1126)는 MPEG-2, H.264 AVC, MPEG-4, HEVC, VC-1, VP8, VP9 또는 AV1에 따라 제 1 영상(115)을 처리할 수 있다.The first image 105 is processed by the transform-based encoding unit 1126 to obtain image data 25, and the image data 25 is transmitted to the device 40. The transform-based encoder 1126 may process the first image 115 according to MPEG-2, H.264 AVC, MPEG-4, HEVC, VC-1, VP8, VP9, or AV1.

구성 제어부(1142)는 AI 데이터(30)에 기초하여 AI 업스케일부(1144)의 동작을 제어한다. 일 실시예에서, 구성 제어부(1142)는 수신된 AI 데이터(30)에 따라 AI 업스케일부(1144)를 위한 DNN 설정 정보를 획득하고, 획득한 DNN 설정 정보로 AI 업스케일부(1144)를 세팅한다. 일 실시예에서, 구성 제어부(1142)는 수신된 AI 데이터(30)을 AI 업스케일부(1144)로 전달하고, AI 업스케일부(1144)는 AI 데이터(30)에 기초하여 제 2 영상(135)을 AI 업스케일하기 위한 DNN 설정 정보를 획득할 수 있다. 일 실시예에서, 구성 제어부(1142)는 AI 데이터(30)와 함께 추가 정보, 예를 들어, AI 업스케일이 적용되는 컬러 포맷(휘도 성분, 색차 성분, 레드 성분, 그린 성분 또는 블루 성분 등) 정보, HDR(high dynamic range)의 톤 매핑 정보 등을 AI 업스케일부(1144)로 제공하고, AI 업스케일부(1144)는 AI 데이터(30) 및 추가 정보를 고려하여 DNN 설정 정보를 획득할 수도 있다. 일 실시예에서, AI 업스케일부(1144)는 구성 제어부(1142)로부터 AI 데이터(30)를 수신하고, 변환 기반 복호화부(1146)로부터 예측 모드 정보, 움직임 정보 및 양자화 파라미터 정보 중 적어도 하나를 수신하고, 예측 모드 정보, 움직임 정보 및 양자화 파라미터 정보 중 적어도 하나와 AI 데이터(30)에 기초하여 DNN 설정 정보를 획득할 수도 있다.The configuration control unit 1142 controls the operation of the AI upscale unit 1144 based on the AI data 30. In one embodiment, the configuration control unit 1142 obtains DNN setting information for the AI upscale unit 1144 according to the received AI data 30, and configures the AI upscale unit 1144 with the obtained DNN setting information. Set it. In one embodiment, the configuration control unit 1142 transmits the received AI data 30 to the AI upscale unit 1144, and the AI upscale unit 1144 generates a second image based on the AI data 30. 135), DNN configuration information for AI upscaling can be obtained. In one embodiment, the configuration control unit 1142 may store additional information along with the AI data 30, such as the color format to which AI upscaling is applied (luminance component, chrominance component, red component, green component, or blue component, etc.). Information, HDR (high dynamic range) tone mapping information, etc. are provided to the AI upscale unit 1144, and the AI upscale unit 1144 obtains DNN setting information by considering the AI data 30 and additional information. It may be possible. In one embodiment, the AI upscale unit 1144 receives AI data 30 from the configuration control unit 1142 and receives at least one of prediction mode information, motion information, and quantization parameter information from the transform-based decoding unit 1146. DNN configuration information may be obtained based on AI data 30 and at least one of prediction mode information, motion information, and quantization parameter information.

변환 기반 복호화부(1146)는 영상 데이터(25)를 처리하여 제 2 영상(135)을 복원한다. 변환 기반 복호화부(1146)는 MPEG-2, H.264 AVC, MPEG-4, HEVC, VC-1, VP8, VP9 또는 AV1에 따라 영상 데이터(25)를 처리할 수 있다.The transformation-based decoder 1146 processes the image data 25 and restores the second image 135. The transformation-based decoder 1146 can process the video data 25 according to MPEG-2, H.264 AVC, MPEG-4, HEVC, VC-1, VP8, VP9, or AV1.

AI 업스케일부(1144)는 세팅된 DNN 설정 정보를 기초로 변환 기반 복호화부(1146)로부터 제공되는 제 2 영상(135)을 AI 업스케일하여 제 3 영상(145)을 획득한다.The AI upscale unit 1144 obtains the third image 145 by AI upscaling the second image 135 provided from the transformation-based decoding unit 1146 based on the set DNN setting information.

AI 다운스케일부(1124)는 제 1 DNN을 포함하고, AI 업스케일부(1144)는 제 2 DNN을 포함할 수 있는데, 일 실시예에서, 제 1 DNN 및 제 2 DNN을 위한 DNN 설정 정보들은 도 9 및 도 10과 관련하여 설명한 훈련 방법에 따라 훈련된다.The AI downscale unit 1124 may include a first DNN, and the AI upscale unit 1144 may include a second DNN. In one embodiment, DNN configuration information for the first DNN and the second DNN includes Trained according to the training method described in relation to FIGS. 9 and 10.

한편, 도 2에 도시된 AI 복호화 장치(200)는 방송(예를 들어, 지상파 방송, 케이블 방송, 위성 방송) 데이터 또는 스트리밍 컨텐츠를 수신하여, 수신한 방송 데이터 또는 스트리밍 컨텐츠를 AI 복호화하고, AI 복호화 된 영상을 디스플레이하거나 디스플레이하도록 외부로 출력할 수 있다. 그러나, 컨텐츠 제작자가 제공하는 UX(user experience) 등에 특화된 전용 미디어 스트리밍 허브 장치(예를 들어, dedicated media streaming hub, e.g. firestick, Chromecast 등)를 사용하여, 스트리밍 컨텐츠를 수신하는 경우, 스트리밍 허브 장치는 제1 복호화를 수행하고, 스트리밍 허브 장치와 연결된 별도의 장치에서 제1 복호화 된 제2 영상의 AI 업 스케일이 수행될 수 있다.Meanwhile, the AI decoding device 200 shown in FIG. 2 receives broadcast (e.g., terrestrial broadcasting, cable broadcasting, satellite broadcasting) data or streaming content, AI decrypts the received broadcast data or streaming content, and AI The decoded video can be displayed or output externally for display. However, when receiving streaming content using a dedicated media streaming hub device (e.g., dedicated media streaming hub, e.g. firestick, Chromecast, etc.) specialized in UX (user experience) provided by the content creator, the streaming hub device The first decoding may be performed, and AI upscaling of the first decoded second image may be performed in a separate device connected to the streaming hub device.

이에 따라, 제1 복호화(130)와 AI 업 스케일(140)을 각각 분리하여 수행할 수 있는 장치들 및 장치들을 서로 연결하고, AI 업 스케일에 필요한 AI 데이터를 송수신할 수 있는 방법이 필요하다.Accordingly, there is a need for devices that can separately perform the first decoding 130 and AI upscaling 140, and a method for connecting the devices to each other and transmitting and receiving AI data required for AI upscaling.

도 12는 일 실시예에 따른 AI 복호화 시스템을 나타내는 도면이다.Figure 12 is a diagram showing an AI decoding system according to an embodiment.

일 실시예에 따른 AI 복호화 시스템(1000)은 복호화 장치(1100) 및 AI 업스케일 장치(1200)를 포함할 수 있다.The AI decoding system 1000 according to an embodiment may include a decoding device 1100 and an AI upscaling device 1200.

일 실시예에 따른 복호화 장치(1100)는 외부 소스, 외부 서버 또는 외부 장치로부터 부호화된 데이터 또는 부호화된 신호를 수신하여, 부호화된 데이터 또는 신호를 복호화하는 장치를 의미할 수 있다. 일 실시예에 따른 복호화 장치(1100)는, 셋탑 박스(set-top box), 동글 (dongle) 등의 형태로 구현될 수 있다. 다만, 이에 한정되지 않으며, 외부 장치들로부터, 멀티미디어 데이터를 수신할 수 있는 다양한 전자 장치로 구현될 수 있다.The decoding device 1100 according to an embodiment may refer to a device that receives encoded data or an encoded signal from an external source, an external server, or an external device and decodes the encoded data or signal. The decoding device 1100 according to one embodiment may be implemented in the form of a set-top box, dongle, etc. However, it is not limited to this and can be implemented with various electronic devices capable of receiving multimedia data from external devices.

일 실시예에 따른 복호화 장치(1100)는 AI 부호화 데이터를 수신하고, AI 부호화 데이터에 기초하여, 제1 복호화를 수행할 수 있다. AI 부호화 데이터는 원본 영상의 AI 다운 스케일 및 제1 부호화 결과 생성된 데이터로, 영상 데이터 및 AI 데이터를 포함할 수 있다. 복호화 장치(1100)는 영상 데이터의 제1 복호화를 통해, 제1 영상에 대응하는 제2 영상을 복원할 수 있다. 이때, 제1 영상은, 원본 영상이 AI 다운스케일된 영상일 수 있다.The decoding device 1100 according to an embodiment may receive AI encoded data and perform first decoding based on the AI encoded data. AI encoded data is data generated as a result of AI downscaling and first encoding of the original video, and may include video data and AI data. The decoding device 1100 may restore the second image corresponding to the first image through the first decoding of the image data. At this time, the first image may be an image in which the original image has been AI downscaled.

일 실시예에 따른 제1 복호화는, 영상 데이터를 엔트로피 복호화하여 양자화된 잔차 데이터를 생성하는 과정, 양자화된 잔차 데이터를 역양자화하는 과정, 예측 데이터를 생성하는 과정, 예측 데이터와 잔차 데이터를 이용하여 제 2 영상을 복원하는 과정 등을 포함할 수 있다. 이와 같은, 제 1 복호화 과정은 AI 다운스케일된 제1 영상을 제1 부호화하는 과정에서 사용된 MPEG-2, H.264, MPEG-4, HEVC, VC-1, VP8, VP9 및 AV1 등 주파수 변환을 이용한 영상 압축 방법 중의 하나에 대응되는 영상 복원 방법을 통해 구현될 수 있다.The first decoding according to an embodiment includes a process of entropy decoding image data to generate quantized residual data, a process of dequantizing the quantized residual data, a process of generating prediction data, and using the prediction data and residual data. A process of restoring the second image may be included. As such, the first decoding process is frequency conversion such as MPEG-2, H.264, MPEG-4, HEVC, VC-1, VP8, VP9, and AV1 used in the first encoding process of the AI downscaled first image. It can be implemented through an image restoration method corresponding to one of the image compression methods using .

일 실시예에 따른 복호화 장치(1100)는 복원된 제2 영상과, AI 부호화 데이터에 포함되는 AI 데이터를 AI 업 스케일 장치(1200)로 전송할 수 있다. 이때, 복호화 장치(1100)는 입/출력 인터페이스를 통해, 제2 영상 및 AI 데이터를 AI 업스케일 장치(1200)로 전송할 수 있다.The decoding device 1100 according to an embodiment may transmit the restored second image and AI data included in the AI encoded data to the AI upscale device 1200. At this time, the decoding device 1100 may transmit the second image and AI data to the AI upscaling device 1200 through the input/output interface.

또한, 복호화 장치(1100)는 영상 데이터에 포함된 모드 정보, 양자화 파라미터 정보 등 제1 복호화 관련 정보를 입/출력 인터페이스를 통해, AI 업 스케일 장치(1200)로 더 전송할 수 있다. Additionally, the decoding device 1100 may further transmit first decoding-related information, such as mode information and quantization parameter information included in the image data, to the AI upscale device 1200 through an input/output interface.

예를 들어, 복호화 장치(1100)와 AI 업 스케일 장치(1200)는 HDMI 케이블 또는 DP(Display Port) 케이블로 연결될 수 있으며, 복호화 장치(1100)는 HDMI 또는 DP를 통해, 제2 영상 및 AI 데이터를 AI 업 스케일 장치(1200)로 전송할 수 있다.For example, the decoding device 1100 and the AI upscale device 1200 may be connected with an HDMI cable or a DP (Display Port) cable, and the decoding device 1100 may transmit the second video and AI data through HDMI or DP. Can be transmitted to the AI upscale device 1200.

일 실시예에 따른 AI 업 스케일 장치(1200)는 복호화 장치(1100)로부터 수신한 AI 데이터를 이용하여, 제2 영상을 AI 업스케일할 수 있다. 예를 들어, 제2 DNN을 통해, 제2 영상을 AI 업 스케일하여, 제3 영상을 생성할 수 있다. The AI upscale device 1200 according to an embodiment may use AI data received from the decoding device 1100 to AI upscale the second image. For example, the third image can be generated by AI upscaling the second image through the second DNN.

또한, 일 실시예에 따른 AI 업 스케일 장치(1200)는 디스플레이를 포함하는 전자 장치로 구현될 수 있다. 예를 들어, AI 업 스케일 장치(1200)는, TV, 휴대폰, 태블릿 PC, 디지털 카메라, 캠코더, 노트북 컴퓨터(laptop computer), 데스크탑, 호환 가능한 컴퓨터 모니터(compatible computer monitor), 비디오 프로젝터(video projector), 디지털 방송용 단말기, PDA(Personal Digital Assistants), PMP(Portable Multimedia Player), 네비게이션 등과 같은 다양한 전자 장치로 구현될 수 있다.Additionally, the AI upscale device 1200 according to one embodiment may be implemented as an electronic device including a display. For example, the AI upscale device 1200 may be used in a TV, a mobile phone, a tablet PC, a digital camera, a camcorder, a laptop computer, a desktop, a compatible computer monitor, or a video projector. , can be implemented in various electronic devices such as digital broadcasting terminals, PDAs (Personal Digital Assistants), PMPs (Portable Multimedia Players), navigation, etc.

일 실시예에 따른 AI 업 스케일 장치(1200)가 디스플레이를 포함하는 경우, AI 업 스케일 장치(1200)는 제2 영상 또는 제3 영상을 디스플레이에 표시할 수 있다.When the AI upscale device 1200 according to an embodiment includes a display, the AI upscale device 1200 may display a second image or a third image on the display.

도 13은 일 실시예에 따른 복호화 장치의 구성을 나타내는 도면이다.Figure 13 is a diagram showing the configuration of a decoding device according to an embodiment.

도 13을 참조하면, 일 실시예에 따른 복호화 장치(1100)는 수신부(1110), 제1 복호화부(1120) 및 입/출력부(1130)를 포함할 수 있다.Referring to FIG. 13, the decoding device 1100 according to an embodiment may include a receiving unit 1110, a first decoding unit 1120, and an input/output unit 1130.

일 실시예에 따른 수신부(1110)는 AI 부호화 결과 생성된 AI 부호화 데이터를 수신할 수 있다. 수신부(1110)는 통신부(1111), 파싱부(1112) 및 출력부(1113)를 포함할 수 있다. 수신부(1110)는 AI 부호화 결과 생성된 AI 부호화 데이터를 수신 및 파싱하고, 영상 데이터와 AI 데이터를 구분하여, 영상 데이터는 제1 복호화부(1120)로 출력하고, AI 데이터는 입/출력부(1130)로 출력한다.The receiving unit 1110 according to one embodiment may receive AI encoded data generated as a result of AI encoding. The receiving unit 1110 may include a communication unit 1111, a parsing unit 1112, and an output unit 1113. The receiving unit 1110 receives and parses the AI encoded data generated as a result of AI encoding, separates the image data from the AI data, outputs the image data to the first decoder 1120, and outputs the AI data to the input/output unit ( 1130).

구체적으로, 통신부(1111)는 네트워크를 통해 AI 부호화 결과 생성된 AI 부호화 데이터를 수신한다. AI 부호화 결과 생성된 AI 부호화 데이터는 영상 데이터와 AI 데이터를 포함한다.Specifically, the communication unit 1111 receives AI encoded data generated as a result of AI encoding through the network. AI encoded data generated as a result of AI encoding includes video data and AI data.

일 실시예에 따른 AI 데이터는, 영상 데이터와 함께 비디오 파일에 포함되어, 수신될 수 있다. AI 데이터가 비디오 파일에 포함되는 경우, AI 데이터는 비디오 파일의 헤더의 메타데이터에 포함될 수 있다.AI data according to one embodiment may be received by being included in a video file along with image data. When AI data is included in a video file, the AI data may be included in metadata in the header of the video file.

또는, AI 부호화된 영상 데이터가 기 설정된 시간 단위로 분할된 세그먼트로 수신되는 경우, AI 데이터는, 세그먼트의 메타데이터에 포함될 수 있다.Alternatively, when AI-encoded video data is received as segments divided in preset time units, the AI data may be included in the metadata of the segments.

또는, AI 데이터는 부호화되어 비트스트림에 포함된 형태로 수신될 수 있다. 또는, AI 데이터는 별도의 파일로 수신될 수 있다.Alternatively, AI data may be encoded and received in a form included in a bitstream. Alternatively, AI data may be received as a separate file.

도 13은, AI 데이터가 메타데이터의 형태로 수신되는 경우를 나타낸다.Figure 13 shows a case where AI data is received in the form of metadata.

AI 부호화 데이터는 영상 데이터와 AI 데이터로 구분될 수 있다. 예를 들어, 파싱부(1112)는 통신부(1111)를 통해 수신된 AI 부호화 데이터를 전달받아 파싱(parsing)하여 영상 데이터와 AI 데이터로 구분한다. 예를 들어, 네트워크를 통해 수신된 데이터가 멀티미디어 데이터를 저장 또는 전송하기 위해 널리 사용되는 ISO Base Media File Format 규격을 따르는 MP4 파일 형식으로 구성되어 있을 수 있다. MP4 파일 형식은 복수 개의 박스로 구성되며, 각 박스는 어떤 데이터를 담고 있는지 나타내는 타입 정보와 박스의 크기를 나타내는 사이즈 정보를 가질 수 있다. 이 때, MP4 파일 형식으로 수신된 데이터는 영상 데이터를 포함한 실제 미디어 데이터가 저장된 미디어 데이터 박스와 미디어와 관련된 메타데이터가 저장된 메타데이터 박스로 구성될 수 있다. 수신된 데이터 내, 박스 타입을 파싱하여, 해당 데이터가 영상 데이터인지 또는 AI 데이터인지를 구분할 수 있다. 일 예에서, 파싱부(1112)는 통신부(1111)를 통해 수신된 MP4 파일 형식으로 구성된 데이터의 박스 타입을 식별하고 영상 데이터와 AI 데이터를 구분하여, 출력부(1113)로 전달하고, 출력부(1113)는 각각의 구분된 데이터를 제 1 복호화부(1120) 및 입/출력부(1130)로 전달한다. AI encoded data can be divided into video data and AI data. For example, the parsing unit 1112 receives AI encoded data received through the communication unit 1111, parses it, and divides it into image data and AI data. For example, data received over a network may be formatted as an MP4 file format that follows the ISO Base Media File Format standard, which is widely used to store or transmit multimedia data. The MP4 file format consists of a plurality of boxes, and each box can have type information indicating what data it contains and size information indicating the size of the box. At this time, data received in the MP4 file format may be composed of a media data box in which actual media data including video data is stored and a metadata box in which metadata related to the media is stored. By parsing the box type within the received data, it is possible to distinguish whether the data is video data or AI data. In one example, the parsing unit 1112 identifies the box type of data in the MP4 file format received through the communication unit 1111, distinguishes image data and AI data, and transmits the data to the output unit 1113. 1113 transmits each classified data to the first decoding unit 1120 and the input/output unit 1130.

이 때, AI 부호화 데이터에 포함된 영상 데이터가 소정의 코덱(예를 들어, MPEG-2, H.264, MPEG-4, HEVC, VC-1, VP8, VP9 또는 AV1)을 통해 생성된 영상 데이터인 것으로 확인할 수도 있다. 이 경우, 영상 데이터가 상기 확인된 코덱으로 처리될 수 있도록, 출력부(1113)를 통해 해당 정보를 제 1 복호화부(1120)로 전달할 수 있다.At this time, the image data included in the AI encoded data is image data generated through a certain codec (e.g., MPEG-2, H.264, MPEG-4, HEVC, VC-1, VP8, VP9, or AV1). It can also be confirmed that it is. In this case, the corresponding information can be transmitted to the first decoding unit 1120 through the output unit 1113 so that the video data can be processed with the confirmed codec.

일 실시예에 따른 AI 부호화 데이터는, 하드 디스크 등을 포함하는 데이터 저장 매체로부터 획득된 것일 수 있으며, 일 실시예에 따른 복호화 장치(1100)는 USB 포트 등의 입/출력 인터페이스를 통하여, 저장 매체로부터 AI 부호화 데이터를 획득할 수 있다.AI-encoded data according to an embodiment may be obtained from a data storage medium including a hard disk, etc., and the decoding device 1100 according to an embodiment may be used to access the storage medium through an input/output interface such as a USB port. AI encoded data can be obtained from.

또한, 통신부(1111)에서 수신된 AI 부호화 데이터는 메모리에 저장될 수 있으며, 파싱부(1112)는 메모리로부터 획득된 AI 부호화 데이터를 파싱할 수 있다. 다만, 이에 한정되지 않는다.Additionally, the AI encoded data received from the communication unit 1111 may be stored in the memory, and the parsing unit 1112 may parse the AI encoded data obtained from the memory. However, it is not limited to this.

제 1 복호화부(1120)는 영상 데이터에 기초하여 제 1 영상에 대응하는 제 2 영상을 복원한다. 제 1 복호화부(1120)에 의해 생성된 제 2 영상은 입/출력부로 전달된다. 구현예에 따라서는, 영상 데이터에 포함된 모드 정보, 양자화 파라미터 정보 등 제 1 복호화 관련 정보가 입/출력부(1130)로 더 전달될 수 있다.The first decoder 1120 restores the second image corresponding to the first image based on the image data. The second image generated by the first decoding unit 1120 is transmitted to the input/output unit. Depending on the implementation, first decoding-related information, such as mode information and quantization parameter information included in the image data, may be further transmitted to the input/output unit 1130.

입/출력부(1130)는 출력부(1113)로부터 AI 데이터를 전달받을 수 있다. The input/output unit 1130 can receive AI data from the output unit 1113.

입/출력부(1130)는 입/출력 인터페이스를 통해서, 데이터를 외부 장치로 전송하거나, 외부 장치로부터 데이터를 수신할 수 있다. 예를 들어, 입/출력부(1130)는, 비디오 데이터, 오디오 데이터 및 부가 데이터 등을 송수신할 수 있다. 또는, 외부 장치로 명령을 요청하거나 수신할 수 있으며, 명령에 대한 응답 메시지를 전송할 수도 있다. 다만, 이에 한정되지 않는다.The input/output unit 1130 may transmit data to or receive data from an external device through an input/output interface. For example, the input/output unit 1130 can transmit and receive video data, audio data, and additional data. Alternatively, a command can be requested or received from an external device, and a response message to the command can be transmitted. However, it is not limited to this.

다시, 도 13을 참조하면, 입/출력부(1130)는 제1 복호화부(1120)로부터 전달받은 제2 영상과 출력부(1113)로부터 전달받은 AI 데이터를 AI 업 스케일 장치(1200)로 전송할 수 있다.Again, referring to FIG. 13, the input/output unit 1130 transmits the second image received from the first decoding unit 1120 and the AI data received from the output unit 1113 to the AI upscale device 1200. You can.

예를 들어, 입/출력부(1130)는 HDMI를 포함할 수 있으며, 입/출력부(1130)는 HDMI를 통해, 제2 영상 및 AI 데이터를 AI 업 스케일 장치(1200)로 전송할 수 있다. For example, the input/output unit 1130 may include HDMI, and the input/output unit 1130 may transmit the second image and AI data to the AI upscale device 1200 through HDMI.

또는, 입/출력부(1130)는 DP(Display Port)를 포함할 수 있으며, 입/출력부(1130)는 DP를 통해, 제2 영상 및 AI 데이터를 AI 업 스케일 장치(1200)로 전송할 수 있다.Alternatively, the input/output unit 1130 may include a DP (Display Port), and the input/output unit 1130 may transmit the second image and AI data to the AI upscale device 1200 through the DP. there is.

이하, 도 14를 참조하여, 메타데이터 형태로 포함되는 AI 데이터의 데이터 구조를 자세히 설명하기로 한다.Hereinafter, with reference to FIG. 14, the data structure of AI data included in the form of metadata will be described in detail.

도 14는, 일 실시예에 따른 메타데이터 형태로 포함되는 AI 데이터의 데이터 구조를 나타낸다.Figure 14 shows the data structure of AI data included in the form of metadata according to an embodiment.

일 실시예에 따른 AI 데이터는 비디오 파일의 헤더의 메타데이터 또는 세그먼트의 메타데이터에 포함될 수 있다. 일 예로, 전술한 MP4 파일 형식을 따르는 경우, 비디오 파일 또는 세그먼트는 실제 미디어 데이터를 담고 있는 미디어 데이터 박스와 미디어와 관련된 메타데이터를 담고 있는 메타데이터 박스로 구성될 수 있다. 도 14에서 설명할 메타데이터 형태의 AI 데이터는 메타데이터 박스에 담겨 전달될 수 있다.AI data according to one embodiment may be included in the metadata of the header or metadata of the segment of the video file. For example, when following the aforementioned MP4 file format, a video file or segment may be composed of a media data box containing actual media data and a metadata box containing metadata related to the media. AI data in the form of metadata, which will be described in FIG. 14, can be delivered in a metadata box.

도 14를 참조하면, 일 실시예에 따른 AI 데이터는, ai_codec_info(1300), ai_codec_applied_channel_info (1302), target_bitrate_info(1304), res_info(1306), ai_codec_DNN_info(1312), ai_codec_supplementary_info(1314) 등의 엘리먼트를 포함할 수 있다. 도 14에 나타난 각 엘리먼트의 배열 순서는 예시일 뿐, 통상의 기술자는 상기 엘리먼트의 배열 순서를 변경하여 실시할 수 잇다.Referring to FIG. 14, AI data according to one embodiment may include elements such as ai_codec_info (1300), ai_codec_applied_channel_info (1302), target_bitrate_info (1304), res_info (1306), ai_codec_DNN_info (1312), and ai_codec_supplementary_info (1314). You can. The arrangement order of each element shown in FIG. 14 is only an example, and a person skilled in the art may change the arrangement order of the elements.

일 실시 예에서, ai_codec_info(1300)는 제2 영상(135)과 같은 저해상도 영상에 AI 업스케일이 적용되는지 여부를 나타낸다. ai_codec_info(1300)가 영상 데이터에 따라 복원된 제 2 영상에 AI 업스케일이 적용됨을 나타낼 경우, AI 데이터의 데이터 구조는 AI 업스케일에 사용되는 업스케일 DNN 정보를 획득하기 위한 엘리먼트들을 포함한다. In one embodiment, ai_codec_info 1300 indicates whether AI upscaling is applied to a low-resolution image such as the second image 135. When ai_codec_info (1300) indicates that AI upscaling is applied to the second image restored according to the image data, the data structure of the AI data includes elements for obtaining upscale DNN information used for AI upscaling.

ai_codec_applied_channel_info (1302)는 AI 업스케일이 적용되는 색 채널을 나타내는 채널 정보이다. 영상은 RGB 포맷, YUV 포맷, YCbCr 포맷 등으로 표현될 수 있으며, 프레임의 타입에 따라, YCbCr 색 채널들, RGB 색 채널들 또는 YUV 색 채널들 중 AI 업 스케일이 필요한 색 채널을 나타낼 수 있다.ai_codec_applied_channel_info (1302) is channel information indicating the color channel to which AI upscaling is applied. The image can be expressed in RGB format, YUV format, YCbCr format, etc., and depending on the type of frame, it can indicate the color channel that requires AI upscaling among YCbCr color channels, RGB color channels, or YUV color channels.

target_bitrate_info (1304)는 제 1 부호화(614) 결과 획득된 영상 데이터의 비트레이트를 나타내는 정보이다. AI 업스케일부(234)는 target_bitrate_info (1304)에 따라, 제 2 영상의 화질에 적합한 업스케일 DNN 정보를 획득할 수 있다.target_bitrate_info (1304) is information indicating the bitrate of image data obtained as a result of the first encoding (614). The AI upscale unit 234 can obtain upscale DNN information suitable for the quality of the second video according to target_bitrate_info (1304).

res_info (1306)는 제3 영상(145)과 같은 AI 업스케일 된 고해상도 영상의 해상도에 관련된 해상도 정보를 나타낸다. res_info (1306)는 pic_width_org_luma(1308), pic_height_org_luma(1310)을 포함할 수 있다. pic_width_org_luma(1308), pic_height_org_luma(1310)는 각각 고해상도 영상의 너비와 높이를 나타내는 고해상도 영상 너비 정보와 고해상도 영상 높이 정보이다. AI 업스케일부(234)는 pic_width_org_luma(1308), pic_height_org_luma(1310)에 따라 결정된 고해상도 영상의 해상도와 제1 복호화부(232)에서 복원된 저해상도 영상의 해상도에 따라, AI 업스케일 비율을 결정할 수 있다. res_info (1306) represents resolution information related to the resolution of an AI upscaled high-resolution image such as the third image (145). res_info (1306) may include pic_width_org_luma (1308) and pic_height_org_luma (1310). pic_width_org_luma(1308) and pic_height_org_luma(1310) are high-resolution image width information and high-resolution image height information that indicate the width and height of the high-resolution image, respectively. The AI upscale unit 234 may determine the AI upscale rate according to the resolution of the high-resolution image determined according to pic_width_org_luma (1308) and pic_height_org_luma (1310) and the resolution of the low-resolution image restored by the first decoder 232. .

ai_codec_DNN_info (1312)는 제 2 영상의 AI 업스케일에 사용되는 상호 약속된 업스케일 DNN 정보를 가리키는 정보이다. AI 업스케일부(234)는 ai_codec_applied_channel_info (1302), target_bitrate_info (1304), res_info (1306) 등에 따라, 미리 저장된 복수의 DNN 설정 정보들 중에 하나를 업스케일 DNN 정보로 결정할 수 있다. 또한 AI 업스케일부(234)는 영상의 기타 특성(영상의 장르, 최대 휘도, 색역 등) 및 부호화한 코덱 정보를 추가로 고려하여, 미리 저장된 복수의 DNN 설정 정보 중에 하나를 업스케일 DNN 정보로 결정할 수 있다. ai_codec_DNN_info (1312) is information indicating mutually promised upscale DNN information used for AI upscale of the second image. The AI upscale unit 234 may determine one of a plurality of pre-stored DNN setting information as upscale DNN information according to ai_codec_applied_channel_info (1302), target_bitrate_info (1304), res_info (1306), etc. In addition, the AI upscale unit 234 additionally considers other characteristics of the video (video genre, maximum luminance, color gamut, etc.) and encoded codec information, and converts one of the plurality of pre-stored DNN setting information into upscale DNN information. You can decide.

업스케일용 DNN을 나타내는 DNN 정보는, 전술한 바와 같이 AI 업스케일부에 미리 저장된 DNN 설정 정보 중 하나를 가리키는 식별자로 표현될 수도 있고 DNN을 구성하는 컨볼루션 레이어 수, 컨볼루션 레이어 별 필터 커널의 개수, 및 각 필터 커널의 파라미터 중 적어도 하나에 대한 정보를 포함할 수도 있다.As described above, the DNN information representing the DNN for upscaling may be expressed as an identifier indicating one of the DNN setting information pre-stored in the AI upscale unit, and may be expressed as an identifier indicating the number of convolutional layers constituting the DNN and the filter kernel for each convolutional layer. It may also include information about at least one of the number and parameters of each filter kernel.

ai_codec_supplementary_info (1314)는 AI 업스케일에 관한 부가 정보를 나타낸다. ai_codec_supplementary_info (1314)는 비디오에 적용되는 업스케일 DNN 정보의 결정에 필요한 정보를 포함할 수 있다. ai_codec_supplementary_info (1314)는 장르, HDR 최대 조도, HDR 색역, HDR PQ 정보, 코덱 정보, 레이트 콘트롤 타입 등에 관한 정보 등을 포함할 수 있다.ai_codec_supplementary_info (1314) represents additional information about AI upscale. ai_codec_supplementary_info (1314) may include information necessary for determining upscale DNN information applied to video. ai_codec_supplementary_info (1314) may include information about genre, HDR maximum illuminance, HDR color gamut, HDR PQ information, codec information, rate control type, etc.

한편, AI 데이터가 세그먼트의 메타데이터에 포함되는 경우, AI 데이터는 종속 정보를 나타내는 dependent_ai_condition_info 를 더 포함할 수 있다.Meanwhile, when AI data is included in the metadata of the segment, the AI data may further include dependent_ai_condition_info indicating dependent information.

dependent_ai_condition_info 는 현재 세그먼트가 이전 세그먼트의 AI 데이터를 승계하는지 여부를 나타낸다. dependent_ai_condition_info indicates whether the current segment inherits the AI data of the previous segment.

예를 들어, dependent_ai_condition_info 가 현재 세그먼트가 이전 세그먼트의 AI 데이터를 승계함을 나타낼 때, 현재 세그먼트의 메타데이터에는 전술한 ai_codec_info(1300) 내지 ai_codec_supplementary_info(1314)에 해당하는 AI 데이터가 포함되지 않는다. 대신 현재 세그먼트의 AI 데이터는 이전 세그먼트의 AI 데이터와 동일하도록 결정된다.For example, when dependent_ai_condition_info indicates that the current segment succeeds the AI data of the previous segment, the metadata of the current segment does not include AI data corresponding to the above-described ai_codec_info (1300) to ai_codec_supplementary_info (1314). Instead, the AI data of the current segment is determined to be the same as the AI data of the previous segment.

또한, dependent_ai_condition_info 가 현재 세그먼트가 이전 세그먼트의 AI 데이터를 승계하지 않음을 나타낼 때, 현재 세그먼트의 메타데이터에는 AI 데이터가 포함된다. 따라서 현재 세그먼트의 미디어 데이터와 관련된 AI 데이터가 획득될 수 있다.Additionally, when dependent_ai_condition_info indicates that the current segment does not inherit the AI data of the previous segment, the metadata of the current segment includes AI data. Therefore, AI data related to the media data of the current segment can be obtained.

한편, 일 실시예에 따른 수신부(1110) 및 AI 복호화부(1120)는 개별적인 장치로 설명하였으나, 하나의 프로세서를 통해 구현될 수 있다. 이 경우, 별도의 전용 프로세서로 구현될 수도 있고, AP 또는 CPU, GPU와 같은 범용 프로세서와 S/W의 조합을 통해 구현될 수도 있다. 또한, 전용 프로세서의 경우, 본 개시의 실시예를 구현하기 위한 메모리를 포함하여 구현되거나, 외부 메모리를 이용하기 위한 메모리 처리부를 포함하여 구현될 수 있다.Meanwhile, the receiving unit 1110 and the AI decoding unit 1120 according to one embodiment are described as separate devices, but may be implemented through a single processor. In this case, it may be implemented with a separate dedicated processor, or it may be implemented through a combination of a general-purpose processor such as an AP, CPU, or GPU and S/W. Additionally, in the case of a dedicated processor, it may be implemented including a memory for implementing an embodiment of the present disclosure, or may be implemented including a memory processing unit for using an external memory.

또한, 수신부(1110) 및 AI 복호화부(1120)는 하나 이상의 프로세서로 구성될 수도 있다. 이 경우, 전용 프로세서들의 조합으로 구현될 수도 있고, AP 또는 CPU, GPU와 같은 다수의 범용 프로세서들과 S/W의 조합을 통해 구현될 수도 있다. Additionally, the receiving unit 1110 and the AI decoding unit 1120 may be composed of one or more processors. In this case, it may be implemented through a combination of dedicated processors, or it may be implemented through a combination of multiple general-purpose processors such as AP, CPU, and GPU and S/W.

도 15는 일 실시예에 따른 AI 데이터가 영상 데이터에 포함되어 비트스트림 형태로 수신되는 경우를 나타내는 도면이다.FIG. 15 is a diagram illustrating a case where AI data is included in video data and received in the form of a bitstream, according to an embodiment.

도 15의 통신부(1111), 출력부(1113), 제1 복호화부(1120), 및 입/출력부(1130)의 구성에 대해서는 도 13에서 자세히 설명하였으므로 동일한 설명은 생략하기로 한다.The configuration of the communication unit 1111, output unit 1113, first decoding unit 1120, and input/output unit 1130 of FIG. 15 has been described in detail in FIG. 13, and thus the same description will be omitted.

도 15를 참조하면, 일 실시예에 따른 통신부(1111)는 영상 데이터 및 AI 데이터가 함께 부호화된 비트스트림을 수신할 수 있다. 이때, AI 데이터는, 제1 부호화/복호화에 사용되는 코덱의 기능을 추가적으로 향상시킬 수 있는 정보인, SEI(Supplemental Enhancement Information) 메시지 형태로 비트스트림에 포함될 수 있다. SEI 메시지는 프레임 단위로 전송될 수 있다.Referring to FIG. 15, the communication unit 1111 according to an embodiment may receive a bitstream in which image data and AI data are encoded together. At this time, the AI data may be included in the bitstream in the form of a Supplemental Enhancement Information (SEI) message, which is information that can additionally improve the function of the codec used for first encoding/decoding. SEI messages can be transmitted in frame units.

AI 부호화 데이터가 영상 데이터와 AI 데이터가 함께 부호화된 비트스트림 형태로 수신되는 경우, 영상 데이터와 AI 데이터는 구분될 수 없다. 따라서, 통신부(1111)는 비트스트림 형태의 AI 부호화 데이터를 출력부(1113)로 전달하고, 출력부(1113)는 비트스트림 형태의 AI 부호화 데이터를 제1 복호화부(1120)로 전달한다.If AI encoded data is received in the form of a bitstream in which video data and AI data are encoded together, the video data and AI data cannot be distinguished. Accordingly, the communication unit 1111 transmits the AI encoded data in the form of a bitstream to the output unit 1113, and the output unit 1113 transmits the AI encoded data in the form of a bitstream to the first decoder 1120.

제1 복호화부(1120)는, 출력부(1113)로부터 전달받은 비트스트림에 포함된 영상 데이터에 기초하여, 제1 영상에 대응하는 제2 영상을 복원하며, 제2 영상을 입/출력부(1130)로 전달한다.The first decoding unit 1120 restores the second image corresponding to the first image based on the image data included in the bitstream received from the output unit 1113, and converts the second image to the input/output unit ( 1130).

또한, 제1 복호화부(1120)는 비트스트림으로부터 AI 데이터가 포함된 SEI 메시지의 페이로드(payload)를 분리하여, 입/출력부(1130)로 전달한다.Additionally, the first decoding unit 1120 separates the payload of the SEI message containing AI data from the bitstream and transmits it to the input/output unit 1130.

입/출력부(1130)는 제1 복호화부(1120)로부터 전달받은 제2 영상과 SEI 메시지의 페이로드(예를 들어, AI 데이터)를 AI 업 스케일 장치(1200)로 전송할 수 있다.The input/output unit 1130 may transmit the payload (eg, AI data) of the second video and SEI message received from the first decoder 1120 to the AI upscale device 1200.

이때, AI 데이터는, SEI 메시지 내에, 도 16에 도시된 바와 같이, 하이 레벨 신택스 형태로 포함될 수 있다.At this time, AI data may be included in the SEI message in the form of high-level syntax, as shown in FIG. 16.

도 16은 일 실시예에 따른 AI 코덱 신택스 테이블을 나타낸다. Figure 16 shows an AI codec syntax table according to one embodiment.

도 16을 참조하면, AI 코덱 신택스 테이블은, AI 코덱 메인 신택스 테이블(ai_codec_usage_main)을 포함할 수 있다. AI 코덱 메인 신택스 테이블은, 영상 데이터에 따라 복원된 제 2 영상의 AI 업스케일에 사용되는 업스케일 DNN 정보에 관련된 엘리먼트들이 포함된다. AI 코덱 메인 신택스 테이블은 비디오 파일 내 전체 프레임들의 AI 업스케일에 적용되는 AI 데이터를 포함할 수 있다.Referring to FIG. 16, the AI codec syntax table may include an AI codec main syntax table (ai_codec_usage_main). The AI codec main syntax table includes elements related to upscale DNN information used for AI upscaling of the second image restored according to the image data. The AI codec main syntax table may include AI data applied to AI upscaling of all frames within the video file.

도 16의 AI 코덱 메인 신택스 테이블에 따르면, ai_codec_info, ai_codec_applied_channel_info, target_bitrate, pic_width_org_luma, pic_height_org_luma, ai_codec_DNN_info, ai_codec_supplementary_info_flag 와 같은 신택스 요소(syntax element)가 파싱된다.According to the AI codec main syntax table in Figure 16, ai_codec_info, ai_codec_applied_channel_info, target_bitrate, pic_width_org_luma, pic_height_org_luma, ai_codec_DNN_info, ai_codec_supplementary_info_flag Syntax elements such as are parsed.

ai_codec_info는 도 14의 ai_codec_info(1300)에 대응되며 제 2영상에 AI 업스케일이 허용되는지 여부를 나타낸다. ai_codec_info 가 AI 업스케일이 허용됨을 나타낼 경우(if(ai_codec_info)), AI 업스케일 DNN 정보를 결정하기에 필요한 신택스 요소들이 파싱된다. ai_codec_info corresponds to ai_codec_info (1300) in FIG. 14 and indicates whether AI upscaling is allowed for the second image. If ai_codec_info indicates that AI upscale is allowed (if(ai_codec_info)), the syntax elements necessary to determine AI upscale DNN information are parsed.

ai_codec_applied_channel_info 는 도 14의 ai_codec_applied_channel_info(1302)에 대응되는 채널 정보이다. target_bitrate는 도 14의 target_bitrate_info (1304)에 대응되는 목표 비트레이트 정보이다. pic_width_org_luma, pic_height_org_luma 는 각각 도 14의 pic_width_org_luma(1308), pic_height_org_luma(1310)에 대응되는 고해상도 영상 너비 정보와 고해상도 영상 높이 정보이다. ai_codec_DNN_info는 도 14의 ai_codec_DNN_info(1312)에 대응되는 DNN 정보이다.ai_codec_applied_channel_info is channel information corresponding to ai_codec_applied_channel_info (1302) in FIG. 14. target_bitrate is target bitrate information corresponding to target_bitrate_info (1304) in FIG. 14. pic_width_org_luma and pic_height_org_luma are high-resolution image width information and high-resolution image height information corresponding to pic_width_org_luma (1308) and pic_height_org_luma (1310) in FIG. 14, respectively. ai_codec_DNN_info is DNN information corresponding to ai_codec_DNN_info (1312) in FIG. 14.

ai_codec_supplementary_info_flag는 도 14의 ai_codec_supplementary_info (1314)가 신택스 테이블에 포함되어 있는지 여부를 나타내는 부가 정보 플래그이다. 만약 ai_codec_supplementary_info_flag가 AI 업스케일에 이용되는 보조 정보가 파싱되지 않는다고 나타내는 경우, 추가적인 보조 정보는 획득되지 않는다. 그러나 ai_codec_supplementary_info_flag가 AI 업스케일에 이용되는 보조 정보가 파싱된다고 나타내는 경우(if(ai_codec_supplementary_info_flag)), 추가적인 보조 정보는 획득된다.ai_codec_supplementary_info_flag is an additional information flag that indicates whether ai_codec_supplementary_info 1314 of FIG. 14 is included in the syntax table. If ai_codec_supplementary_info_flag indicates that auxiliary information used for AI upscaling is not parsed, additional auxiliary information is not obtained. However, if ai_codec_supplementary_info_flag indicates that auxiliary information used for AI upscaling is parsed (if(ai_codec_supplementary_info_flag)), additional auxiliary information is obtained.

획득되는 추가적인 보조 정보는 ai_cdeco_DNNstruct_info, genre_info, hdr_max_luminance, hdr_color_gamut, hdr_pq_type, 및 rate_control_type 등이 포함될 수 있다. ai_codec_DNNstruct_info는 AI 업스케일부에 미리 저장된 DNN 설정 정보와 별개로, 영상에 적합한 새로운 DNN 설정 정보에 대한 구조 및 파라미터를 나타내는 정보이다. 예를 들어, 컨볼루션 레이어 수, 컨볼루션 레이어 별 필터 커널의 개수, 및 각 필터 커널의 파라미터 중 적어도 하나에 대한 정보가 포함될 수 있다.Additional auxiliary information obtained may include ai_cdeco_DNNstruct_info, genre_info, hdr_max_luminance, hdr_color_gamut, hdr_pq_type, and rate_control_type. ai_codec_DNNstruct_info is information indicating the structure and parameters of new DNN setting information suitable for video, separately from the DNN setting information pre-stored in the AI upscale unit. For example, information about at least one of the number of convolutional layers, the number of filter kernels for each convolutional layer, and the parameters of each filter kernel may be included.

genre_info는 영상 데이터의 콘텐츠의 장르, hdr_max_luminance는 고해상도 영상에 적용되는 HDR (High Dynamic Range) 최대 조도, hdr_color_gamut는 고해상도 영상에 적용되는 HDR 색역, hdr_pq_type는 고해상도 영상에 적용되는 HDR PQ (Perceptual Quantizer) 정보, rate_control_type는 제 1 부호화 결과 획득된 영상 데이터에 적용된 레이트 컨트롤 타입을 나타낸다. 실시 예에 따라, 보조 정보에 해당되는 상기 신택스 요소들 중 특정 신택스 요소가 파싱될 수 있다.genre_info is the genre of the content of the video data, hdr_max_luminance is the HDR (High Dynamic Range) maximum luminance applied to high-resolution images, hdr_color_gamut is the HDR color gamut applied to high-resolution images, hdr_pq_type is HDR PQ (Perceptual Quantizer) information applied to high-resolution images, rate_control_type indicates the rate control type applied to the image data obtained as a result of the first encoding. Depending on the embodiment, a specific syntax element among the syntax elements corresponding to auxiliary information may be parsed.

또한, 일 실시예에 따른 AI 코덱 신택스 테이블은, 현재 프레임에 적용되는 AI 데이터를 포함하는, AI 코덱 프레임 신택스 테이블(ai_codec_usage_frame)을 포함할 수 있다.Additionally, the AI codec syntax table according to one embodiment may include an AI codec frame syntax table (ai_codec_usage_frame) including AI data applied to the current frame.

도 17은 일 실시예에 따른 AI 업 스케일 장치의 구성을 나타내는 블록도이다.Figure 17 is a block diagram showing the configuration of an AI upscale device according to an embodiment.

도 17을 참조하면, AI 업 스케일 장치(1200)는, 입/출력부(1210), 데이터 처리부(1220) 및 AI 업 스케일부(1230)를 포함할 수 있다. Referring to FIG. 17, the AI upscale device 1200 may include an input/output unit 1210, a data processing unit 1220, and an AI upscale unit 1230.

입/출력부(1210)는 복호화 장치(1100)로부터 제2 영상 및 AI 데이터를 수신할 수 있다. 이때, 입/출력부(1210)는 HDMI, DP 등을 포함할 수 있다.The input/output unit 1210 may receive the second image and AI data from the decoding device 1100. At this time, the input/output unit 1210 may include HDMI, DP, etc.

입/출력부(1210)는 일 실시예에 따른 복호화 장치(1100)와 AI 업 스케일 장치(1200)가 HDMI 케이블로 연결된 경우, HDMI를 통해, 제2 영상 및 AI 데이터를 수신할 수 있다.When the decoding device 1100 and the AI upscale device 1200 according to an embodiment are connected with an HDMI cable, the input/output unit 1210 can receive the second image and AI data through HDMI.

또는, 입/출력부(1210)는 일 실시예에 따른 복호화 장치(1100)와 AI 업 스케일 장치(1200)가 DP 케이블로 연결된 경우, DP를 통해, 제2 영상 및 AI 데이터를 수신할 수 있다. 다만, 이에 한정되는 것은 아니며, 다양한 입/출력 인터페이스를 통해 제2 영상 및 AI 데이터를 수신할 수 있다. 또한, 입/출력부(1210)는 제2 영상과 AI 데이터를 다른 방식의 입/출력 인터페이스를 통해 수신할 수도 있다.Alternatively, the input/output unit 1210 may receive the second image and AI data through DP when the decoding device 1100 and the AI upscale device 1200 according to an embodiment are connected with a DP cable. . However, it is not limited to this, and the second image and AI data can be received through various input/output interfaces. Additionally, the input/output unit 1210 may receive the second image and AI data through another input/output interface.

입/출력부(1210)는, 제2 영상 및 AI 데이터를 AI 업 스케일부(1230)로 전달할 수 있다. 일 실시예에 따른 AI 업 스케일부(1230)는, AI 데이터가 전달되면, AI 데이터에 포함된 차이 정보 및 제1 영상 관련 정보 중 적어도 하나에 기초하여, 제2 영상의 업스케일 타겟을 결정할 수 있다. 예를 들어, 도 14 및 도 16에서 도시하고 설명한 AI 데이터에 기초하여, 제2 영상의 업스케일 타겟을 결정할 수 있다.The input/output unit 1210 may transmit the second image and AI data to the AI upscale unit 1230. When AI data is transmitted, the AI upscale unit 1230 according to one embodiment may determine an upscale target of the second image based on at least one of difference information and first image related information included in the AI data. there is. For example, based on the AI data shown and described in FIGS. 14 and 16, the upscale target of the second image may be determined.

업스케일 타겟은, 예를 들어, 제 2 영상(135)을 어느 정도의 해상도로 업스케일하여야 하는지를 나타낼 수 있다. AI 업스케일부(1230)는 업스케일 타겟이 결정되면, 업스케일 타겟에 대응하는 제 3 영상(145)을 생성하기 위해 제 2 DNN을 통해 제 2 영상(135)을 AI 업스케일한다. 제2 DNN을 통해 제2 영상(135)을 AI 업스케일하는 방법에 대해서는, 도 3 내지 도 6을 참조하여, 자세히 설명하였으므로, 구체적인 설명은 생략하기로 한다.For example, the upscale target may indicate to what resolution the second image 135 should be upscaled. When the upscale target is determined, the AI upscale unit 1230 AI upscales the second image 135 through the second DNN to generate the third image 145 corresponding to the upscale target. Since the method of AI upscaling the second image 135 through the second DNN has been described in detail with reference to FIGS. 3 to 6, detailed description will be omitted.

일 실시예에 따른 AI 업 스케일부(1230)는, AI 업 스케일 장치(1200)에 미리 저장되어 있던 DNN 설정 정보가 아니라, AI 데이터에 기초하여 새로운 DNN 설정 정보를 획득하고 획득된 새로운 DNN 설정 정보로 제 2 DNN을 세팅하여 제 2 영상(135)을 AI 업스케일 할 수 있다.The AI upscale unit 1230 according to one embodiment acquires new DNN setting information based on AI data, rather than the DNN setting information previously stored in the AI upscale device 1200, and acquires new DNN setting information. By setting the second DNN, the second image 135 can be AI upscaled.

한편, 입/출력부(1210)에 제2 영상만이 수신되고, AI 데이터가 수신되지 않은 경우, 입/출력부(1210)는 제2 영상을 AI 업 스케일부(1230)로 전달할 수 있다. AI 업 스케일부(1230)는 AI 데이터를 이용하지 않고, 기 설정된 방법에 따라 제2 영상을 AI 업 스케일하여, 제4 영상을 생성할 수 있다. 이때, 제4 영상은 AI 데이터를 이용하여 AI 업스케일이 수행된 제3 영상보다 영상의 화질이 떨어질 수 있다.Meanwhile, when only the second image is received by the input/output unit 1210 and no AI data is received, the input/output unit 1210 may transmit the second image to the AI upscale unit 1230. The AI upscale unit 1230 may generate the fourth image by AI upscaling the second image according to a preset method without using AI data. At this time, the image quality of the fourth image may be lower than that of the third image for which AI upscaling was performed using AI data.

도 18은 일 실시예에 따른 복호화 장치와 AI 업 스케일 장치가 HDMI를 통해 데이터를 송수신하는 예를 나타내는 도면이다.Figure 18 is a diagram illustrating an example in which a decoding device and an AI upscale device transmit and receive data through HDMI, according to an embodiment.

복호화 장치(1100)의 입/출력부(1130)와 AI 업 스케일 장치(1200)의 입/출력부(1210)는 HDMI 케이블로 연결될 수 있다. 복호화 장치(1100)의 입/출력부(1130)와 AI 업 스케일 장치(1200)의 입/출력부(1210)가 HDMI 케이블로 연결되면, TMDS 데이터 채널 및 TMDS 클럭 채널을 제공하는 4개 채널의 페어링이 수행될 수 있다. TMDS 데이터 채널은, 3개의 데이터 전송 채널들을 포함하며, 비디오 데이터, 오디오 데이터 및 부가 데이터를 전달하는데 사용될 수 있다. 이때, TMDS 데이터 채널을 통해 오디오 데이터 및 부가 데이터를 전송하기 위해서는 패킷 구조가 사용된다.The input/output unit 1130 of the decoding device 1100 and the input/output unit 1210 of the AI upscale device 1200 may be connected with an HDMI cable. When the input/output unit 1130 of the decoding device 1100 and the input/output unit 1210 of the AI upscale device 1200 are connected with an HDMI cable, four channels providing TMDS data channels and TMDS clock channels are connected. Pairing may be performed. The TMDS data channel includes three data transmission channels and can be used to carry video data, audio data and additional data. At this time, a packet structure is used to transmit audio data and additional data through the TMDS data channel.

추가로, 복호화 장치(1100)의 입/출력부(1130)와 AI 업 스케일 장치(1200)의 입/출력부(1210)는 디스플레이 데이터 채널(DDC: Display data channel)을 제공할 수 있다. DDC는 VESA(Video Electronics Standard Association)에서 정의한 모니터 및 컴퓨터 그래픽 어댑터 간의 디지털 정보 전송을 위한 프로토콜 표준이다. DDC는 하나의 소스 기기(예를 들어, 복호화 장치)와 하나의 싱크 기기(예를 들어, AI 업 스케일 장치)간의 구성 및 상태 정보 교환에 사용된다.Additionally, the input/output unit 1130 of the decoding device 1100 and the input/output unit 1210 of the AI upscale device 1200 may provide a display data channel (DDC). DDC is a protocol standard for digital information transmission between monitors and computer graphics adapters defined by VESA (Video Electronics Standard Association). DDC is used to exchange configuration and status information between one source device (e.g., decryption device) and one sink device (e.g., AI upscale device).

도 18을 참조하면, 복호화 장치(1100)의 입/출력부(1130)는 HDMI 송신부(1610), VSIF 구조화부(1620) 및 EDID 획득부(1630)를 포함할 수 있다. 또한, AI 업 스케일 장치(1200)의 입/출력부(1210)는 HDMI 수신부(1640), 및 EDID 저장부(1650)를 포함할 수 있다.Referring to FIG. 18, the input/output unit 1130 of the decoding device 1100 may include an HDMI transmitter 1610, a VSIF structuring unit 1620, and an EDID acquisition unit 1630. Additionally, the input/output unit 1210 of the AI upscale device 1200 may include an HDMI receiver 1640 and an EDID storage unit 1650.

일 실시예에 따른 AI 업 스케일 장치(1200)의 EDID 저장부(1650)는 EDID (Extended Display Identification Data) 정보를 저장할 수 있다. EDID 정보는, AI 업 스케일 장치에 대한 다양한 정보를 포함하는 데이터 구조로서, DDC 채널을 통해 복호화 장치(1100)로 전송될 수 있다.The EDID storage unit 1650 of the AI upscale device 1200 according to one embodiment may store EDID (Extended Display Identification Data) information. EDID information is a data structure containing various information about the AI upscale device, and can be transmitted to the decoding device 1100 through a DDC channel.

일 실시예에 따른 EDID 정보는, AI 업 스케일 장치(1200)의 AI 업스케일 능력(capability)에 대한 정보를 포함할 수 있다. 예를 들어, EDID 정보는, AI 업 스케일 장치(1200)가 AI 업스케일을 수행할 수 있는지, 없는지에 대한 정보를 포함할 수 있다. 이에 대해서는 도 19를 참조하여, 자세히 설명하기로 한다.EDID information according to one embodiment may include information about the AI upscale capability of the AI upscale device 1200. For example, EDID information may include information about whether the AI upscale device 1200 can perform AI upscale. This will be explained in detail with reference to FIG. 19.

도 19는 일 실시예에 따른 EDID 정보에 포함되는 HF-VSDB를 나타내는 도면이다.Figure 19 is a diagram showing HF-VSDB included in EDID information according to an embodiment.

EDID 정보는 추가적인 정보를 포함하는 EDID extension 블록을 포함할 수 있다. EDID extension 블록은 HF(HDMI Forum)-VSDB(Vendor-Specific Data Block)(1710)을 포함할 수 있다. HF-VSDB(1710)는 벤더-특정 데이터가 정의될 수 있는 데이터 블록으로, HF-VSDB(1710)를 사용하여 HDMI 특정 데이터를 정의할 수 있다.EDID information may include an EDID extension block containing additional information. The EDID extension block may include an HDMI Forum (HF)-Vendor-Specific Data Block (VSDB) 1710. The HF-VSDB (1710) is a data block in which vendor-specific data can be defined, and the HF-VSDB (1710) can be used to define HDMI-specific data.

일 실시예에 따른 HF-VSDB(1710)는 reserved 필드들(1720, 1730)을 포함할 수 있다. HF-VSDB(1710)의 reserved 필드들(1720, 1730) 중 적어도 하나의 필드를 이용하여, AI 업스케일 장치(1200)의 AI 업스케일 능력(capability)에 대한 정보가 기술될 수 있다. 예를 들어, reserved 필드의 1bit를 이용하여, AI 업 스케일 장치가 AI 업 스케일링을 수행할 수 있는 경우, reserved 필드의 비트 값을 1로 설정하고, AI 업스케일 장치가 AI 업스케일링을 수행할 수 없는 경우, reserved 필드의 비트 값을 0으로 설정할 수 있다. 또는, 반대로, AI 업스케일 장치가 AI 업 스케일링을 수행할 수 있는 경우, reserved 필드의 비트 값을 0으로 설정하고, AI 업스케일 장치가 AI 업 스케일링을 수행할 수 없는 경우, reserved 필드의 비트 값을 1로 설정할 수도 있다.HF-VSDB 1710 according to one embodiment may include reserved fields 1720 and 1730. Information about the AI upscale capability of the AI upscale device 1200 may be described using at least one field among the reserved fields 1720 and 1730 of the HF-VSDB 1710. For example, if the AI upscale device can perform AI upscaling using 1 bit of the reserved field, set the bit value of the reserved field to 1 and allow the AI upscale device to perform AI upscaling. If there is none, the bit value of the reserved field can be set to 0. Or, conversely, if the AI upscale device can perform AI upscaling, set the bit value of the reserved field to 0, and if the AI upscale device cannot perform AI upscaling, set the bit value of the reserved field to 0. can also be set to 1.

다시, 도 18을 참조하면, 복호화 장치(1100)의 EDID 획득부(1630)는 DDC를 통해 AI 업 스케일 장치(1200)의 EDID 정보를 수신할 수 있다. 일 실시예에 따른 EDID 정보는 HF-VSDB로써 전송될 수 있으며, EDID 획득부(1630)는 HF-VSDB의 reserved 필드 값을 이용하여, AI 업 스케일 장치의 AI 업 스케일 능력에 대한 정보를 획득할 수 있다.Again, referring to FIG. 18, the EDID acquisition unit 1630 of the decoding device 1100 may receive EDID information of the AI upscale device 1200 through DDC. EDID information according to one embodiment may be transmitted as HF-VSDB, and the EDID acquisition unit 1630 uses the reserved field value of HF-VSDB to obtain information about the AI upscale capability of the AI upscale device. You can.

EDID 획득부(1630)는 AI 업 스케일 장치의 AI 업 스케일 능력에 대한 정보에 기초하여, AI 데이터를 AI 업 스케일 장치로 전송할 지 여부를 결정할 수 있다. 예를 들어, AI 업 스케일 장치가 AI 업 스케일을 수행할 수 있는 경우, EDID 획득부(1630)는 VSIF 구조화부(1620)에서, AI 데이터가 VSIF 패킷 형태로 구조화되도록 동작할 수 있다. 반면에, AI 업 스케일 장치가 AI 업 스케일을 수행할 수 없는 경우, EDID 획득부(1630)는 VSIF 구조화부(1620)에서 AI 데이터가 VSIF 패킷 형태로 구조화되지 않도록 동작할 수 있다.The EDID acquisition unit 1630 may determine whether to transmit AI data to the AI upscale device based on information about the AI upscale capability of the AI upscale device. For example, if the AI upscale device is capable of performing AI upscale, the EDID acquisition unit 1630 may operate in the VSIF structuring unit 1620 to structure AI data in the form of a VSIF packet. On the other hand, if the AI upscaling device cannot perform AI upscaling, the EDID acquisition unit 1630 may operate in the VSIF structuring unit 1620 so that AI data is not structured in the form of VSIF packets.

VSIF 구조화부(1620)는 제1 복호화부(1120) 또는 출력부(1113)로부터 전달된 AI 데이터를 VSIF 패킷 형태로 구조화할 수 있다. VSIF 패킷에 대해서는, 도 20을 참조하여 설명하기로 한다.The VSIF structuring unit 1620 may structure AI data transmitted from the first decoding unit 1120 or the output unit 1113 in the form of a VSIF packet. The VSIF packet will be described with reference to FIG. 20.

도 20은 일 실시예에 따른 VSIF(Vendor Specific InfoFrame) 패킷의 헤더 구조 및 컨텐츠 구조를 나타내는 도면이다.Figure 20 is a diagram showing the header structure and content structure of a VSIF (Vendor Specific InfoFrame) packet according to an embodiment.

도 20을 참조하면, VSIF 패킷은 VSIF 패킷 헤더(1810)와 VSIF 패킷 컨텐츠(1820)를 포함한다. VSIF 패킷의 헤더는 3바이트로 구성될 수 있으며, 제1 바이트(HB0)는 패킷 타입을 나타내는 값으로, VSIF 패킷의 값은 0x81로 나타나고, 제2 바이트(HB1)는 버전 정보를 나타내며, 제3 바이트(HB2)의 하위 5비트는 VSIF 패킷의 컨텐츠 길이를 바이트 단위로 나타낸다.Referring to FIG. 20, a VSIF packet includes a VSIF packet header 1810 and VSIF packet content 1820. The header of a VSIF packet may consist of 3 bytes, the first byte (HB0) is a value indicating the packet type, the value of the VSIF packet is expressed as 0x81, the second byte (HB1) indicates version information, and the third byte is The lower 5 bits of the byte (HB2) indicate the content length of the VSIF packet in bytes.

일 실시예에 따른 VSIF 구조화부(1620)는 AI 데이터를 VSIF 패킷의 형태로 구조화할 수 있다. 예를 들어, VSIF 구조화부(1620) VSIF 패킷 컨텐츠(1820)에 AI 데이터를 포함되도록 VSIF 패킷을 생성할 수 있다. VSIF 구조화부(1620)는 도 14 및 도 16에서 도시하고 설명한 AI 데이터가, VSIF 패킷 컨텐츠에 포함된 5번 패킷 바이트(PB5)의 reserved 필드 값들(1830) 및 NV번 패킷 바이트(PB(Nv))의 reserved 필드 값들(1840)에 기술되도록 VSIF 패킷 컨텐츠를 생성할 수 있다. 또는, AI 데이터가 NV+k (k=1,2,...,n)번 패킷 바이트의 reserved 필드 값들에 기술되도록 VSIF 패킷 컨텐츠를 생성할 수 있다.The VSIF structuring unit 1620 according to one embodiment may structure AI data in the form of a VSIF packet. For example, the VSIF structuring unit 1620 may generate a VSIF packet to include AI data in the VSIF packet content 1820. The VSIF structuring unit 1620 configures the AI data shown and described in FIGS. 14 and 16 into reserved field values 1830 of packet byte 5 (PB5) and packet byte NV (PB(Nv)) included in the VSIF packet content. The VSIF packet content can be created to be described in the reserved field values 1840 of ). Alternatively, VSIF packet content can be created so that AI data is described in reserved field values of NV+k (k=1,2,...,n) packet bytes.

VSIF 구조화부(1620)는 AI 데이터의 양에 따라 AI 데이터를 기술하기 위한 패킷 바이트를 결정할 수 있다. AI 데이터의 양이 적으면, 5번 패킷 바이트(PB5)의 reserved 필드 값들(1830)만을 이용하여, AI 데이터를 기술할 수 있다. 반면에, AI 데이터의 양이 많으면, 5번 패킷 바이트(PB5) 및 NV번 패킷 바이트(PB(Nv))의 reserved 필드 값들을 이용하여, AI 데이터를 기술할 수 있다. 또는, NV번 패킷 바이트(PB(Nv)) 및 NV+k (k=1,2,...,n)번 패킷 바이트의 reserved 필드 값들을 이용하여, AI 데이터를 기술할 수 있다. 다만, 이에 한정되지 않으며, 다양한 방법으로 AI 데이터를 VSIF 패킷의 형태로 구조화할 수 있다.The VSIF structuring unit 1620 can determine packet bytes for describing AI data depending on the amount of AI data. If the amount of AI data is small, the AI data can be described using only the reserved field values 1830 of the 5th packet byte (PB5). On the other hand, if the amount of AI data is large, the AI data can be described using reserved field values of packet byte 5 (PB5) and packet byte NV (PB(Nv)). Alternatively, AI data can be described using reserved field values of the NV packet byte (PB(Nv)) and the NV+k (k=1,2,...,n) packet byte. However, it is not limited to this, and AI data can be structured in the form of a VSIF packet in various ways.

도 21은 일 실시예에 따른 AI 데이터가 VSIF 패킷에 정의되는 일 예를 나타내는 도면이다.Figure 21 is a diagram illustrating an example in which AI data is defined in a VSIF packet according to an embodiment.

도 21의 1910을 참조하면, 일 실시예에 따른 VSIF 구조화부(1620)는 5번 패킷 바이트(PB5)의 reserved 필드 값들만을 이용하여, AI 데이터를 기술할 수 있다. VSIF 구조화부(1620)는 PB5의 비트 1을 이용하여, ai_codec_available info 를 정의할 수 있다. ai_codec_available_info는 현재 프레임에 AI 업 스케일이 허용되는지 여부를 나타낸다. 또한, PB5의 비트 2~3 중 적어도 하나를 이용하여, ai_codec_DNN_info가 정의될 수 있다. ai_codec_DNN_info는 현재 프레임을 AI 업스케일하기 위해 이용되는 업스케일용 DNN을 나타내는 DNN 정보이다. 예를 들어, 업스케일용 DNN에 대한 DNN 설정 정보, 업스케일용 DNN의 식별자, 업스케일용 DNN에 대한 룩업 테이블의 값의 식별자 등이 포함될 수 있다.Referring to 1910 of FIG. 21, the VSIF structuring unit 1620 according to one embodiment can describe AI data using only the reserved field values of packet byte number 5 (PB5). The VSIF structuring unit 1620 can define ai_codec_available info using bit 1 of PB5. ai_codec_available_info indicates whether AI upscaling is allowed in the current frame. Additionally, ai_codec_DNN_info can be defined using at least one of bits 2 to 3 of PB5. ai_codec_DNN_info is DNN information indicating the upscaling DNN used to AI upscale the current frame. For example, DNN setting information for the upscale DNN, an identifier of the upscale DNN, an identifier of the value of the lookup table for the upscale DNN, etc. may be included.

또한, PB5의 비트 4~5 중 적어도 하나를 이용하여, ai_codec_org_width가 정의될 수 있으며, PB5의 비트 6~7 중 적어도 하나를 이용하여, ai_codec_org_height가 정의될 수 있다. ai_codec_org_width는 원본 영상(105)의 너비를 나타내면서, 제3 영상(145)의 너비를 나타낸다. 또한, ai_codec_org_height는 원본 영상(105)의 높이를 나타내면서, 제3 영상(145)의 높이를 나타낸다. ai_codec_org_height와 ai_codec_org_width는 업 스케일 타겟의 크기를 결정하기 위해 이용된다.Additionally, ai_codec_org_width may be defined using at least one of bits 4 to 5 of PB5, and ai_codec_org_height may be defined using at least one of bits 6 to 7 of PB5. ai_codec_org_width indicates the width of the original image 105 and the width of the third image 145. Additionally, ai_codec_org_height represents the height of the original image 105 and the height of the third image 145. ai_codec_org_height and ai_codec_org_width are used to determine the size of the upscale target.

도 21의 1920을 참조하면, 일 실시예에 따른 VSIF 구조화부(1620)는 NV번 패킷 바이트(PB(Nv)) 및 NV+k (k=1,2,...,n)번 패킷 바이트의 reserved 필드 값들을 이용하여, AI 데이터를 기술할 수 있다.Referring to 1920 of FIG. 21, the VSIF structuring unit 1620 according to an embodiment configures NV packet bytes (PB(Nv)) and NV+k (k=1,2,...,n) packet bytes. AI data can be described using reserved field values.

PB(Nv)(Nv번 패킷 바이트)의 비트 0~3 중 적어도 하나를 이용하여, ai_codec_available_info가 정의될 수 있다. ai_codec_available_info can be defined using at least one of bits 0 to 3 of PB(Nv) (Nv packet byte).

또한, PB(Nv)(Nv번 패킷 바이트)의 비트 4~7 중 적어도 하나를 이용하여, ai_codec_DNN_info가 정의될 수 있다. Additionally, ai_codec_DNN_info can be defined using at least one of bits 4 to 7 of PB(Nv) (packet byte Nv).

또한, PB(Nv+1)(Nv+1번 패킷 바이트)의 비트 0~3 중 적어도 하나를 이용하여, ai_codec_org_width가 정의될 수 있으며, PB(Nv+1)(Nv+1번 패킷 바이트)의 비트 4~7 중 적어도 하나를 이용하여, ai_codec_org_height가 정의될 수 있다.In addition, ai_codec_org_width can be defined using at least one of bits 0 to 3 of PB(Nv+1) (packet byte Nv+1), and the ai_codec_org_height can be defined using at least one of bits 4 to 7.

또한, PB(Nv+2)(Nv+2번 패킷 바이트)의 비트 0~3 중 적어도 하나를 이용하여, bitrate_info가 정의될 수 있다. bitrate_info는 복원된 제 2 영상의 화질 정도를 나타내는 정보이다.Additionally, bitrate_info can be defined using at least one of bits 0 to 3 of PB(Nv+2) (packet byte Nv+2). bitrate_info is information indicating the quality of the restored second video.

또한, PB(Nv+2)(Nv+1번 패킷 바이트)의 비트 4~7 중 적어도 하나를 이용하여, ai_codec_applied_channel_info가 정의될 수 있다. ai_codec_applied_channel_info는 AI 업 스케일이 필요한 색 채널을 나타내는 채널 정보이다. 프레임의 타입에 따라, YCbCr 색 채널들, RGB 색 채널들 또는 YUV 색 채널들 중 AI 업 스케일이 필요한 색 채널을 나타낼 수 있다.Additionally, ai_codec_applied_channel_info can be defined using at least one of bits 4 to 7 of PB(Nv+2) (packet byte Nv+1). ai_codec_applied_channel_info is channel information indicating the color channel that requires AI upscaling. Depending on the type of frame, the color channel requiring AI upscaling may be indicated among YCbCr color channels, RGB color channels, or YUV color channels.

또한, 나머지 패킷 바이트의 비트들(예를 들어, PB(Nv+4)(Nv+4번 패킷 바이트) 내지 PB(Nv+n)((Nv+n)번 패킷 바이트)에 포함되는 비트들) 중 적어도 하나를 이용하여, ai_codec_supplementary_info가 정의될 수 있다. ai_codec_supplementary_info는 AI 업스케일에 이용되는 보조 정보를 의미한다. 보조 정보는, 현재 영상에 적합한 새로운 DNN 설정 정보에 대한 구조 및 파라미터, 장르, 색 범위, HDR 최대 조도, HDR 색역, HDR PQ 정보, 코덱 정보, RC 타입(Rate Control type) 등을 포함할 수 있다.In addition, bits of the remaining packet bytes (e.g., bits included in PB(Nv+4) (packet byte Nv+4) to PB(Nv+n) (packet byte (Nv+n)) Using at least one of, ai_codec_supplementary_info may be defined. ai_codec_supplementary_info refers to auxiliary information used for AI upscaling. Auxiliary information may include the structure and parameters of new DNN setting information suitable for the current video, genre, color range, HDR maximum illuminance, HDR color gamut, HDR PQ information, codec information, RC type (Rate Control type), etc. .

한편, 도 21에 도시된 VSIF 패킷의 구조는 일 예들에 불과하므로 이에 한정되지 않는다. 필요에 따라, 도 19의 VSIF 패킷에 포함되는 AI 데이터들이 정의되는 필드들의 위치나 크기가 변경될 수도 있으며, 도 14 및 도 16에서 설명한 AI 데이터들이 VSIF 패킷에 더 포함될 수도 있다.Meanwhile, the structure of the VSIF packet shown in FIG. 21 is only an example and is not limited thereto. If necessary, the positions or sizes of fields in which the AI data included in the VSIF packet of FIG. 19 are defined may be changed, and the AI data described in FIGS. 14 and 16 may be further included in the VSIF packet.

다시 도 18을 참조하면, 일 실시예에 따른 VSIF 구조화부(1620)는 복수의 프레임들 각각에 대응하는 VSIF 패킷을 생성할 수 있다. 예를 들어, 복수의 프레임들에 대하여, AI 데이터가 1회 수신되는 경우, VSIF 구조화부(1620)는, 1회 수신된 AI 데이터를 이용하여, 복수의 프레임들 각각에 대응하는 VSIF 패킷을 생성할 수 있다. 예를 들어, 복수의 프레임들에 대응하는 VSIF 패킷들은 동일한 AI 데이터에 기초하여 생성될 수 있다.Referring again to FIG. 18, the VSIF structuring unit 1620 according to one embodiment may generate a VSIF packet corresponding to each of a plurality of frames. For example, when AI data is received once for a plurality of frames, the VSIF structuring unit 1620 uses the AI data received once to generate a VSIF packet corresponding to each of the plurality of frames. can do. For example, VSIF packets corresponding to a plurality of frames may be generated based on the same AI data.

반면에, 복수의 프레임들에 대하여, AI 데이터가 여러 번 수신되는 경우, VSIF 구조화부(1620)는 새로 수신되는 AI 데이터를 이용하여, 새로운 VSIF 패킷을 생성할 수 있다.On the other hand, when AI data is received multiple times for a plurality of frames, the VSIF structuring unit 1620 may generate a new VSIF packet using the newly received AI data.

VSIF 구조화부(1620)는 생성된 VSIF 패킷을 HDMI 송신부(1610)로 전달할 수 있으며, HDMI 송신부(1610)는 TMDS 채널을 통하여, VSIF 패킷을 AI 업 스케일 장치(1200)로 전송할 수 있다.The VSIF structuring unit 1620 can transmit the generated VSIF packet to the HDMI transmitter 1610, and the HDMI transmitter 1610 can transmit the VSIF packet to the AI upscale device 1200 through a TMDS channel.

또한, HDMI 송신부(1610)는 제1 복호화부(1120)로부터 전달받은 제2 영상을 TMDS 채널을 통하여, AI 업 스케일 장치(1200)로 전송할 수 있다.Additionally, the HDMI transmitter 1610 may transmit the second video received from the first decoder 1120 to the AI upscale device 1200 through a TMDS channel.

AI 업 스케일 장치(1200)의 HDMI 수신부(1640)는, TMDS 채널을 통해, 제2 영상 및 VSIF 패킷의 형태로 구조화된 AI 데이터를 수신할 수 있다.The HDMI receiver 1640 of the AI upscale device 1200 may receive structured AI data in the form of a second video and a VSIF packet through a TMDS channel.

일 실시예에 따른 AI 업 스케일 장치(1200)의 HDMI 수신부(1640) 는, HDMI 패킷의 헤더 정보를 확인하여, VSIF 패킷을 검색한 후, VSIF 패킷에 AI 데이터가 포함되어 있는지 여부를 판단할 수 있다.The HDMI receiver 1640 of the AI upscale device 1200 according to an embodiment may check the header information of the HDMI packet, search for the VSIF packet, and then determine whether the VSIF packet includes AI data. there is.

예를 들어, HDMI 수신부(1640)는 수신한 HDMI 패킷의 헤더 정보 중 패킷 타입을 나타내는 제1 바이트(HB0)가 0x81인지 확인하여, 수신한 HDMI 패킷이 VSIF 패킷 인지를 판단할 수 있다. 또한, HDMI 수신부(1640)는 HDMI 패킷이 VSIF 패킷인 것으로 판단되면, VSIF 패킷 컨텐츠에 AI 데이터가 포함되어 있는지 여부를 판단할 수 있다. 예를 들어, HDMI 수신부(1640)는 VSIF 패킷 컨텐츠에 포함된 PB(Nv)(Nv번 패킷 바이트) 내지 PB(Nv+n)((Nv+n)번 패킷 바이트)에 포함된 비트들의 값이 설정되어 있는 경우, 비트 값들을 이용하여, AI 데이터를 획득할 수 있다. 예를 들어, 데이터 처리부(1220)는 VSIF 패킷 컨텐츠의 PB(Nv)(Nv번 패킷 바이트)의 비트 0~3 중 적어도 하나를 이용하여, ai_codec_available_info를 획득할 수 있으며, PB(Nv)(Nv번 패킷 바이트)의 비트 4~7 중 적어도 하나를 이용하여, ai_codec_DNN_info를 획득할 수 있다.For example, the HDMI receiver 1640 may determine whether the received HDMI packet is a VSIF packet by checking whether the first byte (HB0) indicating the packet type among the header information of the received HDMI packet is 0x81. Additionally, if the HDMI receiver 1640 determines that the HDMI packet is a VSIF packet, it can determine whether AI data is included in the VSIF packet content. For example, the HDMI receiver 1640 determines that the values of the bits included in PB(Nv) (packet byte Nv) to PB(Nv+n) (packet byte (Nv+n)) included in the VSIF packet content are If set, AI data can be obtained using bit values. For example, the data processing unit 1220 may obtain ai_codec_available_info using at least one of bits 0 to 3 of PB(Nv) (Nv packet byte) of the VSIF packet content, and PB(Nv) (Nv packet byte). ai_codec_DNN_info can be obtained using at least one of bits 4 to 7 of the packet byte).

또한, HDMI 수신부(1640)는, PB(Nv+1)(Nv+1번 패킷 바이트)의 비트 0~3 중 적어도 하나를 이용하여, ai_codec_org_width를 획득할 수 있으며, PB(Nv+1)(Nv+1번 패킷 바이트)의 비트 4~7 중 적어도 하나를 이용하여, ai_codec_org_height를 획득할 수 있다. Additionally, the HDMI receiver 1640 may obtain ai_codec_org_width using at least one of bits 0 to 3 of PB(Nv+1) (Nv+1 packet byte), and PB(Nv+1)(Nv ai_codec_org_height can be obtained using at least one of bits 4 to 7 of packet byte +1.

또한, HDMI 수신부(1640)는, PB(Nv+2)(Nv+2번 패킷 바이트)의 비트 0~3 중 적어도 하나를 이용하여, bitrate_info를 획득하고, PB(Nv+2)(Nv+2번 패킷 바이트)의 비트 4~7 중 적어도 하나를 이용하여, ai_codec_applied_channel_info를 획득할 수 있다.In addition, the HDMI receiver 1640 obtains bitrate_info using at least one of bits 0 to 3 of PB(Nv+2) (packet byte Nv+2), and receives bitrate_info from PB(Nv+2)(Nv+2 packet byte). ai_codec_applied_channel_info can be obtained using at least one of bits 4 to 7 of the first packet byte).

또한, HDMI 수신부(1640)는, 나머지 패킷 바이트의 비트들(예를 들어, PB(Nv+4)(Nv+4번 패킷 바이트) 내지 PB(Nv+n)((Nv+n)번 패킷 바이트)에 포함되는 비트들) 중 적어도 하나를 이용하여, ai_codec_supplementary_info를 획득할 수 있다.Additionally, the HDMI receiver 1640 receives bits of the remaining packet bytes (e.g., PB(Nv+4) (packet byte Nv+4) to PB(Nv+n)(packet byte (Nv+n)). ), ai_codec_supplementary_info can be obtained using at least one of the bits included in ).

HDMI 수신부(1640)는 VSIF 패킷 컨텐츠로부터 획득된 AI 데이터를 AI 업 스케일부(1230)로 제공할 수 있으며, 제2 영상도 AI 업 스케일부(1230)로 제공될 수 있다.The HDMI receiver 1640 can provide AI data obtained from VSIF packet content to the AI upscale unit 1230, and the second image can also be provided to the AI upscale unit 1230.

일 실시예에 따른 AI 업 스케일부(1230)는 HDMI 수신부(1640)로부터 제2 영상 및 AI 데이터가 전달되면, AI 데이터에 포함된 차이 정보 및 제1 영상 관련 정보 중 적어도 하나에 기초하여, 제2 영상의 업스케일 타겟을 결정할 수 있다. 업스케일 타겟은, 예를 들어, 제 2 영상(135)을 어느 정도의 해상도로 업스케일하여야 하는지를 나타낼 수 있다. AI 업스케일부(1230)는 업스케일 타겟이 결정되면, 업스케일 타겟에 대응하는 제 3 영상(145)을 생성하기 위해 제 2 DNN을 통해 제 2 영상(135)을 AI 업스케일한다. 제2 DNN을 통해 제2 영상(135)을 AI 업스케일하는 방법에 대해서는, 도 3 내지 도 6을 참조하여, 자세히 설명하였으므로 구체적인 설명은 생략하기로 한다.When the second image and AI data are transmitted from the HDMI receiver 1640, the AI upscale unit 1230 according to an embodiment provides a first image based on at least one of difference information and first image related information included in the AI data. 2 You can determine the upscale target of the video. For example, the upscale target may indicate to what resolution the second image 135 should be upscaled. When the upscale target is determined, the AI upscale unit 1230 AI upscales the second image 135 through the second DNN to generate the third image 145 corresponding to the upscale target. The method of AI upscaling the second image 135 through the second DNN has been described in detail with reference to FIGS. 3 to 6, so detailed description will be omitted.

한편, 도 18 내지 도 21에서는, 복호화 장치와 AI 업 스케일 장치가 HDMI 케이블을 통해 연결되는 경우에 대해서 도시하고 설명하였지만, 이에 한정되지 않으며, 일 실시예에 따른 복호화 장치와 AI 업 스케일 장치는 DP 케이블을 통해 연결될 수 있다. 복호화 장치와 AI 업 스케일 장치가 DP 케이블을 통해 연결되는 경우, 복호화 장치는 HDMI 방식과 유사하게, DP를 통하여, 제2 영상 및 AI 데이터를 AI 업 스케일 장치로 전송할 수 있다.Meanwhile, in FIGS. 18 to 21, the case where the decoding device and the AI upscale device are connected via an HDMI cable is shown and described, but the case is not limited thereto, and the decoding device and the AI upscale device according to an embodiment are DP Can be connected via cable. When the decoding device and the AI upscale device are connected through a DP cable, the decoding device can transmit the second video and AI data to the AI upscale device through DP, similar to the HDMI method.

또한, 일 실시예에 따른 복호화 장치는 HDMI 및 DP 이외에 다른 입/출력 인터페이스를 통하여, AI 업 스케일 장치로 제2 영상 및 AI 데이터를 전송할 수 있다.Additionally, the decoding device according to one embodiment may transmit the second video and AI data to the AI upscale device through other input/output interfaces in addition to HDMI and DP.

또한, 일 실시예에 따르면 복호화 장치(1100)는 제2 영상과 AI 데이터를 서로 다른 인터페이스를 통하여, AI 업 스케일 장치(1200)로 전송할 수 있다. 예를 들어, 제2 영상은 HDMI로 전송하고, AI 데이터는 DP를 통하여 전송할 수 있다. 또는, 제2 영상은 DP를 통하여 전송하고, AI 데이터는 HDMI로 전송할 수 있다.Additionally, according to one embodiment, the decoding device 1100 may transmit the second image and AI data to the AI upscale device 1200 through different interfaces. For example, the second video can be transmitted through HDMI, and the AI data can be transmitted through DP. Alternatively, the second video can be transmitted through DP and the AI data can be transmitted through HDMI.

도 22는 일 실시예에 따른 복호화 장치의 동작방법을 나타내는 흐름도이다.Figure 22 is a flowchart showing a method of operating a decoding device according to an embodiment.

도 22를 참조하면, 일 실시예에 따른 복호화 장치(1100)는, AI 부호화 데이터를 수신할 수 있다(S2010).Referring to FIG. 22, the decoding device 1100 according to an embodiment may receive AI encoded data (S2010).

예를 들어, 복호화 장치(1100)는, 네트워크를 통해 AI 부호화 결과 생성된 AI 부호화 데이터를 수신한다. AI 부호화 데이터는 원본 영상의 AI 다운 스케일 및 제1 부호화 결과 생성된 데이터로, 영상 데이터와 AI 데이터를 포함한다. For example, the decoding device 1100 receives AI encoded data generated as a result of AI encoding through a network. AI encoded data is data generated as a result of AI downscaling and first encoding of the original video and includes video data and AI data.

이때, 일 실시예에 따른 AI 데이터는, 영상 데이터와 함께 비디오 파일에 포함되어 수신될 수 있다. AI 데이터가 비디오 파일에 포함되는 경우, AI 데이터는 비디오 파일의 헤더의 메타데이터에 포함될 수 있다. 또는, AI 부호화된 영상 데이터가 기 설정된 시간 단위로 분할된 세그먼트로 수신되는 경우, AI 데이터는 세그먼트의 메타데이터에 포함될 수 있다. 또는, AI 데이터는 부호화되어 비트스트림에 포함된 형태로 수신되거나, 영상 데이터와는 별도의 파일로 수신될 수 있다. 다만, 이에 한정되지 않는다.At this time, AI data according to one embodiment may be received by being included in a video file along with image data. When AI data is included in a video file, the AI data may be included in metadata in the header of the video file. Alternatively, when AI-encoded video data is received as segments divided in preset time units, the AI data may be included in the metadata of the segments. Alternatively, AI data may be encoded and received as included in a bitstream, or may be received as a separate file from the video data. However, it is not limited to this.

복호화 장치(1100)는 AI 부호화 데이터를 영상 데이터와 AI 데이터로 구분할 수 있다(S2020).The decoding device 1100 can separate AI encoded data into image data and AI data (S2020).

일 실시예에 따른, AI 데이터가 비디오 파일의 헤더의 메타데이터 또는 세그먼트의 메타데이터의 형태로 수신되는 경우, 복호화 장치(1100)는 AI 부호화 데이터를 파싱하여, 영상 데이터와 AI 데이터로 구분할 수 있다. 예를 들어, 복호화 장치(1100)는 네트워크를 통해 수신된 데이터의 박스 타입을 읽어, 해당 데이터가 영상 데이터인지 또는 AI 데이터인지를 구분할 수 있다.According to one embodiment, when AI data is received in the form of header metadata or segment metadata of a video file, the decoding device 1100 can parse the AI encoded data and distinguish it into video data and AI data. . For example, the decoding device 1100 can read the box type of data received through the network and distinguish whether the data is video data or AI data.

일 실시예에 따른 AI 데이터가 비트스트림 형태로 수신되는 경우, 복호화 장치(1100)는 영상 데이터 및 AI 데이터가 함께 부호화된 비트스트림을 수신할 수 있다. 이때, AI 데이터는, SEI(Supplemental Enhancement Information) 메시지 형태로 삽입될 수 있다. 복호화 장치(1100)는 비트스트림으로부터 영상 데이터와 AI 데이터가 포함된 SEI 메시지의 페이로드를 구분할 수 있다.When AI data according to one embodiment is received in the form of a bitstream, the decoding device 1100 may receive a bitstream in which image data and AI data are encoded together. At this time, AI data may be inserted in the form of a SEI (Supplemental Enhancement Information) message. The decoding device 1100 can distinguish the payload of an SEI message including video data and AI data from the bitstream.

일 실시예에 따른 복호화 장치(1100)는 영상 데이터에 기초하여, 제2 영상을 복호화할 수 있다(S2030).The decoding device 1100 according to an embodiment may decode the second image based on the image data (S2030).

일 실시예에 따른 복호화 장치(1100)는 입/출력 인터페이스를 통하여, 제2 영상 및 AI 데이터를 외부 장치로 전송할 수 있다(S2040).The decoding device 1100 according to one embodiment may transmit the second image and AI data to an external device through an input/output interface (S2040).

일 실시예에 따른 외부 장치는, AI 업 스케일 장치(1200)를 포함한다.An external device according to an embodiment includes an AI upscale device 1200.

예를 들어, 복호화 장치(1100)는 HDMI, DP 등을 통하여, 제2 영상 및 AI 데이터를 외부 장치로 전송할 수 있다. HDMI를 통하여, AI 데이터를 전송하는 경우, 복호화 장치(1100)는 AI 데이터를 VSIF(Vendor Specific InfoFrame) 패킷의 형태로 전송할 수 있다.For example, the decoding device 1100 may transmit the second image and AI data to an external device through HDMI, DP, etc. When transmitting AI data through HDMI, the decoding device 1100 can transmit the AI data in the form of a VSIF (Vendor Specific InfoFrame) packet.

또한, 전송되는 AI 데이터는, 제2 영상을 AI 업 스케일할 수 있게 하는 정보들을 포함한다. 예를 들어, AI 데이터는, 제2 영상에 AI 업 스케일이 적용되는지 여부를 나타내는 정보, 제2 영상을 업스케일하기 위한 DNN에 관한 정보 등을 포함할 수 있다.Additionally, the transmitted AI data includes information that allows AI upscaling of the second image. For example, AI data may include information indicating whether AI upscale is applied to the second image, information about a DNN for upscaling the second image, etc.

도 23은 일 실시예에 따른 복호화 장치가 HDMI를 통하여, 제2 영상 및 AI 데이터를 전송하는 방법을 나타내는 흐름도이다.Figure 23 is a flowchart showing a method by which a decoding device transmits a second video and AI data through HDMI according to an embodiment.

도 23을 참조하면, 일 실시예에 따른 복호화 장치(1100)와 AI 업 스케일 장치(1200)는 HDMI 케이블로 연결될 수 있다(S2110).Referring to FIG. 23, the decoding device 1100 and the AI upscale device 1200 according to an embodiment may be connected with an HDMI cable (S2110).

복호화 장치(1100)는 AI 업 스케일 장치(1200)로 DDC를 통해 EDID 정보 요청을 전송할 수 있다(S2120). 복호화 장치(1100)의 EDID 정보 요청에 대한 응답으로, AI 업 스케일 장치(1200)는 EDID 저장부에 저장된 EDID 정보를 DDC를 통해 복호화 장치(1100)로 전송할 수 있다(S2130). 이때, EDID 정보는, HF(HDMI Forum)-VSDB(Vendor-Specific Data Block)를 포함할 수 있으며, HF-VSDB는, AI 업 스케일 장치의 AI 업 스케일 능력에 대한 정보를 포함할 수 있다.The decoding device 1100 may transmit an EDID information request to the AI upscale device 1200 through DDC (S2120). In response to the EDID information request from the decoding device 1100, the AI upscale device 1200 may transmit the EDID information stored in the EDID storage unit to the decoding device 1100 through DDC (S2130). At this time, the EDID information may include HF (HDMI Forum)-VSDB (Vendor-Specific Data Block), and HF-VSDB may include information about the AI upscale capability of the AI upscale device.

복호화 장치(1100)는 수신한 EDID 정보(예를 들어, HF-VSDB)를 수신하여, AI 업 스케일 장치의 AI 업 스케일 능력에 대한 정보를 획득할 수 있다.The decoding device 1100 may receive the received EDID information (eg, HF-VSDB) and obtain information about the AI upscale capability of the AI upscale device.

복호화 장치(1100)는 AI 업 스케일 장치의 AI 업 스케일 능력에 대한 정보에 기초하여, AI 데이터를 AI 업 스케일 장치로 전송할 지 여부를 결정할 수 있다(S2150). 예를 들어, AI 업 스케일 장치가 AI 업 스케일을 수행할 수 없는 경우, 복호화 장치(1100)는 AI 데이터를 VSIF 패킷 형태로 구조화하지 않고, TMDS 채널을 통해, 제2 영상만 AI 업 스케일 장치로 전송할 수 있다(S2160).The decoding device 1100 may determine whether to transmit AI data to the AI upscale device based on information about the AI upscale capability of the AI upscale device (S2150). For example, if the AI upscale device cannot perform AI upscale, the decoding device 1100 does not structure the AI data in the form of a VSIF packet, but only the second image is sent to the AI upscale device through the TMDS channel. Can be transmitted (S2160).

AI 업 스케일 장치(1200)가 AI 업 스케일을 수행할 수 있는 경우, 복호화 장치(1100)는, AI 데이터가 VSIF 패킷 형태로 구조화되도록 동작할 수 있다(S2170).If the AI upscaling device 1200 can perform AI upscaling, the decoding device 1100 can operate to structure AI data in the form of a VSIF packet (S2170).

복호화 장치(1100)는 VSIF 패킷에 포함된 reserved 필드 값들을 이용하여, AI 데이터를 정의할 수 있다. AI 데이터를 VSIF 패킷에 정의하는 방법에 대해서는, 도 20 및 도 21을 참조하여, 자세히 설명하였으므로, 구체적인 설명은 생략하기로 한다.The decoding device 1100 can define AI data using reserved field values included in the VSIF packet. Since the method of defining AI data in a VSIF packet has been described in detail with reference to FIGS. 20 and 21, detailed description will be omitted.

복호화 장치(1100)는 TMDS채널을 통해, VSIF 패킷으로 구조화된 AI 데이터 및 제2 영상을 AI 업 스케일 장치(1200)로 전송할 수 있다(S2180).The decoding device 1100 may transmit AI data and the second image structured as a VSIF packet to the AI upscale device 1200 through the TMDS channel (S2180).

도 24는 일 실시예에 따른 AI 업 스케일 장치의 동작방법을 나타내는 흐름도이다.Figure 24 is a flowchart showing a method of operating an AI upscale device according to an embodiment.

도 24를 참조하면, 일 실시예에 따른 AI 업 스케일 장치(1200)는, 입/출력 인터페이스를 통해, 제2 영상 및 AI 데이터를 수신할 수 있다(S2210).Referring to FIG. 24, the AI upscale device 1200 according to an embodiment may receive the second image and AI data through the input/output interface (S2210).

예를 들어, AI 업 스케일 장치(1200)는 복호화 장치(1100)와 HDMI 케이블로 연결된 경우, HDMI를 통해 제2 영상 및 AI 데이터를 수신할 수 있다. 또는, 복호화 장치(1100)와 DP 케이블로 연결된 경우, DP를 통해 제2 영상 및 AI 데이터를 수신할 수 있다. 다만, 이에 한정되는 것은 아니며, 다양한 입/출력 인터페이스를 통해 제2 영상 및 AI 데이터를 수신할 수 있다. 또한, AI 업 스케일 장치(1200)는 제2 영상과 AI 데이터를 다른 방식의 입/출력 인터페이스를 통해 수신할 수도 있다.For example, when the AI upscale device 1200 is connected to the decoding device 1100 with an HDMI cable, it can receive the second video and AI data through HDMI. Alternatively, when connected to the decoding device 1100 with a DP cable, the second image and AI data can be received through DP. However, it is not limited to this, and the second image and AI data can be received through various input/output interfaces. Additionally, the AI upscale device 1200 may receive the second image and AI data through another input/output interface.

AI 업 스케일 장치(1200)는, 입/출력 인터페이스를 통해 AI 데이터가 수신되는지 여부에 기초하여, 제2 영상에 대해 AI 업 스케일을 수행할 지 여부를 결정할 수 있다. AI 데이터가 수신되지 않는 경우, 제2 영상에 대한 AI 업 스케일을 수행하지 않고, 제2 영상을 출력할 수 있다.The AI upscaling device 1200 may determine whether to perform AI upscaling on the second image based on whether AI data is received through the input/output interface. If AI data is not received, the second image may be output without performing AI upscaling on the second image.

일 실시예에 따른 AI 업 스케일 장치(1200)는, 복호화 장치(1100)로부터 HDMI 패킷을 수신하고, HDMI 패킷의 헤더 정보를 확인하여, VSIF 패킷을 검색할 수 있다. VSIF 패킷이 검색되면, AI 업 스케일 장치(1200)는, VSIF 패킷에 AI 데이터가 포함되어 있는지 여부를 판단할 수 있다.The AI upscale device 1200 according to an embodiment may receive an HDMI packet from the decoding device 1100, check header information of the HDMI packet, and search for a VSIF packet. When the VSIF packet is searched, the AI upscale device 1200 may determine whether the VSIF packet includes AI data.

AI 데이터는, 제2 영상에 AI 업 스케일이 적용되는지 여부를 나타내는 정보, 제2 영상을 업스케일하기 위한 DNN에 관한 정보 등을 포함할 수 있다.The AI data may include information indicating whether AI upscale is applied to the second image, information about a DNN for upscaling the second image, etc.

AI 업 스케일 장치(1200)는 제2 영상에 AI 업 스케일이 적용되는지 여부를 나타내는 정보에 기초하여, 제2 영상에 대해 AI 업 스케일을 수행할 지 여부를 결정할 수 있다.The AI upscale device 1200 may determine whether to perform AI upscaling on the second image based on information indicating whether AI upscaling is applied to the second image.

또한, AI 업 스케일 장치(1200)는 AI 데이터에 기초하여, 제2 영상을 업스케일하기 위한 DNN에 관한 정보를 획득하고(S2220), 획득된 정보에 따라 결정된 제2 DNN을 이용하여, 제2 영상을 AI 업스케일하여, 제3 영상을 생성할 수 있다(S2230).In addition, the AI upscale device 1200 acquires information about the DNN for upscaling the second image based on the AI data (S2220), and uses the second DNN determined according to the obtained information to create the second image. By AI upscaling the image, a third image can be generated (S2230).

도 25는 일 실시예에 따른 복호화 장치의 구성을 나타내는 블록도이다.Figure 25 is a block diagram showing the configuration of a decoding device according to an embodiment.

도 25의 복호화 장치(2300)는 도 12의 복호화 장치(1100)의 일 실시예이다.The decoding device 2300 of FIG. 25 is an embodiment of the decoding device 1100 of FIG. 12.

도 25를 참조하면, 일 실시예에 따른 복호화 장치(2300)는 통신부(2310), 프로세서(2320), 메모리(2330) 및 입/출력부(2040)를 포함할 수 있다.Referring to FIG. 25, the decoding device 2300 according to an embodiment may include a communication unit 2310, a processor 2320, a memory 2330, and an input/output unit 2040.

도 25의 통신부(2310)는 도 13 및 도 15의 통신부(1111)에, 도 25의 입/출력부(2340)는 도 13 및 도 15의 입/출력부(1130)에 각각 대응될 수 있다. 따라서, 도 13 및 도 15에서 설명한 내용과 동일한 내용은 도 25에서 생략하기로 한다.The communication unit 2310 of FIG. 25 may correspond to the communication unit 1111 of FIGS. 13 and 15, and the input/output unit 2340 of FIG. 25 may correspond to the input/output unit 1130 of FIGS. 13 and 15, respectively. . Therefore, the same contents as those described in FIGS. 13 and 15 will be omitted from FIG. 25.

일 실시예에 따른 통신부(2310)는, 프로세서(2320)의 제어에 의해 외부 장치(예를 들어, 서버)와 데이터 또는 신호를 송수신할 수 있다. 프로세서(2320)는 통신부(2310)를 통해 연결된 외부 장치로 컨텐츠를 송/수신할 수 있다. 통신부(2310)는 복호화 장치(2300)의 성능 및 구조에 대응하여, 무선랜(2311, 예를 들어, 와이- 파이(Wi-Fi)), 블루투스(2312), 및 유선 이더넷(Ethernet)(2313) 중 하나를 포함할 수 있다. 또한, 통신부(2310)는 무선랜(2311), 블루투스(2312) 및 유선 이더넷(2313)의 조합을 포함할 수 있다.The communication unit 2310 according to one embodiment may transmit and receive data or signals with an external device (eg, a server) under the control of the processor 2320. The processor 2320 can transmit/receive content to an external device connected through the communication unit 2310. The communication unit 2310 provides wireless LAN (2311 (e.g., Wi-Fi)), Bluetooth (2312), and wired Ethernet (2313) in response to the performance and structure of the decoding device (2300). ) may include one of the following. Additionally, the communication unit 2310 may include a combination of wireless LAN 2311, Bluetooth 2312, and wired Ethernet 2313.

일 실시예에 따른 통신부(2310)는 AI 부호화 결과 생성된 AI 부호화 데이터를 수신한다. AI 부호화 데이터는 원본 영상의 AI 다운 스케일 및 제1 부호화 결과 생성된 데이터로, 영상 데이터와 AI 데이터를 포함한다. The communication unit 2310 according to one embodiment receives AI encoded data generated as a result of AI encoding. AI encoded data is data generated as a result of AI downscaling and first encoding of the original video and includes video data and AI data.

일 실시예에 따른 프로세서(2320)는 복호화 장치(2300)를 전반적으로 제어할 수 있다. 일 실시예에 따른 프로세서(2320)는 메모리(2330)에 저장되는 하나 이상의 프로그램들을 실행할 수 있다.The processor 2320 according to one embodiment may generally control the decoding device 2300. The processor 2320 according to one embodiment may execute one or more programs stored in the memory 2330.

일 실시예에 따른 메모리(2330)는 복호화 장치(2300)를 구동하고 제어하기 위한 다양한 데이터, 프로그램 또는 어플리케이션을 저장할 수 있다. 또한, 메모리(2330)는 일 실시예에 따라 수신한 AI 부호화 데이터 또는 제1 복호화된 제2 영상을 저장할 수 있다. 메모리(2330)에 저장되는 프로그램은 하나 이상의 인스트럭션들을 포함할 수 있다. 메모리(2330)에 저장된 프로그램(하나 이상의 인스트럭션들) 또는 어플리케이션은 프로세서(2320)에 의해 실행될 수 있다.The memory 2330 according to one embodiment may store various data, programs, or applications for driving and controlling the decoding device 2300. Additionally, the memory 2330 may store the received AI encoded data or the first decoded second image, according to one embodiment. A program stored in memory 2330 may include one or more instructions. A program (one or more instructions) or application stored in the memory 2330 may be executed by the processor 2320.

일 실시예에 따른 프로세서(2320)는 CPU(Central Processing Unit, 2321), GPU(Graphic Processing Unit, 2323) 및 VPU(Video Processing Unit, 2322)를 포함할 수 있다. 또한, 실시예에 따라 CPU(2321)는 GPU(2323)를 포함하거나, VPU(2322)를 포함할 수 있다. 또는, CPU(2321)는 GPU(2323) 및 VPU(2322) 중 적어도 하나를 통합한 SoC(System On Chip) 형태로 구현될 수 있다. 또는, GPU(2323)와 VPU(2322)가 통합된 형태로 구현될 수도 있다.The processor 2320 according to one embodiment may include a Central Processing Unit (CPU) 2321, a Graphic Processing Unit (GPU) 2323, and a Video Processing Unit (VPU) 2322. Additionally, depending on the embodiment, the CPU 2321 may include a GPU 2323 or a VPU 2322. Alternatively, the CPU 2321 may be implemented in the form of a System On Chip (SoC) that integrates at least one of the GPU 2323 and the VPU 2322. Alternatively, the GPU 2323 and the VPU 2322 may be implemented in an integrated form.

프로세서(2320)는 복호화 장치(2300)의 전반적인 동작 및 복호화 장치(2300)의 내부 구성 요소들 사이의 신호 흐름을 제어하고, 데이터를 처리하는 기능을 수행한다. 프로세서(2320)는 통신부(2310) 및 입/출력부(2330)를 제어할 수 있다. GPU(2323)는 그래픽 처리를 수행할 수 있으며, 아이콘, 이미지, 텍스트 등과 같은 다양한 객체를 포함하는 화면을 생성할 수 있다. VPU(2322)는 복호화 장치(2300)가 수신한 영상 데이터 또는 비디오 데이터에 대한 처리를 수행할 수 있으며, 영상 데이터 또는 비디오 데이터에 대한 디코딩(예를 들어, 제1 복호화), 스케일링, 노이즈 필터링, 프레임 레이트 변환, 해상도 변환 등과 같은 다양한 이미지 처리를 수행할 수 있다.The processor 2320 controls the overall operation of the decoding device 2300 and signal flow between internal components of the decoding device 2300, and performs the function of processing data. The processor 2320 can control the communication unit 2310 and the input/output unit 2330. The GPU 2323 can perform graphics processing and create a screen containing various objects such as icons, images, and text. The VPU 2322 may perform processing on the image data or video data received by the decoding device 2300, including decoding (e.g., first decoding), scaling, noise filtering, Various image processing such as frame rate conversion, resolution conversion, etc. can be performed.

일 실시예에 따른 프로세서(2320)는 도 13에서 도시하고 설명한 파싱부(1112), 출력부(1113) 및 제1 복호화부(1120)의 동작들 및 도 15에서 도시하고 설명한 파싱부(1112), 출력부(1113) 및 제1 복호화부(1120)의 동작들 중 적어도 하나를 수행하거나 수행되도록 제어할 수 있다. 또는, 도 18에서 도시하고 설명한 VSIF 구조화부(1620) 및 EDID 파싱부(1630)의 동작들 중 적어도 하나를 수행하거나 수행되도록 제어할 수도 있다.The processor 2320 according to one embodiment includes the operations of the parsing unit 1112, the output unit 1113, and the first decoding unit 1120 shown and described in FIG. 13, and the parsing unit 1112 shown and described in FIG. 15. , at least one of the operations of the output unit 1113 and the first decoding unit 1120 can be performed or controlled to be performed. Alternatively, at least one of the operations of the VSIF structuring unit 1620 and the EDID parsing unit 1630 shown and described in FIG. 18 may be performed or controlled to be performed.

예를 들어, 프로세서(2320)는 통신부(2310)에서 수신한 AI 부호화 데이터를 영상 데이터와 AI 데이터로 구분할 수 있다. AI 데이터가 비디오 파일의 헤더의 메타데이터 또는 세그먼트의 메타데이터의 형태로 수신되는 경우, 프로세서(2320)는 AI 부호화 데이터를 파싱하여, 영상 데이터와 AI 데이터로 구분할 수 있다. 예를 들어, 일 실시예에 따른 AI 부호화 데이터가 MP4 파일 형식으로 구성된 경우, 프로세서(2320)는 수신된 MP4 파일 형식으로 구성된 데이터의 박스 타입을 파싱하여, 해당 데이터가 영상 데이터인지 또는 AI 데이터인지를 구분할 수 있다.For example, the processor 2320 may divide the AI-encoded data received from the communication unit 2310 into image data and AI data. When AI data is received in the form of header metadata or segment metadata of a video file, the processor 2320 can parse the AI encoded data and distinguish it into video data and AI data. For example, when AI-encoded data according to an embodiment is configured in an MP4 file format, the processor 2320 parses the box type of the data configured in the received MP4 file format to determine whether the data is video data or AI data. can be distinguished.

또한, AI 데이터가 비트스트림 형태로 수신되는 경우, AI 데이터는, SEI(Supplemental Enhancement Information) 메시지 형태로 비트스트림에 포함될 수 있으며, 프로세서(2320)는 비트스트림으로부터 영상 데이터와 AI 데이터가 포함된 SEI 메시지의 페이로드를 구분할 수 있다.Additionally, when AI data is received in the form of a bitstream, the AI data may be included in the bitstream in the form of an SEI (Supplemental Enhancement Information) message, and the processor 2320 may generate the SEI data including the image data and AI data from the bitstream. The payload of the message can be distinguished.

프로세서(2320)는 GPU(2323) 또는 VPU(2322)가 영상 데이터에 기초하여, 제1 영상에 대응하는 제2 영상을 복원하도록 제어할 수 있다.The processor 2320 may control the GPU 2323 or VPU 2322 to restore a second image corresponding to the first image based on image data.

프로세서(2320)는 입/출력부(2340)를 통하여, 제2 영상 및 AI 데이터를 외부 장치로 전송할 수 있다. 입/출력부(2040)는 프로세서(2320)의 제어에 의해 복호화 장치(2300)의 외부로 비디오, 오디오 및 부가 정보 등을 전송하거나 수신할 수 있다. 입/출력부(2340)는 HDMI 포트(High-Definition Multimedia Interface port)(2341), 디스플레이 포트(DP: Display Port)(2342), 및 USB 포트(USB port)(2343) 등을 포함할 수 있다. 입/출력부(2340)의 구성 및 동작은 본 발명의 실시예에 따라 다양하게 구현될 수 있다는 것은 당해 기술 분야의 통상의 지식을 가진 자에게 용이하게 이해될 것이다.The processor 2320 may transmit the second image and AI data to an external device through the input/output unit 2340. The input/output unit 2040 may transmit or receive video, audio, and additional information to the outside of the decoding device 2300 under the control of the processor 2320. The input/output unit 2340 may include a High-Definition Multimedia Interface port (HDMI) port 2341, a Display Port (DP) 2342, and a USB port 2343. . It will be easily understood by those skilled in the art that the configuration and operation of the input/output unit 2340 can be implemented in various ways according to embodiments of the present invention.

예를 들어, 복호화 장치와 AI 업 스케일 장치가 HDMI(2341)를 통해 연결된 경우, 입/출력부(2320)는 DDC 채널을 통해, AI 업 스케일 장치의 EDID 정보를 수신할 수 있다. 또한, 프로세서(2320)는 DDC 채널을 통해 수신된 AI 업 스케일 장치의 EDID 정보를 파싱할 수 있다. EDID 정보는, AI 업 스케일 장치의 AI 업 스케일 능력에 대한 정보를 포함할 수 있다.For example, when the decoding device and the AI upscale device are connected through HDMI 2341, the input/output unit 2320 can receive EDID information of the AI upscale device through the DDC channel. Additionally, the processor 2320 can parse the EDID information of the AI upscale device received through the DDC channel. EDID information may include information about the AI upscale capability of the AI upscale device.

프로세서(2320)는 AI 업 스케일 장치의 AI 업 스케일 능력에 대한 정보에 기초하여, AI 데이터를 VSIF 패킷 형태로 구조화할 것인지 여부를 결정할 수 있다. 예를 들어, 프로세서(2320)는 AI 업 스케일 장치가 AI 업스케일을 수행할 수 있는 경우, AI 데이터가 VSIF 패킷 형태로 구조화되도록 제어할 수 있으며, AI 업 스케일 장치가 AI 업 스케일을 수행할 수 없는 경우, AI 데이터를 VSIF 패킷 형태로 구조화하는 동작을 수행하지 않도록 제어할 수 있다.The processor 2320 may determine whether to structure AI data in the form of a VSIF packet, based on information about the AI upscale capability of the AI upscale device. For example, the processor 2320 may control AI data to be structured in the form of a VSIF packet if the AI upscale device is capable of performing AI upscaling. If there is none, it can be controlled not to perform the operation of structuring AI data in the form of a VSIF packet.

입/출력부(2340)는 프로세서(2320)의 제어에 따라, AI 데이터를 VSIF 패킷 형태로 구조화할 수 있으며, VSIF 패킷으로 구조화된 AI 데이터와 제2 영상을 TMDS 채널을 통해 AI 업 스케일 장치로 전송할 수 있다.The input/output unit 2340 can structure AI data in the form of a VSIF packet under the control of the processor 2320, and sends the AI data and the second image structured as a VSIF packet to an AI upscale device through a TMDS channel. Can be transmitted.

일 실시예에 따른 AI 데이터는, 제2 영상을 AI 업 스케일할 수 있게 하는 정보들을 포함한다. 예를 들어, AI 데이터는, 제2 영상에 AI 업 스케일이 적용되는지 여부를 나타내는 정보, 제2 영상을 업스케일하기 위한 DNN에 관한 정보 등을 포함할 수 있다.AI data according to one embodiment includes information that allows AI upscaling of the second image. For example, AI data may include information indicating whether AI upscale is applied to the second image, information about a DNN for upscaling the second image, etc.

도 26은 일 실시예에 따른 AI 업 스케일 장치의 구성을 나타내는 블록도이다.Figure 26 is a block diagram showing the configuration of an AI upscale device according to an embodiment.

도 26의 AI 업 스케일 장치(2400)는 도 12의 AI 업 스케일 장치(1200)의 일 실시예이다.The AI up-scale device 2400 of FIG. 26 is an embodiment of the AI up-scale device 1200 of FIG. 12.

도 26을 참조하면, 일 실시예에 따른 AI 업 스케일 장치(2400)는, 입/출력부(2410), 프로세서(2420), 메모리(2430) 및 디스플레이(2440)를 포함할 수 있다.Referring to FIG. 26, the AI upscale device 2400 according to one embodiment may include an input/output unit 2410, a processor 2420, a memory 2430, and a display 2440.

도 26의 입/출력부(2410)는 도 17의 입/출력부(1210)에 대응될 수 있다. 따라서, 도 17에서 설명한 내용과 동일한 내용은 도 26에서 생략하기로 한다.The input/output unit 2410 of FIG. 26 may correspond to the input/output unit 1210 of FIG. 17 . Therefore, the same content as that described in FIG. 17 will be omitted from FIG. 26.

일 실시예에 따른 입/출력부(2410)는, 프로세서(2420)의 제어에 의해 AI 업 스케일 장치(2400)의 외부에서부터 비디오, 오디오 및 부가 정보 등을 수신하거나 전송할 수 있다. 입/출력부(2410)는 HDMI 포트(High-Definition Multimedia Interface port)(2411), 디스플레이 포트(DP: Display Port)(2412), 및 USB 포트(USB port)(2413) 등을 포함할 수 있다. 입/출력부(2410)의 구성 및 동작은 본 발명의 실시예에 따라 다양하게 구현될 수 있다는 것은 당해 기술 분야의 통상의 지식을 가진 자에게 용이하게 이해될 것이다.The input/output unit 2410 according to one embodiment may receive or transmit video, audio, and additional information from the outside of the AI upscale device 2400 under the control of the processor 2420. The input/output unit 2410 may include a High-Definition Multimedia Interface port (HDMI port) 2411, a Display Port (DP) 2412, and a USB port 2413. . It will be easily understood by those skilled in the art that the configuration and operation of the input/output unit 2410 can be implemented in various ways according to embodiments of the present invention.

예를 들어, 복호화 장치와 AI 업 스케일 장치가 HDMI(2411)를 통해 연결된 경우, 입/출력부(2410)는 DDC 채널을 통해, EDID 정보 판독 요청을 수신하면, AI 업 스케일 장치의 EDID 정보를 복호화 장치로 전송할 수 있다. 또한, 입/출력부(2410)는, TMDS 채널을 통해, 제2 영상 및 VSIF 패킷 형태로 구조화된 AI 데이터를 수신할 수 있다. For example, when the decoding device and the AI upscale device are connected through HDMI 2411, the input/output unit 2410 receives the EDID information read request through the DDC channel, and receives the EDID information of the AI upscale device. It can be transmitted to a decryption device. Additionally, the input/output unit 2410 may receive structured AI data in the form of a second image and a VSIF packet through a TMDS channel.

또는, 입/출력부(2410)는 DP를 통해 제2 영상 및 AI 데이터를 수신할 수도 있다. 다만, 이에 한정되는 것은 아니며, 다양한 입/출력 인터페이스를 통해 제2 영상 및 AI 데이터를 수신할 수 있다. 또는, 입/출력부(2410)는 제2 영상과 AI 데이터를 다른 방식의 입/출력 인터페이스를 통해 수신할 수도 있다.Alternatively, the input/output unit 2410 may receive the second image and AI data through DP. However, it is not limited to this, and the second image and AI data can be received through various input/output interfaces. Alternatively, the input/output unit 2410 may receive the second image and AI data through another input/output interface.

일 실시예에 따른 프로세서(2420)는 AI 업 스케일 장치(2400)를 전반적으로 제어할 수 있다. 일 실시예에 따른 프로세서(2420)는 메모리(2430)에 저장되는 하나 이상의 프로그램들을 실행할 수 있다.The processor 2420 according to one embodiment can generally control the AI upscale device 2400. The processor 2420 according to one embodiment may execute one or more programs stored in the memory 2430.

일 실시예에 따른 메모리(2430)는 AI 업 스케일 장치(2400)를 구동하고 제어하기 위한 다양한 데이터, 프로그램 또는 어플리케이션을 저장할 수 있다. 예를 들어, 메모리(2430)는 AI 업 스케일 장치의 EDID 정보를 저장할 수 있다. EDID 정보는, AI 업 스케일 장치에 대한 다양한 정보를 포함할 수 있으며, 특히, AI 업 스케일 장치의 AI 업 스케일 능력에 대한 정보를 포함할 수 있다. 메모리(2430)에 저장되는 프로그램은 하나 이상의 인스트럭션들을 포함할 수 있다. 메모리(2430)에 저장된 프로그램(하나 이상의 인스트럭션들) 또는 어플리케이션은 프로세서(2420)에 의해 실행될 수 있다.The memory 2430 according to one embodiment may store various data, programs, or applications for driving and controlling the AI upscale device 2400. For example, the memory 2430 may store EDID information of an AI upscale device. EDID information may include various information about the AI upscale device, and in particular, may include information about the AI upscale capability of the AI upscale device. A program stored in memory 2430 may include one or more instructions. A program (one or more instructions) or application stored in the memory 2430 may be executed by the processor 2420.

일 실시예에 따른 프로세서(2420)는 CPU(Central Processing Unit, 2421), GPU(Graphic Processing Unit, 2423) 및 VPU(Video Processing Unit, 2422)를 포함할 수 있다. 또한, 실시예에 따라 CPU(2421)는 GPU(2423)를 포함하거나, VPU(2422)를 포함할 수 있다. 또는, CPU(2421)는 GPU(2423) 및 VPU(2422) 중 적어도 하나를 통합한 SoC(System On Chip) 형태로 구현될 수 있다. 또는, GPU(2423)와 VPU(2422)가 통합된 형태로 구현될 수도 있다. 또는, 프로세서(2420)는 NPU(Neural Processing Unit)를 더 포함할 수 있다.The processor 2420 according to one embodiment may include a Central Processing Unit (CPU) 2421, a Graphic Processing Unit (GPU) 2423, and a Video Processing Unit (VPU) 2422. Additionally, depending on the embodiment, the CPU 2421 may include a GPU 2423 or a VPU 2422. Alternatively, the CPU 2421 may be implemented in the form of a System On Chip (SoC) that integrates at least one of the GPU 2423 and the VPU 2422. Alternatively, the GPU 2423 and the VPU 2422 may be implemented in an integrated form. Alternatively, the processor 2420 may further include a Neural Processing Unit (NPU).

프로세서(2420)는 AI 업 스케일 장치(2400)의 전반적인 동작 및 AI 업스케일 장치(2400)의 내부 구성 요소들 사이의 신호 흐름을 제어하고, 데이터를 처리하는 기능을 수행한다. 프로세서(2420)는 입/출력부(2410) 및 디스플레이(2440)를 제어할 수 있다. GPU(2423)는 그래픽 처리를 수행할 수 있으며, 아이콘, 이미지, 텍스트 등과 같은 다양한 객체를 포함하는 화면을 생성할 수 있다. VPU(2422)는 AI 업 스케일 장치(2400)가 수신한 영상 데이터 또는 비디오 데이터에 대한 처리를 수행할 수 있으며, 영상 데이터 또는 비디오 데이터에 대한 디코딩(예를 들어, 제1 복호화), 스케일링, 노이즈 필터링, 프레임 레이트 변환, 해상도 변환 등과 같은 다양한 이미지 처리를 수행할 수 있다. 일 실시예에 따른 프로세서(2420)는 도 17에서 도시하고 설명한 AI 업스케일부(1230)의 동작들 중 적어도 하나를 수행하거나 수행되도록 제어할 수 있다.The processor 2420 controls the overall operation of the AI upscale device 2400 and signal flow between internal components of the AI upscale device 2400, and performs the function of processing data. The processor 2420 can control the input/output unit 2410 and the display 2440. The GPU 2423 can perform graphics processing and create a screen including various objects such as icons, images, and text. The VPU 2422 may perform processing on image data or video data received by the AI upscale device 2400, and may perform decoding (e.g., first decoding), scaling, and noise on the image data or video data. Various image processing such as filtering, frame rate conversion, resolution conversion, etc. can be performed. The processor 2420 according to one embodiment may perform or control to perform at least one of the operations of the AI upscale unit 1230 shown and described in FIG. 17.

예를 들어, 프로세서(2420)는 입/출력부(2410)에서 AI 데이터가 수신되는지 여부에 기초하여, 제2 영상에 대한 AI 업 스케일을 수행할 수 있다. For example, the processor 2420 may perform AI upscaling for the second image based on whether AI data is received from the input/output unit 2410.

프로세서(2420)는, 입/출력부(2410)에서 수신한 HDMI 패킷의 헤더 정보를 확인하여, VSIF 패킷을 검색할 수 있다. VSIF 패킷이 검색되면, 프로세서(2420)는, VSIF 패킷에 AI 데이터가 포함되어 있는지 여부를 판단할 수 있다. AI 데이터는, 제2 영상에 AI 업 스케일이 적용되는지 여부를 나타내는 정보, 제2 영상을 업스케일하기 위한 DNN에 관한 정보 등을 포함할 수 있다.The processor 2420 may check the header information of the HDMI packet received from the input/output unit 2410 and search for the VSIF packet. When the VSIF packet is retrieved, the processor 2420 may determine whether the VSIF packet includes AI data. The AI data may include information indicating whether AI upscale is applied to the second image, information about a DNN for upscaling the second image, etc.

또한, 프로세서(2420)는 제2 영상에 AI 업 스케일이 적용되는지 여부를 나타내는 정보에 기초하여, 제2 영상에 대해 AI 업 스케일을 수행할 지 여부를 결정할 수 있다.Additionally, the processor 2420 may determine whether to perform AI upscaling on the second image based on information indicating whether AI upscaling is applied to the second image.

프로세서(2420)는, AI 데이터에 기초하여, 제2 영상을 업스케일하기 위한 DNN에 관한 정보를 획득하고, 획득된 정보에 따라 결정된 제2 DNN을 이용하여, 제2 영상을 AI 업스케일하여, 제3 영상을 생성할 수 있다. 프로세서(2420)는 결정된 제2 DNN을 이용하여, 제2 영상을 AI 업스케일하도록 NPU를 제어할 수 있다.The processor 2420 acquires information about a DNN for upscaling the second image based on AI data, and AI upscales the second image using the second DNN determined according to the obtained information, A third image can be generated. The processor 2420 may control the NPU to AI upscale the second image using the determined second DNN.

입/출력부(2410)에서 AI 데이터가 수신되지 않는 경우, 프로세서(2420)는 AI 데이터를 이용하지 않고, 기 설정된 방법에 따라 제2 영상을 AI 업 스케일하여, 제4 영상을 생성할 수 있다. 이때, 제4 영상은 AI 데이터를 이용하여 AI 업스케일이 수행된 제3 영상보다 영상의 화질이 떨어질 수 있다.If AI data is not received from the input/output unit 2410, the processor 2420 may generate a fourth image by AI upscaling the second image according to a preset method without using the AI data. . At this time, the image quality of the fourth image may be lower than that of the third image for which AI upscaling was performed using AI data.

디스플레이(2440)는 프로세서(2420)에서 처리된 영상 신호, 데이터 신호, OSD 신호, 제어 신호 등을 변환하여 구동 신호를 생성한다. 디스플레이(2440)는 PDP, LCD, OLED, 플렉시블 디스플레이(flexible display)등으로 구현될 수 있으며, 또한, 3차원 디스플레이(3D display)로 구현될 수 있다. 또한, 디스플레이(2440)는, 터치 스크린으로 구성되어 출력 장치 이외에 입력 장치로 사용되는 것도 가능하다. 디스플레이(2440)는 제3 영상 또는 제4 영상을 디스플레이할 수 있다.The display 2440 generates a driving signal by converting image signals, data signals, OSD signals, and control signals processed by the processor 2420. The display 2440 may be implemented as a PDP, LCD, OLED, flexible display, etc., and may also be implemented as a 3D display. Additionally, the display 2440 can be configured as a touch screen and used as an input device in addition to an output device. The display 2440 may display a third image or a fourth image.

한편, 도 25 및 도 26에 도시된 복호화 장치(2300) 및 AI 업 스케일 장치(2400)의 블록도는 일 실시예를 위한 블록도이다. 블록도의 각 구성요소는 실제 구현되는 복호화 장치(2300) 및 AI 업 스케일 장치(2400)의 사양에 따라 통합, 추가, 또는 생략될 수 있다. 즉, 필요에 따라 2 이상의 구성요소가 하나의 구성요소로 합쳐지거나, 혹은 하나의 구성요소가 2 이상의 구성요소로 세분되어 구성될 수 있다. 또한, 각 블록에서 수행하는 기능은 실시예들을 설명하기 위한 것이며, 그 구체적인 동작이나 장치는 본 발명의 권리범위를 제한하지 아니한다.Meanwhile, the block diagram of the decoding device 2300 and the AI upscale device 2400 shown in FIGS. 25 and 26 are block diagrams for one embodiment. Each component of the block diagram may be integrated, added, or omitted depending on the specifications of the decoding device 2300 and AI upscale device 2400 that are actually implemented. That is, as needed, two or more components may be combined into one component, or one component may be subdivided into two or more components. In addition, the functions performed by each block are for explaining the embodiments, and the specific operations or devices do not limit the scope of the present invention.

한편, 상술한 본 개시의 실시예들은 컴퓨터에서 실행될 수 있는 프로그램으로 작성가능하고, 작성된 프로그램은 매체에 저장될 수 있다.Meanwhile, the above-described embodiments of the present disclosure can be written as a program that can be executed on a computer, and the written program can be stored in a medium.

매체는 컴퓨터로 실행 가능한 프로그램을 계속 저장하거나, 실행 또는 다운로드를 위해 임시 저장하는 것일 수도 있다. 또한, 매체는 단일 또는 수개 하드웨어가 결합된 형태의 다양한 기록수단 또는 저장수단일 수 있는데, 어떤 컴퓨터 시스템에 직접 접속되는 매체에 한정되지 않고, 네트워크 상에 분산 존재하는 것일 수도 있다. 매체의 예시로는, 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체, CD-ROM 및 DVD와 같은 광기록 매체, 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical medium), 및 ROM, RAM, 플래시 메모리 등을 포함하여 프로그램 명령어가 저장되도록 구성된 것이 있을 수 있다. 또한, 다른 매체의 예시로, 애플리케이션을 유통하는 앱 스토어나 기타 다양한 소프트웨어를 공급 내지 유통하는 사이트, 서버 등에서 관리하는 기록매체 내지 저장매체도 들 수 있다.The medium may continuously store a computer-executable program, or may temporarily store it for execution or download. In addition, the medium may be a variety of recording or storage means in the form of a single or several pieces of hardware combined. It is not limited to a medium directly connected to a computer system and may be distributed over a network. Examples of media include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical recording media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, And there may be something configured to store program instructions, including ROM, RAM, flash memory, etc. Additionally, examples of other media include recording or storage media managed by app stores that distribute applications, sites or servers that supply or distribute various other software, etc.

한편, 상술한 DNN과 관련된 모델은, 소프트웨어 모듈로 구현될 수 있다. 소프트웨어 모듈(예를 들어, 명령어(instruction)를 포함하는 프로그램 모듈)로 구현되는 경우, DNN 모델은 컴퓨터로 읽을 수 있는 판독 가능한 기록매체에 저장될 수 있다.Meanwhile, the model related to the above-described DNN can be implemented as a software module. When implemented as a software module (e.g., a program module including instructions), the DNN model may be stored in a computer-readable recording medium.

또한, DNN 모델은 하드웨어 칩 형태로 집적되어 전술한 AI 업 스케일 장치(2100)의 일부가 될 수도 있다. 예를 들어, DNN 모델은 인공 지능을 위한 전용 하드웨어 칩 형태로 제작될 수도 있고, 또는 기존의 범용 프로세서(예를 들어, CPU 또는 애플리케이션 프로세서) 또는 그래픽 전용 프로세서(예를 들어, GPU)의 일부로 제작될 수도 있다.Additionally, the DNN model may be integrated in the form of a hardware chip and become part of the AI upscale device 2100 described above. For example, a DNN model may be built on a dedicated hardware chip for artificial intelligence, or as part of an existing general-purpose processor (e.g., CPU or application processor) or dedicated graphics processor (e.g., GPU). It could be.

또한, DNN 모델은 다운로드 가능한 소프트웨어 형태로 제공될 수도 있다. 컴퓨터 프로그램 제품은 제조사 또는 전자 마켓을 통해 전자적으로 배포되는 소프트웨어 프로그램 형태의 상품(예를 들어, 다운로드 가능한 애플리케이션)을 포함할 수 있다. 전자적 배포를 위하여, 소프트웨어 프로그램의 적어도 일부는 저장 매체에 저장되거나, 임시적으로 생성될 수 있다. 이 경우, 저장 매체는 제조사 또는 전자 마켓의 서버, 또는 중계 서버의 저장매체가 될 수 있다.Additionally, DNN models may be provided in downloadable software form. A computer program product may include a product in the form of a software program (e.g., a downloadable application) distributed electronically through a manufacturer or electronic marketplace. For electronic distribution, at least a portion of the software program may be stored on a storage medium or created temporarily. In this case, the storage medium may be a storage medium of a manufacturer or an electronic market server, or a relay server.

이상, 본 개시의 기술적 사상을 바람직한 실시예를 들어 상세하게 설명하였으나, 본 개시의 기술적 사상은 상기 실시예들에 한정되지 않고, 본 개시의 기술적 사상의 범위 내에서 당 분야에서 통상의 지식을 가진 자에 의하여 여러 가지 변형 및 변경이 가능하다.Above, the technical idea of the present disclosure has been described in detail with preferred embodiments, but the technical idea of the present disclosure is not limited to the above embodiments, and those with ordinary knowledge in the field within the scope of the technical idea of the present disclosure Various modifications and changes are possible depending on the user.

Claims (16)

복호화 장치에 있어서,
영상 데이터와 AI 데이터를 포함하는 AI 부호화 데이터를 수신하는 통신부;
상기 AI 부호화 데이터로부터 제1 영상에 대한 부호화 결과에 대응하는 상기 영상 데이터를 획득하고,
상기 AI 부호화 데이터로부터, 원본 영상에서 상기 제1 영상으로의 AI 다운스케일과 관련된 상기 AI 데이터를 획득하고, 상기 AI 데이터는 AI 다운스케일에 이용된 제1 뉴럴 네트워크(Neural Network: NN) 설정 정보를 나타내는 인덱스를 포함함,
상기 획득한 영상 데이터를 복호화하여, 제2 영상을 획득하는 하나 이상의 프로세서들; 및
입/출력부를 포함하고,
상기 하나 이상의 프로세서들은,
외부 장치로부터 부가 정보를 수신하도록 상기 입/출력부를 제어하고,
상기 부가 정보에 기초하여, 상기 외부 장치에 의해 AI 업스케일이 가능한지 여부를 결정하고,
상기 AI 업스케일이 불가능하면, 상기 제2 영상을 상기 외부 장치로 전송하도록 상기 입/출력부를 제어하고,
상기 AI 업스케일이 가능하면, 상기 제2 영상 및 상기 AI 데이터를 상기 외부 장치로 전송하도록 상기 입/출력부를 제어하고,
상기 AI 데이터에 포함되는 인덱스는 AI 업스케일을 위한 복수의 제2 NN 설정 정보들 중 어느 하나의 제2 NN 설정 정보를 선택하는데 이용되며,
상기 제1 영상은 AI 다운스케일을 위한 복수의 제1 NN 설정 정보들 중 상기 제1 NN 설정 정보로 구성되는 다운스케일 NN을 통하여 획득되고,
상기 제1 NN 설정 정보는, 압축률, 압축 품질, 압축 히스토리 정보, 상기 원본 영상의 해상도 및 상기 원본 영상의 타입 중 적어도 하나에 기초하여, 상기 복수의 제1 NN 설정 정보들 중에서 선택되고,
상기 AI 업스케일은 상기 선택된 제2 NN 설정 정보로 구성되는 업스케일 NN을 통하여 수행되며,
상기 복수의 제1 NN 설정 정보들 및 상기 복수의 제2 NN 설정 정보들은 상기 다운스케일 NN 및 상기 업스케일 NN의 연계 훈련을 통해 획득되는, 복호화 장치.
In the decryption device,
A communication unit that receives AI encoded data including video data and AI data;
Obtaining the image data corresponding to an encoding result for the first image from the AI encoding data,
From the AI encoded data, the AI data related to AI downscaling from the original image to the first image is obtained, and the AI data includes first neural network (NN) setting information used for AI downscaling. Contains an index indicating
one or more processors that decode the acquired image data to obtain a second image; and
Includes an input/output unit,
The one or more processors:
Controlling the input/output unit to receive additional information from an external device,
Based on the additional information, determine whether AI upscaling is possible by the external device,
If the AI upscaling is not possible, control the input/output unit to transmit the second image to the external device,
If the AI upscaling is possible, control the input/output unit to transmit the second image and the AI data to the external device,
The index included in the AI data is used to select one second NN setting information among a plurality of second NN setting information for AI upscaling,
The first image is obtained through a downscale NN consisting of the first NN setting information among a plurality of first NN setting information for AI downscaling,
The first NN setting information is selected from the plurality of first NN setting information based on at least one of compression rate, compression quality, compression history information, resolution of the original image, and type of the original image,
The AI upscaling is performed through an upscale NN composed of the selected second NN setting information,
The decoding device wherein the plurality of first NN configuration information and the plurality of second NN configuration information are obtained through joint training of the downscale NN and the upscale NN.
제1항에 있어서,
상기 입/출력부는 HDMI(High Definition Multimedia Interface)를 포함하고,
상기 프로세서는,
상기 제2 영상 및 상기 AI 데이터를 상기 HDMI를 통해, 상기 외부 장치로 전송하는, 복호화 장치.
According to paragraph 1,
The input/output unit includes HDMI (High Definition Multimedia Interface),
The processor,
A decoding device that transmits the second video and the AI data to the external device through the HDMI.
제2항에 있어서,
상기 프로세서는,
상기 AI 데이터를, VSIF(Vendor Specific InfoFrame) 패킷의 형태로 전송하는, 복호화 장치.
According to paragraph 2,
The processor,
A decoding device that transmits the AI data in the form of a VSIF (Vendor Specific InfoFrame) packet.
제1항에 있어서,
상기 입/출력부는 DP(Display Port)를 포함하고,
상기 프로세서는
상기 제2 영상 및 상기 AI 데이터를 상기 DP를 통해, 상기 외부 장치로 전송하는, 복호화 장치.
According to paragraph 1,
The input/output unit includes a DP (Display Port),
The processor is
A decoding device that transmits the second image and the AI data to the external device through the DP.
제1항에 있어서,
상기 AI 데이터는, 상기 제2 영상이 상기 AI 다운스케일되었다는 것을 나타내는 제1 정보를 포함하는, 복호화 장치.
According to paragraph 1,
The AI data includes first information indicating that the second image has been downscaled by the AI.
복호화 장치의 동작 방법에 있어서,
영상 데이터와 AI 데이터를 포함하는 AI 부호화 데이터를 수신하는 단계;
상기 AI 부호화 데이터로부터 제1 영상에 대한 부호화 결과에 대응하는 상기 영상 데이터를 획득하는 단계;
상기 AI 부호화 데이터로부터, 원본 영상에서 상기 제1 영상으로의 AI 다운스케일과 관련된 AI 데이터를 획득하는 단계, 상기 AI 데이터는 상기 AI 다운스케일에 이용된 제1 뉴럴 네트워크(Neural Network: NN) 설정 정보를 나타내는 인덱스를 포함함;
상기 획득한 영상 데이터를 복호화하여, 제2 영상을 획득하는 단계;
외부 장치로부터 부가 정보를 수신하는 단계;
상기 부가 정보에 기초하여, 상기 외부 장치에 의해 AI 업스케일이 가능한 지 여부를 결정하는 단계; 및
상기 AI 업스케일이 불가능하면, 상기 제2 영상을 상기 외부 장치로 전송하고,
상기 AI 업스케일이 가능하면, 상기 제2 영상 및 상기 AI 데이터를 상기 외부 장치로 전송하는 단계;를 포함하고,
상기 AI 데이터에 포함되는 인덱스는 AI 업스케일을 위한 복수의 제2 NN 설정 정보들 중 어느 하나의 제2 NN 설정 정보를 선택하는데 이용되며,
상기 제1 영상은 AI 다운스케일을 위한 복수의 제1 NN 설정 정보들 중 상기 제1 NN 설정 정보로 구성되는 다운스케일 NN을 통하여 획득되고,
상기 제1 NN 설정 정보는, 압축률, 압축 품질, 압축 히스토리 정보, 상기 원본 영상의 해상도 및 상기 원본 영상의 타입 중 적어도 하나에 기초하여, 상기 복수의 제1 NN 설정 정보들 중에서 선택되고,
상기 AI 업스케일은 상기 선택된 제2 NN 설정 정보로 구성되는 업스케일 NN을 통하여 수행되며,
상기 복수의 제1 NN 설정 정보들 및 상기 복수의 제2 NN 설정 정보들은 상기 다운스케일 NN 및 상기 업스케일 NN의 연계 훈련을 통해 획득되는, 복호화 장치의 동작방법.
In the method of operating the decoding device,
Receiving AI encoded data including image data and AI data;
Obtaining the image data corresponding to an encoding result for a first image from the AI encoded data;
Obtaining AI data related to AI downscaling from the original image to the first image from the AI encoded data, wherein the AI data includes first neural network (NN) setting information used for the AI downscaling. Contains an index representing ;
Decoding the acquired image data to obtain a second image;
Receiving additional information from an external device;
Based on the additional information, determining whether AI upscaling is possible by the external device; and
If the AI upscaling is not possible, transmit the second image to the external device,
If the AI upscaling is possible, transmitting the second image and the AI data to the external device,
The index included in the AI data is used to select one second NN setting information among a plurality of second NN setting information for AI upscaling,
The first image is obtained through a downscale NN consisting of the first NN setting information among a plurality of first NN setting information for AI downscaling,
The first NN setting information is selected from the plurality of first NN setting information based on at least one of compression rate, compression quality, compression history information, resolution of the original image, and type of the original image,
The AI upscaling is performed through an upscale NN composed of the selected second NN setting information,
A method of operating a decoding device, wherein the plurality of first NN setting information and the plurality of second NN setting information are obtained through linked training of the downscale NN and the upscale NN.
제6항에 있어서,
상기 제2 영상 및 상기 AI 데이터를 상기 외부 장치로 전송하는 단계는,
상기 제2 영상 및 상기 AI 데이터를 HDMI를 통해, 상기 외부 장치로 전송하는 단계를 포함하는, 복호화 장치의 동작방법.
According to clause 6,
The step of transmitting the second image and the AI data to the external device is,
A method of operating a decoding device, comprising transmitting the second video and the AI data to the external device through HDMI.
제7항에 있어서,
상기 제2 영상 및 상기 AI 데이터를 상기 외부 장치로 전송하는 단계는,
상기 AI 데이터를, VSIF(Vendor Specific InfoFrame) 패킷의 형태로 전송하는 단계를 포함하는, 복호화 장치의 동작방법.
In clause 7,
The step of transmitting the second image and the AI data to the external device is,
A method of operating a decoding device, including transmitting the AI data in the form of a VSIF (Vendor Specific InfoFrame) packet.
제6항에 있어서,
상기 제2 영상 및 상기 AI 데이터를 상기 외부 장치로 전송하는 단계는,
상기 제2 영상 및 상기 AI 데이터를 DP(Display Port)를 통해, 상기 외부 장치로 전송하는 단계를 포함하는, 복호화 장치의 동작방법.
According to clause 6,
The step of transmitting the second image and the AI data to the external device is,
A method of operating a decoding device, comprising transmitting the second image and the AI data to the external device through a DP (Display Port).
제6항에 있어서,
상기 AI 데이터는, 상기 제2 영상이 상기 AI 다운스케일되었다는 것을 나타내는 제1 정보를 포함하는, 복호화 장치의 동작방법.
According to clause 6,
The AI data includes first information indicating that the second image has been downscaled by the AI.
AI 업스케일 장치에 있어서,
디스플레이;
상기 AI 업스케일 장치에 의해 AI 업스케일이 가능한지 여부를 나타내는 부가 정보를 복호화 장치로 전송하고, 상기 복호화 장치로부터 원본 영상을 AI 다운스케일한 제1 영상에 대응하는 제2 영상, 및 상기 AI 다운스케일과 관련된 AI 데이터를 수신하는 입/출력부, 상기 AI 데이터는 상기 AI 다운스케일에 이용된 제1 뉴럴 네트워크(Nerual Network: NN) 설정 정보를 나타내는 인덱스를 포함함;
하나 이상의 인스트럭션들을 저장하는 메모리; 및
상기 메모리에 저장된 상기 하나 이상의 인스트럭션들을 실행하는 하나 이상의 프로세서들을 포함하고,
상기 하나 이상의 프로세서들은,
상기 AI 데이터에 포함되는 인덱스에 기초하여, AI 업스케일을 위한 복수의 제2 NN 설정 정보들 중 어느 하나의 제2 NN 설정 정보를 선택하고, 상기 선택된 제2 NN 설정 정보로 구성된 업스케일 NN을 이용하여 상기 수신한 제2 영상에 대한 AI 업스케일을 수행하여 제3 영상을 획득하고,
상기 획득된 제3 영상을 상기 디스플레이에 제공하고,
상기 제1 영상은, AI 다운스케일을 위한 복수의 제1 NN 설정 정보들 중 상기 제1 NN 설정 정보로 구성된 다운스케일 NN을 통하여 획득되며,
상기 제1 NN 설정 정보는, 압축률, 압축 품질, 압축 히스토리 정보, 상기 원본 영상의 해상도 및 상기 원본 영상의 타입 중 적어도 하나에 기초하여, 상기 복수의 제1 NN 설정 정보들 중에서 선택되고,
상기 복수의 제1 NN 설정 정보들 및 상기 복수의 제2 NN 설정 정보들은 상기 다운스케일 NN 및 상기 업스케일 NN의 연계 훈련을 통해 획득되는, AI 업스케일 장치.
In the AI upscale device,
display;
Additional information indicating whether AI upscaling is possible by the AI upscaling device is transmitted to the decoding device, and a second image corresponding to the first image obtained by AI downscaling the original image from the decoding device, and the AI downscaling are transmitted to the decoding device. An input/output unit for receiving AI data related to, the AI data including an index indicating first neural network (NN) setting information used for AI downscaling;
a memory storing one or more instructions; and
Comprising one or more processors executing the one or more instructions stored in the memory,
The one or more processors:
Based on the index included in the AI data, one second NN setting information among a plurality of second NN setting information for AI upscaling is selected, and an upscale NN composed of the selected second NN setting information is selected. Obtain a third image by performing AI upscaling on the received second image,
Providing the acquired third image to the display,
The first image is obtained through a downscale NN composed of the first NN setting information among a plurality of first NN setting information for AI downscaling,
The first NN setting information is selected from the plurality of first NN setting information based on at least one of compression rate, compression quality, compression history information, resolution of the original image, and type of the original image,
The plurality of first NN setting information and the plurality of second NN setting information are obtained through linked training of the downscale NN and the upscale NN.
제11항에 있어서,
상기 입/출력부는 HDMI(High Definition Multimedia Interface)를 포함하고,
상기 입/출력부는, 상기 HDMI를 통해, 상기 AI 데이터 및 상기 제2 영상을 수신하는, AI 업스케일 장치.
According to clause 11,
The input/output unit includes HDMI (High Definition Multimedia Interface),
The input/output unit is an AI upscale device that receives the AI data and the second image through the HDMI.
제12항에 있어서,
상기 입/출력부는,
상기 AI 데이터를, VSIF(Vendor Specific InfoFrame) 패킷의 형태로 수신하는, AI 업스케일 장치.
According to clause 12,
The input/output unit,
An AI upscale device that receives the AI data in the form of a VSIF (Vendor Specific InfoFrame) packet.
제11항에 있어서,
상기 입/출력부는 DP(Display Port)를 포함하고,
상기 입/출력부는,
상기 DP를 통해, 상기 AI 데이터 및 상기 제2 영상을 수신하는, AI 업스케일 장치.
According to clause 11,
The input/output unit includes a DP (Display Port),
The input/output unit,
An AI upscale device that receives the AI data and the second image through the DP.
제11항에 있어서,
상기 AI 데이터는, 상기 제2 영상은 상기 AI 다운스케일되었다는 것을 나타내는 제1 정보를 포함하는, AI 업스케일 장치.
According to clause 11,
The AI data includes first information indicating that the second image has been downscaled by the AI.
제11항에 있어서,
상기 다운 스케일 NN 및 상기 업 스케일 NN은 손실 정보를 공유함에 기초하여, 연계 훈련되는, AI 업스케일 장치.
According to clause 11,
The downscale NN and the upscale NN are jointly trained based on sharing loss information.
KR1020210114124A 2019-08-19 2021-08-27 Encoding apparatus and operating method for the same, and AI up scaling apparatus and operating method for the same KR102589858B1 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
KR1020190101323 2019-08-19
KR20190101323 2019-08-19
KR1020190134113A KR102569447B1 (en) 2019-08-19 2019-10-25 Encoding apparatus and operating method for the same, and AI up scaling apparatus and operating method for the same

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020190134113A Division KR102569447B1 (en) 2019-08-19 2019-10-25 Encoding apparatus and operating method for the same, and AI up scaling apparatus and operating method for the same

Publications (2)

Publication Number Publication Date
KR20210110275A KR20210110275A (en) 2021-09-07
KR102589858B1 true KR102589858B1 (en) 2023-10-17

Family

ID=75169453

Family Applications (2)

Application Number Title Priority Date Filing Date
KR1020190134113A KR102569447B1 (en) 2019-08-19 2019-10-25 Encoding apparatus and operating method for the same, and AI up scaling apparatus and operating method for the same
KR1020210114124A KR102589858B1 (en) 2019-08-19 2021-08-27 Encoding apparatus and operating method for the same, and AI up scaling apparatus and operating method for the same

Family Applications Before (1)

Application Number Title Priority Date Filing Date
KR1020190134113A KR102569447B1 (en) 2019-08-19 2019-10-25 Encoding apparatus and operating method for the same, and AI up scaling apparatus and operating method for the same

Country Status (1)

Country Link
KR (2) KR102569447B1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190045168A1 (en) * 2018-09-25 2019-02-07 Intel Corporation View interpolation of multi-camera array images with flow estimation and image super resolution using deep learning

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7991238B2 (en) * 2004-04-30 2011-08-02 Neiversan Networks Co. Llc Adaptive compression of multi-level images

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190045168A1 (en) * 2018-09-25 2019-02-07 Intel Corporation View interpolation of multi-camera array images with flow estimation and image super resolution using deep learning

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Feng Jiang et al, An End-to-End Compression Framework Based on Convolutional Neural Networks, IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, pp. 1-13 (2017.08.02.) 1부.*

Also Published As

Publication number Publication date
KR102569447B1 (en) 2023-08-24
KR20210110275A (en) 2021-09-07
KR20210021888A (en) 2021-03-02

Similar Documents

Publication Publication Date Title
US11756159B2 (en) Decoding apparatus and operating method of the same, and artificial intelligence (AI) up-scaling apparatus and operating method of the same
KR102525578B1 (en) Method and Apparatus for video encoding and Method and Apparatus for video decoding
US11288770B2 (en) Apparatuses and methods for performing artificial intelligence encoding and artificial intelligence decoding on image
US11810332B2 (en) Apparatus and method for performing artificial intelligence (AI) encoding and AI decoding on image
US11663747B2 (en) Methods and apparatuses for performing artificial intelligence encoding and artificial intelligence decoding on image
JP7445601B2 (en) Depth encoding and decoding method and device
KR102500761B1 (en) Apparatus and method for performing artificial intelligence encoding and artificial intelligence decoding of image
KR102589858B1 (en) Encoding apparatus and operating method for the same, and AI up scaling apparatus and operating method for the same
CN113228665A (en) Method, device, computer program and computer-readable medium for processing configuration data
US20220180568A1 (en) Ai encoding apparatus and operation method of the same, and ai decoding apparatus and operation method of the same
EP4362454A1 (en) Downscale and upscale method and device using artificial intelligence (ai) during video conference
KR102421718B1 (en) A method and an apparatus for performing artificial intelligence encoding and artificial intelligence decoding
KR102421719B1 (en) Apparatus and method for performing artificial intelligence encoding and artificial intelligence decoding of image by using low-complexity neural network
US20230196505A1 (en) Artificial intelligence-based image providing apparatus and method, and artificial intelligence-based display apparatus and method
US20230052330A1 (en) Image providing method and apparatus using artificial intelligence, and display method and apparatus using artificial intelligence
KR20220081648A (en) AI encoding apparatus and operating method for the same, and AI decoding apparatus and operating method for the same
KR20230025279A (en) Image providing apparatus using artificial intelligence and method thereby, and display apparatus using artificial intelligence and method thereby
KR20210154700A (en) A method and an apparatus for adaptive artificial intelligence downscaling for upscaling during video telephone call
KR20230094838A (en) Image providing apparatus using artificial intelligence and method thereby, and display apparatus using artificial intelligence and method thereby
KR20220063061A (en) Artificial intelligence encoding apparatus and method, and artificial intelligence decoding apparatus and method for object region of interest in image

Legal Events

Date Code Title Description
A107 Divisional application of patent
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant