A method, apparatus, and computer program product for multi-view video coding

By interleaving multi-view video sequences into a single sequence and using a single encoder to complete multi-view encoding, the problems of high hardware overhead and system complexity are solved, achieving hardware cost savings and standard compatibility.

CN123185361APending Publication Date: 2026-11-27镕铭微电子(上海)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611369521.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-04
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing multi-view video coding technologies suffer from huge hardware overhead and high system complexity when implemented in hardware. This is mainly because an independent encoder instance needs to be configured for each viewpoint, which increases chip area, power consumption and manufacturing cost. Parallel operation also increases the complexity of system control and data synchronization.

Method used

Multi-view video sequences are interleaved into a single sequence, and the coding order is planned based on a preset GOP structure. A single encoder is used to complete the multi-view coding task. The coding order is determined by constructing a multi-view prediction graph model, setting long-term reference frames, and performing high-level syntax transformation to generate a standard-compliant bitstream.

Benefits of technology

It significantly saves hardware area and cost, simplifies system implementation, ensures encoding efficiency and standard compatibility, and the generated bitstream can be correctly parsed by standard decoders.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185361A_ABST
    Figure CN123185361A_ABST
Patent Text Reader

Abstract

The application discloses a multi-view video coding method, device and computer program product. The method comprises the following steps: acquiring a video sequence of at least two views including a reference view; interleaving the video sequence into a single interleaved video sequence; determining the coding order of each frame according to a preset first GOP structure; performing coding on each frame in the order; setting the frame from the reference view as a long-term reference frame during the coding process; converting the high-layer syntax generated in the coding to convert the syntax elements in the reference image set into the expression based on the original view; and generating a code stream. The application solves the problems of huge hardware cost and high system complexity caused by multi-coder instances by interleaving the multi-view sequence and uniformly coding by a single coder, and meanwhile ensures the compatibility of the generated code stream with the related video coding standards.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This patent relates to the field of video coding technology, and more specifically, to a method, apparatus, and computer program product for multi-view video coding. Background Technology

[0002] In the field of multi-view video coding, to efficiently compress multiple video streams of the same scene from different perspectives, multi-view video coding standards, such as MV-HEVC, are typically used. These standards usually require assigning an independent encoder instance to each viewpoint during the encoding process. Specifically, the video sequences of the reference viewpoint and dependent viewpoints are input into different encoders for independent encoding. The encoder for the dependent viewpoints needs to refer to the reconstructed frames of the reference viewpoint during the encoding process to achieve inter-view prediction.

[0003] While such technical solutions can achieve multi-view video encoding, they suffer from significant hardware overhead. Because a separate encoder instance is required for each viewpoint, especially in hardware encoder implementations, this necessitates replicating the entire encoder hardware unit, leading to a substantial increase in chip area, power consumption, and manufacturing costs. Furthermore, the parallel operation of multiple encoder instances increases the complexity of system control and data synchronization. Therefore, effectively reducing the hardware overhead and system complexity of multi-view video encoding while ensuring encoding efficiency and standards compatibility is a pressing technical challenge in this field. Summary of the Invention

[0004] To solve, or at least partially solve, the technical problems existing in the prior art, the present invention provides a multi-view video coding method, comprising: Acquire video sequences from at least two viewpoints, including a baseline viewpoint; Interweave the video sequences from at least two viewpoints into a single interleaved video sequence; The encoding order of each frame in the interleaved video sequence is determined based on the first GOP structure preset for the interleaved video sequence; Encoding is performed on each frame of the interleaved video sequence according to the encoding order; During the encoding process, frames from the reference viewpoint are set as long-term reference frames; The high-level syntax generated by encoding the interleaved video sequence is transformed, and the transformation includes: based on the mapping relationship between the interleaved POC and the original viewpoint POC of the frames in the interleaved video sequence, the syntax elements in the reference image set are transformed into expressions based on the original viewpoint. Generate a bitstream.

[0005] In existing technologies, multi-view coding requires multiple independent encoders, resulting in significant hardware overhead. This solution, by interleaving multi-view video sequences into a single sequence and uniformly encoding them according to a predefined GOP structure, integrates tasks that previously required multiple encoder instances into a single encoding process. This significantly saves hardware area and cost. Furthermore, by setting the frame of the reference viewpoint as a long-term reference frame and performing a transformation of the high-level syntax based on the original viewpoint after encoding, the single encoder can effectively organize the prediction relationships between viewpoints and ultimately generate a standard-compliant bitstream. Therefore, only reference frame management and syntax derivation need to be implemented at the encoder firmware level to produce a standard-compliant bitstream, greatly simplifying system implementation.

[0006] Optionally, in a preferred embodiment, the step of determining the encoding order of each frame in the interleaved video sequence based on a first GOP structure preset for the interleaved video sequence includes: Based on the video sequence of at least two viewpoints, a multi-view prediction graph model is constructed, wherein the multi-view prediction graph model uses frames as vertices and the reference relationships between frames as edges; Based on the multi-view prediction graph model, the encoding order of each frame in the interleaved video sequence is determined.

[0007] By constructing a multi-view prediction graph model to determine the coding order, instead of the traditional heuristic scheduling rules, it can perform content-adaptive order planning based on global inter-frame reference relationships, thereby obtaining a more deterministic and reproducible coding order.

[0008] Optionally, in a preferred embodiment, the step of determining the encoding order of each frame in the interleaved video sequence based on the multi-view prediction graph model includes: Calculate the Laplacian matrix of the multi-view prediction graph model; Calculate the eigenvector corresponding to the second smallest eigenvalue of the Laplacian matrix; The vertices are sorted according to the component values ​​corresponding to each vertex in the feature vector to generate the encoding order.

[0009] By using spectral sorting to sort the vertices of the graph model, frames with close reference relationships can be placed close to each other in the encoding time sequence, thereby improving prediction efficiency and helping to reduce the number of key reference frames that need to be retained in the decoded image buffer at the same time.

[0010] Optionally, in a preferred embodiment, the step of setting the frame from the reference viewpoint as a long-term reference frame during the encoding process includes: Based on the encoding order, vertices that are referenced by multiple subsequent frames in the multi-view prediction graph model are identified; Frames belonging to the reference viewpoint among the identified vertices are determined as long-term reference frames.

[0011] By identifying key vertices referenced by multiple subsequent frames based on the encoding order within a graph model framework, the frame that should be used as the long-term reference frame in the baseline viewpoint can be deterministically selected. This decision can be made once at the start of the GOP and does not change dynamically during the encoding process, ensuring determinism and standard compatibility.

[0012] Optionally, in a preferred embodiment, the method further includes: Based on the multi-view prediction graph model, a static mapping table is generated, which records the correspondence between the interleaved POC of the interleaved video sequence and the original viewpoint ID and the original POC. The mapping relationship is provided by the static mapping table; The static mapping table is constructed separately for each first GOP, and is constructed before the encoding process of the corresponding first GOP begins, and remains unchanged during the encoding process of the first GOP; The conversion step is performed based on the static mapping table.

[0013] By generating a static mapping table for each GOP, deterministic input is provided for high-level syntax transformations, eliminating the uncertainty that may arise from runtime dynamic computation of mapping relationships. This mapping table is constructed during the coding planning phase and remains unchanged during the encoding of the same GOP, ensuring bitstream consistency and standard compatibility, and adapting to different interleaving structures.

[0014] Optionally, in a preferred embodiment, determining the encoding order of each frame in the interleaved video sequence according to a first GOP structure preset for the interleaved video sequence includes: Assign a pair number interleaved POC to frames from the reference viewpoint, and assign an odd number interleaved POC to frames from dependent viewpoints.

[0015] By assigning different parity POCs to frames from different viewpoints, the prediction relationships between viewpoints can be initially transformed into inter-frame prediction relationships, which makes it easier for a single encoder to process them using standard inter-frame prediction tools, thus simplifying the encoding process.

[0016] Optionally, in a preferred embodiment, determining the encoding order of each frame in the interleaved video sequence according to a first GOP structure preset for the interleaved video sequence includes: Frames belonging to the same GOP in the interleaved video sequence are grouped together; Within the same GOP, the encoding order is determined by alternating between reference viewpoint frames and dependent viewpoint frames.

[0017] By alternating frames from different viewpoints within the same GOP, the prediction relationships between viewpoints can be specifically transformed into inter-frame prediction relationships, enabling a single encoder to handle multi-viewpoint dependencies using standard inter-frame prediction tools, thereby simplifying the encoding process.

[0018] Optionally, in a preferred embodiment, setting the frame from the reference viewpoint as a long-term reference frame during the encoding process includes: placing the long-term reference frame at a specific index position in the forward reference list when constructing the reference frame list.

[0019] By placing long-term reference frames in a specific position in the reference list, long-term reference frames and short-term reference frames can be effectively distinguished and managed in a single encoder process, ensuring that dependent viewpoint frames can correctly reference the long-term reference frame of the reference viewpoint.

[0020] Optionally, in a preferred embodiment, setting frames from the reference viewpoint as long-term reference frames during the encoding process includes: constructing a list of reference frames for each frame before encoding each frame of the interleaved video sequence.

[0021] By constructing a list of reference frames on the fly before encoding each frame, the real-time availability of reference relationships during the encoding process can be ensured, thereby effectively organizing the interview reference relationships within the interleaved sequence in a single encoder flow.

[0022] Optionally, in a preferred embodiment, setting frames from the reference viewpoint as long-term reference frames during the encoding process includes: managing the decoded image buffer and constructing a reference frame list according to the reference relationship defined by the first GOP structure.

[0023] By collaboratively managing the decoded image buffer and constructing the reference frame list based on the reference relationships defined in the first GOP structure, it can be ensured that long-term reference frames are effectively retained in the buffer, thereby effectively organizing the inter-viewpoint reference relationships within the interleaved sequence in a single encoder flow.

[0024] Alternatively, in a preferred embodiment, the transformation of the high-level syntax includes: Each frame in the interlaced video sequence is taken as the current frame, and a reference image set for the current frame is determined. Exclude reference frames from different viewpoints from the reference image set; For each reference frame retained in the reference image set, the original POC of the reference frame and the original POC of the current frame are determined according to the mapping relationship; Calculate the difference between the original POC of the reference frame and the original POC of the current frame, and use it as the POC difference of the reference frame; Based on the POC difference, the grammatical elements in the reference image set are converted into expressions based on the original viewpoint.

[0025] Through the steps described above, high-level syntax transformation forms a complete execution process. This process first determines the reference image set for the current frame, then excludes cross-viewpoint reference frames to avoid processing conflicts by the standard decoder. Next, it calculates the point of intersection (POC) differences between the original viewpoints based on the mapping relationships. Finally, it converts the syntax elements into a standard expression based on the original viewpoints. The resulting reference image set syntax elements conform to the MV-HEVC standard, and the reference relationships are fully expressed and can be correctly parsed by the standard decoder.

[0026] Optionally, in a preferred embodiment, the step of encoding each frame in the interleaved video sequence according to the encoding order is performed by a single encoder that encodes the interleaved video sequence as a single input.

[0027] By limiting all encoding steps to a single encoder and using the interleaved video sequence as its single input, this scheme can complete multi-view coding with a single encoder instance, thereby significantly saving hardware area and cost.

[0028] Another aspect of the present invention provides a multi-view video encoding apparatus, comprising: An acquisition unit is used to acquire video sequences from at least two viewpoints, including a reference viewpoint. An interleaving unit is used to interleave video sequences from at least two viewpoints into a single interleaved video sequence; The encoding planning unit is used to determine the encoding order of each frame in the interleaved video sequence according to the first GOP structure preset for the interleaved video sequence; An encoding unit is configured to encode each frame in the interleaved video sequence according to the encoding order; A reference frame management unit is used to set frames from the reference viewpoint as long-term reference frames during the encoding process. The syntax conversion unit is used to convert the high-level syntax generated by encoding the interleaved video sequence. The conversion includes: converting the syntax elements in the reference image set into expressions based on the original viewpoint, based on the mapping relationship between the interleaved POC and the original viewpoint POC of the frames in the interleaved video sequence. The bitstream generation unit is used to generate bitstreams.

[0029] Optionally, in a preferred embodiment, the syntax conversion unit is configured as follows: Each frame in the interlaced video sequence is taken as the current frame, and a reference image set for the current frame is determined. Exclude reference frames from different viewpoints from the reference image set; For each reference frame retained in the reference image set, the original POC of the reference frame and the original POC of the current frame are determined according to the mapping relationship; Calculate the difference between the original POC of the reference frame and the original POC of the current frame, and use it as the POC difference of the reference frame; Based on the POC difference, the grammatical elements in the reference image set are converted into expressions based on the original viewpoint.

[0030] With the above configuration, the syntax transformation unit can perform a complete high-level syntax transformation process, ensuring that the generated reference image set syntax elements conform to the MV-HEVC standard, the reference relations are fully expressed, and can be correctly parsed by the standard decoder.

[0031] Optionally, in a preferred embodiment, the coding planning unit includes: The graph model construction module is used to construct a multi-view prediction graph model based on the video sequence of the at least two viewpoints. The multi-view prediction graph model uses frames as vertices and the reference relationships between frames as edges. The sequence determination module is used to determine the encoding order of each frame in the interleaved video sequence based on the multi-view prediction graph model.

[0032] By including a graph model building module and a sequence determination module, the coding planning unit can adaptively derive the coding order based on the global graph structure content, replacing heuristic scheduling rules and making the coding order deterministic and reproducible.

[0033] Another aspect of the present invention provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the aforementioned multi-view video encoding method.

[0034] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the aforementioned multi-view video encoding method. This computer-readable storage medium can be any non-transient medium capable of storing a computer program, such as a read-only memory, random access memory, magnetic disk, optical disk, etc.

[0035] In summary, the technical solution provided by this invention interweaves multi-view video sequences into a single sequence and plans the encoding order based on a preset GOP structure, enabling a single encoder to complete multi-view encoding tasks. This fundamentally solves the problems of huge hardware overhead and high system complexity caused by the need for multiple encoder instances in existing technologies. The steps involved in the solution, such as determining the encoding order, setting long-term reference frames, and high-level syntax transformation, work together organically, ensuring not only the efficiency and determinism of the encoding process but also guaranteeing that the final generated bitstream fully complies with relevant video encoding standards, achieving a balance between hardware cost savings and standard compatibility. Attached Figure Description

[0036] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are merely some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.

[0037] Figure 1 This is a schematic diagram of the traditional dual-viewpoint MC-HEVC coding architecture; Figure 2 This is a schematic diagram of the existing MC-HEVC dual encoder, long-term reference frame and bitstream multiplexing architecture; Figure 3 This is a schematic diagram of the unified encoder architecture according to an embodiment of the present invention; Figure 4 This is a schematic diagram of inter-frame dependencies and encoding execution order when the GOP size is 4; Figure 5 This is a schematic diagram of the standard HEVC forward reference list and backward reference list (taking POC5 as an example); Figure 6 This is a schematic diagram of an improved forward reference list that introduces long-term reference frames (taking POC5 as an example). Detailed Implementation

[0038] With the widespread adoption of applications such as virtual reality and free-viewpoint video, multi-view video coding technology has become crucial for efficiently compressing multi-view video data. MV-HEVC, as the mainstream multi-view video coding standard, is based on the principle of allowing dependent viewpoints to reference reconstructed frames of a reference viewpoint during encoding, thereby enabling inter-view prediction and improving compression efficiency. However, this standardized prediction mechanism presents significant architectural challenges at the implementation level, particularly in hardware implementation.

[0039] The closest existing technical solution, namely the standard MV-HEVC encoding implementation, typically employs an architecture that assigns an independent encoder instance to each viewpoint. Specifically, the video sequences of the base viewpoint and dependent viewpoints are input into their respective independent encoders for processing (e.g., ...). Figure 1 (As shown). When encoding its current frame, the viewpoint-dependent encoder needs to access and reference the reconstructed frame generated by the baseline viewpoint encoder, which is stored in the decoded image buffer. This architecture ensures the physical realization of inter-viewpoint predictions but constitutes a system model of multiple encoders operating in parallel.

[0040] The aforementioned multi-encoder instance architecture directly leads to the apparent hardware overhead problem. In a hardware encoder scenario, each encoder instance means replicating an entire set of encoder hardware units, including core modules such as motion estimation, transform quantization, and entropy coding. This results in a significant increase in chip area, power consumption, and manufacturing costs. Furthermore, the parallel operation of multiple encoder instances introduces complexity to system control and data synchronization. For example, it requires coordinating frame buffer access, bitrate allocation, and state synchronization between different encoders, increasing the difficulty and uncertainty of system design.

[0041] The fundamental technical bottleneck causing the dramatic increase in hardware overhead lies in the inherent contradiction between the inter-view prediction mechanism defined by the MV-HEVC standard and the linear processing model of mainstream video encoders (such as HEVC), which operates on a single-input, single-threaded basis. The standard HEVC encoder is designed to receive a single video sequence and perform inter-frame prediction based on the spatiotemporal correlation between frames within that sequence. However, MV-HEVC's inter-view prediction requires the encoder to be able to process reference frames from another independent sequence (i.e., another viewpoint). Existing technologies physically isolate the processing flow of different viewpoints by adding independent encoder instances, thereby meeting this cross-sequence reference requirement. This "one viewpoint, one encoder" mapping relationship is the essential reason for the linear increase in hardware resources. The technical contradiction manifests as follows: to achieve logical reference relationships between viewpoints at the encoding level, it is necessary to replicate the entire encoding processing unit at the hardware level.

[0042] Faced with this contradiction, those skilled in the art might try some intuitive alternatives. For example, they could consider using multithreading or parallel processing techniques at the software level to simulate multiple encoders, but this does not reduce the number of underlying computing cores and cannot solve the fundamental problems of hardware area and cost. Alternatively, they could consider simplifying the reference relationships between viewpoints and reducing the frequency of reference from one viewpoint to the reference viewpoint, but this would sacrifice compression efficiency and violate the original intention of adopting multi-view coding technology. Another approach is to design a "super encoder" that can natively support multiple inputs and complex reference relationships, but this means a complete redesign of the encoder architecture, which is incompatible with the existing large and highly optimized HEVC encoder hardware ecosystem, resulting in extremely high complexity and cost. Therefore, how to break through the constraints of "multi-encoder instances" while maintaining high coding efficiency, ensuring full compatibility with the MV-HEVC standard, and not overturning the existing HEVC encoder hardware architecture has become a long-standing technical bottleneck.

[0043] In summary, the core problem with the existing technology is that MV-HEVC encoding, due to its inter-view prediction mechanism, is forced to adopt an architecture of multiple independent encoder instances in its implementation, resulting in huge hardware overhead, high system complexity, and a lack of a standard compatible solution that can be efficiently implemented within a single mainstream encoder framework.

[0044] In view of the problems of huge hardware overhead and high system complexity in the existing technologies, there is an urgent need for an improved multi-view video coding scheme that can effectively reduce hardware overhead while ensuring coding efficiency and standard compatibility.

[0045] The first embodiment of this invention proposes a method and apparatus for multi-view video coding to solve the problems of high hardware overhead and system complexity caused by the need for multiple encoder instances in the prior art. To address the above problems, this embodiment of the invention interweaves multi-view video sequences into a single sequence and plans the coding order based on a preset GOP structure, enabling a single encoder to complete the multi-view coding task. See also... Figure 3 As shown, the unified encoder architecture of this invention feeds the interleaved dual-viewpoint source video (view0&1 src YUV) as a single input into a single encoder that integrates GOP structure planning, reference list management, high-level syntax transformation and standard HEVC encoding core, and finally generates a joint bitstream (view0&1 bitstream) that can be decoded by a standard MV-HEVC decoder.

[0046] The multi-view video coding apparatus of this invention comprises, in its logical structure, an acquisition unit, an interleaving unit, a coding planning unit, a coding unit, a reference frame management unit, a syntax conversion unit, and a bitstream generation unit connected in sequence. The acquisition unit receives raw video sequences from at least two viewpoints (e.g., a base viewpoint View0 and a dependent viewpoint View1). The interleaving unit, connected to the acquisition unit, interleaves the received multiple video sequences at the frame level, merging them into a single, continuous interleaved video sequence. The coding planning unit, connected to the interleaving unit, determines the coding order of each frame in the sequence according to a first GOP structure preset for the interleaved video sequence. The coding unit, connected to the coding planning unit, performs actual video coding operations on each frame in the interleaved video sequence according to the determined coding order; the execution entity can be a hardware video encoder or its internal firmware. The reference frame management unit works in conjunction with the coding unit, managing the decoded image buffer (DPB) and constructing a reference frame list during the coding process, specifically setting specific frames from the base viewpoint as long-term reference frames (LTRs). The syntax conversion unit is connected to the encoding unit and is used to convert the high-level syntax (such as the reference picture set, RPS) generated during the encoding process. This conversion is based on the mapping relationship between the interleaved POC and the original viewpoint POC. The bitstream generation unit is connected to the syntax conversion unit and is used to package the encoded video data and the converted high-level syntax to generate the final bitstream conforming to the MV-HEVC standard. The units exchange frame data, control signals, and syntax information through a data bus or internal registers, forming a complete encoding processing pipeline.

[0047] Based on the above apparatus, the multi-view video coding method of this invention includes the following steps: Acquire video sequences from at least two viewpoints, including a base viewpoint. This process is performed by a hardware video encoding system or encoder firmware and is triggered when the encoding task starts. The input parameters are at least two independent raw video sequences, such as View0 and View1 sequences in YUV format. These sequences represent the same scene content captured from different perspectives.

[0048] Next, the video sequences from the at least two viewpoints are interleaved into a single interleaved video sequence. The interleaving unit performs this step, and its core transformation is to alternately arrange frames from different viewpoints according to a preset rule, forming a logically continuous sequence. For example, for a dual-viewpoint scene, a frame-by-frame alternation method can be used, arranging frame 0 of View0, frame 0 of View1, frame 1 of View0, frame 1 of View1, and so on. The interleaved frame order constitutes a new display order. To identify each frame internally within the encoder, a unique interleaved image sequence count (POC) needs to be assigned to each frame in the interleaved sequence. A preferred allocation rule is to assign an odd-numbered interleaved POC to frames from the reference viewpoint (View0) and an odd-numbered interleaved POC to frames from the dependent viewpoint (View1). For example, frame 0 of View0 is assigned interleaved POC 0, frame 0 of View1 is assigned interleaved POC 1, frame 1 of View0 is assigned interleaved POC 2, and so on. Thus, the parity of the interleaved POC implicitly contains the original viewpoint information to which the frame belongs. The interleaved video sequence is temporarily stored in the encoder's input buffer, awaiting further processing.

[0049] Subsequently, based on the first GOP structure preset for the interleaved video sequence, the encoding order of each frame in the interleaved video sequence is determined. The encoding planning unit performs this step, which can be triggered either before the start of encoding the entire sequence or before encoding begins for each first GOP. The first GOP structure defines the hierarchy of reference relationships between frames in the interleaved sequence. Taking a first GOP structure with a GOP size of 8 as an example, it defines the prediction dependencies of the 8 frames within that GOP (corresponding to 4 frames each from the original two viewpoints). The determination of the encoding order requires this structure. For example, Figure 4 This paper demonstrates an interleaved sequence GOP structure derived from an expansion of the GOP size to 4 (original viewpoint). The encoding order is not incrementally based on the interleaved POC but is replanned. When determining the encoding order, inter-frame prediction dependencies need to be comprehensively considered to ensure that referenced frames are encoded before their reference frames. The encoding order list output by the coding planning unit guides the coding unit to extract frames in sequence. In abnormal situations, such as when the reference frame for a GOP boundary frame is missing, the coding planning unit can employ a degradation strategy, such as restricting the prediction mode of that frame to intra-frame coding.

[0050] Then, each frame in the interleaved video sequence is encoded according to the encoding order. This step is performed by the encoding unit (i.e., a single hardware video encoder). The encoder firmware sequentially reads the frame data corresponding to the interleaved POC from the input buffer according to the encoding order list and encodes them. The encoder workflow includes standard HEVC encoding steps such as motion estimation, transform, quantization, and entropy coding. Since the input is a single interleaved sequence, the encoder treats it as a normal single-viewpoint video and processes it using standard inter-frame prediction tools. However, the inter-frame reference relationships in the interleaved sequence actually include both the original intra-viewpoint prediction and inter-viewpoint prediction. The reconstructed frames generated during the encoding process are stored in the decoded image buffer (DPB) for reference in subsequent frames. Output control destinations include sending the encoded slice data to the bitstream generation unit and sending the reconstructed frames to the DPB.

[0051] During encoding, frames from the reference viewpoint are set as long-term reference frames. The reference frame management unit performs this step, triggered before encoding each frame, specifically when constructing the reference frame list for that frame. Based on the reference relationships defined in the first GOP structure, the reference frame management unit identifies frames from the reference viewpoint (View0) that need to be referenced across the GOP or long-term by the dependent viewpoint (View1) frames. For example, in... Figure 4 In the GOP structure shown, frames POC0, POC2, POC4, POC6, and POC8, which originate from View0, may be set as long-term reference frames. Setting a long-term reference frame involves placing it at a specific index position (e.g., at the very beginning of the list) when constructing the reference frame list to distinguish it from short-term reference frames. Figure 6 As shown. The reference frame management unit is also responsible for coordinating the management of the DPB according to the first GOP structure, ensuring that long-term reference frames are retained in the buffer for a sufficient period of time for subsequent dependent viewpoint frames to reference. If a DPB overflow occurs, some reference frames can be removed according to a preset strategy (such as based on the importance of the reference frames).

[0052] Next, the high-level syntax generated by the interleaved video sequence encoding is transformed. This transformation includes converting syntax elements in the reference picture set (RPS) based on the mapping relationship between the interleaved POC and the original viewpoint POC of each frame in the interleaved video sequence, into expressions based on the original viewpoint. The syntax transformation unit performs this step, triggered when each frame is encoded and ready to generate a bitstream segment. High-level syntax, such as the reference picture set (RPS), is generated internally by the encoder based on the interleaved POC. However, the MV-HEVC standard requires that RPS syntax elements in the bitstream must express reference relationships based on the original viewpoint POC. Therefore, a transformation is necessary. The transformation is based on the mapping relationship between the interleaved POC and the original viewpoint POC. This mapping relationship can be pre-established using a mapping table. For example, for a frame with an interleaved POC of 5 (assuming it comes from View1), by querying the mapping table, we know that its original viewpoint ID is 1 (View1) and its original POC is 2. The syntax conversion unit uses this mapping relationship to convert the interleaved POC of each reference frame in the current frame's RPS into its corresponding original viewpoint POC, and calculates the difference (delta POC) between the original POC and the current frame's original POC. Finally, it rewrites the RPS syntax elements into standard expressions based on these delta POCs. The converted syntax elements are output to the bitstream generation unit.

[0053] Finally, the bitstream is generated. The bitstream generation unit performs this step. It multiplexes and packages the high-level syntax elements (such as VPS, SPS, PPS, Slice Header, etc.) after syntax transformation with the compressed video data (such as slice data) generated by the encoding unit according to the MV-HEVC standard format, ultimately generating a complete, standard-compliant joint bitstream. This bitstream can be correctly received and decoded by a standard MV-HEVC decoder, reconstructing a video sequence from multiple viewpoints.

[0054] Second Implementation Method The first embodiment significantly reduces hardware overhead by interleaving multi-view video sequences into a single interleaved video sequence and utilizing a single encoder combined with a preset GOP structure, reference frame management, and syntax transformation. However, the inventors of this invention have discovered that in the interleaved single sequence, the reference relationships between frames are complex, including both intra-view and inter-view predictions. The choice of encoding order directly affects the availability of reference frames in the decoded image buffer, thus affecting compression efficiency. Manually preset fixed encoding orders (e.g., simple alternation of odd and even numbers) may be difficult to adapt to the complex and dynamically changing reference dependencies under different video content, thus failing to guarantee optimal prediction performance. In view of this, the second embodiment of this invention further improves the method of determining the encoding order based on the first embodiment, proposing to adaptively determine the encoding order by constructing a multi-view prediction graph model.

[0055] The core of this implementation lies in introducing and constructing a multi-view prediction graph model, and determining the encoding order based on this graph model. The specific implementation of graph model construction and order determination can be performed by the encoding planning unit described in the first implementation or a dedicated module added within it. Its input parameters are video sequences from at least two original viewpoints and a reference relationship template defined by a preset first GOP structure. The output control direction is to generate an encoding order list, which will be directly provided to the encoding unit to guide it in reading and encoding frames in the interleaved sequence in sequence. The following will describe each step in detail.

[0056] First, a multi-view prediction graph model is constructed. This step is executed by the graph model construction module within the coding planning unit, preferably triggered before the encoding process of each first GOP begins. Its core transformation is to abstract all frames to be encoded within a GOP and their reference relationships into a mathematical graph structure. Specifically, this multi-view prediction graph model is a directed or undirected graph G = (V, E). Each vertex in the vertex set V uniquely corresponds to a frame in the interleaved video sequence. The attribute information carried by each vertex includes at least the original viewpoint identifier of the frame (e.g., View0 or View1) and its image order count in the original viewpoint (original POC). Each edge in the edge set E represents a reference relationship between two vertices (i.e., two frames). The direction of the edge can represent the direction of the reference (e.g., from the reference frame to the referenced frame), and the weight of the edge can be used to express the strength of the reference dependency. For example, it can be initialized to the rate-distortion cost estimated based on low-complexity feature matching between two frames, or simplified to a constant 1 to indicate the existence of a reference relationship. The graph model can be stored in the form of an adjacency list or an adjacency matrix to facilitate subsequent graph algorithm processing. For example, see... Figure 4 The GOP structure shown consists of ten frames with interleaved POCs (Proof of Conversion) from 0 to 9. The graph model building module creates vertices for each of these ten frames and corresponding edges based on the predicted dependencies shown by the arrows in the diagram (e.g., POC5 refers to POC4 and POC1). This graph model is temporarily stored in the internal memory of the coding planning unit as the basic data structure for subsequent sorting algorithms.

[0057] Next, based on the multi-view prediction graph model, the encoding order of each frame in the interleaved video sequence is determined. This step is executed by the order determination module in the coding planning unit, triggered immediately after the graph model is constructed. Its input parameter is the constructed graph model G. The core transformation is to apply a specific graph sorting algorithm to sort all vertices in the vertex set V, thereby generating a linear encoding order sequence. The goal of the sorting is to make vertices with close reference relationships (i.e., frames connected by edges) as close as possible in the encoding time sequence, so that when a frame is encoded, its reference frame is more likely to remain in the decoding image buffer, thereby improving prediction efficiency and reducing buffer management pressure. The mathematical implementation of the sorting can be based on various properties of graphs, such as spectral graph theory; specific algorithms will be detailed in subsequent implementation methods. After completing the sorting calculation, the order determination module outputs an encoding order list. This list records the interleaved POC or its unique identifier for each vertex (frame) in sequence. For example, for Figure 4 For example, after sorting based on its graph model, the possible encoding order (Enc order) is the sequence marked below in the figure: 1, 2, 7, 8, 3, 4, 9, 10, 5, 6 (assuming POC counts start from 1). This order is not a simple increment of POC, but an optimized result that comprehensively considers all intra-viewpoint and inter-viewpoint reference dependencies. This list will be output to the encoding unit, which will extract frame data from the interleaved sequence buffer for encoding according to this order. In abnormal situations, such as when the graph model is too complex and the sorting algorithm times out, the order determination module can degrade to using a preset fixed order (such as an alternating odd-even order) as a backup.

[0058] In this way, the second implementation transforms the problem of determining the encoding order into a graph sorting optimization problem. Graph-based sorting can globally and content-adaptively plan the encoding order of frames, replacing fixed or heuristic rules. This makes the encoding order deterministic (the same input content produces the same order under any running conditions) and reproducible, and theoretically, it can better match the spatiotemporal correlation structure of the video content itself, thus laying the foundation for improving overall encoding efficiency.

[0059] Third Implementation Method The second implementation transforms the determination of the encoding order into a sorting optimization problem based on a multi-view predictive graph model, achieving content-adaptive order planning with determinism and reproducibility. However, the inventors of this invention discovered that the graph model itself does not directly provide the encoding order—the sorting criteria used and how to efficiently and stably calculate the sorting results directly determine the feasibility and gain of the scheme; naive rules (such as sorting by degree) lack sufficient theoretical basis and are difficult to stably approximate the optimal temporal order. In view of this, the third implementation of this invention, based on the second implementation, further improves the selection of the sorting algorithm by utilizing the spectral properties of the Laplace matrix to determine the encoding order.

[0060] The core of this implementation lies in providing a deterministic vertex sorting algorithm based on spectral graph theory for the multi-view prediction graph model constructed in the second implementation. The specific implementation of this algorithm can be executed by the sorting calculation module embedded within the coding planning unit. Its input parameters are the adjacency list or adjacency matrix of the graph model G=(V, E) constructed in the second implementation. The output control direction is to generate a deterministic coding order list, which will be directly provided to the coding unit to guide it to read frames in the interleaved sequence for encoding in sequence.

[0061] To accurately quantify the above graph-based sorting process, the coding planning unit incorporates the following computational model: L = D - A L v = λ v in, L represents the Laplace matrix of the graphical model G, which is a symmetric positive semi-definite matrix.

[0062] D represents the degree matrix of the graph model G. It is a diagonal matrix with diagonal elements D ii It is equal to the degree of vertex i (i.e., the number of edges connected to that vertex).

[0063] Let A denote the adjacency matrix of the graph model G, where A''''''''''''''''''''''''''''''''''''''" '"A' ... ij This indicates whether an edge exists between vertex i and vertex j, and the weight of the edge.

[0064] λ represents the eigenvalue of the Laplace matrix L.

[0065] v represents the eigenvector corresponding to the eigenvalue λ.

[0066] λ2 represents the second smallest eigenvalue of the Laplacian matrix L, also known as the algebraic connectivity.

[0067] v2 represents the eigenvector corresponding to the second smallest eigenvalue λ2, which is called the Fiedler vector in spectral theory.

[0068] ε represents the convergence threshold when numerically iterating to solve for eigenvalues / eigenvectors, and can be set to 1e-6 for example.

[0069] N_max represents the maximum number of iterations for numerical iterative solution, for example, it can be set to 1000.

[0070] Based on the above mathematical model, the steps for determining the encoding order in this implementation method are detailed as follows: First, the Laplacian matrix of the multi-view prediction graph model is calculated. This step is executed by the sorting calculation module within the coding planning unit, triggered after the graph model construction is completed in the second implementation method and before the encoding of each first GOP begins. The input parameters are the adjacency matrix A and the degree matrix D of the graph model G. The core transformation is to construct the Laplacian matrix L according to the formula L = D - A. For a weighted graph, the diagonal elements of the degree matrix D are the sum of the weights of all edges connected to that vertex. The constructed Laplacian matrix L is temporarily stored in the internal storage of the coding planning unit as the basis for subsequent eigenvalue calculations.

[0071] Next, the eigenvector corresponding to the second smallest eigenvalue of the Laplacian matrix is ​​calculated. The sorting calculation module then performs this step. Its input parameter is the Laplacian matrix L calculated in the previous step. The core transformation is to solve the matrix eigenvalue problem Lv = λv and extract the second smallest eigenvalue λ2 and its corresponding eigenvector v2 (Fiedler vector). Since the smallest eigenvalue λ1 of the Laplacian matrix L is always 0, and its corresponding eigenvector is a vector of all 1s, the second smallest eigenvalue λ2 and its eigenvector v2 contain the key connectivity information of the graph structure. In practical engineering implementations, for small to medium-sized matrices corresponding to GOP scale (e.g., 8-16 frames), the efficient Lanczos iterative algorithm can be used to solve the problem. This algorithm constructs a tridiagonal matrix to approximate the spectral properties of the original matrix, thereby converging to the required few extreme eigenvalues ​​and their eigenvectors in a relatively small number of iterations. The sorting calculation module monitors the iteration process. It stops iterating when the norm of the feature vector estimate is less than the preset threshold ε or when the maximum number of iterations N_max is reached, and outputs the calculated Fiedler vector v2. This vector is temporarily stored in internal storage.

[0072] Then, the vertices are sorted according to the component values ​​corresponding to each vertex in the feature vector to generate the encoding order. The sorting calculation module performs this step. The input parameter is a Fiedler vector v2, where the i-th component v2(i) corresponds to the i-th vertex in the graph model G (i.e., the i-th frame). The core transformation is to sort the components in ascending order according to their v2(i). Specifically, the sorting calculation module traverses all components of the Fiedler vector and sorts the vertex indices according to their component values ​​from smallest to largest. This sorting result is the linear vertex order based on spectral graph theory. For example, for Figure 4 The GOP structure shown (ten frames POC0-9) assumes the calculated Fiedler vector component values ​​(after normalization) might be: v2(POC0) = -0.45, v2(POC1) = -0.30, v2(POC2) = -0.15, v2(POC3) = 0.00, v2(POC4) = 0.10, v2(POC5) = 0.20, v2(POC6) = 0.25, v2(POC7) = 0.35, v2(POC8) = 0.40, v2(POC9) = 0.50. After sorting in ascending order, the vertex (frame) order is: POC0, POC1, POC2, POC3, POC4, POC5, POC6, POC7, POC8, POC9. It is worth noting that this order is different from... Figure 4 The "Enc order" (1,2,7,8,3,4,9,10,5,6, if POCs are counted from 1) below are logically consistent, reflecting the principle of arranging frames with close reference relationships (such as POC0 and POC1, POC2 and POC3, etc.) close together in the encoding sequence. The sorting calculation module ultimately outputs a list of vertex identifiers (such as interleaved POCs) arranged in this order, which serves as the encoding order for this GOP. In abnormal situations, such as when numerical iterations fail to converge or computation times out, the sorting calculation module can trigger a degradation strategy, such as using a fixed vertex degree descending order as a backup encoding order.

[0073] The third implementation method, based on Fiedler vector sorting, provides a mathematically sound scheme for determining the encoding order. Spectral sorting allows tightly connected vertices (i.e., frames with strong reference relationships) in the graph model to cluster in the encoding sequence, thereby better maintaining the availability of reference frames and improving prediction efficiency during the encoding process. Furthermore, the algorithm is deterministic; the same graph model input will inevitably produce the same sorting output, ensuring the reproducibility of the encoding process and providing a stable foundation for subsequent steps (such as long-term reference frame selection).

[0074] Fourth Implementation Method The third embodiment provides a deterministic encoding order for interleaved video sequences through Fiedler spectral sorting, allowing frames with close reference relationships to cluster in the encoding sequence, effectively improving the availability of reference frames in the decoded image buffer. However, the inventors of this invention discovered that even after the encoding order is determined, there is still room for optimization in reference frame management—which frames of the reference viewpoint are set as long-term reference frames during the encoding process directly affects the stability and efficiency of cross-frame prediction; if they are set indiscriminately or selected only according to fixed rules, the limited resources of long-term reference frames are difficult to concentrate on the frames that contribute the most to the prediction, and prediction efficiency is still lost in encoding scenarios with complex reference relationships. In view of this, the fourth embodiment of this invention further improves the selection of long-term reference frames based on the third embodiment, determining long-term reference frames based on the degree of reference of vertices in the graph model.

[0075] The core of this implementation lies in using the generated multi-view prediction graph model and encoding order to deterministically identify key vertices in the prediction structure (i.e., frames referenced by multiple subsequent frames), and setting frames belonging to the baseline viewpoint as long-term reference frames. This process can be executed by the reference analysis module or the reference frame management unit within the encoding planning unit. Its input parameters are the multi-view prediction graph model G=(V, E) constructed in the second implementation and the encoding order list determined in the third implementation. The output control direction is to generate a long-term reference frame (LTR) identifier list, which will guide the reference frame management unit in constructing the reference frame list and managing the decoded image buffer during the encoding process.

[0076] In video coding standards such as HEVC / MV-HEVC, the Long-Term Reference Frame (LTR) is a special type of reference frame. Its main difference from the Short-Term Reference Frame (LTR) is that the LTR can be retained in the Decoded Picture Buffer (DPB) for an extended period, spanning multiple Groups of Pictures (GOPs) or long time intervals for subsequent frames to reference, while the Short-Term Reference Frame is typically replaced according to first-in, first-out (FIFO) rules. The LTR is usually assigned a separate LTR index to distinguish it from the Short-Term Reference Frame index. Due to the limited capacity of the DPB, there is an upper limit to the number of LTR entries that can be maintained simultaneously, such as 2 or 4. Therefore, allocating limited LTR resources to the frames with the highest prediction value is crucial for improving coding efficiency. Frames at the reference viewpoint are ideal candidates for setting LTRs because their content is relatively stable and they often serve as hubs for cross-viewpoint prediction. This implementation provides deterministic rules for this selection through graph model analysis.

[0077] Based on the above, the specific steps of this embodiment are as follows: First, based on the encoding order, vertices in the multi-view prediction graph model that are referenced by multiple subsequent frames are identified. This step can be executed by the reference analysis module within the encoding planning unit, triggered after the encoding order is generated in the third implementation and before the frame-by-frame encoding process of the GOP begins. The input parameters are the adjacency list (or adjacency matrix) of the graph model G and the encoding order list. The core transformation is to traverse all vertices in the graph model G and, according to the encoding order, count the number of times each vertex is referenced by its subsequent vertices (i.e., vertices ranked later in the encoding order list) via edges. Specifically, for directed graphs, the in-degree of each vertex (i.e., the number of edges pointing to that vertex) can be counted, and vertices whose in-degree sources are mostly located later in the encoding order can be selected. For undirected graphs or simplified processing, the degree of each vertex (i.e., the number of connected edges) can be counted, and the encoding order can be used to determine whether it is connected by multiple subsequent vertices. The reference analysis module compares the number of times each vertex is referenced (or "subsequent reference count") with a preset threshold to determine whether it is a key vertex "referenced by multiple subsequent frames". For example, the threshold can be set to be referenced by at least two subsequent frames. Statistical results (such as the subsequent reference count and criticality identifier for each vertex) are temporarily stored in the internal storage of the coding planning unit. The output control is directed to the set of critical vertices. In exceptional circumstances, such as when the reference relationship information of the graph model is incomplete, the reference analysis module can adopt a conservative strategy, such as considering all reference viewpoint frames or vertices ranked first by degree as potential critical vertices.

[0078] Next, frames belonging to the reference viewpoint from the identified vertices are designated as long-term reference frames. This step is executed by the reference frame management unit, triggered after the key vertex set is identified and when the corresponding frame is about to be encoded or can be used as a reference frame. The input parameters are the key vertex set obtained in the previous step and the original viewpoint identifier associated with each vertex (from the graph model vertex attributes). The core transformation is to traverse the key vertex set and check the original viewpoint ID corresponding to each vertex. If the vertex belongs to the reference viewpoint (e.g., View0), the reference frame management unit designates the frame corresponding to that vertex as a long-term reference frame. The determination operation includes writing the frame into the long-term reference frame list (LTR list) and assigning it a long-term reference frame index. This LTR list is temporarily stored in the internal storage of the reference frame management unit or in a specific management area of ​​the DPB. The output control destination is the set of long-term reference frames available for subsequent frame encoding. When constructing the reference frame list for each subsequent frame, the reference frame management unit uses this LTR list to place long-term reference frames at specific index positions in the forward reference list to distinguish them from short-term reference frames. For example, as... Figure 6As shown, in the construction of the reference list for POC5, POC4, which comes from the reference viewpoint View0 and is identified as a key vertex, is set as a long-term reference frame and placed at position idx1 (long-term reference frame region) in the forward reference list, while the short-term reference frame POC1 is placed at position idx0. In abnormal situations, such as when the LTR list is full (reaching the LTR limit supported by DPB), the reference frame management unit can replace the LTRs in the list according to a preset priority strategy (such as the number of times it is subsequently referenced, the frame's coding quality QP, etc.), or downgrade newly identified keyframes to short-term reference frames for processing.

[0079] In this way, the fourth implementation closely integrates the selection of long-term reference frames (LTRs) with the topology and coding order of the graph model. It prioritizes selecting reference viewpoint frames that are "referenced by multiple subsequent frames" as LTRs, allowing limited LTR resources to be concentrated on "hub frames" with high betweenness centrality in the prediction graph. This provides stable, high-quality reference sources for more subsequent frames during the coding process. This graph-theory-based deterministic selection rule can be decided before GOP coding begins and does not dynamically change during the coding process, ensuring the stability and reproducibility of the reference frame management strategy, further improving the efficiency of cross-frame prediction and overall compression performance.

[0080] Fifth Implementation Method The fourth embodiment identifies key vertices in the graph model and determines frames referenced by multiple subsequent frames in the reference viewpoint as long-term reference frames. This allows limited long-term reference resources to be concentrated on hub frames in the prediction graph, providing stable and high-quality reference sources for subsequent frames. The reference frame management strategy is stable and reproducible. However, the inventors of this invention have found that after the long-term reference frames are determined, the syntax conversion stage of the interleaved video sequence still needs to restore the interleaved POC to the original viewpoint POC. If the mapping relationship is temporarily calculated frame by frame during conversion, it will bring additional computational overhead, and if the mapping rules are not fixed, the consistency of the conversion results is difficult to guarantee. In view of this, the fifth embodiment of this invention, based on the fourth embodiment, introduces a static mapping table Map_GOP—a unique interleaved POC ↔ original viewpoint POC mapping table is generated once before GOP encoding begins and remains unchanged during encoding, providing deterministic input for syntax conversion.

[0081] The core of this implementation lies in generating a static, unique mapping table within a Group of Points (GOPs) based on the constructed multi-view prediction graph model during the encoding planning phase. This table records the definitive correspondence between interleaved Point of Conversion (POCs) and their original viewpoint IDs and POCs, serving as the crucial and unique data interface for subsequent syntax transformation steps. The generation of this static mapping table can be performed by the mapping table generation module within the encoding planning unit (or as an auxiliary function of the graph model construction module). Its input parameters are the attribute information of each vertex in the multi-view prediction graph model G=(V, E) constructed in the second implementation (including the original viewpoint ID view_id and the original POC orig_poc), and the encoding order list Seq_encoding determined in the third implementation. The output control destination is the generation of a static mapping table Map_GOP, which will be provided to the syntax transformation unit for use in the transformation steps.

[0082] To accurately quantify the above mapping relationship, the coding planning unit embeds the following mapping model: Map_GOP: (interleaved_poc) ->(view_id, orig_poc) in, interleaved_poc represents the image sequence count (interleaved POC) assigned to each frame in the interleaved video sequence.

[0083] The view_id indicates the original viewpoint identifier to which the frame belongs. For example, 0 represents the base viewpoint View0, and 1 represents the dependent viewpoint View1.

[0084] orig_poc represents the image sequence count (original POC) of this frame in its original viewpoint video sequence.

[0085] GOP stands for Group of Pictures, which is an independent coding unit in video coding. Its size (GOP size) is, for example, 4 or 8.

[0086] Seq_encoding represents the list of encoding orders for each frame in the interleaved video sequence, determined based on a multi-view prediction graph model.

[0087] Based on the above mapping model, the specific steps of this implementation method are as follows: First, based on the multi-view prediction graph model, a static mapping table is generated. This table records the correspondence between the interleaved POCs of the interleaved video sequence and the original viewpoint IDs and original POCs. This step is executed by the mapping table generation module within the coding planning unit, triggered after the generation of the coding order Seq_encoding in the third implementation method and before the start of the corresponding first GOP coding process. The input parameters are the attributes (view_id, orig_poc) of each vertex in the graph model G and the coding order list Seq_encoding. The core transformation is to traverse the coding order list Seq_encoding and assign a unique interleaved POC, interleaved_poc, to each vertex (frame) in the list. A common allocation method is to assign interleaved POCs incrementally, starting from 0 or 1, according to the order of the Seq_encoding list. Then, for each frame assigned an interleaved POC, a mapping entry from interleaved_poc to (view_id, orig_poc) is established based on its vertex attributes, and this entry is written to the static mapping table Map_GOP. The data structure of this mapping table can be an array, a hash table, or a lookup table, and it is temporarily stored in the internal storage of the coding planning unit (such as a memory table structure). For example, in a simple scene with a GOP size of 4 and dual viewpoint interleaving, assuming the original viewpoint frames are View0-POC0,1,2,3 and View1-POC0,1,2,3, and the encoding order Seq_encoding is [View0-POC0, View1-POC0, View0-POC1, View1-POC1, View0-POC2, View1-POC2, View0-POC3, View1-POC3], the generated static mapping example might be as follows: Interleaved POC 0 -> (view_id=0, orig_poc=0), Interleaved POC 1 -> (view_id=1, orig_poc=0), Interleaved POC 2 -> (view_id=0, orig_poc=1), Interleaved POC 3 -> (view_id=1, orig_poc=1), Interleaved POC 4 -> (view_id=0, orig_poc=2), Interleaved POC 5 ->(view_id=1,orig_poc=2), interleaved POC 6 ->(view_id=0, orig_poc=3), interleaved POC 7 ->(view_id=1,orig_poc=3).In exceptional circumstances, such as when mapping conflicts occur (e.g., two different original frames are assigned the same interleaving POC) or vertex attribute data is missing, the mapping table generation module will report an error and can revert to generating a degraded mapping table according to the default interleaving order (e.g., alternating odd and even).

[0088] Next, the static mapping table is constructed separately for each first GOP. This construction occurs before the encoding process of the corresponding first GOP begins and remains unchanged throughout the encoding process. This characteristic is guaranteed by the execution logic of the mapping table generation module. For each first GOP in the video sequence, before encoding any frame within that GOP, the mapping table generation module independently constructs a Map_GOP based on the graph model and encoding order corresponding to that GOP. Once constructed, the contents of this Map_GOP table remain unchanged throughout the encoding process of the entire first GOP and are not modified or updated by the encoding process of subsequent frames. This static nature ensures the uniqueness and determinism of the mapping relationship within a GOP.

[0089] Finally, the transformation step is performed based on the static mapping table. This step clarifies the purpose of the static mapping table Map_GOP. The mapping relationships required by the syntax transformation unit when performing high-level syntax transformations are provided by this static mapping table Map_GOP. When the syntax transformation unit needs to convert an interleaved POC into a raw viewpoint POC, it can directly query the Map_GOP table to obtain a definite result, without needing to temporarily calculate the mapping relationships during transformation. This eliminates the uncertainty, computational overhead, and potential ambiguity that may arise from runtime dynamic calculations.

[0090] Through the methods described above, the fifth implementation provides deterministic input for high-level syntax transformation. The introduction of the static mapping table Map_GOP ensures that the input for the syntax transformation step is entirely determined by the coding planning stage, sharing the same origin as the coding order and long-term reference frame decisions, thus guaranteeing the reproducibility of the entire coding process from planning to syntax generation. Simultaneously, it avoids the computational overhead of temporarily calculating mapping relationships frame by frame, improving coding efficiency. Most importantly, this mapping table provides the syntax transformation module with accurate original viewpoint POC information that conforms to the MV-HEVC standard's requirements for reference image set signaling, ensuring strict standard compatibility of the final generated bitstream.

[0091] See Figure 3In the unified encoder architecture diagram of this invention, the interleaved dual-viewpoint source video (view0&1 srcYUV) is fed into the encoder as a single input. Inside the encoder, during the "GOP structure" planning phase, not only are the encoding order and long-term reference frames determined, but a static mapping table, Map_GOP, is also generated. This table serves as the key input data interface for the "syntax" module, allowing it to perform original viewpoint-based transformations on higher-level syntax such as the Reference Picture Set (RPS) in the later stages of encoding, ultimately generating a joint bitstream (view0&1 bitstream) conforming to the MV-HEVC standard.

[0092] Sixth Implementation Method The fifth embodiment introduces a static mapping table, Map_GOP, to provide deterministic input for the syntax transformation of interleaved video sequences, making the entire process from coding planning to syntax generation reproducible. However, the inventors of this invention have found that the specific allocation rules of each frame's interleaved POC in the mapping table determine the temporal arrangement and reference frame availability of the interleaved video sequence. If the allocation of interleaved POCs lacks regularity in alignment with the viewpoint, the alignment relationship between frames dependent on the viewpoint and frames of the reference viewpoint on the time axis will be irregular, and cross-viewpoint prediction of reference frame matching may be difficult. In view of this, the sixth embodiment of this invention, based on the fifth embodiment, introduces an odd-even interleaved POC allocation rule—allocating an even number of interleaved POCs to frames from the reference viewpoint and an odd number of interleaved POCs to frames from dependent viewpoints, so that frames from the two viewpoints form a regular staggered arrangement in the interleaved sequence.

[0093] The core of this implementation lies in assigning an interleaved POC to each frame in the sequence after the interleaved video sequence is generated but before the encoding order is determined. This assignment follows a clear viewpoint alignment rule. This assignment can be performed by the interleaved POC allocation module within the encoding planning unit (or as the allocation step of the mapping table generation module in the fifth implementation). Its input parameters are the viewpoint identifier (view_id) carried by each frame in the interleaved video sequence and the original POC. The output control destination is the assigned interleaved POC value, which will be recorded in the attributes of each frame and written as a key input into the static mapping table Map_GOP described in the fifth implementation. It can also be used to assist in determining the encoding order. The following will describe the allocation rule and its engineering implementation in detail.

[0094] First, the interleaving POC allocation rules. This step is executed by the interleaving POC allocation module within the coding planning unit, triggered after the interleaved video sequence is generated but before the encoding of the corresponding first GOP begins (this can be synchronized with the mapping table construction in the fifth implementation). The core transformation is to allocate even-numbered sequences to frames of the base viewpoint (View0) and odd-numbered sequences to frames of the dependent viewpoint (View1) based on the viewpoint identifier (view_id) of each frame. Specifically, for frame pairs belonging to the same original POC moment in the interleaved sequence (i.e., the base viewpoint frame and the dependent viewpoint frame), the allocation module allocates an even-numbered interleaving POC (e.g., 0, 2, 4, …) to the base viewpoint frame and an odd-numbered interleaving POC (e.g., 1, 3, 5, …) immediately following the base viewpoint frame. This allocation ensures that the reference viewpoint frames and dependent viewpoint frames of the same original POC are arranged adjacent or near-neighbors in the interleaved POC sequence. Therefore, on the timeline of the interleaved sequence, dependent viewpoint frames are adjacent to their reference source (reference viewpoint frame), guaranteeing the temporal proximity of reference frames during cross-viewpoint prediction and simplifying the construction of the reference frame list. The allocated interleaved POC value is temporarily stored as an attribute for each frame and written as a record to the static mapping table Map_GOP, forming a mapping entry from interleaved POC to (view_id, orig_poc). Output control is directed to the updated frame attribute set and Map_GOP table for subsequent encoding order determination and syntax transformation (based on Map_GOP lookup). In abnormal situations, such as when a frame's viewpoint identifier is missing or duplicated, the allocation module can degrade processing, allocating interleaved POCs to all frames in ascending order of the original POC and marking the anomaly for subsequent processing.

[0095] In practical implementations, the initial value of the interleaved POC can be either 0 or 1, depending on the initialization convention of the encoder's internal POC counter. For example, if the initial value is 0, the first frame of the reference viewpoint is assigned interleaved POC 0, and the first frame of the dependent viewpoint is assigned interleaved POC 1. Furthermore, for two viewpoint frames with the same original POC, their relative positions (i.e., which comes first) are typically reference viewpoint frames first (even-numbered POCs) and dependent viewpoint frames second (odd-numbered POCs), conforming to the prediction logic of "encoding the reference source first, then the dependent frame." However, under certain optimized scheduling, this relative order may be adjusted according to the specific GOP structure, but the parity allocation rule itself remains unchanged.

[0096] By implementing the above-described odd-even interleaved POC allocation rule, frames in the interleaved video sequence form a regular, staggered arrangement with viewpoint alignment. This regularity ensures that dependent viewpoint frames can always find a neighboring reference viewpoint frame on the time axis, thereby simplifying the matching process for cross-viewpoint prediction and improving the availability of reference frames. Simultaneously, since the allocation rule is fixed (even pairs for reference, odd pairs for dependencies), the correspondence between interleaved POCs, original POCs, and viewpoint identifiers can be directly derived from the rule. This corroborates the static mapping table Map_GOP constructed in the fifth embodiment, jointly ensuring the determinism and consistency of the mapping relationship. This embodiment focuses on the viewpoint allocation rule for interleaved POCs and does not involve structural rearrangement within the GOP or complex sorting based on graph models.

[0097] See Figure 4 (Disclosure document) Figure 4 (Frame dependency and coding order diagram for GOP size 4). Each box in the diagram represents a frame, and the number inside the box is the assigned interleaving POC value. It can be clearly seen that the frames corresponding to even-numbered POCs (0, 2, 4, 6, 8) come from the base viewpoint View0, while the frames corresponding to odd-numbered POCs (1, 3, 5, 7, 9) come from the dependent viewpoint View1. This directly reflects the rule of "assigning even-numbered interleaving POCs to the base viewpoint frames and odd-numbered interleaving POCs to the dependent viewpoint frames". Figure 4 The example encoding order below is: 1, 2, 7, 8, 3, 4, 9, 10, 5, 6 (if POCs start counting from 1, then the corresponding interleaved POCs are 1,2,7,8,3,4,9,10,5,6). This order is determined after further optimization scheduling based on the GOP structure, on the basis of allocating odd and even interleaved POCs, demonstrating the relationship between allocation rules and the final encoding order.

[0098] Seventh Implementation Method The sixth embodiment uses an odd-even interleaving POC allocation rule to form a regular staggered arrangement of interleaved sequences with viewpoint alignment, ensuring the temporal proximity of reference frames predicted across viewpoints. However, the inventors of this invention have found that while the regular staggered arrangement solves the alignment problem at the viewpoint level, the grouping and sorting of frames within the same GOP within the interleaved sequence still affects the availability of reference frames in the decoded image buffer and the balance of encoding latency—if frames within a GOP are arranged linearly only according to the interleaving POC order, the timing of the introduction of reference frames may not match the reference dependency structure well. In view of this, the seventh embodiment, based on the sixth embodiment, introduces a GOP grouping and alternating arrangement rule—frames belonging to the same GOP are grouped together, and the encoding order within the same GOP is determined by alternating the arrangement of the reference viewpoint frame and the dependent viewpoint frame.

[0099] The core of this implementation lies in the following: after the interleaved video sequence is generated, the frames in the sequence are grouped according to a preset first GOP structure, and within each group, a sorting rule is executed that alternates between reference viewpoint frames and dependent viewpoint frames to generate the final encoding order. This process can be executed by the encoding order determination module within the encoding planning unit (or the sorting stage of the interleaving POC allocation module). Its input parameters are the GOP affiliation attribute (or interleaving POC range) and viewpoint identifier (view_id) of each frame in the interleaved video sequence. The output control destination is to generate an encoding order list, which will be directly provided to the encoding unit to guide it to read the frames in the interleaved sequence for encoding in sequence, and can also be called by the static mapping table construction described in the fifth implementation. The following will describe each step in detail.

[0100] First, frames belonging to the same GOP in the interleaved video sequence are grouped together. This step is executed by the encoding order determination module within the encoding planning unit, triggered before the encoding of each first GOP begins and after the parity-even interleaving POC allocation in the sixth implementation method is completed. The input parameters are the GOP affiliation attribute of each frame in the interleaved video sequence (e.g., frame grouping information directly defined by a preset first GOP structure) or the GOP boundary derived from the interleaving POC range. The core transformation is to divide all frames in the interleaved sequence into different groups based on GOP affiliation, with each group corresponding to a first GOP. For example, for a dual-view scene with a GOP size of 4 per viewpoint, a first GOP after interleaving may contain 8 frames. The grouping module identifies these 8 frames belonging to the current GOP (e.g., interleaving POCs 0 to 7) and treats them as an independent processing unit. The grouping basis can be a preset GOP identifier in the frame attributes, or division based on the continuous range of the interleaving POC (e.g., every 2N frames as a group, where N is the number of frames per viewpoint GOP). The grouping results are temporarily stored in the internal storage of the coding planning unit as the basis for intra-group sorting. In abnormal situations, such as when the GOP affiliation attribute is missing, the grouping module can degrade the processing, grouping according to the continuous range of interleaved POCs (e.g., every 8 frames as a group), and mark the abnormality for subsequent processing.

[0101] Next, within the same GOP, the encoding order is determined by alternating between reference viewpoint frames and dependent viewpoint frames. This step is also executed by the encoding order determination module, which is triggered immediately after grouping. The input parameters are the current GOP frame group obtained in the previous step, and the viewpoint identifier (view_id) of each frame within the group. The core transformation is to sort all frames within the group according to the alternating pattern of "reference viewpoint frame → dependent viewpoint frame → reference viewpoint frame → dependent viewpoint frame…", generating an encoding order list for the GOP. Specifically, the sorting module traverses all frames within the current GOP, first selecting frames belonging to the reference viewpoint (View0), then selecting frames belonging to the dependent viewpoint (View1), and so on, alternating until all frames are sorted. This alternating arrangement is compatible with the odd-even interleaved POC allocation rule of the sixth implementation—within the same GOP, the alternating odd-even frame arrangement (even-numbered POCs are reference viewpoints, odd-numbered POCs are dependent viewpoints) and the alternating encoding order (reference → dependent → reference → dependent…) are logically consistent. The sorting module ultimately outputs a list of frame identifiers (such as interleaved POCs) arranged in this alternating order, which serves as the encoding order for the GOP. The output control destination is that this encoding order list is provided to the coding unit for frame-by-frame encoding, and can also serve as one of the bases for determining the interleaved POC allocation order when constructing the static mapping table in the fifth embodiment. In abnormal situations, such as when viewpoint identifiers within a group are confused, making a clear alternation impossible, the sorting module can degrade to using the interleaved POCs in ascending order as a backup encoding order.

[0102] In the specific implementation, the size of the GOP group depends on the preset first GOP structure. For a dual-view scene, if the GOP size for each original viewpoint is N, then the number of frames contained in the interleaved first GOP is 2N. The alternating arrangement direction is usually in ascending order of the original POCs. At the same original POC time, the reference viewpoint frames are arranged first, followed by the dependent viewpoint frames, to conform to the prediction logic of "encoding the reference source first, then encoding the dependent frames". For example, for a dual-view scene with a GOP size of 4, the original frames are View0-POC0,1,2,3 and View1-POC0,1,2,3. After grouping, 8 frames are obtained. The encoding order after alternating arrangement may be: [View0-POC0, View1-POC0, View0-POC1, View1-POC1, View0-POC2, View1-POC2, View0-POC3, View1-POC3]. This corresponds to the allocation order of the interleaved POCs and is consistent with... Figure 4 The examples labeled "Enc order" below are logically consistent. Figure 4 The example is the result of further optimized scheduling, but the basic alternation logic remains the same.

[0103] Through the aforementioned grouping and alternation rules, the seventh embodiment provides a deterministic intra-GOP frame ordering scheme for interleaved video sequences. The intra-GOP alternation ensures that the reference viewpoint frame is encoded before its dependent frames, and reference frames are introduced into the decoded image buffer in a dependent temporal order, achieving a balance between reference frame availability and encoding latency. The fixed grouping and alternation rules ensure that the encoding order is deterministic and reproducible. This embodiment focuses on GOP grouping and intra-group alternation, without exceeding the bounds of the unfolded graph model ordering or the details of odd / even POC allocation.

[0104] See Figure 4 (Disclosure document) Figure 4 (Frame dependency and coding order diagram for GOP size 4). The diagram shows ten frames from interleaved POCs 0 to 9, which constitute a first GOP (group). The coding order (Enc order) marked below the diagram is: 1, 2, 7, 8, 3, 4, 9, 10, 5, 6 (if POCs are counted from 1, then the corresponding interleaved POCs are 1, 2, 7, 8, 3, 4, 9, 10, 5, 6). Observing this order, it can be seen that although it is not a strict linear alternation of base → dependency → base → dependency (due to optimized scheduling), its arrangement still reflects the principle of arranging the base viewpoint frames and dependent viewpoint frames at the same original POC time close in coding timing (for example, interleaved POC1 (View1) is adjacent to POC2 (View0), POC7 (View1) is adjacent to POC8 (View0), etc.). This is essentially a specific application and optimization of the alternation arrangement rule under a complex GOP structure. The predictive dependencies shown by the arrows in the figure (such as POC5 referencing POC4 and POC1) also indicate that the alternating arrangement helps the reference frames (POC4, POC1) of the dependent frame (POC5) appear earlier in the coding timing, thereby improving the availability of the reference frames in DPB.

[0105] Eighth Implementation Method The seventh embodiment determines the encoding order of the interleaved video sequence through GOP grouping and alternation, enabling reference frames to be introduced into the decoded image buffer in a dependent temporal order, providing a basis for cross-frame prediction. However, the inventors of this invention discovered that after the encoding order is determined, each frame still needs to construct its reference frame list before encoding; if long-term reference frames (LTRs) and short-term reference frames are mixed indiscriminately in the reference frame list, the decoder will find it difficult to stably identify and reuse long-term reference frames across GOPs, and the cross-frame prediction value of long-term reference frames may not be fully realized. In view of this, the eighth embodiment, based on the seventh embodiment, introduces a specific indexing mechanism for the LTR forward reference list—when constructing the reference frame list, long-term reference frames are placed at specific index positions in the forward reference list, distinguishing them from short-term reference frames in the index region.

[0106] The core of this implementation lies in indexing and locating the Long-Term Reference Frame (LTR) during the construction of the reference frame list for the current frame, placing it at a specific index position in the forward reference list, thereby distinguishing between long-term and short-term reference frames in the list structure. This process is executed by the reference frame management unit. Its input parameters are the LTR identifier list determined in the fourth implementation, the candidate reference frame set for the current frame (from the decoded image buffer DPB), and the preset reference frame list construction rules. The output control destination is the constructed reference frame list, whose index order information will be written into the bitstream syntax so that the decoding end can reuse the long-term reference frames in the DPB according to their index positions during decoding. The following will describe this indexing and locating mechanism and its engineering implementation in detail.

[0107] First, the forward reference list is constructed and the LTR index is located. This step is executed by the reference frame management unit and is triggered before the current frame is encoded, when constructing the reference frame list for that frame. Input parameters include: a long-term reference frame (LTR) identifier list identified and determined by the fourth embodiment (e.g., a list containing reference viewpoint keyframes with interleaved POCs of 4, 8, etc.), a set of candidate reference frames for the current frame (a set of frames selected from the DPB that conform to the reference relationship), and preset reference frame list construction rules (such as the sorting rules for short-term reference frames). The core transformation is that when constructing the forward reference list, the long-term reference frames in the LTR list are first written to specific index positions in the forward reference list (e.g., the front index area of ​​the list), forming a "long-term reference frame area"; then, the remaining short-term reference frames are filled into the remaining index positions of the forward reference list according to preset rules (e.g., counting the POCs closest to the current frame in image order, prioritizing those closest to the current frame), forming a "short-term reference frame area". By dividing the index region in this way, the decoder, when parsing the bitstream and constructing the reference frame list, only needs to determine whether a reference frame is a long-term or short-term reference frame based on its index position in the list, thus enabling stable multiplexing of long-term reference frames across GOPs. The constructed reference frame list is temporarily stored in the internal buffer of the reference frame management unit and written into the bitstream syntax (e.g., by modifying the syntax element `signal_ref_pic_list_modification` through the reference frame list). The output control destination is that this list is signaled along with the bitstream, allowing the decoder to correctly extract the corresponding long-term or short-term reference frame from the DPB for prediction based on the received index information when decoding the current frame. In abnormal degradation cases, such as when the LTR list is empty, the reference frame management unit will degenerate into constructing a pure short-term reference frame list, without reserving or emptying specific index positions for long-term reference frame regions to avoid abnormal list structure.

[0108] In a specific implementation, the value of a particular index position can be the starting index of the forward reference list. For example, in standard HEVC, the index of the forward reference list (RefPicList0) typically starts from 0. This implementation can place long-term reference frames at index 0, and short-term reference frames at index 1 and later. Alternatively, long-term reference frames can be placed at a fixed, reserved index position, such as index 1, while index 0 is reserved for the most important short-term reference frames. The division between the long-term and short-term reference frame regions can be achieved by statically reserving a fixed number of indices for the LTR (e.g., reserving the first K indices, K=1 or 2), and allocating the remaining indices to short-term reference frames. The upper limit of the number of short-term reference frames is limited by the DPB capacity and coding standard specifications (e.g., the maximum number of short-term reference frames in HEVC is 16). These specific parameters can be set according to encoder configuration and standard compatibility requirements.

[0109] By placing the long-term reference frame at a specific index position in the forward reference list, this implementation achieves the following technical effects: First, the LTR is clearly distinguished from the short-term reference frame in the index region, enabling the decoder to stably identify and reuse the long-term reference frame across GOPs, thus improving the stability of cross-frame prediction. Second, this indexing mechanism is compatible with the signaling method of the standard reference picture set (RPS). The encoder only needs to modify the syntax through the reference frame list to indicate the index position of the LTR, without introducing non-standard syntax, ensuring the standard compatibility of the generated bitstream.

[0110] This implementation focuses on the action of "placing the long-term reference frame at a specific index position in the forward reference list when constructing the reference frame list." The overall construction of the reference frame list (i.e., constructing the reference frame list for each frame before encoding the interleaved video sequence) will be discussed in the next implementation, and is only mentioned here in the context of construction without going into details.

[0111] See Figure 6 (Disclosure document) Figure 6 (The improved LTR introduces a long-term / short-term classification for the forward reference list). This diagram visually illustrates the index positioning mechanism of this implementation. The diagram uses the reference list construction of POC5 frame as an example. The left side shows the forward reference list, which clearly distinguishes between "long-term reference frames" and "short-term reference frames." Specifically, POC4 frame, originating from the reference viewpoint View0 and identified as a long-term reference frame, is placed at index idx1 in the forward reference list (marked as the long-term reference frame area in the diagram). Meanwhile, POC1, a short-term reference frame originating from the dependent viewpoint View1, is placed at index idx0 (marked as the short-term reference frame area in the diagram). This distinction in index position clearly reflects the rule of "placing long-term reference frames at specific index positions in the forward reference list." For comparison, see [link to relevant documentation]. Figure 5 (Disclosure document) Figure 5 The standard HEVC forward and backward reference list shows the construction of the reference list in standard HEVC encoding for POC5. The forward reference list only contains short-term reference frames POC4 and POC1, and is sorted by POC distance (POC4 is in idx1, POC1 is in idx0), without distinguishing between long-term and short-term reference frame types. Figure 6 and Figure 5 The comparison highlights the improvements made to the reference list structure by the present invention to support inter-viewpoint prediction within interleaved sequences.

[0112] Ninth Implementation Method The eighth embodiment, through a specific indexing mechanism of the LTR forward reference list, clearly distinguishes long-term reference frames from short-term reference frames in the index region. The decoder can stably reuse long-term reference frames across GOPs based on the index position, improving the stability of cross-frame prediction. However, the inventors of this invention have found that the indexing distinction mechanism can only fully realize its value when implemented at the right time—the reference frame list needs to be constructed before each frame is encoded. If the list construction is out of sync with the frame encoding timing (e.g., the list of all frames is pre-constructed or constructed temporarily during encoding), the indexing of long-term reference frames may not take effect in time during each frame encoding, and the matching between the reference relationship signaling and the encoding timing may not be regular enough, affecting the accuracy of the decoder's synchronous list construction. In view of this, the ninth embodiment, based on the eighth embodiment, introduces a frame-by-frame construction mechanism—constructing the reference frame list for each frame of the interleaved video sequence before encoding.

[0113] The core of this implementation lies in strictly coupling the construction of the reference frame list with the encoding execution timing of each frame, ensuring that the reference frame list is already constructed and available for use when encoding the current frame. This process is executed by the reference frame management unit. Its input parameters are the reference relationship of the current frame (defined by the first GOP structure), the set of candidate frames in the decoded image buffer (DPB) that meet the reference conditions, the LTR identifier list determined in the fourth implementation, and the index construction rules described in the eighth implementation. The output control destination is the constructed reference frame list containing long-term reference frames and short-term reference frames. This list is used for reference prediction during the encoding of the current frame and is constructed synchronously by the decoding end as the bitstream is signaled. The following will describe this frame-by-frame construction mechanism and its engineering implementation in detail.

[0114] First, the frame-by-frame construction timing and process. This step is executed by the reference frame management unit, triggered before the encoding of each frame in the interleaved video sequence (triggered frame-by-frame according to the encoding order determined in the seventh embodiment). Input parameters include: the interleaved POC of the current frame and its reference relationship (e.g., according to the first GOP structure, POC5 references POC4, POC1, and POC9); the currently available candidate reference frame set in the DPB (containing encoded and reconstructed frames); the long-term reference frame (LTR) identifier list determined in the fourth embodiment (e.g., containing reference viewpoint keyframes such as POC4 and POC8); and the index construction rules described in the eighth embodiment (i.e., LTRs are placed at specific index positions in the forward reference list, and short-term reference frames fill the remaining indices according to rules such as POC distance). The core transformation is that the reference frame management unit, based on the reference relationship of the current frame, selects the frames actually referenced by the current frame from the candidate frame set of the DPB, and constructs a forward (and backward) reference frame list according to the index rules of the eighth embodiment. Specifically, for the forward reference list, firstly, the long-term reference frames (such as POC4) in the LTR identifier list that are referenced by the current frame are placed at specific index positions in the list (e.g., index 1), forming a long-term reference frame region. Then, the remaining short-term reference frames (such as POC1) referenced by the current frame are filled into the remaining index positions in the list (e.g., index 0) according to preset rules (e.g., prioritizing POCs closest to the current frame), forming short-term reference frame regions. The constructed reference frame list is temporarily stored in the internal buffer of the reference frame management unit and written into the bitstream syntax (e.g., by modifying the syntax through the reference image set RPS or the reference frame list). The output control destination is that this list is used for reference prediction (e.g., motion estimation and compensation) for the current frame encoding and is signaled with the bitstream, so that when the decoding end decodes the current frame, it can synchronously construct the same reference frame list based on the received syntax information, thereby correctly extracting reference frames from the DPB for decoding. In cases of abnormal degradation, such as when the candidate frame set is empty (e.g., an I-frame at the start of a GOP), the reference frame management unit will construct an empty list (or a list containing only default reference frames), and the current frame will degenerate into an encoding that does not reference other frames (e.g., processed as an I-frame).

[0115] In practical implementation, the POC distance threshold for candidate frame selection can be set to the current frame's interleaved POC ± the maximum reference distance. For example, the maximum reference distance could be 32. Frames exceeding this range, even if they satisfy the reference relationship, may not be selected into the candidate set due to excessive distance. The capacity limit of the reference frame list for each frame is constrained by the coding standard and DPB capacity. For example, the maximum capacity of the forward reference list is 16, and the maximum capacity of the backward reference list is 16. The buffer reuse strategy for constructing the list can be: for consecutive frames, if the reference relationship has not changed, the reference frame list constructed in the previous frame can be reused to reduce computational overhead; otherwise, it should be reconstructed. These specific parameters and strategies can be adjusted according to encoder configuration and real-time performance requirements.

[0116] By implementing a frame-by-frame construction mechanism, this implementation achieves the following technical effects: First, the construction of the reference frame list is strictly aligned with the encoding timing, ensuring that the reference relationship is effective immediately during the encoding of each frame. The signaling of the reference frame list is synchronized with the encoding action, enabling the decoder to construct the list synchronously and maintain consistency with DPB multiplexing, thus improving encoding and decoding consistency. Second, this frame-by-frame construction mechanism is fully compatible with standard reference frame list modification signals (such as reference frame list modification syntax). The encoder constructs the list and writes it to the bitstream before encoding each frame, and the decoder parses and constructs the list frame by frame, conforming to the standard encoding and decoding process.

[0117] This implementation focuses on the action of "constructing a reference frame list for each frame before encoding the interleaved video sequence," i.e., the timing and process of frame-by-frame construction. The indexing and positioning mechanism for long-term reference frames (described in the eighth implementation) is invoked here as a construction rule and will not be repeated. The management actions of the decoded image buffer (DPB) (such as the maintenance and updating of the candidate frame set) fall within the scope of subsequent implementations and will be described in the next implementation; here, they are only mentioned in terms of the source of candidate frames without going into details.

[0118] See Figure 5 (Disclosure document) Figure 5(Standard HEVC Forward and Backward Reference Lists). This figure illustrates an example of the reference frame list construction for frame POC5 in standard HEVC encoding. The left side of the figure shows the forward reference list, and the right side shows the backward reference list. Specifically, the forward reference list contains two short-term reference frames: POC4 is placed at index idx1, and POC1 is placed at index idx0. This is a typical result of sorting according to the POC distance (POC4 is 1 distance from POC5, and POC1 is 4 distance from POC5). The backward reference list contains one short-term reference frame, POC9, which is placed at index idx0. This figure objectively describes the composition of the reference frame list in standard HEVC, and its list construction is also before each frame encoding, but it does not distinguish between long-term and short-term reference frame types. The frame-by-frame construction mechanism of this embodiment inherits this timing characteristic, but introduces LTR index differentiation as described in the eighth embodiment in the list content. (Continued) Figure 6 (Disclosure document) Figure 6 A comparison is made between the improved LTR (which introduces a forward reference list) and other related information. Figure 6 In this implementation, the reference list for POC5 is also constructed before its encoding, but the forward reference list is explicitly divided into a long-term reference frame region (POC4 is placed in idx1) and a short-term reference frame region (POC1 is placed in idx0). This reflects the specific effect of applying the LTR indexing rule when constructing frame by frame in this implementation.

[0119] Tenth Implementation Method The ninth embodiment employs a frame-by-frame construction mechanism to ensure strict alignment between the construction of the reference frame list and the encoding timing, guaranteeing that the reference relationships are effective immediately and synchronously signaled during the encoding of each frame. However, the inventors of this invention have discovered that the effective operation of the frame-by-frame construction mechanism depends on the availability of candidate reference frames in the Decoded Image Buffer (DPB) at the correct time—the retention and release of the DPB require precise matching with the reference relationships defined in the first GOP structure. If the DPB is managed according to a fixed strategy (such as retaining all or discarding a fixed number) without regard to reference relationships, some reference frames already needed by subsequent frames may be released prematurely, while frames no longer needed by any frame may continue to occupy DPB capacity, potentially compromising the availability of reference frames and thus affecting the reliability of frame-by-frame construction. Therefore, the tenth embodiment, building upon the ninth embodiment, introduces a reference-relationship-based DPB management mechanism—managing the decoded image buffer and constructing the reference frame list according to the reference relationships defined in the first GOP structure.

[0120] The core of this implementation lies in linking the management of the Decoded Image Buffer (DPB) with the construction of the reference frame list. This ensures that the timing of frame retention and release in the DPB strictly follows the reference relationships defined in the first GOP structure, thereby guaranteeing that the candidate reference frame set required for frame-by-frame construction in the ninth implementation is always valid. This process is executed by the reference frame management unit (or a dedicated DPB management module). Its input parameters are the frame-by-frame reference relationships defined in the first GOP structure (i.e., which subsequent frames reference each frame), the Long-Term Reference Frame (LTR) identifier list determined in the fourth implementation, and the current DPB state. The output control destination is the updated DPB state (including the retained frame set and release flags), which directly serves as the source of the candidate frame set when constructing the reference frame list frame-by-frame in the ninth implementation. The following will describe this linkage management mechanism and its engineering implementation in detail.

[0121] First, DPB management: Based on the reference relationships defined in the first GOP structure, the timing for retaining / releasing each frame in the DPB is determined. This step is executed by the reference frame management unit (or DPB management module), and the triggering timing is interwoven with the frame-by-frame encoding process driven by the encoding order determined in the seventh embodiment. Specifically, the DPB state is updated after each frame is encoded. Input parameters include: the reference relationships defined in the first GOP structure (clearly recording which subsequent frames reference each frame), the LTR identifier list determined in the fourth embodiment, and the state of the currently encoded frames in the DPB. The core transformation is to calculate the "last referencer" (i.e., the last subsequent frame to reference this frame) for each frame based on the reference relationships, and after the "last referencer" is encoded, the frame is marked as releasable from the DPB. Specifically, for each frame, the reference frame management unit determines all subsequent frames that reference this frame according to the reference relationships, and takes the frame with the latest encoding order as its "last referencer." Once the "last reference" has finished encoding, it means that the frame is no longer needed by any subsequent frames (unless it is an LTR), and the reference frame management unit releases it from the DPB (i.e., marks it as potentially overwritten by a new frame). For LTR frames determined in the fourth embodiment, they are marked as long-term retention, and their release timing does not depend on the "last reference," but rather continues until the LTR list is updated (e.g., a new GOP begins, and the old LTR is replaced by the new LTR) or the entire video sequence encoding is completed. The reference count (number of times referenced by subsequent frames) and release flag for each frame in the DPB are dynamically maintained and temporarily stored. The output control is directed to the updated DPB state, which determines which frames are available for subsequent frames to reference, thus forming the candidate frame set when constructing the reference frame list frame by frame in the ninth embodiment. In abnormal degradation situations, such as when reference relationship information is incomplete, the reference frame management unit can adopt a conservative strategy, preferring to occupy more DPB capacity rather than release potentially needed frames to ensure the availability of reference frames.

[0122] In practical implementations, the DPB capacity has an upper limit, such as 6 or 8 frames. The maximum number of LTR frames to be reserved is also limited by the DPB capacity and standard specifications, such as 2. The specific maintenance method for the reference count can be as follows: at the start of encoding, a reference count is initialized for each frame based on the reference relationships of the first GOP structure. Whenever a frame is encoded, the reference frame management unit traverses its reference frame list, decrementing the reference count of each reference frame by one. When the reference count of a reference frame reaches zero and it is not an LTR frame, it is marked as releasable. When the DPB management module needs to free up space for newly encoded frames, it prioritizes releasing frames that have been marked as releasable. If the DPB is full and there are no releasable frames, a non-LTR frame can be evicted according to a preset strategy (such as based on the frame's coding quality QP or POC distance).

[0123] Next, the reference frame list is constructed (in conjunction with DPB management). This step is essentially the same process as the frame-by-frame construction described in the ninth embodiment, but this embodiment emphasizes its linkage with DPB management. The entity executing the reference frame list construction is the reference frame management unit, which is triggered before each frame encoding (as described in the ninth embodiment). The candidate reference frame set in its input parameters is precisely the set of frames that are currently reserved in the DPB and maintained and provided by the aforementioned DPB management steps. The core change is that the reference frame management unit, based on the reference relationship of the current frame, selects specific reference frames from this candidate set and constructs the reference frame list according to the indexing rules of the eighth embodiment. DPB management ensures that the reference frames required during construction are available in the candidate set. The output control destination is the constructed reference frame list, which is used for the current frame encoding and written into the bitstream.

[0124] By implementing a reference-based DPB management mechanism, this implementation achieves the following technical effects: First, DPB management precisely retains and releases frames according to reference relationships, ensuring that reference frames needed by subsequent frames are always available during construction, while frames no longer needed are released promptly, thus optimizing DPB capacity utilization and balancing reference frame availability and buffer capacity. Second, this DPB management is closely linked to the frame-by-frame construction mechanism of the ninth implementation, jointly ensuring the consistency of reference relationships from definition and buffering to signaling, thereby improving the determinism and reliability of the entire encoding process.

[0125] This implementation focuses on the linkage mechanism of "managing the decoded image buffer and constructing the reference frame list according to the reference relationship defined in the first GOP structure," with emphasis on the DPB management action. The frame-by-frame construction action already implemented in the ninth implementation is called in a linkage manner and will not be repeated here. The high-level syntax transformation (RPS five-step closed loop) will be elaborated in the next implementation and will only be mentioned here as reference relationship signaling without further explanation.

[0126] See Figure 4 (Disclosure document) Figure 4 (Frame dependency and encoding order diagram for GOP size 4). The arrows in the diagram clearly define the reference relationships between frames, which is the source of the reference relationships upon which the DPB management in this implementation is based. Taking POC4 frame as an example, according to the arrows in the diagram, POC4 is referenced by POC5 and POC9. Assuming the encoding order is as shown in "Enc order," POC5 is encoded before POC9. Then, the "last reference" of POC4 is POC9. The DPB management mechanism will ensure that POC4 is retained in the DPB at least until POC9 is encoded before it can be released (if POC4 is not LTR). If POC4 is identified as LTR by the fourth implementation, then POC4 will be retained in the DPB for a long time, regardless of whether POC9 is encoded. This retention / release timing strictly corresponds to the reference dependency relationships represented by the arrows in the diagram. (Continued) Figure 6 (Disclosure document) Figure 6 (The improved LTR introduces a forward reference list) This illustrates the long-term retention effect of the LTR in DPB. Figure 6 In this implementation, POC4 is placed at a specific index position in the forward reference list as an LTR, which requires that POC4 must be available in the DPB when encoding POC5. The DPB management mechanism of this implementation ensures that this requirement is met by marking POC4 as an LTR and retaining it permanently.

[0127] Eleventh Implementation Method The tenth embodiment ensures that reference frames are accurately retained and released on demand in the decoded image buffer by linking DPB management based on reference relationships with the construction of the reference frame list, thus guaranteeing the consistency between reference relationship signaling and encoding timing. However, the inventors of this invention discovered that reference relationships are based on interleaved POC expressions (unified frame numbers of interleaved video sequences) during encoding, while the high-level syntax of the standard bitstream (such as the POC difference signaling of the reference image set RPS) requires the original POC expression based on the original viewpoint. If the reference relationships based on interleaved POCs are directly signaled, the reference relationship expression in the bitstream will not match the frame number system of the original viewpoint, and the decoder may not be able to correctly restore the reference relationships according to the original viewpoint. The expression of cross-viewpoint reference relationships in the bitstream may not be accurate enough. In view of this, the eleventh embodiment, based on the tenth embodiment, introduces a five-step closed loop of high-level syntax conversion—converting the reference relationships based on interleaved POC expressions in the interleaved video sequence into reference relationship expressions based on the original POCs of the original viewpoint.

[0128] The core of this implementation lies in performing a deterministic five-step closed loop when each frame is encoded and ready to generate a bitstream segment. This loop transforms high-level syntax elements such as the Reference Picture Set (RPS), converting them from the interleaved POC representation used internally by the encoder to the original viewpoint POC representation conforming to the MV-HEVC standard. This process is executed by the syntax transformation unit. Its input parameters are the current frame reference frame list (containing long-term and short-term reference frames) constructed in the ninth implementation and the static mapping table Map_GOP generated in the fifth implementation (the mapping relationship between interleaved POC, original viewpoint ID, and original POC). The output control destination is the transformed high-level syntax elements (such as the delta POC value in the RPS), which are written into the bitstream for the decoder to restore according to the original viewpoint reference relationship. The following will elaborate on this five-step closed loop step by step.

[0129] First, the reference image set for the current frame is determined from the reference frame list. This step is executed by the syntax conversion unit and is triggered when the current frame is encoded and ready to generate a bitstream segment. The input parameter is the current frame reference frame list constructed in the ninth embodiment (such as the forward reference list RefPicList0 and the backward reference list RefPicList1). The core transformation is to extract the actual set of reference frames referenced by the current frame from this reference frame list, i.e., the reference image set (RPS). Specifically, the syntax conversion unit traverses all entries in the reference frame list and adds the reference frame corresponding to each entry (by its interleaving POC identifier) ​​to a temporary set, which is the reference image set for the current frame. This set is temporarily stored in the internal buffer of the syntax conversion unit as the basis for subsequent transformations. The output control is directed to the reference image set for the next step of processing.

[0130] Next, reference frames belonging to different viewpoints from the current frame are excluded from the reference image set. This step is performed by the syntax transformation unit, triggered immediately after the previous step. The input parameters are the reference image set obtained in the previous step and the viewpoint identifier of the current frame (obtainable by querying the Map_GOP table). The core transformation is to iterate through each reference frame in the reference image set, query the Map_GOP table to obtain its original viewpoint ID, and compare it with the original viewpoint ID of the current frame. If the original viewpoint ID of the reference frame is different from the original viewpoint ID of the current frame, the reference frame is removed from the reference image set. The purpose of this step is to retain only reference frames with the same viewpoint as the current frame in the final RPS written to the bitstream. For frames with cross-viewpoint references (such as long-term reference frames that depend on a reference viewpoint), their reference relationships are expressed in the MV-HEVC standard through inter-view prediction mechanisms (such as an inter-viewpoint reference frame list) or default processing (such as using the reference viewpoint frame as a long-term reference frame), without needing to be signaled based on POC difference in the RPS. After excluding reference frames from different viewpoints, the remaining set of reference images contains only reference frames from the same viewpoint as the current frame. This set is updated and temporarily stored.

[0131] Then, based on the mapping relationship between the interleaved POC and the original POC of the current frame and the reference frame, the original POC of the reference frame and the original POC of the current frame are determined. The syntax transformation unit performs this step. The input parameters are the reference image set updated in the previous step (each reference frame is identified by its interleaved POC), the interleaved POC of the current frame, and the static mapping table Map_GOP generated in the fifth embodiment. The core transformation is that, for each reference frame in the reference image set, its original POC (orig_poc_ref) is determined based on its interleaved POC by querying the Map_GOP table. At the same time, the original POC (orig_poc_cur) of the current frame is determined based on the interleaved POC of the current frame by querying the Map_GOP table. For example, assuming the interleaved POC of the current frame is 5 (from View1), querying the Map_GOP table yields its original POC as 2. The interleaved POC of the reference frame is 1 (from View1), and querying the Map_GOP table yields its original POC as 0. The query results (orig_poc_ref and orig_poc_cur) are temporarily stored. The output control direction is the raw POC value used for the next calculation.

[0132] Next, the difference between the original POC of the reference frame and the original POC of the current frame is calculated. The syntax transformation unit performs this step. The input parameters are the original POC (orig_poc_ref) of each reference frame determined in the previous step and the original POC (orig_poc_cur) of the current frame. The core transformation is that, for each reference frame, the difference delta_poc = orig_poc_ref - orig_poc_cur is calculated. This difference is the POC difference (delta POC) that needs to be signaled in the standard RPS syntax. The calculated delta_poc value is temporarily stored. The output control is directed to the POC difference for the next syntax element transformation.

[0133] Finally, the syntax elements of the reference relationship for the current frame are converted from expressions based on the interleaved POC of the current frame to expressions based on the original POC of the current frame. The syntax conversion unit performs this step. The input parameter is the delta_poc value of each reference frame calculated in the previous step. The core transformation is to rewrite the syntax elements of the reference picture set (RPS) of the current frame from the original expression based on the interleaved POC (e.g., a format temporarily stored internally by the encoder) to a standard expression based on the original POC differences. Specifically, the syntax conversion unit generates or modifies the RPS syntax structure, writing the delta_poc value of each reference frame into the corresponding syntax fields (e.g., delta_poc_s0_minus1, delta_poc_s1_minus1, etc.). The converted syntax elements are temporarily stored in the bitstream encapsulation buffer. The output control destination is that these converted high-level syntax elements (RPS POC differences, etc.) are written into the final bitstream along with the slice data of the current frame, for the decoder to reconstruct the original viewpoint reference relationship.

[0134] In practical implementation, the signaling bit width of the POC difference in the RPS is specified by the coding standard. For example, in HEVC, the syntax elements of delta POC typically use signed exponential-Golomb coding or fixed-length coding, with the specific bit width depending on the GOP size and the range of POC values. For excluded interview reference frames, their reference relationships can be expressed in the bitstream through other mechanisms. For example, in MV-HEVC, this can be achieved through an interview reference picture list or by marking the reference viewpoint frame as a long-term reference frame (LTR) and utilizing the standard long-term reference frame indexing mechanism, without needing to repeat the expression in the RPS. The caching and reuse strategy for syntax transformation can be as follows: for consecutive frames, if the mapping relationship between their reference picture set (after excluding interviews) and the original POC has not changed, the syntax elements transformed from the previous frame can be reused to reduce computational overhead; otherwise, the five-step closed-loop transformation is re-executed.

[0135] Through the above five-step closed loop, the eleventh implementation achieves the following technical effects: High-level syntax conversion enables the reference relationships in the bitstream to be expressed according to the original viewpoint POC, and the decoding end can correctly restore the video frames according to the original viewpoint reference relationships based on this standard, ensuring the accuracy of the cross-viewpoint reference relationships expressed in the bitstream; The five-step closed loop (determining the reference image set → excluding cross-viewpoint reference frames → mapping to determine the original POC → calculating the POC difference → syntax element conversion) makes the conversion process steps clear, definite, and reproducible. Combined with the static mapping table input of the fifth implementation, it ensures the consistency and standard compatibility of the conversion results.

[0136] This implementation focuses on a five-step closed loop for high-level syntax transformation. Encoding is performed by a single encoder, which will be discussed in the next implementation; here, it is only mentioned in terms of bitstream generation without going into details.

[0137] See Figure 3 (Disclosure document) Figure 3The unified encoder architecture of this invention is as follows: view0&1 src YUV → single encoder [GOP structure / reference list / syntax] → joint bitstream. The "syntax" module within the encoder in the diagram represents the location of the five-step closed loop of high-level syntax transformation in this embodiment. Specifically, the interleaved dual-viewpoint source video, after being planned by "GOP structure" (generating encoding order, LTR decision, static mapping table) and managed by "reference list" (constructing a reference frame list frame by frame), enters the encoding core (HEVC encoder) for compression. The original high-level syntax generated by encoding (based on the interleaved POC) is then sent to the "syntax" module. The five-step closed loop described in this embodiment is executed within this "syntax" module: it receives the current frame reference frame list from the "reference list" and the static mapping table Map_GOP from the "GOP structure" as input, and after five transformations, outputs high-level syntax elements based on the original viewpoint POC expression. Finally, it is encapsulated together with the compressed data to generate a joint bitstream (view0&1 bitstream) conforming to the MV-HEVC standard.

[0138] Twelfth Implementation Method The eleventh embodiment uses a five-step closed loop of high-level syntax transformation to express the reference relationships in the bitstream according to the original viewpoint POC, and the decoding end can correctly restore the original viewpoint reference relationships, ensuring accurate expression of cross-viewpoint reference relationships in the bitstream. However, the inventors of this invention have found that the collaborative operation of the encoding planning (first GOP structure encoding order, LTR identification, static mapping table), frame-by-frame reference frame list construction, DPB management, and high-level syntax transformation in the aforementioned embodiments all rely on a unified encoding execution environment. If independent encoders are set up for each viewpoint and the bitstreams are then concatenated, the planning and transformation actions of each embodiment need to be synchronized between the two encoders, making it difficult to guarantee the consistency of reference relationships between the two bitstreams. Furthermore, the bitstream concatenation of the dual-encoder architecture introduces additional synchronization and encapsulation overhead, and the collaborative effect of the aforementioned mechanisms may not be fully realized. In view of this, the twelfth embodiment, based on the eleventh embodiment, clarifies the encoding execution environment—the encoding steps are performed by a single encoder, and the interleaved video sequence is encoded as a single input.

[0139] The core of this implementation lies in defining the encoding execution entity as a single encoder (unified encoder) and encoding the interleaved video sequence as the single input of this single encoder. This process is executed by the encoding unit (i.e., the single encoder). Its input parameters are the encoding order list determined in the seventh implementation, the interleaved video sequence (single input, each frame with an interleaved POC identifier), the reference frame list constructed in the ninth implementation, the DPB state managed in the tenth implementation, and the static mapping table generated in the fifth implementation. The output control destination is the encoded joint bitstream (view0&1 bitstream). The following will describe in detail the actions of the single encoder in performing encoding, and the cooperative relationship between these actions and the aforementioned implementations.

[0140] First, the single encoder executes the encoding steps. This step is performed by a single encoder (unified encoder). The main body executing this step is the encoding unit, which is a physically independent hardware encoder instance or its internal firmware. This single encoder sequentially includes a GOP structure planning module, a reference list management module, and a syntax conversion module. The various mechanisms described in the aforementioned embodiments (first to eleventh embodiments) (such as encoding order determination, LTR identification, static mapping table generation, reference frame list construction, DPB management, and high-level syntax conversion) all operate collaboratively within this single encoder. The encoding unit triggers the encoding process frame by frame according to the encoding order list determined in the seventh embodiment. In case of abnormal degradation, the single encoder handles the abnormality using the standard encoder error recovery mechanism (such as degrading the current frame to an I-frame), without interrupting the overall encoding process.

[0141] Next, single-input encoding: the interleaved video sequence is fed as a single input into the encoder for encoding. This step is also executed by the encoding unit, triggered after the interleaved video sequence is generated (after the parity POC allocation is completed in the sixth embodiment, and after the encoding order is determined in the seventh embodiment). The input parameter is the interleaved video sequence (single input, each frame with an interleaved POC identifier). The core transformation is that the encoder does not distinguish which viewpoint the input frame comes from, treating them all as interleaved POCs, and encoding the entire interleaved sequence as a normal single-viewpoint video sequence. In the output joint bitstream, each frame is consecutively numbered according to the interleaved POC, and the bitstream structure conforms to the standard HEVC single-layer bitstream format. The interleaved video sequence is temporarily stored in the encoder's input buffer, waiting to be read in sequence.

[0142] The single encoder encoding action is performed by a single encoder (unified encoder), triggered after the interleaved video sequence is generated (after the parity POC allocation is completed in the sixth embodiment and the encoding order is determined in the seventh embodiment). Its input includes the interleaved video sequence (single input, each frame with interleaved POC identifier), encoding order (seventh embodiment), reference frame list (ninth embodiment), and high-level syntax elements (eleventh embodiment). The core transformation is that the single encoder encodes the interleaved video sequence frame by frame according to the encoding order. The encoding plan (GOP affiliation, reference relationship, LTR state) of each frame is uniformly maintained within the encoder and does not require cross-encoder synchronization. Intermediate results are temporarily stored in the encoding state (DPB, reference frame list, static mapping table) within the encoder. Finally, the encoded joint bitstream (view0 & 1 bitstream) is output. In case of abnormal situations, the single encoder handles abnormalities according to the standard encoder error recovery mechanism (such as the current frame degrading to an I frame) without interrupting the overall encoding process.

[0143] In practical implementation, the GOP buffer capacity of a single encoder (i.e., the frame buffer size required to process one GOP internally) can be designed to be 2N frames, where N is the GOP size for each original viewpoint, to accommodate the number of frames in the interleaved GOP. The interleaved sequence input buffer depth can be set to the length of 2 or 4 GOPs to smooth the input data stream. The encapsulation format of the joint bitstream follows the MV-HEVC standard, using syntax elements such as layer identifiers (layer_id) in the NAL unit header to distinguish slice data from different viewpoints, but all slice data comes from a single bitstream generated by the same encoder, eliminating the need for an additional bitstream multiplexer for physical splicing.

[0144] A single encoder and a single input enable the planning and conversion actions of the aforementioned implementation methods to be coordinated within a unified execution environment. There is no cross-encoder synchronization overhead, and reference relationships are naturally consistent within a single bitstream, thereby generating a standard-compliant (MV-HEVC) joint bitstream; Figure 2 Compared to traditional dual-encoder architectures, this architecture is simplified and consistency is guaranteed.

[0145] This embodiment only describes a single encoder plus a single input encoding; the program product and computer-readable storage medium are briefly mentioned and no specific examples are provided.

[0146] See Figure 3 (Disclosure document) Figure 3The present invention presents a unified encoder architecture (view0&1 src YUV → single encoder [GOP structure / reference list / syntax] → joint bitstream). This diagram visually illustrates the single encoder architecture and single input encoding described in this embodiment. In the diagram, the interleaved dual-viewpoint source video (view0&1 src YUV) is used as a single input and fed into a "single encoder" represented by a large rectangle. This encoder integrates "GOP structure," "reference list," and "syntax" modules, which work collaboratively within the single encoder to ultimately generate the joint bitstream (view0&1 bitstream). This diagram clearly demonstrates the technical feature that "the encoding steps are performed by a single encoder, which encodes the interleaved video sequence as a single input." For comparison, see [link to related documentation]. Figure 2 (Traditional dual encoder + LTR + stream multiplexing architecture). Figure 2 The demonstration shows that in the traditional scheme, the source YUVs of View0 and View1 are fed into two independent HEVC encoders (one of which enables LTR) for encoding. The bitstreams output by the two encoders (View0 bitstream and View1 bitstream) are concatenated into a joint bitstream on the right side through a "multiplexing" operation. Figure 2 and Figure 3 The comparison highlights the simplification and improvement of the single encoder architecture adopted in this invention compared to the traditional dual encoder architecture, avoiding the overhead of cross-encoder synchronization and bitstream splicing.

[0147] Thirteenth Implementation Method The twelfth embodiment enables the aforementioned embodiments to collaborate within a unified execution environment and achieves joint bitstream standard compatibility through a single encoder and a single input. The aforementioned embodiments provide a multi-view video coding method, where mechanisms such as coding planning, reference frame management, and high-level syntax transformation operate collaboratively within a unified coding framework using a single encoder. However, the inventors of this invention have found that these method-side mechanisms, in practical implementation, need to be carried out by specific device units—which units within the device correspond to each mechanism and how these units collaborate need to be clearly defined; otherwise, the method-side mechanisms are difficult to directly map to an implementable hardware / software device structure. In view of this, this embodiment provides a device employing this method, implementing the above method through multiple functional modules. The device uses seven device-specific functional units (acquisition / interleaving / coding planning / coding / reference frame management / syntax transformation / bitstream generation) as its overall structure, and focuses on developing two backbone subordinate units: a syntax transformation unit (five-step closed-loop configuration) and a coding planning unit (graph model construction and sequence determination).

[0148] The multi-view video coding apparatus of this embodiment comprises, in its overall structure, an acquisition unit, an interleaving unit, a coding planning unit, a coding unit, a reference frame management unit, a syntax conversion unit, and a bitstream generation unit connected in sequence. Each unit operates collaboratively within a single encoder, forming a complete coding pipeline. The acquisition unit acquires video sequences from at least two viewpoints, including a reference viewpoint. The interleaving unit interleaves the video sequences from the at least two viewpoints into a single interleaved video sequence. The coding planning unit determines the coding order of each frame in the interleaved video sequence based on a first GOP structure preset for the interleaved video sequence. The coding unit encodes each frame in the interleaved video sequence according to the coding order, performed by a single encoder, using the interleaved sequence as a single input. The reference frame management unit sets frames from the reference viewpoint as long-term reference frames during the coding process. The syntax conversion unit converts the high-level syntax generated by encoding the interleaved video sequence, including converting syntax elements in the reference image set into expressions based on the original viewpoint, based on the mapping relationship between the interleaved POCs of the frames in the interleaved video sequence and the original viewpoint POCs. The bitstream generation unit generates a bitstream.

[0149] This syntax conversion unit is configured to perform a five-step closed loop of high-level syntax conversion, and its specific mechanism is essentially the same as the five-step closed loop described in the eleventh embodiment. This syntax conversion unit (dedicated hardware or software module) is triggered when the current frame encoding is complete and the bitstream segment is ready to be generated. The input parameters are the current frame reference frame list (including long-term and short-term reference frames) constructed in the ninth embodiment and the static mapping table Map_GOP (interleaved POC) generated in the fifth embodiment. The core transformation involves a five-step closed loop: determining the reference image set for the current frame; excluding reference frames from different viewpoints from the reference image set; determining the original POC of the reference frame and the original POC of the current frame based on the mapping relationship between the interleaved POC and the original POC of the current frame (the static mapping table Map_GOP generated by the coding planning unit); calculating the difference between the original POC of the reference frame and the original POC of the current frame; and converting the syntax elements of the reference relationship of the current frame from expressions based on the interleaved POC of the current frame to expressions based on the original POC of the current frame. The converted high-level syntax elements (such as the POC difference of RPS) are temporarily stored in the bitstream encapsulation buffer. The output control directs the converted high-level syntax elements to be output to the bitstream generation unit, where they are written into the final bitstream along with the compressed data. In case of abnormal degradation, when the current frame entry is missing in the static mapping table Map_GOP, this unit can degrade the process, retaining the original expression based on the interleaved POC and marking the abnormality, without interrupting the coding process.

[0150] The encoding planning unit is configured to determine the encoding order based on a graph model, and its specific mechanism is essentially the same as the graph model encoding planning described in the second embodiment. This encoding planning unit (comprising a graph model construction module and an order determination module) is triggered before the encoding process of each first GOP begins. The input parameters are a video sequence from at least two original viewpoints and a reference relationship template defined by a preset first GOP structure. The core transformation is that the graph model construction module constructs a graph model using vertices to represent frames in the interleaved video sequence (vertices carrying viewpoint IDs and original POC attributes) and edges to represent inter-frame reference relationships. The order determination module determines the encoding order of each frame in the interleaved video sequence based on the features of the graph model (such as ascending order of Fiedler vector / Laplacian matrix eigenvalues). The constructed graph model (adjacency list or adjacency matrix) and the calculated encoding order list are temporarily stored in the internal memory of the encoding planning unit. The output control direction is that the encoding order list is output to the encoding unit, guiding it to read the frames in the interleaved sequence sequentially for encoding. Simultaneously, this list and graph model information can be called by the reference frame management unit (for LTR recognition) and the syntax conversion unit (for static mapping table construction). In cases of abnormal degradation, when the graph model construction times out due to excessive complexity of reference relationships, or when the sorting algorithm fails to converge, the unit may degrade to use a preset fixed alternation order (as described in the seventh embodiment) as a backup encoding order.

[0151] In specific hardware implementations, the syntax conversion unit and the encoding planning unit can be implemented as independent processing engines in application-specific integrated circuits (ASICs), logic modules in field-programmable gate arrays (FPGAs), or implemented by a general-purpose processor (CPU / DSP) through the execution of firmware code. Data exchange between units occurs via an on-chip bus (such as an AXI bus) or shared memory. The data bus bandwidth must meet the transmission requirements of the raw data stream and intermediate results (such as graph models and mapping tables) of the interleaved video sequence; for example, the bandwidth can be designed to be 64 bits wide with an operating frequency of 500MHz. The upper limit of the graph size processed by the graph model construction module is limited by the GOP size. For a typical dual-view scene with a GOP size of 8, the upper limit of the number of vertices is 16, and the upper limit of the number of edges can be preset to 32. The internal lookup table (LUT) of the syntax conversion unit must be able to accommodate the static mapping table of one GOP; for example, it can be designed to store 32 mapping entries.

[0152] Through the above-described device-side implementation method, the following effects are achieved at the technical level: the seven-unit structure of the device provides clear carrier units for each mechanism on the method side, the method-device mapping is clear and can be implemented in practice; the two backbone subordinate units, the syntax conversion unit and the coding planning unit, are developed in a focused manner, the core functions of the device are focused and the protection scope is clear; the device side and the method side are essentially the same, and the method and device protection support each other.

[0153] This embodiment only elaborates on the overall structure of the device's seven independent units plus two backbone subordinate units: the syntax conversion unit and the encoding planning unit; the program product is briefly mentioned and no specific implementation is provided. Details of the method-side mechanisms (graph model sorting, five-step closed-loop, reference frame list construction, DPB management, etc.) are described by calling the corresponding method implementation methods (second / eleventh implementation methods, etc.) according to the device unit configuration, and their details are not repeated.

[0154] See Figure 3 (Disclosure document) Figure 3 The unified encoder architecture of this invention (view0&1 src YUV → single encoder [GOP structure / reference list / syntax] → joint bitstream) is shown in the figure. The internal module division of the single encoder corresponds to the seven-unit structure of the device in this embodiment. Specifically, the "GOP structure" module corresponds to the encoding planning unit in this embodiment, responsible for graph model construction and encoding order determination; the "reference list" module corresponds to the reference frame management unit, responsible for long-term reference frame setting and reference frame list construction; the "syntax" module corresponds to the syntax conversion unit, responsible for the five-step closed-loop conversion of high-level syntax. The acquisition unit and interleaving unit correspond to the action of interleaving dual-viewpoint source YUV into a single input. The encoding unit corresponds to the core "HEVC encoder" in the figure. The bitstream generation unit corresponds to the output stage that finally generates the "view0&1 bitstream". This figure intuitively shows the integration and coordination relationship of the various functional units on the device side within the single encoder.

[0155] Fourteenth Implementation Method The foregoing embodiments provide technical solutions for multi-view video encoding from both the method and device perspectives, and achieve efficient compression of multi-view video sequences through unified encoding using a single encoder. Building upon this, the fourteenth embodiment of the present invention also provides a computer program product and a computer-readable storage medium.

[0156] The computer program product provided in this embodiment includes a computer program that, when executed by a processor (e.g., a CPU or DSP in a video encoding chip), can implement the steps of the multi-view video encoding method described in any of the foregoing embodiments, thereby driving the device to complete the encoding of a multi-view video sequence. This computer program product is a software carrier of the above-described method, and can be stored, for example, in non-volatile memory, on an optical disc, or downloaded via a network, thereby enabling a device with processing capabilities to execute the multi-view video encoding scheme provided by this invention. Specifically, see [link to documentation]. Figure 3 As shown, when the computer program is loaded and executed, it can drive the processing device according to... Figure 3The process indicated by the unified encoder architecture shown takes the interleaved multi-view video sequence (view0 & 1 src YUV) as a single input to the unified encoder for encoding, and outputs a joint bitstream that can be decoded by the standard MV-HEVC decoder.

[0157] Furthermore, this embodiment also provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it can also implement the steps of the aforementioned multi-view video coding method and achieve the same technical effects. The computer-readable storage medium can be any non-transient medium capable of storing a computer program, such as a read-only memory, random access memory, magnetic disk, optical disk, etc. As a carrier of the aforementioned program, the computer-readable storage medium and the aforementioned computer program product mutually support each other in terms of technical effects, jointly ensuring that the multi-view video coding method can be loaded and executed on various computing devices.

[0158] Finally, it should be noted that those skilled in the art will understand that many technical details have been presented in the embodiments of the present invention to facilitate a better understanding of the invention. However, even without these technical details and various variations and modifications based on the above embodiments, the technical solutions claimed in the claims of the present invention can be substantially achieved. Therefore, in practical applications, various changes in form and detail can be made to the above embodiments without departing from the spirit and scope of the present invention.

Claims

1. A method for multi-view video coding, characterized in that, include: Acquire video sequences from at least two viewpoints, including a base viewpoint; Interweave the video sequences from at least two viewpoints into a single interleaved video sequence; The encoding order of each frame in the interleaved video sequence is determined based on the first GOP structure preset for the interleaved video sequence; Encoding is performed on each frame of the interleaved video sequence according to the encoding order; During the encoding process, frames from the reference viewpoint are set as long-term reference frames; The high-level syntax generated by encoding the interleaved video sequence is transformed, and the transformation includes: based on the mapping relationship between the interleaved POC and the original viewpoint POC of the frames in the interleaved video sequence, the syntax elements in the reference image set are transformed into expressions based on the original viewpoint. Generate a bitstream.

2. The method according to claim 1, characterized in that, The step of determining the encoding order of each frame in the interleaved video sequence based on a first GOP structure preset for the interleaved video sequence includes: Based on the video sequence of at least two viewpoints, a multi-view prediction graph model is constructed, wherein the multi-view prediction graph model uses frames as vertices and the reference relationships between frames as edges; Based on the multi-view prediction graph model, the encoding order of each frame in the interleaved video sequence is determined.

3. The method according to claim 2, characterized in that, The step of determining the encoding order of each frame in the interleaved video sequence based on the multi-view prediction graph model includes: Calculate the Laplacian matrix of the multi-view prediction graph model; Calculate the eigenvector corresponding to the second smallest eigenvalue of the Laplacian matrix; The vertices are sorted according to the component values ​​corresponding to each vertex in the feature vector to generate the encoding order.

4. The method according to claim 2 or 3, characterized in that, The step of setting the frame from the reference viewpoint as a long-term reference frame during the encoding process includes: Based on the encoding order, vertices that are referenced by multiple subsequent frames in the multi-view prediction graph model are identified; Frames belonging to the reference viewpoint among the identified vertices are determined as long-term reference frames.

5. The method according to claim 2 or 3, characterized in that, The method further includes: Based on the multi-view prediction graph model, a static mapping table is generated, which records the correspondence between the interleaved POC of the interleaved video sequence and the original viewpoint ID and the original POC. The mapping relationship is provided by the static mapping table; The static mapping table is constructed separately for each first GOP, and is constructed before the encoding process of the corresponding first GOP begins, and remains unchanged during the encoding process of the first GOP; The conversion step is performed based on the static mapping table.

6. The method according to claim 1, characterized in that, The step of determining the encoding order of each frame in the interleaved video sequence based on a first GOP structure preset for the interleaved video sequence includes: Assign a pair number interleaved POC to frames from the reference viewpoint, and assign an odd number interleaved POC to frames from dependent viewpoints.

7. The method according to claim 1, characterized in that, The step of determining the encoding order of each frame in the interleaved video sequence based on a first GOP structure preset for the interleaved video sequence includes: Frames belonging to the same GOP in the interleaved video sequence are grouped together; Within the same GOP, the encoding order is determined by alternating between reference viewpoint frames and dependent viewpoint frames.

8. The method according to claim 1, characterized in that, The step of setting a frame from the reference viewpoint as a long-term reference frame during the encoding process includes placing the long-term reference frame at a specific index position in the forward reference list when constructing the reference frame list.

9. The method according to claim 1, characterized in that, The step of setting frames from the reference viewpoint as long-term reference frames during the encoding process includes: constructing a list of reference frames for each frame before encoding each frame of the interleaved video sequence.

10. The method according to claim 1, characterized in that, The step of setting frames from the reference viewpoint as long-term reference frames during the encoding process includes: managing the decoded image buffer and constructing a reference frame list according to the reference relationship defined by the first GOP structure.

11. The method according to claim 1, characterized in that, The transformation of high-level syntax includes: Each frame in the interlaced video sequence is taken as the current frame, and a reference image set for the current frame is determined. Exclude reference frames from different viewpoints from the reference image set; For each reference frame retained in the reference image set, the original POC of the reference frame and the original POC of the current frame are determined according to the mapping relationship; Calculate the difference between the original POC of the reference frame and the original POC of the current frame, and use it as the POC difference of the reference frame; Based on the POC difference, the grammatical elements in the reference image set are converted into expressions based on the original viewpoint.

12. The method according to claim 1, characterized in that, The step of encoding each frame in the interleaved video sequence according to the encoding order is performed by a single encoder, which encodes the interleaved video sequence as a single input.

13. A multi-view video encoding device, characterized in that, include: An acquisition unit is used to acquire video sequences from at least two viewpoints, including a reference viewpoint. An interleaving unit is used to interleave video sequences from at least two viewpoints into a single interleaved video sequence; The encoding planning unit is used to determine the encoding order of each frame in the interleaved video sequence according to the first GOP structure preset for the interleaved video sequence; An encoding unit is configured to encode each frame in the interleaved video sequence according to the encoding order; A reference frame management unit is used to set frames from the reference viewpoint as long-term reference frames during the encoding process. The syntax conversion unit is used to convert the high-level syntax generated by encoding the interleaved video sequence. The conversion includes: converting the syntax elements in the reference image set into expressions based on the original viewpoint, based on the mapping relationship between the interleaved POC and the original viewpoint POC of the frames in the interleaved video sequence. The bitstream generation unit is used to generate bitstreams.

14. The multi-view video encoding apparatus according to claim 13, characterized in that, The syntax transformation unit is configured as follows: Each frame in the interlaced video sequence is taken as the current frame, and a reference image set for the current frame is determined. Exclude reference frames from different viewpoints from the reference image set; For each reference frame retained in the reference image set, the original POC of the reference frame and the original POC of the current frame are determined according to the mapping relationship; Calculate the difference between the original POC of the reference frame and the original POC of the current frame, and use it as the POC difference of the reference frame; Based on the POC difference, the grammatical elements in the reference image set are converted into expressions based on the original viewpoint.

15. The multi-view video encoding apparatus according to claim 13, characterized in that, The coding planning unit includes: The graph model construction module is used to construct a multi-view prediction graph model based on the video sequence of the at least two viewpoints. The multi-view prediction graph model uses frames as vertices and the reference relationships between frames as edges. The sequence determination module is used to determine the encoding order of each frame in the interleaved video sequence based on the multi-view prediction graph model.

16. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 12.