WO2007033346A1 - Arbitrary resolution change downsizing decoder - Google Patents

Arbitrary resolution change downsizing decoder Download PDF

Info

Publication number
WO2007033346A1
WO2007033346A1 PCT/US2006/035939 US2006035939W WO2007033346A1 WO 2007033346 A1 WO2007033346 A1 WO 2007033346A1 US 2006035939 W US2006035939 W US 2006035939W WO 2007033346 A1 WO2007033346 A1 WO 2007033346A1
Authority
WO
WIPO (PCT)
Prior art keywords
downscaling
computer
compression techniques
implemented method
mpeg
Prior art date
Application number
PCT/US2006/035939
Other languages
French (fr)
Inventor
Guobin Shen
Shipeng Li
Wanyong Cao
Yuwen He
Original Assignee
Microsoft Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Microsoft Corporation filed Critical Microsoft Corporation
Priority to CA002621428A priority Critical patent/CA2621428A1/en
Priority to EP06814692A priority patent/EP1915869A1/en
Priority to JP2008531339A priority patent/JP2009508452A/en
Priority to BRPI0616034-4A priority patent/BRPI0616034A2/en
Publication of WO2007033346A1 publication Critical patent/WO2007033346A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/40Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/14Coding unit complexity, e.g. amount of activity or edge presence estimation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/18Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a set of transform coefficients
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/48Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using compressed domain processing techniques other than decoding, e.g. modification of transform coefficients, variable length coding [VLC] data or run-length data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/59Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding

Definitions

  • Digital video content is typically generated to target a specific data format.
  • a video data format generally conforms to a specific video coding standard or a proprietary coding algorithm, with a specific bit rate, spatial resolution, frame rate, etc.
  • Such coding standards include MPEG-2 and WINDOWS Media Video (WMV).
  • WMV WINDOWS Media Video
  • Most existing digital video contents are coded according to the MPEG-2 data format.
  • WMV is widely accepted as a qualified codec in the streaming realm, being widely deployed throughout the Internet, adopted by the HD-DVD consortium, and currently being considered as a SMPTE standard.
  • Different video coding standards provide varying compression capabilities and visual quality.
  • Transcoding refers to the general process of converting one compressed bitstream into another compressed one. To match a device's capabilities and distribution networks, it is often desirable to convert a bitstream in one coding format to another coding format such as from MPEG-2 to WMV, to H.264, or even to a scalable format. Transcoding may also be utilized to achieve some specific functionality such as VCR-like functionality, logo insertion, or enhanced error resilience capability of the bitstream for transmission over wireless channels.
  • Fig. 1 shows a conventional Cascaded Pixel-Domain Transcoder (CPDT) system, which cascades a front-end decoder to decode an input bitstream with an encoder that generates a new bitstream with a different coding parameter set or in new format.
  • CPDT Cascaded Pixel-Domain Transcoder
  • Fig. 2 shows a conventional cascaded DCT-domain transcoder (CDDT) architecture, simplifying the CPDT architecture of Fig. 1.
  • CDDT eliminates the DCT/IDCT processes implemented by the CPDT transcoder of Fig. 1.
  • CDDT performs MC in the DCT domain, which is typically a time-consuming and computationally expensive operation. This is because the DCT blocks are often overlapped with MC blocks.
  • the CDDT architecture typically needs to apply complex and computationally expensive floating-point matrix operations in order to perform MC in the DCT domain.
  • motion vector (MV) refinement is typically infeasible utilizing the CDDT architecture.
  • an encoded bitstream is received.
  • the encoded bitstream is downscaled in a DCT domain-decoding loop to generate downscaled data.
  • Fig. 1 shows a conventional Cascaded Pixel-Domain Transcoder (CPDT) system, which cascades a front-end decoder to decode an input bitstream with an encoder to generate a new bitstream with a different coding parameter set or in new format.
  • CPDT Cascaded Pixel-Domain Transcoder
  • Fig. 2 shows a conventional cascaded DCT-domain transcoder (CDDT) architecture, simplifying the CPDT architecture of Fig. 1.
  • CDDT DCT-domain transcoder
  • FIG. 3 shows an exemplary non-integrated pixel-domain transcoding split-architecture to transcode MPEG-2 to WMV, according to one embodiment. More particularly, this split-architecture provides a conceptual basis for efficient integrated digital video transcoding.
  • FIG. 4 shows an exemplary system for efficient integrated digital video transcoding, according to one embodiment.
  • Fig. 5 shows an exemplary simplified close-loop cascaded pixel- domain transcoder, according to one embodiment.
  • Fig. 6 shows an exemplary simplified closed-loop DCT-domain transcoder, according to one embodiment.
  • Fig. 7 shows an exemplary merge operation of four 4x4 DCT blocks into one 8 x 8 DCT block, according to one embodiment. This merge operation is performed during efficient video content transcoding.
  • Fig. 8 shows an exemplary architecture for a simplified DCT-domain numeral 2:1 resolution downscaling transcoder, according to one embodiment.
  • Fig. 9 shows an exemplary merge operation of four 4x4 DCT blocks into one 8 x 8 DCT block for interlace media for 2:1 spatial resolution downscaling transcoding operations, according to one embodiment.
  • Fig. 10 shows an exemplary simplified 2:1 arbitrary resolution change downscaling transcoder architecture with full drift compensation, according to one embodiment.
  • Fig. 11 shows an exemplary standard virtual buffer verifier buffer (VBV) model for a decoder.
  • VBV virtual buffer verifier buffer
  • Fig. 12 shows a transcoder with arbitrarily spatial resolution downscaling, according to one embodiment.
  • Fig. 13 shows an exemplary procedure for efficient integrated digital video transcoding operations, according to one embodiment.
  • Fig. 14 shows an exemplary environment wherein efficient integrated digital video transcoding can be partially or fully implemented, according to one embodiment.
  • a blue solid arrow represents pixel domain signal with respect to real or residual picture data.
  • a red solid arrow represents signal in the DCT domain.
  • An orange dashed arrow represents motion information.
  • Systems and methods for efficient digital video transcoding are described below in reference to Figs. 4 through 14. These systems and methods utilize information in the input bitstream to allow an application to dynamically control error propagation, and thereby, selectively control speed and quality of video bitstream transcoding. This selective control allows an application to seamlessly scale from close-loop transcoding (high-speed transcoding profile) to open-loop (high-quality transcoding profile) transcoding schemes.
  • the architectures for efficient digital video transcoding are integrated and that they combined different types of Discrete Cosine Transforms (DCTs) or DCT-like transforms into one transcoding module.
  • the systems and methods for efficient video transcoding implement requantization with a fast lookup table, and provide fine drifting control mechanisms using a triple threshold algorithm.
  • the high-quality profile transcoding operations support advanced coding features of WMV.
  • high-speed profile transcoding operations implement arbitrary resolution two-stage downscaling (e.g., when transcoding from high definition (HD) to standard definition (SD)) - e.g., such as in an arbitrary resolution change downsizing decoder. In such two-stage downscaling operations, part of the downscaling ratio is efficiently achieved in the DCT domain, while downscaling ratio operations are implemented in the spatial domain at a substantially reduced resolution.
  • Fig. 3 shows exemplary non-integrated cascaded pixel-domain transcoding split-architecture 300 to convert MPEG-2 to WMV. This split- architecture is not integrated because separate modules respectively perform decoding and encoding operations.
  • the split-architecture of Fig. 3 provides a conceptual basis for subsequent description of the integrated systems and methods for efficient digital video transcoding.
  • TABLE 1 shows symbols and their respective meanings for discussion of Fig. 3.
  • MC 1 VC1 (6, mv) Motion compensated prediction with reduced resolution reference B and motion vector mv, using transcoder 308 filtering, on 8x8 or smaller block basis;
  • system 300 is described with respect to transcoding from MPEG-2 to WMV with bit rate reduction, spatial resolution reduction, and their combination.
  • Many existing digital video contents are coded according to the MPEG-2 data format.
  • WMV is widely accepted as a qualified codec in the streaming realm, being widely deployed throughout the Internet, adopted by the HD-DVD Consortium, and currently being considered as a SMPTE standard.
  • MPEG-2 and WMV provide varying compression and visual quality capabilities.
  • the compression techniques respectively used by MPEG-2 and WMV are very different.
  • the motion vector (MV) precision and motion compensation (MC) filtering techniques are different.
  • MPEG-2 motion precision is only up to half-pixel accuracy and the interpolation method is bilinear filtering.
  • WMV motion precision can go up to quarter-pixel accuracy, and two interpolation methods namely bilinear filtering and bicubic filtering are supported.
  • there is a rounding control parameter involved in the filtering process Use of WMV may result in up to a 50% reduction in video bit rate with negligible visual quality loss, as compared to an MPEG-2 bit rate.
  • transforms used by MPEG-2 and WMV are different.
  • MPEG-2 uses standard DCT/IDCT and the transform size is fixed to 8x8.
  • WMV uses integer transforms (VCl-T) where the elements of transform kernel matrix are all small integers.
  • transform size can be altered using WMV from blocks to blocks using either 8x8, 8x4, 4x8 and 4x4.
  • MPEG-2 does not support frame level optimization.
  • WMV supports various frame level syntaxes for performance optimization.
  • WMV supports many other advanced coding features such as intensity compensation, range reduction, and dynamic resolution change, etc.
  • the filtering process bridging the MPEG-2 decoder and the WMV encoder shown in Fig. 3 is an all-pass filter (i.e., not in effect). Therefore, the input to the encoder for frame (/+1) is expressed as:
  • WMV coding efficiency of Fig. 3 gains result from finer motion precision.
  • quarter-pixel motion precision is allowed beside the common half-pixel precision as in MPEG-2.
  • WMV allows better but more complex interpolation known as bicubic interpolation for MC filtering.
  • Bilinear interpolation is used for MPEG-2 in the MC module (MC mp2 ) for half-pixel MC.
  • the bilinear interpolation method similar to that used in WMV with the exception that the MPEG-2 bilinear interpolation does not have rounding control.
  • half-pixel motion accuracy can be implemented in the encoder portion.
  • Equation 1 is simplified as follows:
  • Fig. 4 shows an exemplary system 400 for efficient digital video transcoding.
  • the operations of system 400 are described with respect to hybrid DCT and block-based motion compensation (MC) video coding schemes, upon which many video coding standards and proprietary formats are based.
  • system 400 is described with architectures, components, and operations used to transcode MPEG-2 to WMV.
  • the architectures, components, and operations described for scalable complexity and efficiency transcoding embodied by system 400 for transcoding MPEG-2 to WMV can also be applied to other bitstream data format conversions besides MPEG-2 and WMV.
  • system 400 is utilized to transcode MPEG-2 bitstream to MPEG-4 bitstream and MPEG-4 bitstream data to WMV bitstream data, etc.
  • the following described transcoding architectures of system 400 (including components and operations associated therewith), consider the type of bitstream data being decoded, encoded, and respective data formats.
  • system 400 includes a general-purpose computing device 402.
  • Computing device 402 represents any type of computing device such as a personal computer, a laptop, a server, handheld or mobile computing device, etc.
  • Computing device 402 includes program modules 404 and program data 406 to transcode an encoded bitstream in a first data format (e.g. MPEG-2) to a bitstream encoded into a different data formats (e.g., WMV).
  • Program modules 404 include, for example, efficient digital video transcoding module 408 ("transcoding module 408") and other program modules 410.
  • Transcoding module 408 transcodes encoded media 412 (e.g., MPEG-2 media) into transcoded media 414 (e.g., WMV media).
  • program modules 410 include, for example, an operating system and an application utilizing the video bitstream transcoding capabilities of transcoding module 408, etc.
  • the application is part of the operating system.
  • transcoding module 408 exposes its transcoding capabilities to the application via an Application Programming Interface (API) 416.
  • API Application Programming Interface
  • Fig. 5 shows an exemplary simplified integrated closed-loop cascaded pixel-domain transcoder without error propagation.
  • the components of Fig. 5 are described in reference to the components of Fig. 4.
  • the architecture of Fig. 5 is representative of one exemplary architecture implementation of transcoding module 408 of Fig. 4.
  • the architecture 500 Fig. 5 as compared to the architecture in Fig. 3, please note that this is an integrated architecture without separate encoder and decoder components.
  • the MV refining motion estimation module is removed from the MC in MPEG-2 decoder.
  • MC in the WMV encoder is merged to a MC that operates on accumulated requantization errors.
  • the transcoding architecture of Fig. 5 significantly reduces computation complexity for high-speed transcoding of progressive and interlaced video data formats.
  • the WMV transform is different from the one used in MPEG-2.
  • MPEG-2 standard floating point DCT/IDCT is used whereas the integer transform, whose energy packing property is akin to DCT, is adopted in WMV.
  • the IDCT in the MPEG-2 decoder and the VCl-T in WMV encoder do not cancel out each other.
  • the integer transform in WMV is different from the integer implementation of DCT/IDCT.
  • the integer transform in WMV is carefully designed with all the transform coefficients to be small integers.
  • Conventional transcoders are not integrated to transcode a bitstream encoded with respect to a first transform to a second transform that is not the same as the first transform.
  • Equation 3 provides an exemplary transform matrix for 8x8 VCl-T.
  • Equation 3 in combination with equations 4 and 5, which are described below, indicate how two different transforms are implemented into a scaling component of transcoding module 408 (Fig. 4).
  • the accuracy of VCl-T is 16-bit accuracy, which is very suitable for MMX implementation.
  • the codec complexity can be significantly reduced.
  • Fig. 6 shows an exemplary simplified closed-loop DCT-domain transcoder.
  • the architecture of Fig. 6 is representative of one exemplary architecture implementation of transcoding module 408 (Fig. 4).
  • the architecture 600 of Fig. 6 is a simplified architecture as compared to the architecture 500 of Fig. 5.
  • C 8 be the standard DCT transform matrix
  • B the inverse quantized MPEG-2 DCT block
  • b the IDCT of B
  • the MPEG-2 IDCT is calculated as follows:
  • b C s 'BC
  • B the VCl-T of b
  • B is calculated as:
  • Equation 4 becomes an element-wise scaling of matrix B. That is,
  • Equation 5 shows that the VCl-T in WMV encoder and the IDCT in MPEG-2 decoder can be merged. Consequently, the architecture in Fig. 5 can be further simplified to the one shown in Fig. 6. Detailed comparison reveals that the two DCT/IDCT modules are replaced by two VCl-T and inverse VCl-T modules. In one implementation, a simple scaling module is also added. Two switches are embedded along with and an activity mask in this architecture. These embedded components, as described below, are used for dynamic control of the complexity of transcoding coating operations of transcoder 408 (Fig. 4). At this point, these components are connected.
  • Figs. 5 and 6 show exemplary respective closed-loop transcoding architectures, wherein a feedback loop is involved.
  • the feedback loop which includes VC-I dequantization, VC-I inverse transform, residue error accumulation and MC on the accumulated error, compensates for the error caused by the VC-I requantization process.
  • Requantization error is a main cause of the drifting error for bit-rate-reduction transcoders, such as that shown in Fig. 1.
  • the transcoding architectures of Figs. 5 and 6 are not completely drift-free, even with error compensation, the drifting error is very small. This is because the remaining cause of drift error is the rounding error during motion compensation filtering.
  • One merit of residue error compensation is that the architectures of Figs. 5 and 6 provide for dynamically turning on or off the compensation process, as described below with respect to TABLE 2.
  • the transcoding architecture of Fig. 6 performs pure bit rate reduction transcoding from MPEG-2 to WMV such as SD to SD or HD to HD conversion in a substantially optimal manner.
  • transcoding module 408 of Fig. 4 has implemented drift-free simplification, an application can dynamically trade-off between the complexity and the quality to accelerate transcoding speed.
  • quality can be traded for speed, and vice versa.
  • some drifting error may be allowed in the further simplified transcoder.
  • the drifting error introduced in the faster method is limited and fully controllable.
  • three switches So S 1 , and S 2 ) are provided in the architectures of Figs. 6, 8, and 10.
  • the switches are used only to the residue-error compensation based architectures.
  • the switches selectively skip some time-consuming operations to reduce complexity substantially, while introducing only a small amount of error.
  • the meanings of various switches are summarized in TABLE 2. Computational decisions associated with these switches are efficiently obtained according to criteria described below with respect to each switch.
  • Switch S 0 controls when requantization error of a block should be accumulated into the residue-error buffer.
  • the role of switch S 0 is improved by adopting a fast lookup table based requantization process and by providing a finer drifting control mechanism via a triple-threshold algorithm.
  • all observations made with respect to switch S 0 are considered.
  • the DCT domain energy difference may be utilized as the indicator.
  • Switch S 1 controls when the most time-consuming module, MC of the accumulated residue error.
  • switch S 1 is on.
  • a binary activity mask is created for the reference frame. Each element of the activity mask corresponds to the activeness of an 8x8 block, as determined by
  • Energy(block ⁇ ) is the energy of the block in the accumulated residue-error buffer.
  • Energy(block ⁇ ) is calculated spatial domain or DCT domain. Energy(block ⁇ ) can be approximated by the sum of absolute values. If the MV points to blocks belonging to the area of low activity, then MC of the accumulated residue error for that specific block is skipped.
  • Switch S 2 performs early detection to determine whether block error should be encoded. This is especially useful in transrating applications where the encoder applies a coarser quantization step size. In this implementation, if the input signal (the sum of the MC of accumulated residue error and the reconstructed residue from MPEG-2 decoder) is weaker than a threshold, then switch S 2 is turned off so that no error will be encoded. [0047] In one implementation, thresholds for the switches S 0 , S 1 , and S 2 are adjusted such that earlier reference frames are processed with higher quality and at slower speed. This is because the purpose of the switches is to achieve a better trade-off between quality and speed, and because of the predictive coding nature.
  • bit rate change is not significant or the input source quality is not very high
  • the architecture of Fig. 6 substantially optimizes bit rate reduction when converting MPEG-2 bitstreams to WMV bitstreams.
  • input source may be of high quality and high quality output may be desired, also speed of transcoding may be a moderate requirement (e.g., real-time).
  • a high-quality profile transcoder such as the cascaded pixel-domain transcoder (CDPT) of Fig. 3 with MV refinement, meets these criteria.
  • CDPT cascaded pixel-domain transcoder
  • Downscaling errors generated when obtaining a downscaled video. It is typically a hardwired choice when designing operations of the downscaling filter to make a trade-off between visual quality and complexity, especially when downscaling in the spatial domain.
  • transcoding module 408 (Fig. 4) address the last two sources of errors, as now described.
  • D the down-sampling filtering.
  • e M D(P 1+1 ) + D(MC mp2 ( B , , MV mp2 ) ) - MC wi ( b l , mv vcl ) (6)
  • Equation 6 is simplified to the following:
  • D( r M ) D( r ⁇ + ⁇ ) + MC' mp2 ( S 1 - b, , mv mp2 ) (8)
  • D( r M ) refers to the downscaling process of the decoded MPEG-2 residue signal. This first term can be determined using spatial domain low-pass filtering and decimation. However, use of DCT- domain downscaling to obtain this term results in a reduction of complexity and better PSNR and visual quality. DCT-domain downscaling results are substantially better than results obtained through spatial domain bi-linear filtering or spatial domain 7-tap filtering with coefficients (-1, 0, 9, 16, 9, 0, -l)/32.
  • DCT-domain downscaling retains only the top-left 4x4 low- frequency DCT coefficients. That is, applying a standard 4x4 IDCT on the DCT coefficients retained will result in a spatially 2:1 downscaled image (i.e., transcoded media 414 of Fig. 4).
  • Equation 8 MC' mp2 ( S 1 - b, , «v mp2 ), implies requantization error compensation on a downscaled resolution.
  • the MC in MPEG-2 decoder and the MC in WMV encoder are merged to a single MC process that operates on accumulated requantization errors at the reduced resolution.
  • Fig. 7 shows an exemplary merge operation of four (4) 4x4 DCT blocks into one 8 x 8 DCT block.
  • DCT-domain ' downscaling four 8x8 DCT (blocks, B ⁇ through .B 4 in an MPEG-2 macroblock (MB) at the original resolution) are mapped to the four 4x4 sub-blocks of an 8x8 block of the new MB at the reduced resolution and still in DCT domain (e.g., please see Fig. 7).
  • WMV for P-frames and B-frames, the 4x4-transform type is allowed. As a result, nothing needs to be done further except the abovementioned scaling.
  • transcoding module 408 converts the four 4x4 low-frequency DCT sub-blocks into an 8x8 DCT block: B . In one implementation, this is accomplished by inverse transforming the four 4x4 DCT sub-blocks back into the pixel domain, and then applying a fresh 8x8 VCl-T. In one implementation, and to reduce computation complexity, this is achieved in the DCT domain.
  • B 1 , B 2 , B 3 , and B 4 represent the four 4x4 low- frequency sub-blocks of B ⁇ , 5 2 , B 3 , and B ⁇ , respectively;
  • C 4 be the 4x4 standard IDCT transform matrix;
  • T 8 be the integer WMV transform matrix;
  • T & [T L , T R ] where T L and T R are 8x4 matrices.
  • B is directly calculated from B 1 , B 2 , B 3 , and B 4 using the following equation:
  • both C and D of the above equation are pre-computed.
  • the final results are normalized with N 88 .
  • Fig. 8 shows an exemplary architecture 800 for a simplified DCT- domain numeral 2:1 resolution downscaling transcoder.
  • transcoding module 408 of Fig. 4 implements the exemplary architecture 800.
  • the switches in this architecture have the same functionality as those in Fig. 6, as described above in reference to TABLE 2.
  • the first two modules MPEG-2 VLD and inverse quantization
  • transcoding module 408 retrieves only the top-left 4x4 portion out of the 8x8 block.
  • the transcoders of Figs. 6 and 8 do not include a mixed block-processing module. This is because WMV supports Intra coding mode for 8x8 blocks in an Inter coded macroblock. In other words, an Intra MB at the original resolution is mapped into an Intra 8x8 block of an Inter MB at the reduced resolution. In view of this, the MB mode mapping rule becomes very simple, as shown immediately below:
  • Simplified DCT-domain 2:1 resolution downscaling transcoding architecture 800 is substantially drifting-free for P-frames. This is a result of the four-MV coding mode.
  • the only cause of drifting error, as compared with a CPDT architecture with downscaling filtering, is the rounding of MVs from quarter resolution to half resolution (which ensures mv mp2 mv vcl ) and the non- commutative property of MC and downscaling. Any such remaining errors are negligible due to the low-pass downscaling filtering (e.g., achieved in the DCT domain or in the pixel domain).
  • Fig. 9 shows an exemplary merge operation of four 4x4 DCT blocks into one 8 x 8 DCT block for interlace media for 2:1 spatial resolution downscaling transcoding operations, according to one embodiment.
  • 2:1 downscaling changes resolution of an original frame by two in both horizontal and vertical directions.
  • this interlace process is implemented by transcoding module 408 of Fig. 4. More particularly, for interlace coded content, the top-left 8x4 sub-block in every MB is reconstructed by shortcut MPEG-2 decoder, both fields are smoothed by low pass filter in vertical direction, then one field is dropped before the WMV encoding process.
  • WMV supports four MV coding mode, it is typically only intended for coding P-frames.
  • system 400 implements the architecture of Fig. 6 when there are no B-frames in the input MPEG-2 stream or the B-frames are to be discarded during the transcoder towards a lower temporal resolution.
  • transcoding module 408 composes a new motion vector from the four MVs associated with the MBs at the original resolution.
  • Each of the previously mentioned MV composition methods is compatible.
  • transcoding module 408 implements median filtering. As described, incorrect MV will lead to wrong motion compensated prediction.
  • Equation 9 is simplified to
  • MC' vcl ( ⁇ , , wv vcl ) Z)( T ⁇ +1 ) + [MC' mp2 ( 6, , wv mp2 ) -MC' vol ( 6 ; , mv vcl )] + MC vC1 (OVo, , mv vcl ) (12)
  • Equation 12 The two terms in the square brackets in Equation 12 compensate for the motion errors caused by inconsistent MVs (i.e., mv mp2 is different from wv vcl ) or caused by different MC filtering methods between MPEG-2 and WMV.
  • the corresponding modules for this purpose are highlighted and grouped into a light- yellow block in Fig. 10.
  • Fig. 10 shows an exemplary simplified 2:1 downscaling transcoder architecture with full drift compensation, according to one embodiment.
  • transcoding module 408 of Fig. 4 implements the exemplary architecture of Fig. 10.
  • Equation 12 compensates for the requantization error of reference frames. Since B-frames are not reference for other frames, they are more error tolerant. As a result, an application can safely turn off the error compensation to achieve higher speed. Again, such approximation is intended for B-frames only.
  • MC for motion error compensation operates on reconstructed pixel buffers while the MC for requantization error compensation operates on accumulated residue error buffer.
  • Intra-to-Inter or Inter-to-Intra conversion can be applied. This is because the MPEG-2 decoder reconstructed the B-frame and the reference frames. In this implementation, this conversion is done in the mixed block-processing module in Fig. 10. Two mode composition methods are possible. And one implementation, the dominant mode is selected as the composed mode. For example, if the modes of the four MBs at the original resolution are two bidirectional prediction mode, one backward prediction mode and one forward prediction mode, then bi-directional prediction mode is selected as the mode for the MB at the reduced resolution. In another implementation, the mode that will lead to the largest error is selected. In view of this example, suppose using the backward mode will cause largest error. In this scenario, the backward mode is chosen such that the error can be compensated. Results show that the latter technique offers slightly better quality as compared to the former mode selection technique.
  • FIG. 10 An exemplary architecture according to Equation 12 is shown in Fig. 10. There are four frame-level switches specifically for this architecture, as shown in TABLE 3. TABLE 3 Exemplary Frame-Level Switches
  • the four frame-level switches ensure different coding paths for different frame types. Specifically, the architecture does not perform: residue- error accumulation for B-frames (S IP ), does not perform MV error compensation for I- and P-frames (S B ), and does not reconstruct reference frames if there is no B- frames to be generated (S IP/B ). Please note the frame-level switch S B can be turned into block-level switch since the MV error needs to be compensated only when the corresponding four original MVs are significantly inconsistent.
  • switch S IP is closed only for I-frames or P-frames
  • Switch Sp is closed only for P-frames
  • switch S B is closed only for B-frames.
  • the resulting architecture is not as complex as the reference cascaded pixel- domain transcoder of Fig. 3.
  • One reason for this is that the explicit pixel-domain downscaling process is avoided. Instead, pixel-domain downscaling is implicitly achieved in the DCT domain by simply discarding the high DCT coefficients.
  • This architecture has excellent complexity scalability achieved by utilizing various switches, as described above with respect to TABLE 2.
  • the architecture of Fig. 10 can be configured into an open-loop one by turn off all the switches.
  • This open-loop architecture can be further optimized by merging the dequantization process of MPEG-2 and the requantization process of WMV.
  • the inverse zig-zag scan module (inside VLD) of MPEG-2 can also be combined with the one in WMV encoder.
  • the MV and the coding mode of chrominance components are derived from those of luminance component (Y). If all the four MBs at the original resolution that correspond to the MB at the reduced resolution have consistent coding mode (i.e., all Inter-coded or all Intra-coded), there is no problem. However, if it is not case, problems result due to different derivation rules of MPEG-2 and WMV.
  • the UV blocks are Inter coded when the MB is coded with Inter mode.
  • WMV the UV blocks are Inter coded only when the MB is coded with Inter mode and there are less than three Intra-coded 8x8 Y blocks. This issue exists for both P-frames and B-frames. Transcoding module 408 of Fig. 4 addresses these problems as follows:
  • Inter-to-Intra conversion When the Inter-coded MB has three Intra-coded 8x8 Y blocks (it is impossible for an Inter-coded MB to have all four 8x8 Y blocks Intra coded), the UV blocks are Intra coded. In this case, one MB at the original resolution is Inter-coded along with corresponding UV blocks. These UV blocks will be converted from Inter mode to Intra mode. Since the Human Visual System (HVS) is less sensitive to the chrominance signals, transcoding module 408 utilizes a spatial concealment technique to convert the 8x8 UV blocks from Inter to Intra mode. In one implementation, the DC distance is utilized as an indicator to determine the concealment direction. Concealment is achieved via a simple copy or any other interpolation method.
  • HVS Human Visual System
  • transcoding module 408 inter-codes the UV blocks.
  • These UV blocks are converted from Intra mode to Inter mode.
  • transcoding module 408 utilizes a temporal concealment technique called the zero-out method to handle these blocks, and thereby, avoid the decoding loop.
  • transcoding module 408 uses reconstruction based compensation for the chrominance component (i.e., always applying the light-yellow module for the chrominance component).
  • Fig. 11 shows an exemplary virtual buffer verifier buffer (VBV) model for a decoder.
  • VBV virtual buffer verifier buffer
  • a decoder based on the VBV model of Fig. 11 will typically verify an existing MPEG-2 bitstream.
  • the efficient digital video transcoding architecture of this specification makes the coded frame size proportional to the input frame size for all the frames.
  • QP linear quantization step
  • Typical resolutions of HD format are 1920x1080i and 1280x720 ⁇ while those for SD are 720x480i, 720x480p for NTSC.
  • the horizontal and vertical downscaling ratios from 1920x108Oi to 720x480i are 8/3 and 9/4, respectively.
  • the final downscaling ratio is chosen to be 8/3 and the resulting picture size is 720x404.
  • the downscaling ratio is chosen to be 16/9 and the resulting picture size is 720x404.
  • Black banners are inserted to make a full 720x480 picture by the decoder/player (instead of being padded into the bitstream).
  • a substantially optimal downscaling methodology for a downscaling ratio m/n would be to first up sample the signal by n-fold (i.e., insert n-1 zeros between every original samples), apply a low-pass filter (e.g., a sine function with many taps), and then decimate the resulting signal by m-fold.
  • a low-pass filter e.g., a sine function with many taps
  • any spectrum aliasing introduced by the down-scaling would be maximally suppressed.
  • this process would also be very computationally expensive, and difficult to implement with in real-time because the input signal is high definition.
  • a novel two-stage downscaling strategy is implemented.
  • Fig. 12 shows a transcoder with arbitrarily spatial resolution downscaling, according to one embodiment.
  • transcoding module 408 of Fig. 4 implements architecture of Fig. 12.
  • the arbitrary downscaling transcoder is a non-integrated transcoder, such as in Fig. 12.
  • the following arbitrary downscaling transcoding operations which are described below with respect to Fig. 12, are implemented in an integrated transcoder such as that shown in Figs. 5, 6, 8, and/or 10.
  • system 1200 implements two-stage downscaling operations to achieve any arbitrary downscaling target.
  • Results of the first stage downscaling are embedded into the decoding loop. This reduces the complexity of the decoding operations.
  • downscaling operations are first implemented to downscale by 2/1.
  • the results of this first stage downscaling are input into the decoding loop, wherein second stage downscaling is performed in the spatial domain.
  • second stage downscaling operations downscale by 4/3 to achieve an 8/3 downscale ratio.
  • a downscale ratio of 16/9 is achieved by system 1200 by applying 4/3 downscaling twice (in two stages).
  • This two-stage downscaling methodology utilizes the previously discussed DCT-domain downscaling strategy, and then fully embeds the first stage downscaling results into the decoding loop. Since resolution is significantly reduced after the first stage downscaling, we can continue to apply the optimal downscaling method on the pixel-domain.
  • Fig. 13 illustrates a procedure 1300 for efficient digital video transcoding, according to one embodiment.
  • transcoding module 408 of Fig. 4 implements the operations of procedure 1300.
  • the procedure receives an encoded bitstream (e.g., encoded media 412 of Fig. 4).
  • the procedure partially decodes the encoded bitstream according to a first set of compression techniques associated with a first media data format (e.g., MPEG-2, MPEG-4, etc.).
  • the partial decoding operations generate an intermediate data stream.
  • the integrated transcoder does not perform full decoding.
  • the procedure downscales data associated with the encoded bitstream in a first stage of downscaling.
  • the first stage of downscaling is implemented in the DCT domain of a decoding loop.
  • the procedure further downscales in the spatial domain the data that was downscaled in the DCT domain (see block 1306).
  • the data decoded according to the first set of compression techniques is encoded with a second set of compression techniques.
  • procedure 1300 is implemented within a non-integrated transcoding architecture, such as that shown and described with respect to Figs. 12 and 14.
  • the second set of compression techniques is the same as the first set of compression techniques.
  • procedure 1300 is implemented within an integrated transcoding architecture, such as that shown and described with respect to Figs. 5-11, and 14.
  • the second set of compression techniques is not the same as the first set of compression techniques.
  • the first set of compression techniques is associated with MPEG-2
  • the second set of compression techniques is associated with WMV.
  • Fig. 14 illustrates an example of a suitable computing environment in which efficient digital video transcoding may be fully or partially implemented.
  • Exemplary computing environment 1400 is only one example of a suitable computing environment for the exemplary system 400 of Fig. 4, and is not intended to suggest any limitation as to the scope of use or functionality of systems and methods the described herein. Neither should computing environment 1400 be interpreted as having any dependency or requirement relating to any one or combination of components illustrated in computing environment 1400.
  • the methods and systems described herein are operational with numerous other general purpose or special purpose computing system, environments or configurations.
  • Examples of well-known computing systems, environments, and/or configurations that may be suitable for use include, but are not limited to personal computers, server computers, multiprocessor systems, microprocessor-based systems, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and so on.
  • Compact or subset versions of the framework may also be implemented in clients of limited resources, such as handheld computers, or other computing devices.
  • the invention is practiced in a networked computing environment where tasks are performed by remote processing devices that are linked through a communications network.
  • an exemplary system providing efficient digital video transcoding architecture includes a general-purpose computing device in the form of a computer 1410 implementing, for example, initiator operations associated with computing device 102 of Fig. 1.
  • Components of computer 1410 may include, but are not limited to, processing unit(s) 1418, a system memory 1430, and a system bus 1421 that couples various system components including the system memory to the processing unit 1418.
  • the system bus 1421 may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures.
  • such architectures may include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus also known as Mezzanine bus.
  • ISA Industry Standard Architecture
  • MCA Micro Channel Architecture
  • EISA Enhanced ISA
  • VESA Video Electronics Standards Association
  • PCI Peripheral Component Interconnect
  • a computer 1410 typically includes a variety of computer-readable media.
  • Computer-readable media can be any available media that can be accessed by computer 1410, including both volatile and nonvolatile media, removable and non-removable media.
  • Computer-readable media may comprise computer storage media and communication media.
  • Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by computer 1410.
  • Communication media typically embodies computer-readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and includes any information delivery media.
  • modulated data signal means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal.
  • communication media includes wired media such as a wired network or a direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media. Combinations of the any of the above should also be included within the scope of computer-readable media.
  • System memory 1430 includes computer storage media in the form of volatile and/or nonvolatile memory such as read only memory (ROM) 1431 and random access memory (RAM) 1432.
  • ROM read only memory
  • RAM random access memory
  • BIOS basic input/output system
  • RAM 1432 typically contains data and/or program modules that are immediately accessible to and/or presently being operated on by processing unit 1418.
  • Fig. 14 illustrates operating system 1434, application programs 1435, other program modules 1436, and program data 1437.
  • the computer 1410 may also include other removable/nonremovable, volatile/nonvolatile computer storage media.
  • Figure 14 illustrates a hard disk drive 1441 that reads from or writes to nonremovable, nonvolatile magnetic media, a magnetic disk drive 1451 that reads from or writes to a removable, nonvolatile magnetic disk 1452, and an optical disk drive 1455 that reads from or writes to a removable, nonvolatile optical disk 1456 such as a CD ROM or other optical media.
  • removable/non-removable, volatile/nonvolatile computer storage media that can be used in the exemplary operating environment include, but are not limited to, magnetic tape cassettes, flash memory cards, digital versatile disks, digital video tape, solid state RAM, solid state ROM, and the like.
  • the hard disk drive 1441 is typically connected to the system bus 1421 through a non-removable memory interface such as interface 1440, and magnetic disk drive 1451 and optical disk drive 1455 are typically connected to the system bus 1421 by a removable memory interface, such as interface 1450.
  • the drives and their associated computer storage media discussed above and illustrated in Figure 14, provide storage of computer-readable instructions, data structures, program modules and other data for the computer 1410.
  • hard disk drive 1441 is illustrated as storing operating system 1444, application programs 1445, other program modules 1446, and program data 1447. Note that these components can either be the same as or different from operating system 1434, application programs 1435, other program modules 1436, and program data 1437.
  • Operating system 1444, application programs 1445, other program modules 1446, and program data 1447 are given different numbers here to illustrate that they are at least different copies.
  • a user may enter commands and information into the computer 1410 through input devices such as a keyboard 1462 and pointing device 1461, commonly referred to as a mouse, trackball or touch pad.
  • Other input devices may include a microphone, joystick, graphics pen and pad, satellite dish, scanner, etc.
  • a user input interface 1460 that is coupled to the system bus 1421, but may be connected by other interface and bus structures, such as a parallel port, game port or a universal serial bus (USB).
  • a monitor 1491 or other type of user interface device is also connected to the system bus 1421 via an interface, for example, such as a video interface 1490.
  • the computer 1410 operates in a networked environment using logical connections to one or more remote computers, such as a remote computer 1480.
  • remote computer 1480 represents computing device 106 of a responder, as shown in Fig. 1.
  • the remote computer 1480 may be a personal computer, a server, a router, a network PC, a peer device or other common network node, and as a function of its particular implementation, may include many or all of the elements described above relative to the computer 1410, although only a memory storage device 1481 has been illustrated in Figure 14.
  • the logical connections depicted in Figure 14 include a local area network (LAN) 1481 and a wide area network (WAN) 1473, but may also include other networks.
  • LAN local area network
  • WAN wide area network
  • Such networking environments are commonplace in offices, enterprise-wide computer networks, intranets and the Internet.
  • the computer 1410 When used in a LAN networking environment, the computer 1410 is connected to the LAN 1471 through a network interface or adapter 1470. When used in a WAN networking environment, the computer 1410 typically includes a modem 1472 or other means for establishing communications over the WAN 1473, such as the Internet.
  • the modem 1472 which may be internal or external, may be connected to the system bus 1421 via the user input interface 1460, or other appropriate mechanism.
  • program modules depicted relative to the computer 1410, or portions thereof may be stored in the remote memory storage device.
  • Figure 14 illustrates remote application programs 1485 as residing on memory device 1481.
  • the network connections shown are exemplary and other means of establishing a communications link between the computers may be used.
  • the described fast and high quality transcoding systems and' methodologies including transcoding, arbitrary sized downscaling, and rate reduction are used for MPEG-2 to MPEG-4 transcoding and MPEG-4 to WMV transcoding.
  • the simplified closed-loop DCT- domain transcoder in Fig. 6 can be used to transcode MPEG-4 to WMV.
  • MPEG-2 ISO-13818 Part.2
  • MPEG-2 only utilizes half pixel element (pel) MV precison and bilinear interpolation in MC; there is such a same mode (half pel bilinear) in WMV.
  • MPEG-4 supports both half pel and quarter pel MV precision, as well as interpolation for quarter pel positions (different from that in WMV).

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

Arbitrary resolution change downsizing decoding is described. In one aspect, an encoded bitstream is received. The encoded bitstream is downscaled in a DCT domain-decoding loop to generate downscaled data.

Description

Arbitrary Resolution Change Downsizing Decoder
BACKGROUND
[0001] Digital video content is typically generated to target a specific data format. A video data format generally conforms to a specific video coding standard or a proprietary coding algorithm, with a specific bit rate, spatial resolution, frame rate, etc. Such coding standards include MPEG-2 and WINDOWS Media Video (WMV). Most existing digital video contents are coded according to the MPEG-2 data format. WMV is widely accepted as a qualified codec in the streaming realm, being widely deployed throughout the Internet, adopted by the HD-DVD consortium, and currently being considered as a SMPTE standard. Different video coding standards provide varying compression capabilities and visual quality.
[0002] Transcoding refers to the general process of converting one compressed bitstream into another compressed one. To match a device's capabilities and distribution networks, it is often desirable to convert a bitstream in one coding format to another coding format such as from MPEG-2 to WMV, to H.264, or even to a scalable format. Transcoding may also be utilized to achieve some specific functionality such as VCR-like functionality, logo insertion, or enhanced error resilience capability of the bitstream for transmission over wireless channels.
[0003] Fig. 1 shows a conventional Cascaded Pixel-Domain Transcoder (CPDT) system, which cascades a front-end decoder to decode an input bitstream with an encoder that generates a new bitstream with a different coding parameter set or in new format. One shortcoming of this conventional transcoding architecture is that its complexity typically presents an obstacle for practical deployment. As a result, the CPDT transcoding architecture of Fig. 1 is typically used as a performance benchmark for improved schemes.
[0004] Fig. 2 shows a conventional cascaded DCT-domain transcoder (CDDT) architecture, simplifying the CPDT architecture of Fig. 1. The system of Fig. 2 limits functionality to spatial/temporal resolution downscaling and coding parameter changes. CDDT eliminates the DCT/IDCT processes implemented by the CPDT transcoder of Fig. 1. Yet, CDDT performs MC in the DCT domain, which is typically a time-consuming and computationally expensive operation. This is because the DCT blocks are often overlapped with MC blocks. As a result, the CDDT architecture typically needs to apply complex and computationally expensive floating-point matrix operations in order to perform MC in the DCT domain. Additionally, motion vector (MV) refinement is typically infeasible utilizing the CDDT architecture.
SUMMARY
[0005] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
[0006] In view of the above, arbitrary resolution change downsizing decoding is described. In one aspect, an encoded bitstream is received. The encoded bitstream is downscaled in a DCT domain-decoding loop to generate downscaled data. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] In the Figures, the left-most digit of a component reference number identifies the particular Figure in which the component first appears.
[0008] Fig. 1 shows a conventional Cascaded Pixel-Domain Transcoder (CPDT) system, which cascades a front-end decoder to decode an input bitstream with an encoder to generate a new bitstream with a different coding parameter set or in new format.
[0009] Fig. 2 shows a conventional cascaded DCT-domain transcoder (CDDT) architecture, simplifying the CPDT architecture of Fig. 1.
[0010] Fig. 3 shows an exemplary non-integrated pixel-domain transcoding split-architecture to transcode MPEG-2 to WMV, according to one embodiment. More particularly, this split-architecture provides a conceptual basis for efficient integrated digital video transcoding.
[0011] Fig. 4 shows an exemplary system for efficient integrated digital video transcoding, according to one embodiment.
[0012] Fig. 5 shows an exemplary simplified close-loop cascaded pixel- domain transcoder, according to one embodiment.
[0013] Fig. 6 shows an exemplary simplified closed-loop DCT-domain transcoder, according to one embodiment.
[0014] Fig. 7 shows an exemplary merge operation of four 4x4 DCT blocks into one 8 x 8 DCT block, according to one embodiment. This merge operation is performed during efficient video content transcoding.
[0015] Fig. 8 shows an exemplary architecture for a simplified DCT-domain numeral 2:1 resolution downscaling transcoder, according to one embodiment. [0016] Fig. 9 shows an exemplary merge operation of four 4x4 DCT blocks into one 8 x 8 DCT block for interlace media for 2:1 spatial resolution downscaling transcoding operations, according to one embodiment.
[0017] Fig. 10 shows an exemplary simplified 2:1 arbitrary resolution change downscaling transcoder architecture with full drift compensation, according to one embodiment.
[0018] Fig. 11 shows an exemplary standard virtual buffer verifier buffer (VBV) model for a decoder.
[0019] Fig. 12 shows a transcoder with arbitrarily spatial resolution downscaling, according to one embodiment.
[0020] Fig. 13 shows an exemplary procedure for efficient integrated digital video transcoding operations, according to one embodiment.
[0021] Fig. 14 shows an exemplary environment wherein efficient integrated digital video transcoding can be partially or fully implemented, according to one embodiment.
[0022] For purposes of discussion and illustration, color is used in the figures to present the following conventions. A blue solid arrow represents pixel domain signal with respect to real or residual picture data. A red solid arrow represents signal in the DCT domain. An orange dashed arrow represents motion information.
DETAILED DESCRIPTION Overview
[0023] Systems and methods for efficient digital video transcoding are described below in reference to Figs. 4 through 14. These systems and methods utilize information in the input bitstream to allow an application to dynamically control error propagation, and thereby, selectively control speed and quality of video bitstream transcoding. This selective control allows an application to seamlessly scale from close-loop transcoding (high-speed transcoding profile) to open-loop (high-quality transcoding profile) transcoding schemes. In contrast to conventional transcoding architectures (e.g., the CPDT of Fig. 1 and the CDDT of Fig. 2), the architectures for efficient digital video transcoding are integrated and that they combined different types of Discrete Cosine Transforms (DCTs) or DCT-like transforms into one transcoding module. The systems and methods for efficient video transcoding implement requantization with a fast lookup table, and provide fine drifting control mechanisms using a triple threshold algorithm.
[0024] In one implementation, where efficient digital video transcoding transcodes a bitstream data format (e.g., MPEG-2, etc.) to WMV, the high-quality profile transcoding operations support advanced coding features of WMV. In one implementation, high-speed profile transcoding operations implement arbitrary resolution two-stage downscaling (e.g., when transcoding from high definition (HD) to standard definition (SD)) - e.g., such as in an arbitrary resolution change downsizing decoder. In such two-stage downscaling operations, part of the downscaling ratio is efficiently achieved in the DCT domain, while downscaling ratio operations are implemented in the spatial domain at a substantially reduced resolution.
Exemplary Conceptual Basis
[0025] Fig. 3 shows exemplary non-integrated cascaded pixel-domain transcoding split-architecture 300 to convert MPEG-2 to WMV. This split- architecture is not integrated because separate modules respectively perform decoding and encoding operations. The split-architecture of Fig. 3 provides a conceptual basis for subsequent description of the integrated systems and methods for efficient digital video transcoding. TABLE 1 shows symbols and their respective meanings for discussion of Fig. 3.
TABLE 1
Error of frame (z+1) to be encoded by encoding portion of the transcoder;
Reconstructed frame / by MPEG-2 decoder at original resolution;
B1 Reconstructed frame /' by the encoder at original resolution;
S1 Reconstructed frame i by the MPEG-2 decoder at reduced resolution; b, Reconstructed frame i by the encoder at reduced resolution;
Reconstructed residues of frame (z+1) by MPEG-2 decoder;
Reconstructed residues of frame (z+1) by the encoder
MCmp2(5, mv) Motion compensated prediction with reference picture B and motion vector mv by MPEG-2 decoder, on 16x16 block basis;
MCvcl(£, mv) Motion compensated prediction with reference picture B and motion vector mv by transcoder 308 (encoder), either on 16x16 or 8x8 block basis;
MC'mp2(Z> mv) Motion compensated prediction with reduced resolution reference b and motion vector mv, using MPEG-2 filtering, on 8x8 or smaller block basis
MC1 VC1 (6, mv) Motion compensated prediction with reduced resolution reference B and motion vector mv, using transcoder 308 filtering, on 8x8 or smaller block basis;
MV Motion vector in the original frame resolution mv Motion vector in the reduced frame resolution
[0026] For purposes of description and exemplary illustration, system 300 is described with respect to transcoding from MPEG-2 to WMV with bit rate reduction, spatial resolution reduction, and their combination. Many existing digital video contents are coded according to the MPEG-2 data format. WMV is widely accepted as a qualified codec in the streaming realm, being widely deployed throughout the Internet, adopted by the HD-DVD Consortium, and currently being considered as a SMPTE standard.
[0027] MPEG-2 and WMV provide varying compression and visual quality capabilities. For example, the compression techniques respectively used by MPEG-2 and WMV are very different. For instance, the motion vector (MV) precision and motion compensation (MC) filtering techniques are different. In MPEG-2 motion precision is only up to half-pixel accuracy and the interpolation method is bilinear filtering. In contrast, in WMV, the motion precision can go up to quarter-pixel accuracy, and two interpolation methods namely bilinear filtering and bicubic filtering are supported. Moreover, there is a rounding control parameter involved in the filtering process. Use of WMV may result in up to a 50% reduction in video bit rate with negligible visual quality loss, as compared to an MPEG-2 bit rate.
[0028] In another example, transforms used by MPEG-2 and WMV are different. For instance, MPEG-2 uses standard DCT/IDCT and the transform size is fixed to 8x8. In contrast, WMV uses integer transforms (VCl-T) where the elements of transform kernel matrix are all small integers. Additionally, transform size can be altered using WMV from blocks to blocks using either 8x8, 8x4, 4x8 and 4x4. MPEG-2 does not support frame level optimization. Whereas, WMV supports various frame level syntaxes for performance optimization. WMV supports many other advanced coding features such as intensity compensation, range reduction, and dynamic resolution change, etc. [0029] In view of the above, to provide bit rate reduction without resolution change, the filtering process bridging the MPEG-2 decoder and the WMV encoder shown in Fig. 3 is an all-pass filter (i.e., not in effect). Therefore, the input to the encoder for frame (/+1) is expressed as:
eM = rM + MCmp2( B1 , MVmv2) - MCvol( B1 , MVvol) (1)
[0030] In this implementation, WMV coding efficiency of Fig. 3 gains result from finer motion precision. In WMV, quarter-pixel motion precision is allowed beside the common half-pixel precision as in MPEG-2. Moreover, WMV allows better but more complex interpolation known as bicubic interpolation for MC filtering. Bilinear interpolation is used for MPEG-2 in the MC module (MCmp2) for half-pixel MC. The bilinear interpolation method similar to that used in WMV with the exception that the MPEG-2 bilinear interpolation does not have rounding control. To achieve high speed, half-pixel motion accuracy can be implemented in the encoder portion. One reason for this is the lack of the absolute original frame (i.e., bitstream input data (BSJ[N) is already compressed). Thus, in this example, it is difficult to obtain a more accurate yet meaningful motion vector. On the other hand, the motion information obtained from MPEG-2 decoder (i.e. MVVCϊ = MVmp2) can be reused directly. Since there is no resolution change, there is no MV precision loss with this assumption. If the encoder is further restricted to use bilinear interpolation and force the rounding control parameter to be always off, then under the reasonable assumption that motion compensation is a linear operation and ignoring the rounding error (i.e., MCVc9 = MCmp2), Equation 1 is simplified as follows:
β#+I = rM + MCrap2( S1 - B1 , MVmp2) (2) According to Equation 2, the reference CPDT transcoder in Fig. 3 can be simplified. Such a simplified architecture is described below in reference to Fig. 5. Prior to describing the simplified architecture, an exemplary system for efficient digital video transcoding is first described.
An Exemplary System
[0031] Although not required, efficient digital video transcoding is described in the general context of computer-program instructions being executed by a computing device such as a personal computer. Program modules generally include routines, programs, objects, components, data structures, etc., that perform particular tasks or implement particular abstract data types. While the systems and methods are described in the foregoing context, acts and operations described hereinafter may also be implemented in hardware.
[0032] Fig. 4 shows an exemplary system 400 for efficient digital video transcoding. In this implementation, the operations of system 400 are described with respect to hybrid DCT and block-based motion compensation (MC) video coding schemes, upon which many video coding standards and proprietary formats are based. More particularly, system 400 is described with architectures, components, and operations used to transcode MPEG-2 to WMV. However, it can be appreciated that the architectures, components, and operations described for scalable complexity and efficiency transcoding embodied by system 400 for transcoding MPEG-2 to WMV can also be applied to other bitstream data format conversions besides MPEG-2 and WMV. For example, in one implementation, system 400 is utilized to transcode MPEG-2 bitstream to MPEG-4 bitstream and MPEG-4 bitstream data to WMV bitstream data, etc. In such alternate embodiments, the following described transcoding architectures of system 400 (including components and operations associated therewith), consider the type of bitstream data being decoded, encoded, and respective data formats.
[0033] In this implementation, system 400 includes a general-purpose computing device 402. Computing device 402 represents any type of computing device such as a personal computer, a laptop, a server, handheld or mobile computing device, etc. Computing device 402 includes program modules 404 and program data 406 to transcode an encoded bitstream in a first data format (e.g. MPEG-2) to a bitstream encoded into a different data formats (e.g., WMV). Program modules 404 include, for example, efficient digital video transcoding module 408 ("transcoding module 408") and other program modules 410. Transcoding module 408 transcodes encoded media 412 (e.g., MPEG-2 media) into transcoded media 414 (e.g., WMV media). Other program modules 410 include, for example, an operating system and an application utilizing the video bitstream transcoding capabilities of transcoding module 408, etc. In one implementation, the application is part of the operating system. In one implementation, transcoding module 408 exposes its transcoding capabilities to the application via an Application Programming Interface (API) 416.
High-Speed Profile Transcoding
[0034] Fig. 5 shows an exemplary simplified integrated closed-loop cascaded pixel-domain transcoder without error propagation. For purposes of discussion and illustration, the components of Fig. 5 are described in reference to the components of Fig. 4. For instance, the architecture of Fig. 5 is representative of one exemplary architecture implementation of transcoding module 408 of Fig. 4. Referring to the architecture 500 Fig. 5, as compared to the architecture in Fig. 3, please note that this is an integrated architecture without separate encoder and decoder components. Additionally, please note that the MV refining motion estimation module is removed from the MC in MPEG-2 decoder. Additionally, MC in the WMV encoder is merged to a MC that operates on accumulated requantization errors. In this manner, the transcoding architecture of Fig. 5 significantly reduces computation complexity for high-speed transcoding of progressive and interlaced video data formats.
[0035] Please note that the WMV transform is different from the one used in MPEG-2. In MPEG-2, standard floating point DCT/IDCT is used whereas the integer transform, whose energy packing property is akin to DCT, is adopted in WMV. As a result, the IDCT in the MPEG-2 decoder and the VCl-T in WMV encoder do not cancel out each other. The integer transform in WMV is different from the integer implementation of DCT/IDCT. The integer transform in WMV is carefully designed with all the transform coefficients to be small integers. Conventional transcoders are not integrated to transcode a bitstream encoded with respect to a first transform to a second transform that is not the same as the first transform.
[0036] Equation 3 provides an exemplary transform matrix for 8x8 VCl-T.
12 12 12 12 12 12 12 12
16 15 9 4 -4 -9 -15 -16
16 6 -6 -16 -16 -6 6 16
15 -4 -16 -9 9 16 4 -15
T - (3)
12 -12 -12 12 12 -12 -12 12
9 -12 4 15 -15 -4 16 -9
6 -16 16 -6 -6 16 -16 6
4 -9 15 -16 16 -15 9 -4
[0037] Equation 3 in combination with equations 4 and 5, which are described below, indicate how two different transforms are implemented into a scaling component of transcoding module 408 (Fig. 4). In one implementation, the accuracy of VCl-T is 16-bit accuracy, which is very suitable for MMX implementation. As a result, the codec complexity can be significantly reduced.
[0038] Fig. 6 shows an exemplary simplified closed-loop DCT-domain transcoder. The architecture of Fig. 6 is representative of one exemplary architecture implementation of transcoding module 408 (Fig. 4). The architecture 600 of Fig. 6 is a simplified architecture as compared to the architecture 500 of Fig. 5. Referring to Fig. 6, let C8 be the standard DCT transform matrix, B, the inverse quantized MPEG-2 DCT block, and b, the IDCT of B, then the MPEG-2 IDCT is calculated as follows: b = Cs'BC, Let B be the VCl-T of b, then B is calculated as:
B = TJTJ o Nn where o denotes element-wise multiplication of two matrices, and N88 is the normalization matrix for VCl-T transform which is calculated as follows: i Nv 88 - c °8 - c ϋ8' with c8 = [8/288 8/289 8/292 8/298 8/288 8/289 8/292 8/298];
B is directly computed from B, using the following formula:
Figure imgf000014_0001
[0039] To verify that T8Cg and C8T8' are very close to diagonal matrices, if we apply the approximation, then Equation 4 becomes an element-wise scaling of matrix B. That is,
B = B o S,, (5) where
S88 = diag(T%C%) - diag(CJl) ° ^88 [0040] Equation 5 shows that the VCl-T in WMV encoder and the IDCT in MPEG-2 decoder can be merged. Consequently, the architecture in Fig. 5 can be further simplified to the one shown in Fig. 6. Detailed comparison reveals that the two DCT/IDCT modules are replaced by two VCl-T and inverse VCl-T modules. In one implementation, a simple scaling module is also added. Two switches are embedded along with and an activity mask in this architecture. These embedded components, as described below, are used for dynamic control of the complexity of transcoding coating operations of transcoder 408 (Fig. 4). At this point, these components are connected. The 16-bit arithmetic property of the WMV transform lends itself to parallel processing for PC and DSP. In view of this, computation complexities are significantly reduced. Moreover, since all the elements of the scaling matrix, iSg8, are substantially close in proximity with respect to one another, this computation, and one implementation, is replaced by a scalar multiplication.
[0041] Figs. 5 and 6 show exemplary respective closed-loop transcoding architectures, wherein a feedback loop is involved. In this implementation, the feedback loop, which includes VC-I dequantization, VC-I inverse transform, residue error accumulation and MC on the accumulated error, compensates for the error caused by the VC-I requantization process. Requantization error is a main cause of the drifting error for bit-rate-reduction transcoders, such as that shown in Fig. 1. Although the transcoding architectures of Figs. 5 and 6 are not completely drift-free, even with error compensation, the drifting error is very small. This is because the remaining cause of drift error is the rounding error during motion compensation filtering. One merit of residue error compensation is that the architectures of Figs. 5 and 6 provide for dynamically turning on or off the compensation process, as described below with respect to TABLE 2. The transcoding architecture of Fig. 6 performs pure bit rate reduction transcoding from MPEG-2 to WMV such as SD to SD or HD to HD conversion in a substantially optimal manner.
[0042] More particularly, conventional cascaded transcoder architectures (e.g., the architectures of Figs. 1 and 2) lack complexity flexibility. With respect to computation savings, the most that such conventional architecture can achieve is through MV reuse and mode mapping. On the other hand, accumulated residue error compensation architectures, for example, the architecture of Fig. 6 (and the architectures of Figs. 8 and 10, as described below) have built-in scalability in terms of complexity. TABLE 2 shows exemplary meanings of switches in Fig. 6.
TABLE 2 Exemplary Switches for Dynamic Control of Transcoding Speed and Quality
Figure imgf000016_0001
[0043] After transcoding module 408 of Fig. 4 has implemented drift-free simplification, an application can dynamically trade-off between the complexity and the quality to accelerate transcoding speed. In this implementation, quality can be traded for speed, and vice versa. In other words, some drifting error may be allowed in the further simplified transcoder. With this strategy, the drifting error introduced in the faster method is limited and fully controllable. Based on this consideration, three switches (So S1, and S2) are provided in the architectures of Figs. 6, 8, and 10. The switches are used only to the residue-error compensation based architectures. The switches selectively skip some time-consuming operations to reduce complexity substantially, while introducing only a small amount of error. The meanings of various switches are summarized in TABLE 2. Computational decisions associated with these switches are efficiently obtained according to criteria described below with respect to each switch.
[0044] Switch S0 controls when requantization error of a block should be accumulated into the residue-error buffer. As compared to a standard reconstruction selector, the role of switch S0 is improved by adopting a fast lookup table based requantization process and by providing a finer drifting control mechanism via a triple-threshold algorithm. As a result, all observations made with respect to switch S0 are considered. For example, in one implementation, the DCT domain energy difference may be utilized as the indicator.
[0045] Switch S1 controls when the most time-consuming module, MC of the accumulated residue error. In one implementation, switch S1 is on. A binary activity mask is created for the reference frame. Each element of the activity mask corresponds to the activeness of an 8x8 block, as determined by
Λ *■ w zw r ^ I1' Energy{blocki) > Th Activity (Block,) = <
JO, Energy{blockf) ≤ Th
where Energy(block{) is the energy of the block in the accumulated residue-error buffer. In one implementation, Energy(block\) is calculated spatial domain or DCT domain. Energy(block{) can be approximated by the sum of absolute values. If the MV points to blocks belonging to the area of low activity, then MC of the accumulated residue error for that specific block is skipped.
[0046] Switch S2 performs early detection to determine whether block error should be encoded. This is especially useful in transrating applications where the encoder applies a coarser quantization step size. In this implementation, if the input signal (the sum of the MC of accumulated residue error and the reconstructed residue from MPEG-2 decoder) is weaker than a threshold, then switch S2 is turned off so that no error will be encoded. [0047] In one implementation, thresholds for the switches S0, S1, and S2 are adjusted such that earlier reference frames are processed with higher quality and at slower speed. This is because the purpose of the switches is to achieve a better trade-off between quality and speed, and because of the predictive coding nature.
High-Quality Profile Transcoder
[0048] If bit rate change is not significant or the input source quality is not very high, the architecture of Fig. 6 substantially optimizes bit rate reduction when converting MPEG-2 bitstreams to WMV bitstreams. On the other hand, input source may be of high quality and high quality output may be desired, also speed of transcoding may be a moderate requirement (e.g., real-time). A high-quality profile transcoder, such as the cascaded pixel-domain transcoder (CDPT) of Fig. 3 with MV refinement, meets these criteria. With this architecture, we can turn on all the advanced coding features of the WMV encoder to ensure highest coding efficiency can be achieved.
Resolution Change
[0049] In conventional media transcoding systems there are generally three sources of errors for transcoding with spatial resolution downscaling. These errors are as follows:
• Downscaling: errors generated when obtaining a downscaled video. It is typically a hardwired choice when designing operations of the downscaling filter to make a trade-off between visual quality and complexity, especially when downscaling in the spatial domain.
• Requantization error: As with the pure bit rate reduction transcoding process, this is error due to the requantization with a coarser re-quantization step size. • MV Error: Incorrect MV will lead to wrong motion compensated prediction. As a result, no matter how the requantization error is compensated, and no matter how high the bit rate goes, a perfect result is difficult to obtain if not recomputing the motion compensation based on the new MVs and modes. This is a problem for conventional systems that transcode B-frames, because WMV supports only one MV mode for B-frames. This could also be a problem if one desires to perform optimization, which would lead to coding mode change, e.g., from four-MV to one-MV mode. Moreover, the problem generally exists for chrominance components since they are typically compensated with a single MV. (This is not a problem for the described efficient digital video transcoding architectures when applied to P-frames. One reason for this is because WMV supports four-MV coding mode for P-frames).
The operations of transcoding module 408 (Fig. 4) address the last two sources of errors, as now described.
Requantization Error Compensation
[0050] Let D denote the down-sampling filtering. Referring to the architecture of Fig. 3, input to the VC-I encoder for frame (i+l) is derived as follows: eM = D(P1+1 ) + D(MCmp2( B , , MVmp2) ) - MCwi( bl , mvvcl) (6)
Assume that MCyci = MCmp2, mvmp2 = wvvcl= MVmp2/2. With the approximation that
■C(MCmp2( B1 , MVmp2) ) = MC'mp2(D( B1 ), D(MFmp2) ) = MC'mp2( S1 , mvmp2) (J),
Equation 6 is simplified to the following:
eM = D( rι+ι ) + MC'mp2( S1 - b, , mvmp2) (8) [0051] The first term in Equation 8, D( rM ), refers to the downscaling process of the decoded MPEG-2 residue signal. This first term can be determined using spatial domain low-pass filtering and decimation. However, use of DCT- domain downscaling to obtain this term results in a reduction of complexity and better PSNR and visual quality. DCT-domain downscaling results are substantially better than results obtained through spatial domain bi-linear filtering or spatial domain 7-tap filtering with coefficients (-1, 0, 9, 16, 9, 0, -l)/32. In this implementation, DCT-domain downscaling retains only the top-left 4x4 low- frequency DCT coefficients. That is, applying a standard 4x4 IDCT on the DCT coefficients retained will result in a spatially 2:1 downscaled image (i.e., transcoded media 414 of Fig. 4).
[0052] The second term in Equation 8, MC'mp2( S1 - b, , «vmp2), implies requantization error compensation on a downscaled resolution. In this implementation, the MC in MPEG-2 decoder and the MC in WMV encoder are merged to a single MC process that operates on accumulated requantization errors at the reduced resolution.
[0053] Fig. 7 shows an exemplary merge operation of four (4) 4x4 DCT blocks into one 8 x 8 DCT block. One practical issue remains. In DCT-domain ' downscaling, four 8x8 DCT (blocks, B\ through .B4 in an MPEG-2 macroblock (MB) at the original resolution) are mapped to the four 4x4 sub-blocks of an 8x8 block of the new MB at the reduced resolution and still in DCT domain (e.g., please see Fig. 7). In WMV, for P-frames and B-frames, the 4x4-transform type is allowed. As a result, nothing needs to be done further except the abovementioned scaling. However, for I-frames, only the 8x8-transform type is allowed. Thus, when dealing with I-frames, transcoding module 408 (Fig. 4) converts the four 4x4 low-frequency DCT sub-blocks into an 8x8 DCT block: B . In one implementation, this is accomplished by inverse transforming the four 4x4 DCT sub-blocks back into the pixel domain, and then applying a fresh 8x8 VCl-T. In one implementation, and to reduce computation complexity, this is achieved in the DCT domain.
[0054] For example, let .B1 , B2 , B3 , and B4 represent the four 4x4 low- frequency sub-blocks of B\, 52, B3, and B^, respectively; C4 be the 4x4 standard IDCT transform matrix; T8 be the integer WMV transform matrix; and further let T& = [TL, TR] where TL and TR are 8x4 matrices. In this scenario, B is directly calculated from B1 , B2, B3 , and B4 using the following equation:
B = (T1CJB1(T1CJ + (T1CJB2(T11CJ + (TRCJB3(TLC)' + (TRCJB4(TRCJ
After some manipulation, B is more efficiently calculated as follows:
B = (X + Y)C + (X - Y)D' wherein
C = (TLCA + TRCJI2 D = (TLC\ - TRCJI2
X = C(B1 + B3) + D(B1 -B3)
Y = C(B2 + BJ + D(B2 - B4)
In one implementation, both C and D of the above equation are pre-computed. The final results are normalized with N88.
[0055] Fig. 8 shows an exemplary architecture 800 for a simplified DCT- domain numeral 2:1 resolution downscaling transcoder. In one implementation, transcoding module 408 of Fig. 4 implements the exemplary architecture 800. The switches in this architecture have the same functionality as those in Fig. 6, as described above in reference to TABLE 2. Referring to Fig. 8, and one implementation, the first two modules (MPEG-2 VLD and inverse quantization) are simplified as compared to what is shown in Fig. 6. This is because transcoding module 408 retrieves only the top-left 4x4 portion out of the 8x8 block.
[0056] Compared to a conventional drift-low transcoder with drifting error compensation in reduced resolution, the transcoders of Figs. 6 and 8 do not include a mixed block-processing module. This is because WMV supports Intra coding mode for 8x8 blocks in an Inter coded macroblock. In other words, an Intra MB at the original resolution is mapped into an Intra 8x8 block of an Inter MB at the reduced resolution. In view of this, the MB mode mapping rule becomes very simple, as shown immediately below:
[INTRA if all mode_orig = INTRA modejtiew = \ SKIP if all mode_orig = SKIP
[ INTER otherwise
Existing mixed block processing operations typically require a decoding loop to reconstruct a full resolution picture. Therefore, the removal of mixed block processing provides substantial computation savings as compared to conventional systems.
[0057] Simplified DCT-domain 2:1 resolution downscaling transcoding architecture 800 is substantially drifting-free for P-frames. This is a result of the four-MV coding mode. The only cause of drifting error, as compared with a CPDT architecture with downscaling filtering, is the rounding of MVs from quarter resolution to half resolution (which ensures mvmp2 = mvvcl) and the non- commutative property of MC and downscaling. Any such remaining errors are negligible due to the low-pass downscaling filtering (e.g., achieved in the DCT domain or in the pixel domain).
[0058] Fig. 9 shows an exemplary merge operation of four 4x4 DCT blocks into one 8 x 8 DCT block for interlace media for 2:1 spatial resolution downscaling transcoding operations, according to one embodiment. 2:1 downscaling changes resolution of an original frame by two in both horizontal and vertical directions. In one implementation, this interlace process is implemented by transcoding module 408 of Fig. 4. More particularly, for interlace coded content, the top-left 8x4 sub-block in every MB is reconstructed by shortcut MPEG-2 decoder, both fields are smoothed by low pass filter in vertical direction, then one field is dropped before the WMV encoding process.
MV Error Compensation
[0059] Although WMV supports four MV coding mode, it is typically only intended for coding P-frames. As a result, system 400 (Fig. 4) implements the architecture of Fig. 6 when there are no B-frames in the input MPEG-2 stream or the B-frames are to be discarded during the transcoder towards a lower temporal resolution. One reason for this is that WMV allows only one MV per MB for B- frames. In such a scenario, transcoding module 408 (Fig. 4) composes a new motion vector from the four MVs associated with the MBs at the original resolution. Each of the previously mentioned MV composition methods is compatible. In one implementation, transcoding module 408 implements median filtering. As described, incorrect MV will lead to wrong motion compensated prediction. To make matters worse, no matter how the requantization error is compensated, and no matter how high the bit rate goes, perfect results are difficult to obtain if not re-doing the motion compensation based on the new MVs. Therefore, we provide an architecture that allows such motion errors to be compensated.
[0060] Again, referring to the architecture of Fig. 3, input to the VC-I encoder for frame (/+1), which is assumed to be a B-frame, is derived as follows: «,♦■ = D( rm ) + D(MCmp2( B1 , MVmp2) ) - MCVC1(A( , wvvcl) (9); with the approximation that
D(MCmp2(B, , MVmp2) ) = MCVp2(D(J1 ), O(MVmp2) ) = MC'mp2(ύ, , mvmpl) ) (10)
[0061] Equation 9 is simplified to
eM = D(rM) + MC'mp2(bl , mvmp2) - MC'vcι(bl , mvvcl) (11)
In view of Equation 11, the following is obtained:
eM = D( rM ) + MC'mp2( S1 , mvmp2) - MC'vcl( S1 , mvvcl)
= D( ηH) + [MC'mp2(^ , mvmp2) -MC'vcl(ύ, , mvvcl)] + MCy01(S1 , /»vvci) -
MC'vcl(δ, , wvvcl) = Z)( T^+1 ) + [MC'mp2( 6, , wvmp2) -MC'vol( 6; , mvvcl)] + MCvC1(OVo, , mvvcl) (12)
[0062] The two terms in the square brackets in Equation 12 compensate for the motion errors caused by inconsistent MVs (i.e., mvmp2 is different from wvvcl) or caused by different MC filtering methods between MPEG-2 and WMV. The corresponding modules for this purpose are highlighted and grouped into a light- yellow block in Fig. 10.
[0063] Fig. 10 shows an exemplary simplified 2:1 downscaling transcoder architecture with full drift compensation, according to one embodiment. In one implementation, transcoding module 408 of Fig. 4 implements the exemplary architecture of Fig. 10. Referring to Equation 12, please note that MC'mp2( £f , ^v mp2) is performed for all the 8x8 blocks that correspond to original Inter MBs, and mvmp2 = MVmp2/2 with quarter pixel precision. The MV used in the VC-I encoder is a single MV: mvvcι = median(MFmp2)/2. Note that with respect to the motion-error-compensation module, the accuracy of wvvcl can go to quarter-pixel level. The last term in Equation 12 compensates for the requantization error of reference frames. Since B-frames are not reference for other frames, they are more error tolerant. As a result, an application can safely turn off the error compensation to achieve higher speed. Again, such approximation is intended for B-frames only. Please note that MC for motion error compensation operates on reconstructed pixel buffers while the MC for requantization error compensation operates on accumulated residue error buffer.
[0064] As to the MC, Intra-to-Inter or Inter-to-Intra conversion can be applied. This is because the MPEG-2 decoder reconstructed the B-frame and the reference frames. In this implementation, this conversion is done in the mixed block-processing module in Fig. 10. Two mode composition methods are possible. And one implementation, the dominant mode is selected as the composed mode. For example, if the modes of the four MBs at the original resolution are two bidirectional prediction mode, one backward prediction mode and one forward prediction mode, then bi-directional prediction mode is selected as the mode for the MB at the reduced resolution. In another implementation, the mode that will lead to the largest error is selected. In view of this example, suppose using the backward mode will cause largest error. In this scenario, the backward mode is chosen such that the error can be compensated. Results show that the latter technique offers slightly better quality as compared to the former mode selection technique.
[0065] An exemplary architecture according to Equation 12 is shown in Fig. 10. There are four frame-level switches specifically for this architecture, as shown in TABLE 3. TABLE 3 Exemplary Frame-Level Switches
Figure imgf000026_0001
[0066] The four frame-level switches ensure different coding paths for different frame types. Specifically, the architecture does not perform: residue- error accumulation for B-frames (SIP), does not perform MV error compensation for I- and P-frames (SB), and does not reconstruct reference frames if there is no B- frames to be generated (SIP/B). Please note the frame-level switch SB can be turned into block-level switch since the MV error needs to be compensated only when the corresponding four original MVs are significantly inconsistent.
[0067] More particularly, switch SIP is closed only for I-frames or P-frames, Switch Sp is closed only for P-frames, and switch SB is closed only for B-frames. The resulting architecture is not as complex as the reference cascaded pixel- domain transcoder of Fig. 3. One reason for this is that the explicit pixel-domain downscaling process is avoided. Instead, pixel-domain downscaling is implicitly achieved in the DCT domain by simply discarding the high DCT coefficients. This architecture has excellent complexity scalability achieved by utilizing various switches, as described above with respect to TABLE 2.
[0068] For applications that demand ultra-fast transcoding speed, the architecture of Fig. 10 can be configured into an open-loop one by turn off all the switches. This open-loop architecture can be further optimized by merging the dequantization process of MPEG-2 and the requantization process of WMV. The inverse zig-zag scan module (inside VLD) of MPEG-2 can also be combined with the one in WMV encoder.
Chrominance Components
[0069] With respect to chrominance components in MPEG-2 and in WMV, the MV and the coding mode of chrominance components (UV) are derived from those of luminance component (Y). If all the four MBs at the original resolution that correspond to the MB at the reduced resolution have consistent coding mode (i.e., all Inter-coded or all Intra-coded), there is no problem. However, if it is not case, problems result due to different derivation rules of MPEG-2 and WMV. In MPEG-2, the UV blocks are Inter coded when the MB is coded with Inter mode. However, in WMV, the UV blocks are Inter coded only when the MB is coded with Inter mode and there are less than three Intra-coded 8x8 Y blocks. This issue exists for both P-frames and B-frames. Transcoding module 408 of Fig. 4 addresses these problems as follows:
• Inter-to-Intra conversion: When the Inter-coded MB has three Intra-coded 8x8 Y blocks (it is impossible for an Inter-coded MB to have all four 8x8 Y blocks Intra coded), the UV blocks are Intra coded. In this case, one MB at the original resolution is Inter-coded along with corresponding UV blocks. These UV blocks will be converted from Inter mode to Intra mode. Since the Human Visual System (HVS) is less sensitive to the chrominance signals, transcoding module 408 utilizes a spatial concealment technique to convert the 8x8 UV blocks from Inter to Intra mode. In one implementation, the DC distance is utilized as an indicator to determine the concealment direction. Concealment is achieved via a simple copy or any other interpolation method.
• Intra-to-Inter conversion: When an Inter-coded MB has one or two Intra-coded 8x8 Y blocks, transcoding module 408 inter-codes the UV blocks. In this scenario, there are one or two Intra-coded MBs among the four corresponding MBs at the original resolution. These UV blocks are converted from Intra mode to Inter mode. In this implementation, transcoding module 408 utilizes a temporal concealment technique called the zero-out method to handle these blocks, and thereby, avoid the decoding loop.
[0070] Using error concealment operations to handle mode conversion for chrominance component, error introduced into a current frame is negligible and can be ignored, although it may cause color drifting in subsequent frames. Drifting for the chrominance component is typically caused by incorrect motion. To address this and improve quality, in one implementation, transcoding module 408 uses reconstruction based compensation for the chrominance component (i.e., always applying the light-yellow module for the chrominance component).
Rate Control
[0071] Fig. 11 shows an exemplary virtual buffer verifier buffer (VBV) model for a decoder. A decoder based on the VBV model of Fig. 11 will typically verify an existing MPEG-2 bitstream. In this implementation, if the video rate is decreased proportional to the input rate, then the transcoded WMV bitstream will automatically satisfy the VBV requirements. In view of this, the efficient digital video transcoding architecture of this specification makes the coded frame size proportional to the input frame size for all the frames. These novel architectures continually compensate for accumulated differences between the target frame size and the actual resultant frame size, and obtain, via training, a linear quantization step (QP) mapping rule for different bit rate ranges. [0072] For high bit rate, there is an approximate formula between coding bits (B) and quantization step (QP) which is also used in MPEG-2 TM-5 rate control method.
B = S --*- (13) QP where S is the complexity of frame, X is model parameters. Assuming the complexity of a frame remains the same for different codecs:
Figure imgf000029_0001
where £λPvcl is the QP value used in WMV re-quantization, QPmp2 is QP value of MPEG-2 quantization, and k is the model parameter related to the target bit rate. In one implementation, the following linear model is utilized:
QPvcl /QPmp2 = k - (Bmp2/Bvcl) + t (14)
The values of parameter k and t for low, medium and high bit rate cases are listed in TABLE 4 using the linear regression method.
TABLE 4
EXEMPLARY PARAMETER VALUES FOR LINEAR REGRESSION
METHODOLOGY
Figure imgf000029_0002
[0073] An exemplary detailed rate control algorithm based on Equation 14 is shown in TABLE 5, where the meanings of various symbols in the algorithm presented in TABLE 5 are defined in following TABLE 6. TABLE 5 EXEMPLARY RATE CONTROLALGORITHM
Figure imgf000030_0001
TABLE 6 DEFINITIONS OF SYMBOLS USED IN THE ALGORITHM OF TABLE 5
Figure imgf000030_0002
Arbitrarily Resolution Change
[0074] Conversion of contents from HD resolution to SD resolution, for example to support legacy SD receivers/players, is useful. Typical resolutions of HD format are 1920x1080i and 1280x720ρ while those for SD are 720x480i, 720x480p for NTSC. The horizontal and vertical downscaling ratios from 1920x108Oi to 720x480i are 8/3 and 9/4, respectively. To keep the aspect ratio, the final downscaling ratio is chosen to be 8/3 and the resulting picture size is 720x404. Similarly, for 1280x720ρ to 720x480ρ, the downscaling ratio is chosen to be 16/9 and the resulting picture size is 720x404. Black banners are inserted to make a full 720x480 picture by the decoder/player (instead of being padded into the bitstream).
[0075] According to digital signal processing theory, a substantially optimal downscaling methodology for a downscaling ratio m/n, would be to first up sample the signal by n-fold (i.e., insert n-1 zeros between every original samples), apply a low-pass filter (e.g., a sine function with many taps), and then decimate the resulting signal by m-fold. Performing such operations, any spectrum aliasing introduced by the down-scaling would be maximally suppressed. However, this process would also be very computationally expensive, and difficult to implement with in real-time because the input signal is high definition. To reduce this computational complexity, a novel two-stage downscaling strategy is implemented.
[0076] Fig. 12 shows a transcoder with arbitrarily spatial resolution downscaling, according to one embodiment. In one implementation, transcoding module 408 of Fig. 4 implements architecture of Fig. 12. In one implementation, the arbitrary downscaling transcoder is a non-integrated transcoder, such as in Fig. 12. In another implementation, the following arbitrary downscaling transcoding operations, which are described below with respect to Fig. 12, are implemented in an integrated transcoder such as that shown in Figs. 5, 6, 8, and/or 10.
[0077] Referring to Fig. 12, system 1200 implements two-stage downscaling operations to achieve any arbitrary downscaling target. Results of the first stage downscaling are embedded into the decoding loop. This reduces the complexity of the decoding operations. For example, to achieve an 8/3 downscale ratio, downscaling operations are first implemented to downscale by 2/1. The results of this first stage downscaling are input into the decoding loop, wherein second stage downscaling is performed in the spatial domain. In this example, second stage downscaling operations downscale by 4/3 to achieve an 8/3 downscale ratio. In another example, a downscale ratio of 16/9 is achieved by system 1200 by applying 4/3 downscaling twice (in two stages). This two-stage downscaling methodology utilizes the previously discussed DCT-domain downscaling strategy, and then fully embeds the first stage downscaling results into the decoding loop. Since resolution is significantly reduced after the first stage downscaling, we can continue to apply the optimal downscaling method on the pixel-domain.
[0078] Referring to Fig. 12, please note that multiple MVs
(between [f Jx[f J and[f]x[f]) are associated with a new MB (the MV scaling and filtering modules).
Exemplary Procedure
[0079] Fig. 13 illustrates a procedure 1300 for efficient digital video transcoding, according to one embodiment. In one implementation, transcoding module 408 of Fig. 4 implements the operations of procedure 1300. Referring to Fig. 13, at block 1302, the procedure receives an encoded bitstream (e.g., encoded media 412 of Fig. 4). At block 1304, the procedure partially decodes the encoded bitstream according to a first set of compression techniques associated with a first media data format (e.g., MPEG-2, MPEG-4, etc.). The partial decoding operations generate an intermediate data stream. The integrated transcoder does not perform full decoding. For example, in cases where the MC of the "conceptual" MPEG-2 decoder is merged with that of the WMV encoder, it is hard to describe the decoding operations as performing MPEG-2 decoding. At block 1306, if downscaling of the intermediate data stream is desired, the procedure downscales data associated with the encoded bitstream in a first stage of downscaling. The first stage of downscaling is implemented in the DCT domain of a decoding loop. At block 1308, if two-stage downscaling is desired, the procedure further downscales in the spatial domain the data that was downscaled in the DCT domain (see block 1306).
[0080] At block 1310, the data decoded according to the first set of compression techniques is encoded with a second set of compression techniques. In one implementation, procedure 1300 is implemented within a non-integrated transcoding architecture, such as that shown and described with respect to Figs. 12 and 14. In this implementation, the second set of compression techniques is the same as the first set of compression techniques. In another implementation, procedure 1300 is implemented within an integrated transcoding architecture, such as that shown and described with respect to Figs. 5-11, and 14. In this other implementation, the second set of compression techniques is not the same as the first set of compression techniques. For example, in one implementation, the first set of compression techniques is associated with MPEG-2, and the second set of compression techniques is associated with WMV. An Exemplary Operating Environment
[0081] Fig. 14 illustrates an example of a suitable computing environment in which efficient digital video transcoding may be fully or partially implemented. Exemplary computing environment 1400 is only one example of a suitable computing environment for the exemplary system 400 of Fig. 4, and is not intended to suggest any limitation as to the scope of use or functionality of systems and methods the described herein. Neither should computing environment 1400 be interpreted as having any dependency or requirement relating to any one or combination of components illustrated in computing environment 1400.
[0082] The methods and systems described herein are operational with numerous other general purpose or special purpose computing system, environments or configurations. Examples of well-known computing systems, environments, and/or configurations that may be suitable for use include, but are not limited to personal computers, server computers, multiprocessor systems, microprocessor-based systems, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and so on. Compact or subset versions of the framework may also be implemented in clients of limited resources, such as handheld computers, or other computing devices. The invention is practiced in a networked computing environment where tasks are performed by remote processing devices that are linked through a communications network.
[0083] With reference to Fig. 14, an exemplary system providing efficient digital video transcoding architecture includes a general-purpose computing device in the form of a computer 1410 implementing, for example, initiator operations associated with computing device 102 of Fig. 1. Components of computer 1410 may include, but are not limited to, processing unit(s) 1418, a system memory 1430, and a system bus 1421 that couples various system components including the system memory to the processing unit 1418. The system bus 1421 may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures. By way of example and not limitation, such architectures may include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus also known as Mezzanine bus.
[0084] A computer 1410 typically includes a variety of computer-readable media. Computer-readable media can be any available media that can be accessed by computer 1410, including both volatile and nonvolatile media, removable and non-removable media. By way of example, and not limitation, computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by computer 1410.
[0085] Communication media typically embodies computer-readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and includes any information delivery media. The term "modulated data signal" means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example and not limitation, communication media includes wired media such as a wired network or a direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media. Combinations of the any of the above should also be included within the scope of computer-readable media.
[0086] System memory 1430 includes computer storage media in the form of volatile and/or nonvolatile memory such as read only memory (ROM) 1431 and random access memory (RAM) 1432. A basic input/output system 1433 (BIOS)3 containing the basic routines that help to transfer information between elements within computer 1410, such as during start-up, is typically stored in ROM 1431. RAM 1432 typically contains data and/or program modules that are immediately accessible to and/or presently being operated on by processing unit 1418. By way of example and not limitation, Fig. 14 illustrates operating system 1434, application programs 1435, other program modules 1436, and program data 1437.
[0087] The computer 1410 may also include other removable/nonremovable, volatile/nonvolatile computer storage media. By way of example only, Figure 14 illustrates a hard disk drive 1441 that reads from or writes to nonremovable, nonvolatile magnetic media, a magnetic disk drive 1451 that reads from or writes to a removable, nonvolatile magnetic disk 1452, and an optical disk drive 1455 that reads from or writes to a removable, nonvolatile optical disk 1456 such as a CD ROM or other optical media. Other removable/non-removable, volatile/nonvolatile computer storage media that can be used in the exemplary operating environment include, but are not limited to, magnetic tape cassettes, flash memory cards, digital versatile disks, digital video tape, solid state RAM, solid state ROM, and the like. The hard disk drive 1441 is typically connected to the system bus 1421 through a non-removable memory interface such as interface 1440, and magnetic disk drive 1451 and optical disk drive 1455 are typically connected to the system bus 1421 by a removable memory interface, such as interface 1450.
[0088] The drives and their associated computer storage media discussed above and illustrated in Figure 14, provide storage of computer-readable instructions, data structures, program modules and other data for the computer 1410. In Figure 14, for example, hard disk drive 1441 is illustrated as storing operating system 1444, application programs 1445, other program modules 1446, and program data 1447. Note that these components can either be the same as or different from operating system 1434, application programs 1435, other program modules 1436, and program data 1437. Operating system 1444, application programs 1445, other program modules 1446, and program data 1447 are given different numbers here to illustrate that they are at least different copies.
[0089] A user may enter commands and information into the computer 1410 through input devices such as a keyboard 1462 and pointing device 1461, commonly referred to as a mouse, trackball or touch pad. Other input devices (not shown) may include a microphone, joystick, graphics pen and pad, satellite dish, scanner, etc. These and other input devices are often connected to the processing unit 1418 through a user input interface 1460 that is coupled to the system bus 1421, but may be connected by other interface and bus structures, such as a parallel port, game port or a universal serial bus (USB). In this implementation, a monitor 1491 or other type of user interface device is also connected to the system bus 1421 via an interface, for example, such as a video interface 1490.
[0090] The computer 1410 operates in a networked environment using logical connections to one or more remote computers, such as a remote computer 1480. In one implementation, remote computer 1480 represents computing device 106 of a responder, as shown in Fig. 1. The remote computer 1480 may be a personal computer, a server, a router, a network PC, a peer device or other common network node, and as a function of its particular implementation, may include many or all of the elements described above relative to the computer 1410, although only a memory storage device 1481 has been illustrated in Figure 14. The logical connections depicted in Figure 14 include a local area network (LAN) 1481 and a wide area network (WAN) 1473, but may also include other networks. Such networking environments are commonplace in offices, enterprise-wide computer networks, intranets and the Internet.
[0091] When used in a LAN networking environment, the computer 1410 is connected to the LAN 1471 through a network interface or adapter 1470. When used in a WAN networking environment, the computer 1410 typically includes a modem 1472 or other means for establishing communications over the WAN 1473, such as the Internet. The modem 1472, which may be internal or external, may be connected to the system bus 1421 via the user input interface 1460, or other appropriate mechanism. In a networked environment, program modules depicted relative to the computer 1410, or portions thereof, may be stored in the remote memory storage device. By way of example and not limitation, Figure 14 illustrates remote application programs 1485 as residing on memory device 1481. The network connections shown are exemplary and other means of establishing a communications link between the computers may be used.
Conclusion
[0092] Although the above sections describe arbitrary resolution change downsizing decoders in language specific to structural features and/or methodological operations or actions, the implementations defined in the appended claims are not necessarily limited to the specific features or actions described. Rather, the specific features and operations of the arbitrary resolution change downsizing decoder are disclosed as exemplary forms of implementing the claimed subject matter.
For example, in one implementation, the described fast and high quality transcoding systems and' methodologies, including transcoding, arbitrary sized downscaling, and rate reduction are used for MPEG-2 to MPEG-4 transcoding and MPEG-4 to WMV transcoding. For instance, the simplified closed-loop DCT- domain transcoder in Fig. 6 can be used to transcode MPEG-4 to WMV. One difference between MPEG-2 (IS-13818 Part.2) is that MPEG-2 only utilizes half pixel element (pel) MV precison and bilinear interpolation in MC; there is such a same mode (half pel bilinear) in WMV. However, MPEG-4 supports both half pel and quarter pel MV precision, as well as interpolation for quarter pel positions (different from that in WMV). To address this difference, when 1/2 pel MV is used by MPEG-4 video, then the transcoding process is the same as MPEG-2 to WMV transcoding, as described above. Additionally, when 1/4 pel MV is contained in MPEG-4 video, then error is introduced due to different interpolation methods in MC as described above with respect to Fig. 6. Additionally, the simplified 2:1 downscaling transcoder with full drift compensation described above with respect to Fig. 10 is applicable to MPEG-4 to WMV 2:1 downsized transcoding independent of change. Moreover, high quality transcoding, including the above described rate reduction and arbitrarily downscaling transcoding operations of Fig. 12 are effective for MPEG-4 to WMV transcoding.

Claims

1. A computer-implemented method comprising: receiving an encoded bitstream; and downscaling the encoded bitstream in a DCT domain decoding loop to generate downscaled data.
2. The computer- implemented method of claim 1, wherein a Cascaded Discrete Cosine Transform Domain (CDDT) decoder implements the downscaling.
3. The computer-implemented method of claim 1, wherein downscaling the encoded bitstream further comprises converting data associated with the encoded bitstream from a high-definition resolution to a standard definition resolution.
4. The computer-implemented method of claim 1 , wherein the method further comprises reducing resolution of the downscaled data in a pixel domain.
5. The computer- implemented method of claim 1, wherein the downscaling is two-stage downscaling comprising first and second stage downscaling, the first stage downscaling resulting in data reduced 2:1 or 4:3, the second stage downscaling resulting in an additional 4:3 or an all pass reduction in the data based on a target resolution reduction ratio.
6. The computer- implemented method of claim 1, wherein the downscaling is two-stage downscaling performed in an integrated transcoder, the integrated transcoder partially decoding the encoded bitstream based on a first set of compression techniques to generate an intermediate data stream, the integrated transcoder encoding the intermediate data stream according to a second set of compression techniques that are different than the first set of compression techniques.
7. The computer-implemented method of claim 6: wherein the first set of compression techniques is associated with MPEG-2 and wherein the second set of compression techniques is associated with WMV; or wherein the first set of compression techniques is associated with MPEG-2 and wherein the second set of compression techniques is associated with MPEG-4.
8. A computer-implemented method comprising: receiving an encoded bitstream; and partially decoding the encoded bitstream, the partially decoding comprising: downscaling data associated with the encoded bitstream in a DCT domain decoding loop to obtain downscaled data; and encoding the downscaled data to a target media format.
9. The computer-implemented method of claim 8, wherein a Cascaded Discrete Cosine Transform Domain (CDDT) decoder implements the downscaling.
10. The computer-implemented method of claim 8, wherein downscaling the encoded bitstream further comprises converting data associated with the encoded bitstream from a high-definition resolution to a standard definition resolution.
11. The computer- implemented method of claim 8, wherein the method further comprises, before the encoding, reducing resolution of the downscaled data in a pixel domain.
12. The computer-implemented method of claim 8, wherein the downscaling is two-stage downscaling resulting in first stage downscaling of 2:1 or 4:3, and additional second stage downscaling of 4:3 or an all pass determination based on a target downscaling ratio.
13. The computer-implemented method of claim 8, wherein an integrated transcoder implements the downscaling, the integrated transcoder partially decoding the encoded bitstream according to a first set of compression techniques to generate an intermediate data stream, the integrated transcoder encoding the intermediate data stream according to a second set of compression techniques that is different from the first set of compression techniques.
14. The computer-implemented method of claim 13 : wherein the first set of compression techniques is associated with MPEG-2 and wherein the second set of compression techniques is associated with WMV; or wherein the first set of compression techniques is associated with MPEG-2 and wherein the second set of compression techniques is associated with MPEG-4.
15. A computer-implemented method comprising: transcoding the encoded bitstream using a first set of compression techniques such that data associated with the encoded bitstream in a DCT domain decoding loop to obtain downscaled data; and encoding the downscaled data to a target media format based on the first set of compression techniques or a second set of compression techniques that is different from the first set of compression techniques.
16. The computer-implemented method of claim 15, wherein a Cascaded Discrete Cosine Transform Domain (CDDT) decoder implements the downscaling.
17. The computer-implemented method of claim 15, wherein downscaling the encoded bitstream further comprises converting data associated with the encoded bitstream from a high-definition resolution to a standard definition resolution.
18. The computer-implemented method of claim 15, wherein the method further comprises, before the encoding, reducing resolution of the downscaled data in a pixel domain outside of a DCT domain.
19. The computer-implemented method of claim 15, wherein the downscaling is two-stage downscaling resulting in first stage downscaling of 2:1 or 4:3, and additional second stage downscaling of 4:3 or an all pass determination based on a target downscaling ratio.
20. The computer- implemented method of claim 15, wherein an integrated transcoder implements the downscaling, the integrated transcoder partially decoding the encoded bitstream according to a first set of compression techniques to generate an intermediate data stream, the integrated transcoder encoding the intermediate data stream according to a second set of compression techniques that is different from the first set of compression techniques.
PCT/US2006/035939 2005-09-14 2006-09-13 Arbitrary resolution change downsizing decoder WO2007033346A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CA002621428A CA2621428A1 (en) 2005-09-14 2006-09-13 Arbitrary resolution change downsizing decoder
EP06814692A EP1915869A1 (en) 2005-09-14 2006-09-13 Arbitrary resolution change downsizing decoder
JP2008531339A JP2009508452A (en) 2005-09-14 2006-09-13 Arbitrary resolution change size reduction decoder
BRPI0616034-4A BRPI0616034A2 (en) 2005-09-14 2006-09-13 Arbitrary Resolution Change Subsampling Decoder

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US11/226,043 2005-09-14
US11/226,043 US20070058713A1 (en) 2005-09-14 2005-09-14 Arbitrary resolution change downsizing decoder

Publications (1)

Publication Number Publication Date
WO2007033346A1 true WO2007033346A1 (en) 2007-03-22

Family

ID=37855066

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2006/035939 WO2007033346A1 (en) 2005-09-14 2006-09-13 Arbitrary resolution change downsizing decoder

Country Status (8)

Country Link
US (1) US20070058713A1 (en)
EP (1) EP1915869A1 (en)
JP (1) JP2009508452A (en)
KR (1) KR20080055826A (en)
CN (1) CN101263717A (en)
BR (1) BRPI0616034A2 (en)
CA (1) CA2621428A1 (en)
WO (1) WO2007033346A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012508485A (en) * 2008-11-04 2012-04-05 アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド Software video transcoder with GPU acceleration

Families Citing this family (44)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
BRPI0810584A2 (en) * 2007-04-25 2014-10-29 Thomson Licensing INTERVIEW PREDICTION
JP5347862B2 (en) * 2008-09-29 2013-11-20 ソニー株式会社 Coefficient learning apparatus and method, image processing apparatus and method, program, and recording medium
US8514942B2 (en) * 2008-12-31 2013-08-20 Entropic Communications, Inc. Low-resolution video coding content extraction
CN102308580B (en) * 2009-02-05 2016-05-04 汤姆森特许公司 For the method and apparatus of adaptive model Video coding and decoding
US9774875B2 (en) * 2009-03-10 2017-09-26 Avago Technologies General Ip (Singapore) Pte. Ltd. Lossless and near-lossless image compression
US8687685B2 (en) 2009-04-14 2014-04-01 Qualcomm Incorporated Efficient transcoding of B-frames to P-frames
US8340188B2 (en) * 2010-01-08 2012-12-25 Research In Motion Limited Method and device for motion vector estimation in video transcoding using union of search areas
US8559519B2 (en) * 2010-01-08 2013-10-15 Blackberry Limited Method and device for video encoding using predicted residuals
US8315310B2 (en) * 2010-01-08 2012-11-20 Research In Motion Limited Method and device for motion vector prediction in video transcoding using full resolution residuals
US20110170608A1 (en) * 2010-01-08 2011-07-14 Xun Shi Method and device for video transcoding using quad-tree based mode selection
US8358698B2 (en) * 2010-01-08 2013-01-22 Research In Motion Limited Method and device for motion vector estimation in video transcoding using full-resolution residuals
US8553763B2 (en) 2010-06-10 2013-10-08 Sony Corporation Iterative computation of adaptive interpolation filter
WO2012016354A1 (en) * 2010-08-04 2012-02-09 Nxp B.V. Video player
CN103098464A (en) * 2010-08-04 2013-05-08 Nxp股份有限公司 Video decoder with down-sampler in the frequency domain
JP5709492B2 (en) * 2010-12-01 2015-04-30 三菱電機株式会社 Image coding method conversion apparatus and image coding method conversion program
US8914534B2 (en) 2011-01-05 2014-12-16 Sonic Ip, Inc. Systems and methods for adaptive bitrate streaming of media stored in matroska container files using hypertext transfer protocol
CN102118616A (en) * 2011-02-24 2011-07-06 深圳市同洲电子股份有限公司 Picture decoding method and picture decoder
US20120307889A1 (en) * 2011-06-01 2012-12-06 Sharp Laboratories Of America, Inc. Video decoder with dynamic range adjustments
US8571099B2 (en) * 2011-06-01 2013-10-29 Sharp Laboratories Of America, Inc. Decoder with dynamic range compensation
US9467708B2 (en) * 2011-08-30 2016-10-11 Sonic Ip, Inc. Selection of resolutions for seamless resolution switching of multimedia content
US8818171B2 (en) 2011-08-30 2014-08-26 Kourosh Soroushian Systems and methods for encoding alternative streams of video for playback on playback devices having predetermined display aspect ratios and network connection maximum data rates
US9955195B2 (en) 2011-08-30 2018-04-24 Divx, Llc Systems and methods for encoding and streaming video encoded using a plurality of maximum bitrate levels
KR20140016760A (en) * 2012-07-31 2014-02-10 삼성전자주식회사 Image processing apparatus and image processing method thereof
US9191457B2 (en) 2012-12-31 2015-11-17 Sonic Ip, Inc. Systems, methods, and media for controlling delivery of content
US9432614B2 (en) 2013-03-13 2016-08-30 Qualcomm Incorporated Integrated downscale in video core
KR102085270B1 (en) * 2013-08-12 2020-03-05 삼성전자 주식회사 Method for selecting resolution with minimum distortion value and devices performing the method
US9819395B2 (en) 2014-05-05 2017-11-14 Nxp B.V. Apparatus and method for wireless body communication
US10015604B2 (en) 2014-05-05 2018-07-03 Nxp B.V. Electromagnetic induction field communication
US9819075B2 (en) 2014-05-05 2017-11-14 Nxp B.V. Body communication antenna
US9812788B2 (en) 2014-11-24 2017-11-07 Nxp B.V. Electromagnetic field induction for inter-body and transverse body communication
US10014578B2 (en) 2014-05-05 2018-07-03 Nxp B.V. Body antenna system
US10009069B2 (en) 2014-05-05 2018-06-26 Nxp B.V. Wireless power delivery and data link
US9819097B2 (en) 2015-08-26 2017-11-14 Nxp B.V. Antenna system
US10320086B2 (en) 2016-05-04 2019-06-11 Nxp B.V. Near-field electromagnetic induction (NFEMI) antenna
US10148989B2 (en) 2016-06-15 2018-12-04 Divx, Llc Systems and methods for encoding video content
US10390015B2 (en) * 2016-08-26 2019-08-20 Qualcomm Incorporated Unification of parameters derivation procedures for local illumination compensation and cross-component linear model prediction
CN110620635A (en) * 2018-06-20 2019-12-27 深圳市华星光电技术有限公司 Decoding method, apparatus and readable storage medium
CN113519164A (en) 2019-03-02 2021-10-19 北京字节跳动网络技术有限公司 Limitation of the segmentation structure
EP3928524A4 (en) 2019-04-15 2022-06-22 Beijing Bytedance Network Technology Co., Ltd. Temporal prediction of parameters in non-linear adaptive loop filter
WO2020211810A1 (en) 2019-04-16 2020-10-22 Beijing Bytedance Network Technology Co., Ltd. On adaptive loop filtering for video coding
WO2020216177A1 (en) 2019-04-20 2020-10-29 Beijing Bytedance Network Technology Co., Ltd. Signaling of chroma and luma syntax elements in video coding
CN113785574B (en) 2019-05-30 2022-10-11 北京字节跳动网络技术有限公司 Adaptive loop filtering of chrominance components
WO2021052495A1 (en) 2019-09-20 2021-03-25 Beijing Bytedance Network Technology Co., Ltd. Adaptive resolution change and scalable coding for screen contents
US11765366B2 (en) 2020-05-07 2023-09-19 Blackmagic Design Pty Ltd Method for processing transform coefficients

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020126752A1 (en) * 2001-01-05 2002-09-12 Lg Electronics Inc. Video transcoding apparatus
US6452973B1 (en) * 1998-11-25 2002-09-17 Electronics And Telecommunications Research Institute System and method for converting H.261 compressed moving picture data to MPEG-1 compressed moving picture data on compression domain
US6647061B1 (en) * 2000-06-09 2003-11-11 General Instrument Corporation Video size conversion and transcoding from MPEG-2 to MPEG-4
WO2004093461A1 (en) * 2003-04-17 2004-10-28 Koninklijke Philips Electronics N.V. Video transcoding

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE9703849L (en) * 1997-03-14 1998-09-15 Ericsson Telefon Ab L M Scaling down images
JPH11275592A (en) * 1998-01-22 1999-10-08 Victor Co Of Japan Ltd Moving image code stream converter and its method
JP3821415B2 (en) * 1998-09-30 2006-09-13 日本ビクター株式会社 Moving picture format conversion apparatus and method
US6618442B1 (en) * 1998-12-29 2003-09-09 Intel Corporation Method and apparatus for transcoding digital video signals
KR20020001760A (en) * 2000-01-12 2002-01-09 요트.게.아. 롤페즈 Image data compression
GB2369952B (en) * 2001-03-10 2002-12-04 Ericsson Telefon Ab L M Transcoding of video signals
US6671322B2 (en) * 2001-05-11 2003-12-30 Mitsubishi Electric Research Laboratories, Inc. Video transcoder with spatial resolution reduction
US20030043908A1 (en) * 2001-09-05 2003-03-06 Gao Cheng Wei Bandwidth scalable video transcoder
US20050132264A1 (en) * 2003-12-15 2005-06-16 Joshi Ajit P. System and method for intelligent transcoding
TWI230547B (en) * 2004-02-04 2005-04-01 Ind Tech Res Inst Low-complexity spatial downscaling video transcoder and method thereof
US20050175099A1 (en) * 2004-02-06 2005-08-11 Nokia Corporation Transcoder and associated system, method and computer program product for low-complexity reduced resolution transcoding
US20060140274A1 (en) * 2004-12-29 2006-06-29 Mediatek Incorporation Transcoder and method used therein

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6452973B1 (en) * 1998-11-25 2002-09-17 Electronics And Telecommunications Research Institute System and method for converting H.261 compressed moving picture data to MPEG-1 compressed moving picture data on compression domain
US6647061B1 (en) * 2000-06-09 2003-11-11 General Instrument Corporation Video size conversion and transcoding from MPEG-2 to MPEG-4
US20020126752A1 (en) * 2001-01-05 2002-09-12 Lg Electronics Inc. Video transcoding apparatus
WO2004093461A1 (en) * 2003-04-17 2004-10-28 Koninklijke Philips Electronics N.V. Video transcoding

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012508485A (en) * 2008-11-04 2012-04-05 アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド Software video transcoder with GPU acceleration

Also Published As

Publication number Publication date
CN101263717A (en) 2008-09-10
JP2009508452A (en) 2009-02-26
BRPI0616034A2 (en) 2011-06-07
CA2621428A1 (en) 2007-03-22
KR20080055826A (en) 2008-06-19
US20070058713A1 (en) 2007-03-15
EP1915869A1 (en) 2008-04-30

Similar Documents

Publication Publication Date Title
EP1925163B1 (en) Efficient integrated digital video transcoding
WO2007033346A1 (en) Arbitrary resolution change downsizing decoder
JP5378791B2 (en) Method and apparatus for video encoding and decoding using adaptive interpolation
US7379496B2 (en) Multi-resolution video coding and decoding
KR101065227B1 (en) Video coding with adaptive filtering for motion compensated prediction
JP4425563B2 (en) Parameterization for fading compensation
US20060120450A1 (en) Method and apparatus for multi-layered video encoding and decoding
US20070071096A1 (en) Transcoder and transcoding method operating in a transform domain for video coding schemes possessing different transform kernels
TW201008291A (en) Video encoding by filter selection
JP2005507589A (en) Spatial expandable compression
JP2005507589A5 (en)
JP2006518568A (en) Video encoding
JP2004520771A (en) Video transcoder with drift correction
JP4382284B2 (en) Subband encoding / decoding
JP4209134B2 (en) Method and apparatus for upsampling a compressed bitstream
JP4762486B2 (en) Multi-resolution video encoding and decoding
Segall et al. Super-resolution from compressed video
De Cock et al. Efficient spatial resolution reduction transcoding for H. 264/AVC
Shen et al. MPEG-2 to WMV transcoder with adaptive error compensation and dynamic switches
Chander et al. Fast and high quality temporal transcoding architecture in the DCT domain for adaptive video content delivery
Shen et al. Complexity Scalable 2: 1 Resolution Downscaling MPEG-2 to WMV Transcoder with Adaptive Error Compensation
Qian et al. Transform domain transcoding from MPEG-2 to H. 264 with interpolation error drift compensation
Young Software CODEC algorithms for desktop videoconferencing
JP2003219430A (en) Method and closed-loop transcoder for reduced spatial resolution transcoding of compressed bitstream of sequence of frames of video signal

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 200680033538.6

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application
ENP Entry into the national phase

Ref document number: 2621428

Country of ref document: CA

WWE Wipo information: entry into national phase

Ref document number: 2006814692

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 1020087006146

Country of ref document: KR

ENP Entry into the national phase

Ref document number: 2008531339

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: PI0616034

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20080314