Title of Invention

A METHOD FOR REGION OF INTEREST CODING AND DEVICE THEREFORE

Abstract The disclosure is directed to techniques for region-of-interest (ROD coding for video telephony (VT). The disclosed techniques include adaptive skipping of non-ROI (i.e., background) areas to conserve encoding bits for allocation to the ROI.
Full Text FORM 2
THE PATENTS ACT, 1970
(39 of 1970)
&
THE PATENTS RULES, 2003
COMPLETE SPECIFICATION
(See section 10, rule 13)
“REGION-OF-INTEREST CODING WITH BACKGROUND SKIPPING FOR VIDEO TELEPHONY"
QUALCOMM Incorporated, a corporation under the laws of state Delaware of United States of America of 5775 Morehouse Drive, San Diego, California 92121-1714, United States of America
The following specification particularly describes the invention and the manner in which it is to be performed.

WO 2006/094001

2

PCT/US2006/007156

REGION-OF-INTEREST CODING WITH BACKGROUND SKIPPING FOR VIDEO TELEPHONY
[0001] This application claims the benefit of U.S. Provisional Application No. 60/658,008, filed March 1,2005.
TECHNICAL FIELD
[0002] The disclosure relates to digital video encoding and, more particularly, techniques for encoding region-of-interest (ROI) information for video telephony (VT) applications.
BACKGROUND
[0001] A number of different video encoding standards have been established for encoding digital video sequences. The Moving Picture Experts Group (MPEG), for example, has developed a number of standards including MPEG-1, MPEG-2 and MPEG-4. Other examples include the International Telecommunication Union (ITU) H.263 standard, and the emerging ITU H.264 standard. These video encoding standards generally support improved transmission efficiency of video sequences by encoding data in a compressed manner.
[0002] Video telephony (VT) permits users to share video and audio information to support applications such as videoconferencing. Exemplary video telephony standards include those defined by the Session Initiation Protocol (SP), the ITU H.323 standard, and the ITU H.324 standard. In a VT system, users may send and receive video information, only receive video information, or only send video information. A recipient generally views received video information in the form in which it is transmitted from a sender.
[0003] Preferential encoding of a selected portion of the video information has been proposed. For example, a sender may specify a region-of-interest (ROI) to be encoded with higher quality for transmission to a recipient. The sender may wish to emphasize the ROI to a remote recipient. A typical example of an ROI is a human face, although a sender may wish to focus attention on other objects within a video scene. With preferential encoding of the ROI, a recipient is able to view the ROI more clearly than non-ROI regions.

WO 2006/094001 3 PCT/US2006/007156

SUMMARY
[0004] The disclosure is directed to techniques for region-of-interest (ROI) coding for video telephony (VT). The disclosed techniques include a technique for adaptive skipping of a non-ROI area of a video frame to conserve encoding bits for allocation to the ROI. The disclosed techniques also include a technique for allocation of bits to the ROI using weighted bit allocation models at the macroblock (MB) level within the p domain. In addition, the disclosed techniques include a technique for generation of a quality metric for ROI video, which jointly considers a user's degree of interest in the ROI, ROI video fidelity, and ROI perceptual quality in evaluating the quality of an encoded video sequence.
[0005] The non-ROI skipping technique serves to enhance image quality of the ROI without significantly degrading the image quality of the non-ROI region. In particular, the non-ROI skipping technique can conserve non-ROI bits to provide additional bits for allocation to the ROI. The quality metric may be applied to bias the bit allocation technique to enhance subjective image quality in the encoded video scene. Bit allocation in the p domain can provide more accurate and consistent control of ROI quantization for enhanced visual quality. The non-ROI skipping, p domain bit allocation, and quahty metric can be used jointly or separately to achieve effective control of ROI and non-ROI encoding.
[0006] In one embodiment, the disclosure provides a method comprising generating a quality metric for an encoded video frame containing a region of interest based on video fidelity of a preceding frame, perceptual quahty of the preceding frame, and user preference in the region of interest.
[0007] In another embodiment, the disclosure provides a device comprising a video encoder that encodes a video frame containing a region of interest, and a quality metric calculator that generates a quality metric for the video frame based on video fidelity of a preceding frame, perceptual quahty of a preceding frame, and user preference in the region of interest.
[0008] In a further embodiment, the disclosure provides a method comprising obtaining a definition of a region of interest within a video frame, obtaining a frame budget defining a number of encoding bits available for the frame, and allocating rho domain values to macroblocks within the frame based on the frame budget and a weighting

WO 2006/094001 4 PCT/US2006/007156
between macroblocks within the region of interest and macroblocks within areas of the video frame that are not within the region of interest.
[0009] In an additional embodiment, the disclosure provides a device comprising a region of interest mapper that generates a definition of a region of interest within a video frame, a frame-level rate controller that generates a frame budget defining a number of encoding bits available for the frame, and a bit allocation module that allocates rho domain values to macroblocks within the frame based on the frame budget and a weighting between macroblocks within the region of interest and macroblocks within areas of the video frame that are not within the region of interest.
[0010] In another embodiment, the disclosure provides a method comprising grouping successive frames into a frame unit, encoding regions of interest within the respective frames in the frame unit, and skipping encoding of areas that are not within a respective region of interest for at least one of the frames in the frame unit.
[0011] In a further embodiment, the disclosure provides a device comprising a region-of-interest mapper that generates a definition of regions of interests within video frames, a video encoder that encodes the video frames, and a skipping module that groups successive frames into a frame unit, directs the video encoder to encode regions of interest within the respective frames in the frame unit, and directs the video encoder to skip encoding of areas that are not within a respective region of interest for at least one of the frames in the frame unit.
[0012] The techniques described herein may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the techniques may be realized in part by a computer readable medium comprising program code containing instructions that, when executed, performs one or more of the methods described herein. [0013] The details of one or more embodiments are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description and drawings,, and from the claims.
BRIEF DESCRIPTION OF DRAWINGS
[0003] FIG. 1 is a block diagram illustrating a video encoding and decoding system incorporating ROI-enabled video encoder-decoders (CODECs).
[0004] FIG. 2 is a diagram illustrating definition of an ROI within a video scene presented on a display associated with a wireless communication device.

WO 2006/094001 5 PCT/US2006/007156
[0005] FIGS. 3A and 3B are diagrams illustrating ROI and non-ROI areas of the video
scene depicted in FIG 2.
[0006] FIG 4 is a block diagram illustrating a video communication device
incorporating an ROI-enabled encoder with a non-ROI skipping module, an ROI p
domain bit allocation module, and an ROI weights calculator.
[0007] FIG 5 is a block diagram illustrating an ROI quality metric calculator.
[0008] FIG 6 is a diagram further illustrating a wireless communication device
incorporating an ROI user preference input device for ROI quality metric calculation.
[0009] FIG. 7 is a block diagram illustrating use of an ROI quality metric calculator to
analyze a video sequence for optimization of coding parameters applied by a video
encoder.
[0010] FIG. 8 is a block diagram illustrating use of an ROI quality metric calculator to
analyze encoded video for adjustment of coding parameters applied by a video encoder.
[0011] FIG 9 is a flow diagram illustrating ROI quality metric calculation for encoded
video.
[0012] FIG 10 is a flow diagram illustrating ROI quality metric calculation for a video
sequence.
[0013] FIG. 11 is a flow diagram illustrating ROI p domain bit allocation.
[0014] FIG 12 is a graph comparing overall perceptual quality of encoding techniques
using weighted bit allocation models and an optimal solution.
[0015] FIG 13 is a flow diagram illustrating a technique for non-ROI skipping.
[0016] FIG. 14 is a diagram illustrating grouping of successive frames into frame units
to support non-ROI skipping.
[0017] FIG. 15 is a diagram illustrating encoding of successive ROI areas with a
common non-ROI area to support non-ROI skipping.
[0018] FIG. 16 is a graph comparing overall perceptual quality of ROI encoding
techniques using standard bit allocation, weighted bit allocation, and background
skipping with a user preference factor a = 0.9.
[0019] FIG 17 is a graph comparing overall video fidelity of ROI encoding techniques
using standard bit allocation, weighted bit allocation, and background skipping with a
user preference factor a = 0.9.

WO 2006/094001 6 PCT/US2006/007156
[0020] FIG. 18 is a graph comparing ROI video fidelity of ROI encoding techniques
using standard bit allocation, weighted bit allocation, and background skipping with a
user preference factor a = 0.9.
[0021] FIG. 19 is a graph comparing non-ROI video fidelity of ROI encoding
techniques using standard bit allocation, weighted bit allocation, and background
skipping with a user preference factor a = 0.9.
[0022] FIG 20 is a graph comparing overall perceptual quality of ROI encoding
techniques using standard bit allocation, weighted bit allocation, and background
skipping with a user preference factor a = 0.7.
[0023] FIG 21 is a graph comparing overall video fidelity of ROI encoding techniques
using standard bit allocation, weighted bit allocation, and background skipping with a
user preference factor a = 0.7.
[0024] FIG 22 is a graph comparing overall perceptual quality of ROI encoding
techniques using standard bit allocation, weighted bit allocation, and background
skipping with a user preference factor a = 0.5.
[0025] FIG. 23 is a graph comparing overall video fidelity of ROI encoding techniques
using standard bit allocation, weighted bit allocation, and background skipping with a
user preference factor a = 0.5.
[0026] FIG. 24 is a graph comparing perceptual quality of ROI encoding techniques
using standard frame skipping and non-ROI skipping at various user preference factor
values.
[0027] FIG. 25 is a graph comparing perceptual quality of ROI encoding techniques
when non-ROI skipping is on and off.
[0028] FIG. 26 is a graph illustrating distortion caused by non-ROI skipping over an
exemplary video sequence.
[0029] FIG. 27 is a graph comparing overall perceptual quality of ROI encoding
techniques using non-ROI skipping, no non-ROI skipping, and adaptive non-ROI
skipping.
[0030] FIG. 28 is a graph comparing overall perceptual quality of ROI encoding
techniques using various bit allocation techniques for an exemplary video sequence over
a range of encoding rates.

WO 2006/094001 7 PCT/US2006/007156
[0031] FIG. 29 is a graph comparing overall perceptual quality of ROI encoding
techniques using various bit allocation techniques at an encoding rate of 40 kilobits per
second (kps).
[0032] FIG 30 is a graph comparing overall video fidelity of ROI encoding techniques
using various bit allocation techniques at an encoding rate of 40 kilobits per second
(kps).
[0033] FIG. 31 is a graph comparing ROI video fidelity of ROI encoding techniques
using various bit allocation techniques at an encoding rate of 40 kilobits per second
(kps).
[0034] FIG 32 is a graph comparing non-ROI video fidelity of ROI encoding
techniques using various bit allocation techniques at an encoding rate of 40 kilobits per
second (kps).
[0035] FIG. 33 is a graph comparing overall perceptual quality of ROI encoding
techniques using various bit allocation techniques for another exemplary video sequence
over a range of encoding rates.
DETAILED DESCRIPTION
[0036] FIG. 1 is a block diagram illustrating a video encoding and decoding system 10 incorporating ROI-enabled video encoder-decoders (CODECs). As shown in FIG. 1, system 10 includes a first video communication device 12 and a second video communication device 14. Communication devices 12, 14 are connected by a transmission channel 16. Transmission channel 16 may be a wired or wireless communication medium. System 10 supports two-way video transmission between video communication devices 12, 14 for video telephony. Devices 12, 14 may operate in a substantially symmetrical manner. In some embodiments, however, one or both video communication devices 12, 14 may be configured for only one-way communication to support ROI-enabled video streaming.
[0037] One or both of video communication devices 12,14 may be configured to apply techniques for ROI coding for video telephony (VT), as described herein. The ROI coding techniques including adaptive skipping of a non-ROI region to conserve encoding bits for allocation to the ROI, allocation of bits to the ROI using weighted bit allocation models at the video block level, e.g., macroblock (MB), level within the p domain, and generation of an ROI video quality metric for ROI video, which jointly

WO 2006/094001 8 PCT/US2006/007156
considers a user's degree of interest in the ROI, ROI video fidelity, and ROI perceptual quality in evaluating the quality of an encoded video sequence. The p (rho) parameter represents the number of non-zero AC coefficients in a video block, such as an MB. Rate control in the p domain tends to be more accurate than rate control in the QP domain. The non-ROI skipping, p domain bit allocation, and quality metric can be used jointly or separately to achieve effective control of ROI and non-ROI encoding. [0038] A macroblock is a video block that forms part of a frame. The size of the MB may be 16 by 16 pixels. However, other MB sizes are possible. Macroblocks will be described herein for purposes of illustration, with the understanding that macroblocks or other video blocks may have a variety of different sizes.
[0039] For two-way applications, reciprocal encoding, decoding, multiplexing (MUX) and demultiplexing (DEMUX) components may be provided on opposite ends of channel 16. In the example of FIG. 1, video communication device 12 includes MUX/DEMUX component 18, ROI-enabled video CODEC 20 and audio CODEC 22. Similarly, video communication device 14 includes MUX/DEMUX component 26, ROI-enabled video CODEC 28 and audio CODEC 30.
[0040] System 10 may support video telephony according to the Session Initiated Protocol (SIP), ITU H.323 standard, ITU H.324 standard, or other standards. Each video CODEC 20, 28 generates encoded video data according to a video compression standard, such as MPEG-2, MPEG-4, ITU H.263, or ITU H.264. As further shown in FIG. 1, video CODECs 20, 28 maybe integrated with respective audio CODECs 22, 30, and include appropriate MUX/DEMUX components 18, 26 to handle audio and video portions of a data stream. The audio portion may carry voice or other audio content. The MUX-DEMUX units 18, 26 may conform to the ITU H.223 multiplexer protocol, or other protocols such as the user datagram protocol (UDP).
[0041] Each ROI-enabled video CODEC 20, 28 may be capable of processing ROI information provided locally by a local user of the respective video communication device 12, 14 or ROI information provided remotely from a remote user of the other video communication device 12,14. For example, a local user of video communication device 12 may specify an ROI in "near-end" video generated locally by video communication device 12 to emphasize a region of the transmitted video to a remote user of device 14. Conversely, a local user of video communication device 12 may specify an ROI in "far-end" video generated remotely by video communication device

WO 2006/094001 9 PCT/US2006/007156

14, and communicate the ROI to the remote video communication device. In this case, the user of video communication device 12 remotely controls preferential encoding of the ROI by video communication device 14, e.g., to more clearly view an ROI in the video received from video communication device 14.
[0042] Video communication devices 12, 14 may be implemented as wireless mobile terminals or wired terminals equipped for video streaming, video telephony, or both. To that end, video communication devices 12, 14 may further include appropriate wireless transmitter, receiver, modem, and processing electronics to support wireless communication. Examples of wireless mobile terminals include mobile radio telephones, mobile personal digital assistants (PDAs), mobile computers, or other mobile devices equipped with wireless communication capabilities and video encoding and/or decoding capabilities. Examples of wired terminals include desktop computers, video telephones, network appliances, set-top boxes, interactive televisions, or the like. Either video communication device 12, 14 may be configured to send video information, receive video information, or send and receive video information.
[0043] For video telephony applications, it is generally desirable that devices 12 support both video send and video receive capabilities. However, streaming video applications are also contemplated. In video telephony, and particularly mobile video telephony by wireless communication, bandwidth is a significant concern as extremely low bitrates are often required. In particular, communication channel 16 may have limited bandwidth, making the effective real-time transmission of quality video sequences over channel 16 very challenging. Communication channel 16, for example, may be a wireless communication link with limited bandwidth due to physical constraints in channel 16, or possibly quality-of-service (QoS) limitations or bandwidth allocation constraints imposed by the provider of communication channel 16.
[0044] Accordingly, selective allocation of additional encoding bits to an ROI, stronger error protection, or other preferential encoding steps, can improve the image quality of a portion of the video while maintaining overall encoding efficiency. For preferential encoding, additional bits may be allocated to the ROI, while a reduced number of bits may be allocated to the non-ROI regions, such as the background in a video scene. The non-ROI areas will be referred to as "background" areas, although a non-ROI area more generally encompasses any area of a video scene that does not form part of the ROI.

WO 2006/094001 10 PCT/US2006/007156
Accordingly, the terms non-ROI and background may be used interchangeably throughout this disclosure to refer to areas that are not within the specified ROI.
[0045] In general, system 10 employs techniques for region-of-interest (ROI) processing for video telephony (VT) applications. However, such techniques also may be applicable to video streaming applications, as mentioned above. For purposes of illustration, it will be assumed that each video communication device 12, 14 is capable of operating as both a sender and a recipient of video information, and thereby operating as a full participant in a VT session. For video information transmitted from video communication device 12 to video communication device 14, video communication device 12 is the sender device and video communication device 14 is the recipient device. Conversely, for video information transmitted from video communication device 14 to video communication device 12, video communication device 12 is the recipient device and video communication device 14 is the sender device. The techniques described herein may also be applicable to devices that only send or only receive such video. When discussing video information to be encoded and transmitted by a local video communication device 12,14, the video information may be referred to as "near-end" video, as mentioned above. When discussing video information to be encoded by and received from a remote video communication device 12, 14, the video information may be referred to as "far-end" video.
[0046] According to the disclosed techniques, when operating as a recipient device, video communication device 12 or 14 defines ROI information for far-end video information that is received from a sender device. Again, video information that is received from a sender device will be referred to as "far-end" video information in the sense that it is received from the other (sender) device situated at the far end of the communication channel. Likewise, ROI information defined for video information that is received from a sender device will be referred to as "far-end" ROI information. Far-end ROI generally refers to a region within the far-end video that most interests a receiver of the far-end video. The recipient device decodes the far-end video information and presents the decoded far-end video to a user via a display device. The user selects an ROI within a video scene presented by the far-end video. Alternatively, the ROI may be automatically defined.
[0047] The recipient device generates far-end ROI information based on the ROI selected by the user at the recipient device, and sends the far-end ROI information to the

WO 2006/094001 11 PCT/US2006/007156

sender device so that the sender device can use such information. The far-end ROI information may take the form of an ROI macroblock (MB) map defining the ROI in terms of the MBs that reside within the ROI. The ROI MB map may flag MBs that are within the ROI with a 1, and MBs outside the ROI with a 0, to readily identify MBs included in (1) and excluded from (0) the ROI.
[0048] Using the far-end ROI information transmitted by the recipient device, the sender device applies preferential encoding to a corresponding ROI within the video scene. In particular, additional encoding bits may be allocated to the ROI, while a reduced amount of encoding bits may be allocated to non-ROI regions, thereby improving image quality of the ROI. In this manner, the recipient device is able to remotely control ROI encoding of far-end video information by the sender device. [0049] The preferential encoding applies higher quality encoding to the ROI area than to non-ROI areas of the video scene, e.g., by preferential bit allocation or preferential quantization in the ROI area. The preferentially encoded ROI permits the user of the recipient device to view an object or region more clearly. For example, the user of the recipient device may wish to view a face or some other object more clearly than background regions of a video scene.
[0050] When operating as a sender device, video communication device 12 or 14 may also define ROI information for video information that is transmitted by the sender device. Again, video information that is generated in the sender device will be referred to as "near-end" video in the sense that it is generated at the near end of the communication channel. ROI information generated by the sender device will be referred to as "near-end" ROI information.
[0051] Near-end ROI generally refers to a region of the near-end video that a sender wants to emphasize to a receiver. Hence, an ROI may be specified by a recipient device user as far-end ROI information, or by a sender device user as near-end ROI information. The sender device presents the near-end video to a user via a display device. The user associated with the sender device selects an ROI within a video scene presented by the near-end video. The sender device encodes the near-end video using the user-selected ROI such that the ROI in the near-end video is preferentially encoded, e.g., with higher quality encoding, relative to non-ROI areas.
[0052] The near-end ROI selected or defined by a local user at the sender device allows a user of the sender device to emphasize regions or objects within the video scene, and

WO 2006/094001 12 PCT/US2006/007156
thereby direct such regions or objects to the attention of the recipient device user. Notably, the near-end ROI selected by the sender device user need not be transmitted to the recipient device. Instead, the sender device uses the selected near-end ROI information to locally encode the near-end video before it is transmitted to the recipient device. In some embodiments, however, the sender device may send ROI information to the recipient device to permit application of preferential decoding techniques, such as higher quality error correction or post-processing.
[0053] If ROI information is provided by both the sender device and the recipient device, the sender device applies the received far-end ROI information from the recipient device or the locally generated near-end ROI information to encode the near-end video. ROI conflicts may arise between the near-end and far-end ROI selections provided by the sender device and recipient device. Such conflicts may require resolution, such as active resolution by a local user or resolution according to specified access rights and levels. In either case, the sender device preferentially encodes the ROI based on near-end ROI information provided locally by the sender device or remotely by the recipient device.
[0054] Given an ROI specified by either a local user or a remote user, this disclosure generally focuses on techniques for ROI encoding. In particular, this disclosure addresses the manner in which an ROI is preferentially encoded, in terms of bit allocation between ROI and non-ROI areas within a video scene. An ROI video quality metric may be applied to bias a weighted bit allocation between ROI and non-ROI areas. The video quality metric takes into account a user's degree of preference, i.e., interest in the ROI, ROI video fidelity, and ROI perceptual quality in evaluating the quality of an encoded video, sequence. The weighted bit allocation is applied within the p domain. In addition, a non-ROI, or "background," skipping algorithm may be applied to conserve encoding bits for allocation to the ROI.
[0055] FIG 2 is a diagram illustrating definition of an ROI within a video scene 32 presented on a display 34 associated with a wireless communication device 36. In the example of FIG. 2, the ROI is depicted as either a rectangular ROI 38 or a non-rectangular ROI 40. Non-rectangular ROI 40 may have a rounded or irregular shape. In each case, ROI 38 or ROI 40 contains the face 42 of a person presented in video scene 32. FIGS. 3A and 3B are diagrams illustrating ROI 38 and non-ROI area 43 of the

WO 2006/094001 13 PCT/US2006/007156
video scene 32 depicted in FIG. 2. The non-ROI area 43, i.e., the background, is highlighted by shading in FIG 3B.
[0056] ROI 38 or 40 may be defined manually by a user, automatically by device 36, or using a combination of manual ROI description by a user and automatic ROI definition by device 36. Rectangular ROI 38 may be selected by a user. Non-rectangular ROI 40 may be drawn by a user, e.g., using a stylus and a touchscreen, or selected automatically by device 36 using any of a variety of object detection or segmentation techniques. For VT applications, ROI 38 or 40 may encompass a portion of video scene 32 that contains the face 42 of a participant in a videoconference. The size, shape and position of ROI 38 or 40 may be fixed or adjustable, and may be defined, described or adjusted in a variety of ways.
[0057] ROI 38 or 40 permits a video sender to emphasize individual objects within a transmitted video scene 32, such as the face 42 of a person. Conversely, ROI 38 or 40 permits a video recipient to more clearly view desired objects within a received video scene 32. In either case, face 42 within ROI 38 or 40 is encoded with higher image quality relative to non-ROI areas such as background regions of video scene 32. ha this way, the user is able to more clearly view facial expressions, Up movement, eye movement, and the like.
[0058] ROI 38 or 40 may be used, however, to specify objects other than the face. Generally speaking, the ROI in VT applications can be very subjective and may differ from user to user. The desired ROI also depends on how VT is used. In some cases, VT may be used to view and evaluate objects, in contrast to videoconferencing. For example, a user may wish to focus on a section of a whiteboard containing equations or drawings, rather than a presenter's face, particularly when the presenting is facing away from the camera and toward the whiteboard. In some cases, a video scene may include two or more ROI's, which are designated for preferential encoding. [0059] FIG. 4 is a block diagram illustrating an ROI-enabled video encoding system 44 for use in a video communication device 12. As shown in FIG 4, system 44 includes ROI weights calculator 46, ROI p domain bit allocation module 48, non-ROI (i.e., background) skipping module 50, ROI macroblock (MB) mapper 52, frame-level rate controller 54, p-to-quantization parameter (QP) mapper 56, video encoder 58, and distortion analyzer 60. In FIG 4, MUX-DEMUX and audio components are omitted for ease of illustration.

WO 2006/094001 14 PCT/US2006/007156
[0060] The various components depicted in FIG. 4 may be formed in a variety of ways, as discrete functional modules or as a monolithic module that encompasses the functionality ascribed to each module. In any event, the various components of video encoding system 44 may be realized in hardware, software, firmware, or a combination thereof. For example, such components may operate as software processes executing on one or more microprocessors or digital signal processors (DSPs), one or more application specific integrated circuits (ASICs), one or more field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuitry.
[0061] In the example of FIG. 4, ROI weights calculator 46 receives user preference factor a entered by a local user of video communication device 12 or a remote user of video communication device 14. The user preference a is a perceptual importance factor for the ROI, which expresses the importance of visual quality of the ROI form the perspective of the actual user. User preference a quantifies the degree to which a user values visual quality within the ROI. If the user strongly values ROI visual quality, a will be higher. If the visual quality of the ROI is less important, a will be lower. Based on preference a, ROI weights calculator 46 generates a set of weights w,- that are applied to ROI p domain bit allocation module 48 to bias the weighted bit allocation between non-ROI and ROI areas of a video frame being encoded by video encoder 58. The weights wt may be designated for individual video blocks, such as macroblocks (MBs), within a video frame. ROI weights calculator 46 receives an ROI MB map from ROI MB mapper 52, and assigns respective weights w,- to ROI and non-ROI MBs identified by ROI MB mapper 52. Macroblocks with higher weights wt will receive a higher number of coding bits.
[0062] The p domain bit allocation module 48 receives the weights input w,- from ROI weights calculator 46, a skipping indication (SKIP ON/OFF) from non-ROI background skipping module 50, an ROI MB map from ROI MB mapper 52, a rate budget RBUDGET from frame-level rate controller 54, and a standard deviation o for the encoded MBs from video encoder 58. The standard deviation a may be the standard deviation of the actual residue obtained after motion estimation, and can be the stored residue statistics from previous frames. The ROI MB map provided by ROI MB mapper 52 identifies the MBs, within a given video frame, that fall within the specified ROI. Using the ROI MB map, the p domain bit allocation module 48 distinguishes ROI MBs from non-ROI MBs for purposes of preferential bit allocation to the ROI MBs, i.e., using the weights w{

WO 2006/094001 15 PCT/US2006/007156
provided by ROI weights calculator 46. Bit allocation module 48 generates a p parameter for each MB. The p parameter represents the number of non-zero AC coefficients in an MB. Rate control in the p domain tends to be more accurate than rate control in the QP domain.
[0063] For purposes of this disclosure, it is assumed that a suitable process for generation of the ROI MB map is available. For example, the ROI mapping process may be based on manual input from a user defining the ROI, or automatic definition or detection of the ROI, e.g., using conventional techniques such as face detection, face segmentation, and target tracking with acceptable accuracy. In this disclosure, for purposes of illustration, head or head-and-shoulder video sequences are considered, although the techniques described herein may be applicable to other types of video sequences containing a variety of objects in addition, or as an alternative, to persons. [0064] Frame-level rate controller 54 generates an allocation of bits to individual frames within a video sequence. In particular, frame-level rate controller 54 generates a value RBUDGET that indicates the number of bits available for encoding all of the MBs within the present frame, i.e., both ROI and non-ROI MBs. As further shown in FIG. 4, p domain bit allocation module 48 receives a skip indication (SKIP ON/OFF) from non-ROI background skipping module 50, which indicates whether the background in the present frame will be encoded or skipped. If the background will be skipped, then p domain bit allocation module 48 can, in effect, recapture the bits that would otherwise have been allocated to the non-ROI, and reallocate them to the pool of bits available to encode the ROI. Hence, if skipping is ON in a particular frame, p domain bit allocation module 48 has more bits within RBUDGET to allocate to the ROI. If the background is skipped in a particular frame, background from a previously encoded frame may be substituted in its place. Alternatively, the skipped background may be produced by interpolation.
[0065] Using the weights wt, ROI MB map, RBUDGET, SKIP ON/OFF indication, and standard deviation a, p domain bit allocation module 48 generates a p domain output indicating the p budget for each MB. The p domain output is applied to p-to-QP mapper 56, which maps the p value to a corresponding QP value for each MB. Using the QP values for the MBs within the frame, video encoder 58 encodes input video to produce encoded video. In addition, skipping module 50 provides a skip indication (SKIP ON/OFF) to video encoder 58 to direct the video encoder to group successive frames

WO 2006/094001 16 PCT/US2006/007156
into a frame unit, encode ROI areas of the frames, and skip encoding of non-ROI areas for one of the frames within the frame unit. Skipping may be adaptive in the sense that skipping module 50 may direct video encoder 58 to skip encoding of the non-ROI areas for one of the frames in the frame unit if a distortion value associated with a preceding frame unit is less than a threshold value. In this manner, skipping module 50 may apply adaptive skipping based on the level of distortion in order to maintain visual quality.
[0066] The input video may be obtained from a video capture device, such as a video camera integrated with, or operably coupled to, video communication device 12. In some embodiments, for example, the video capture device may be integrated with a mobile telephone to form a so-called camera phone or video phone. In this manner, video capture device 40 may support mobile VT applications. The video may be presented both locally on video communication device 12 and, upon transmission, on video communication device 14 via a display device, such as a liquid crystal display (LCD), a plasma screen, or the like, which may be integrated with, or operably coupled to, video communication device 12 or 14.
[0067] Distortion analyzer 60 analyzes the encoded video versus the original input video. For example, distortion analyzer 60 compares an original input video frame F to a reconstructed video frame F'. Distortion analyzer 60 generates a distortion value DNONROI-SKIP for application to non-ROI background skipping module 50. The distortion value DNONROI_SKIP indicates whether the non-ROI area of the next video frame should be skipped or not. Accordingly, for adaptive non-ROI skipping in a current frame, non-ROI skipping module 50 may generally rely on distortion information relating to a preceding frame, or frame unit containing two or more frames.
[0068] If the distortion value DNONROI_SKIP exceeds a desired threshold, non-ROI background skipping module 50 indicates that the non-ROI in the next frame should not be skipped. In this case, the ROI and non-ROI areas are both encoded. If the distortion value is less than the desired threshold, however, the non-ROI area can be skipped without an undue level of distortion. In this case, the non-ROI area encoded for the previous frame is used in the present frame. As will be described, non-ROI skipping module 50 may group successive frames into frame units and direct video encoder 58 to skip encoding of the non-ROI for one of the frames, depending on the distortion value

WO 2006/094001 17 PCT/US2006/007156
DNONROI SKIP for a preceding fame unit, i.e., a frame unit containing frames that precede the frames presently being encoded.
[0069] FIG. 5 is a block diagram illustrating an ROI quality metric calculator 61, in accordance with another embodiment of this disclosure. ROI weights calculator 46 of FIG 4 may form part of ROI quality metric calculator 61. Accordingly, one product of ROI quality metric calculator 46 may be an set of weights wt, which may be based on user preference factor a, as well video fidelity, spatial quality, and/or temporal quality values. As shown in FIG 5, ROI quality metric calculator 61 receives user preference value a and one or more video distortion values. The video distortion values may be divided into ROI values and non-ROI values, and may include video fidelity values DRF, DNF, spatial quality values DRS, DNS, and temporal quality values DRT, DNT- DRF represents the video fidelity within the ROI, while DNF represents the video fidelity within the non-ROI region. DRS represents the spatial quality within the ROI area, while DNS represents the spatial quality within the non-ROI area. DRT represents temporal quality within the ROI area, while DNT represents temporal quality within the non-ROI area. The ROI quality metric jointly considers the users' interest, video fidelity and perceptual quality (spatial, temporal or both) in evaluating the quality of an encoded video sequence. In some embodiments, the metric may be used to bias the bit allocation algorithm applied by p domain bit allocation module 48 to achieve better subjective visual quality.
[0070] Although ROI video coding has been widely studied, the quality measurement for ROI video has not been addressed in sufficient detail. Most quality measurement techniques use peak signal to noise ratio (PSNR) as a distortion measurement to evaluate the quality of ROI and non-ROI portions of a video frame. An ROI video quality metric is useful not only for analysis purposes, but as an input to bias weighted bit allocation techniques (e.g., as applied by bit allocation module 48 of FIG. 4) toward a subjective visual favorable solution. In general, as discussed above, the evaluation of an ROI video quality considers at least three aspects: users' ROI visual quality interest or preference a, video fidelity of the reconstructed video data, and perceptual quality (spatial, temporal or both) of the reconstructed video data.
[0071] The user's preference a directly determines the classification of a video frame into ROI and non-ROI parts and their associated perceptual importance factors. In video telephony applications, a speaker's face region is a typical ROI because the

WO 2006/094001 18 PCT/US2006/007156

human being's facial expression is very complicated and small variation can convey a large quantity of information. For the video fidelity factor, PSNR is a good measurement, which indicates the total amount of distortion of the reconstructed video frame compared to the original frame. The reconstructed frame is produced by decoding the encoded video frame, whereas the original frame is the video frame prior to encoding.
[0072] In many cases, video fidelity will be the most important consideration for video coding, where any improvement might cause better subjective visual quality. However, this is not always the case, which is why perceptual quality factors should also be taken into account in some cases. The perceptual quality considers both spatial errors and temporal errors. Spatial errors may include the presence of blocking (i.e., blockiness), ringing artifacts, or both. Temporal errors may include the presence of temporal flicker, i.e., when the visual qualities of the video frame change non-uniformly along the temporal axis. Temporal errors can result in choppy motion in a video sequence, which is undesirable.
[0073] DR and DNR denote the normalized per pixel distortion of the ROI and non-
ROI, and a the ROI perceptual importance factor. If it is assumed that the relationship among the aspects mentioned above can be simplified into a linear function in video quality evaluation, then the overall distortion of the video sequence can be represented as:



(1)
where fi and fi are the fth original and reconstructed frames within the M frames in the video sequence, b and y are weighting factors, DR and DNR are the total distortion for ROI and non-ROI, DRF, DRS, and DRT are the normalized errors of ROI in fidelity, spatial perceptual quality and temporal perceptual quality, and DNF, DNS and DNT are

WO 2006/094001 19 PCT/US2006/007156
their counterparts for the non-ROI area. The values a, b and y should be assigned real values between 0 and 1. The resulting quality metric can be used as a cost function to formulate an optimization problem for the rho parameter in weighted bit allocation, or used for other problems in ROI processing.
[0074] In low-bitrate video applications, such as wireless video telephony, blocking (i.e., blockiness) artifacts are a major concern of spatial perceptual quality. This kind of artifact is caused by quantization where most of the high-frequency coefficients are removed, i.e., set to zero. The resulting effect is that the smoothed image blocks make the block boundaries quite pronounced. At the extreme low bit-rate cases, only DC coefficients will be coded, which makes the decoded image piece-wise constant blocks. In this disclosure, the ROI spatial quality value DRS (similar for DNS ) is defined as the normalized blockiness distortion, which may be represented as:



where boundaries between blocks are checked to see if perceivable discontinuities exists. A suitable discontinuity detection approach, which checks the sum of the mean squared difference of intensity slope across the block boundaries, is described in S. Minami and A. Zakhor, "An optimization approach for removing blocking effects in transform coding", IEEE Trans. Circuits Systems for Video Technology, Vol. 5, No. 2, pp. 74-82, April 1995, the entire content of which is incorporated herein by reference. The assumption of this approach is that the slopes on both sides of a block boundary should be identical and an abrupt change in slope is probably due to quantization. [0075] In equation (1), the DRT (or Dm) value is defined as an assigned score in the
range of [0, 1] based on the variance of D^ (or DNS ) for all the frames in the video
sequence. In this manner, the terms on video fidelity, spatial perceptual quality, and temporal perceptual quality are normalized and can be bridged by weighting parameters a, J3 and y to form a controllable video quality measurement. The selection of these weighting parameters is up to users based on their requirements and expectations. Again, this measurement may be helpful as an input to bias the bit allocation process toward favoring subjective perception. Consequently, the user may achieve a more visually pleasing result in ROI coding.
[0076] FIG. 6 is a diagram illustrating a wireless communication device 36 incorporating an ROI user preference input device 62 for ROI quality metric calculation.

WO 2006/094001 20 PCT/US2006/007156

In FIG 6, wireless communication device 36 generally conforms to FIG. 2, but further incorporates input device 62 to capture user preference a, which specifies the relative importance assigned to the ROI and non-ROI portions of video scene 32. In the example of FIG. 6, input device 62 is shown in the form of a slider bar with a slider 64 that can be moved along the length of the slider bar to indicate the degree of user preference a.
[0077] Using input device 62, the user can selectively adjust the user preference a to influence ROI bit allocation on a dynamic basis, e.g., by quality metric calculator 61. As the user preference a changes, the bit allocation between ROI and non-ROI portions of the video frame may change. Although a horizontal slider bar is depicted in FIG. 6, input device 62 may be realized by any of a variety of equivalent input media, such as a vertical slider bar, buttons, dials, drop-down percentage menus, and the like. Such input media may be manipulated via a touchscreen, or any of a variety of hard keys, soft keys, pointing devices, or the like.
[0078] FIG. 7 is a block diagram illustrating use of an ROI quality metric calculator 61 to analyze a video sequence for optimization of coding parameters applied by an ROI-enabled video encoder 63. As shown in FIG. 7, ROI quality metric calculator 61 is applied to analyze distortion values for an incoming video sequence before the video sequence is encoded by an ROI-enabled video encoder 63. Hence, ROI quality metric calculator analyzes distortion values, e.g., as described with reference to FIG. 5, for a video bitstream. Based on the distortion values and a user preference value a, ROI quality metric calculator generates a set of optimized parameters for use by video encoder 63 in encoding the incoming video sequence. The optimized parameters may include weights used by a bit allocation module to allocate encoding bits between ROI and non-ROI areas of a video frame, or values for other parameters used in bit allocation, such as weighting factors p and y. In a sense, FIG. 7 represents an open-loop implementation in which ROI quality metric calculator 61 analyzes the incoming video stream prior to encoding, but does not analyze the encoded video. The quality metric results in generation of optimal coding parameters for use by the encoder 63. [0079] FIG. 8 is a block diagram illustrating use of an ROI quality metric calculator 61 to analyze encoded video for adjustment of coding parameters applied by an ROI-enabled video encoder 63. In the example of FIG 8, ROI quality metric calculator 61 analyzes distortion values associated with encoded video, as well as a user preference

WO 2006/094001 21 PCT/US2006/007156
value a, to produce adjustments to coding parameters used by ROI-enabled video encoder 63. Hence, ROI quality metric calculator 61 analyzes the video after it has been encoded by ROI-enabled video encoder 63, and produces adjustments on a closed loop basis, e.g., to improve the performance of the video encoder and the quality of the encoded video. The adjustments to the coding parameters may include adjustments to weights used by a bit allocation module to allocate encoding bits between ROI and non-ROI areas of a video frame, or values for other parameters used in bit allocation, such as weighting factors b and y. In the example of FIG. 8, the quality metric is used to interatively encode and evaluate quality in loop until comparison of the quality metric to a threhsold value is satisifed. In each iteration, the quality metric calculator 61 sends an improved set of coding parameters. Eventually, the iteration stops due to either satisfaction of a quality metric threshold or convergence of results.
[0080] FIG. 9 is a flow diagram illustrating ROI quality metric calculation. As shown in FIG. 9, given an applicable ROI MB map, ROI quality metric calculator 46 obtains the ROI user preference a (68) and encodes the ROI and non-ROI portions of the video frame (70). Upon reconstruction of the encoded video frame, distortion analyzer 60 analyzes the previously encoded video frame and original video frame to determine the video fidelity DRF and DNF of the ROI and non-ROI portions, respectively, of the preceding video frame. In addition, distortion analyzer 60 generates ROI and non-ROI perceptual temporal quality values DRT, DNT, respectively, as well as ROI and non-ROI perceptual spatial quality values DRS, DNS- ROI quality metric calculator 46 obtains the video fidelity (72), ROI and non-ROI temporal quality (74) and ROI and non-ROI spatial quality (76) values from distortion analyzer 60.
[0081] Based on the user preference a, video fidelity, spatial quality and temporal quality, ROI quality metric calculator 46 determines the ROI quality metric (78). Video fidelity measures the video errors in the reconstructed video frame relative to the original frame, e.g., in terms of color intensity values on a pixel-by-pixel basis. Spatial quality measures spatial errors, such as blocking and ringing artifacts in the reconstructed frame relative to the original frame. Temporal quality measures errors, such as temporal flicker where the frame visual qualities change non-uniformly along the temporal axis.
[0082] Notably, the user preference a is a current value applied by the user, whereas the video fidelity, spatial quality and temporal quality are derived from one or more

WO 2006/094001 22 PCT/US2006/007156
frames that precede the current frame handled by bit allocation module 48. The user preference a may be fixed from frame-to-frame until such time that the user changes the value. A default value may be assigned to user preference factor a if the user has not specified a value. The ROI quality metric may be applied to bias bit allocation between the ROI and non-ROI of the current video frame (80), as described above with reference to FIG. 5. For example, the quality metric may be used to adjust weights for ROI bit allocation. In some embodiments, the functionality shown in FIG. 9 may represent operations performed by ROI quality metric calculator 61 in the "closed-loop" example of FIG. 8.
[0083] FIG 10 is a flow diagram illustrating ROI quality metric calculation for a video sequence. FIG 10 corresponds substantially to FIG 9, but represents an embodiment in which the quality metric calculation is made relative to a video stream before the video stream is encoded. Accordingly, the process of FIG. 10 further includes obtaining the video stream (67). In addition, in contrast to FIG 9, the video encoding (70) is performed after biasing the ROI/non-ROI bit allocation (80). In some embodiments, the functionality shown in FIG. 9 may represent operations performed by ROI quality metric calculator 61 in the "open-loop" example of FIG. 7.
[0084] FIG 11 is a flow diagram illustrating ROI p domain bit allocation. As shown in FIG 11, bit allocation module 48 obtains both an ROI definition (82) and rate budget for a frame (84). The ROI definition may take the form of an ROI MB map that identifies MBs or other video blocks that fall within the ROI. The rate budget provides the number of bits available for encoding the entire frame, including ROI and non-ROI areas. In addition, bit allocation module 48 obtains the ROI weights wt (86) from ROI weights calculator 46, which biases bit allocation between the ROI and non-ROI. Upon determining the non-ROI skip mode for the frame (88), i.e., whether skipping is ON or OFF for the frame, bit allocation module 48 obtains statistics for the current frame (89). The current frame statistics (89) can then be used to make the skipping mode decision for a subsequent frame or frames. The frame statistics may include, for example, a standard deviation of the residue of the frame following motion estimation. Alternatively, the frame statistics may be obtained for a previous frame or fames. With the skip mode indication (88), bit allocation module 48 is able to determine whether all available bits can be devoted to the ROI (non-ROI frame skipping ON) or whether the bits must be shared between ROI and non-ROI (non-ROI frame skipping OFF).

WO 2006/094001 23 PCT/US2006/007156
[0085] Using the ROI definition, frame rate budget, quality metric bias, and non-ROI skip mode, bit allocation module 48 generates a weighted p domain allocation of bits between the ROI MBs and non-ROI MBs (90). Upon determination of the p domain bit allocation, mapper 56 performs a p to QP mapping to provide MB QP values (92) for application to video encoder 58 (94). Mapper 56 may apply a p to QP mapping table, or an equation or function that generates a QP for a particular p. Video encoder 58 uses the QP values provided by the bit allocation module 48 and mapper 56 to encode individual ROI and non-ROI MBs within the applicable video frame. The resulting bit allocation may take into account not only the applicable frame budget, but also the availability of non-ROI skipping and the quality metric associated with a preceding frame or frames in the video sequence. The operation of bit allocation module 48 will be described in greater detail below.
[0086] The bit allocation technique described in this disclosure generally assumes the availability of sufficient ROI detection or definition, and the availability of acceptable frame-level rate control. On this basis, the bit allocation technique generally focuses on MB-level rate control between ROI and non-ROI MBs. Most conventional ROI bit allocation algorithms are based on a weighted version of the ITU H.263+ TMN8 model, where a cost function is created and the distortion components on various regions in the function are punished differently by using a set of preset weights. Like most of the other video standards, TMN8 uses a Q-domain rate control scheme, which models the rate and distortion with functions of QP. However, the bit allocation technique described in this disclosure makes use of a p domain rate control module, where p represents the number of non-zero quantized AC coefficients in an MB in video coding. The use of p domain bit allocation, as described herein, tends to be more accurate than QP domain rate control and may effectively reduce rate fluctuations.
[0087] In video coding applications, a typical problem is to minimize a distortion value DKquence with a given bit budget for the video sequence. The optimal solution for this
complicated problem relies on an optimal frame-level rate control algorithm and an optimal macroblock-level bit allocation scheme. However, for real-time applications, such as video telephony, where very limited information about future frames is available when coding the current frame, it is not practical or feasible to pursue an optimal frame-level rate control. Typically, a popular algorithm ("greedy" algorithm) is applied. The greedy algorithm assumes that the complexity of the video content is uniformly

WO 2006/094001 24 PCT/US2006/007156
distributed along the frames in the video sequence. On this basis, the greedy algorithm allocates a fraction of the available bits to each of the frames in the sequence. In realtime applications, the limited availability of future frame information also makes it difficult to consider temporal quality in rate control.
[0088] In this disclosure, to find a practical solution and simplify the bit allocation problem, it is generally assumed that a good frame-level rate control is available. This assumption reduces the bit allocation problem to niacroblock-level bit allocation. At the same time, the bit allocation scheme may take advantage of a non-ROI skipping approach. The non-ROI skipping increases the chance to reduce the value of the temporal distortion term DNT(fv...,fM) because the skipped region will present the
same perceptual quality as that of the previous frame. Thus, the skipping of the non-ROI area may reduce fluctuation of the perceptual quality between consecutive frames. [0089] For purposes of illustration, the image quality of a video frame is evaluated according to equation (1). For simplicity, however, p and y are set so that p + y = 1. Denoting Rbudgel as the total bit budget for a given frame/and R the bit rate for coding
the frame, the problem can be represented by the following function:
Minimize
(3)
Such that
[0090] The above optimization problem could be solved by Lagrangian relaxation and dynamic programming. However, the computational complexity of such an approach would be much higher than a real-time system could bear. Therefore, in accordance with this disclosure, a low-complexity near-optimal solution is preferred. In particular, in this disclosure, a two-stage bit allocation algorithm in the p domain is applied. The first stage involves the following optimization problem:


WO 2006/094001 25 PCT/US2006/007156

After the optimal coding parameters for equation (4) are obtained, the second stage adjusts the coding parameters iteratively to reduce the term until a local minimum is reached. The result of this two-stage algorithm may be very close to the optimal solution when b is a relatively large number. Whenb =l, problems (3) and (4) are identical. In this disclosure, the focus is on the first stage and a solution to problem (4).
[0091] In ROI video coding, N is the number of MBs in the frame, {Pt}, {Qt}, {Rt}
and {Dt} are the set of p 's, standard deviation, rates and distortion (sum of squared

error), respectively, for the ith macroblocks. Thus, A set of weights {w,} is defined for all MBs in the frame as:
if the ith MB belongs to ROI

if the ith MB belongs to Non- ROI

(5)
where K is the number of MBs within the ROI. Equation (5) may be implemented, e.g., by ROI weights calculator 46. Therefore, the weighted distortion of the frame is:

(6)
Hence the problem (4) can be rewritten as:
Minimize D, such that R £ Rbudget.
(7)
Equation (7) is solved by using a modeling-based bit allocation approach. The distribution of the AC coefficients of a nature image can be best approximated by a

WO 2006/094001 26 PCT/US2006/007156
Laplacian distribution Therefore, the rate and distortion of the ith
macroblock can be modeled in equations (8) and (9) below as functions of p. [0092] For example, rate can be represented as:
R. = Apt+B, (8)
where A and B are constant modeling parameters, and A can be thought of as the average number of bits needed to encode non-zero coefficients and B can be thought of as the bits due to non-texture information.
[0093] In addition, distortion can be represented as:

(9)
where q is an unknown constant and o is the standard deviation of the residual data. Here, the bit allocation technique optimizes p{ instead of quantizers because it is assumed there is a sufficiently accurate p -QP table available to generate an acceptable quantizer from any selected pr In general, equation (7) can be solved by using
Lagrangian relaxation in which the constrained problem is converted into an unconstrained problem as follows:

(10)
where l is the solution that enables By setting partial derivatives to zero

in equation (10), the following expression for the optimized p, is obtained:


(11) which is




























The resulting p is then mapped to a corresponding QP, and used to allocate an
appropriate number of coding bits to the respective ROI or non-ROI MB.
[0095] Another bit allocation model (bit allocation model II) may be obtained using an
alternative distortion model. According to the alternative distortion model, assuming
the availability of a uniform quantizer with step size q, the distortion caused by
quantization is given by:


WO 2006/094001

PCT/US2006/007156

28



(18)
and the percentage of zeros is given by

(19) Thus,


(20)
According to Shannon's source coding theorem, as described in T. M. Cover and J. A. Thomas, "Elements of information theory", Wiley, New York, NY, 1991, for a Laplacian source, the minimum number of bits needed to represent a symbol is given
by: such that


(21)
Since where 384 is the total number of coefficients in the ith macroblock

for 4:2:0 video, equation (21) can be expanded by using Taylor expansion and the
relationship between bit rate and p can be approximated by:
(22)
where A and B are constant modeling parameters, and A can be thought of as the average number of bits needed to encode a non-zero coefficients and B can be thought of as the bits due to non-texture information.
[0096] In addition, the variance of the coefficients is represented by:

(23)

WO 2006/094001 29 PCT/US2006/007156

As a result, the distortion of the ith macroblock can be represented by:


(24)

As in the derivation of bit allocation model I, the optimal bit allocation scheme can be achieved by solving the optimization problem (7), i.e., the following problem:


(25)
In general, equation (25) can be solved by using Lagrangian relaxation in which the
constrained problem is converted into an unconstrained problem as follows:



(26)
where X* is the solution that enables By setting partial derivatives to zero
in (26), the following expression for the optimized pt, is obtained: let-











On the other hand, because:

WO 2006/094001 30 PCT/US2006/007156











From equations (28) and (30), the following expression is obtained:






(32)
where Pbudget is the total p budget for the frame.
Although the distortion is modeled differently in equation (32), based on that model, the following bit allocation model II is obtained:
_



(33)
Equation (33) maybe implemented, e.g.., by bit allocation module 48.
[0097] FIG 12 is a graph comparing overall perceptual quality of encoding techniques using weighted bit allocation models I and n and an optimal solution. The optimal solution is achieved by Lagrangian relaxation, whereas bit allocation models I and II are implemented as described above. FIG. 12 shows PSNR in decibels versus frame number during ROI coding of the first 100 frames of the standard Foreman video test sequence. In FIG. 12, the optimal solution, bit allocation model I, and bit allocation model II are identified by reference numerals 91, 93 and 95, respectively. For bit allocation models I and II, the value of a is 0.9 for purposes of bit allocation weighting

WO 2006/094001 31 PCT/US2006/007156
equation (5). As shown in FIG. 12, both bit allocation models I and II perform very well in comparison to the optimal solution.
[0098] FIG 13 is a flow diagram illustrating a technique for non-ROI ("background") skipping. The ability to skip encoding of non-ROI areas of a video frame can result in significant savings in bit allocation. If a non-ROI is not encoded, i.e., skipped, the bits otherwise allocated to the non-ROI can instead be re-allocated for encoding the ROI to improve visual quality of MBs in the ROI. If the non-ROI is skipped for a given frame, the non-ROI encoded for a preceding frame is repeated or substituted by an interpolated non-ROI area in the current frame. In addition to conserving bits for ROI encoding, the skipping of the non-ROI area may improve the temporal quality of the current frame. In particular, presenting the same non-ROI area in two or more consecutive frames will tend to reduce temporal flicker in the non-ROI areas.
[0099] At very low bitrate, e.g., at 32kbps, the non-ROI regions are normally coarsely coded even if the bits are uniformly distributed among MBs, where temporal visual quality issues such as flickering become prominent. On the other hand, in most cases of video telephony applications where background are non-ROI, there are very limited movements in the background. Therefore, background skipping is a solution for reallocating bits to improve the quality of ROI and coded non-ROI regions as long as the skipping does not severely degrade the video fidelity.
[00100] Frame skipping is a popular approach used in very low-bitrate
applications to conserve coding bits. The difference between non-ROI skipping and
frame skipping is that the ROI for each frame is coded in the non-ROI skipping
approach to ensure good visual quality of the ROI. Frame skipping is very helpful in
many applications. In ROI video coding, however, frame skipping would risk the loss
of important information such as facial expressions, especially when a is set at a large
value in equation (1), as any distortion of ROI would be heavily punished and could
degrade the overall performance. Therefore, non-ROI skipping is a better choice and
can generally save a significant number of bits to improve ROI quality because the
number of background MBs is dominant in normal video frames.
[00101] As shown in FIG 13, the non-ROI skipping technique involves a
grouping of successive frames into a unit that includes the ROI areas for the frames and a common non-ROI area shared among the frames. In the example of FIG. 13, two consecutive frames are grouped. The non-ROI background skipping module 50 groups

WO 2006/094001 32 PCT/US2006/007156
frames i and i+1 into a frame unit (96), and notifies video encoder 58 of the frame in
which the non-ROI area will be skipped. In response, video encoder 58 encodes the
respective ROI areas of frames i and i + 1 using the weighted bit allocation provided by
bit allocation module 48 (98). In addition, video encoder 58 encodes the non-ROI area
of frame i using the weighted bit allocation (100). However, video encoder 58 does not
encode the non-ROI area of frame i+1. Instead, the non-ROI area of frame i + 1 is
skipped, and the non-ROI area of the preceding frame i is provided in its place.
[00102] The non-ROI skipping may be provided on a full-time basis. For
example, every two frames may be grouped into a unit for purposes of continuous, full-time skipping of the non-ROI on an alternating frame basis. In other words, the non-ROI in every second frame may be skipped on a full-time basis. As an alternative, skipping may be activated and deactivated on an adaptive basis. Skipping may be deactivated when non-ROI distortion produced by a recent, previous frame exceeds a distortion threshold. As shown in FIG 13, for example, if distortion in the non-ROI area of a previous frame is less than the threshold (102), the non-ROI for frame i + 1 is skipped (104), and the process continues to the next group of two successive frames, as represented by the frame increment i = i + 2 (106). In this case, the level of non-ROI distortion is acceptable, and skipping is activated. If non-ROI distortion is greater than the distortion threshold (102), however, the non-ROI area of frame i + 1 is encoded using weighted bit allocation (108). In this case, skipping is deactivated due to excessive non-ROI distortion, i.e., excessive distortion within the non-ROI area of the pertinent video scene.
[00103] FIG. 14 is a diagram illustrating grouping of successive frames in a unit
to support non-ROI skipping. As shown in FIG. 14, frames 0, 1, 2 and 3 represents successive frames within a video sequence. In this example, frame 0 and frame 1 are grouped into unit 1, and frame 2 and frame 3 are grouped into unit 2. Each unit shares a common non-ROI area. In particular, in the case of either full-time skipping or adaptive skipping with acceptable distortion, the non-ROI area of frame 0 is repeated for frame 1. Because the non-ROI area of frame 0 is repeated for frame 1, it is not necessary to encode the non-ROI area of frame 1. The grouping of frames into units maybe applied throughout a video sequence. In the example of FIG 14, two frames are grouped into a unit. In some applications, however, two or more frames may be grouped into a unit, with the non-ROI being skipped in all but one of the frames in the unit.

WO 2006/094001 PCT/US2006/007156
-33-
[00104] FIG. 15 is a diagram illustrating encoding of successive ROI areas with a
common non-ROI area. In particular, upon grouping successive frames 0 and 1 into a
unit, the ROI areas 110,112 in frames 0 and 1, respectively, are encoded. However, the
frame 0 non-ROI area 114 is repeated for both frame 0 and frame 1, such that the non-
ROI area (not shown) for frame 1 is skipped. In this manner, the bit consumption
otherwise required for encoding the frame 1 non-ROI are can be avoided. In the
example of FIG. 15, it should be noted that the non-ROI area 114, although referred to
as "background," may include foreground features such as a person's shoulders.
Accordingly, background is generally used in this disclosure to refer to any area outside
the ROI, and should not be considered as strictly limited to background imagery within
a video scene. The non-ROI skipping is described in further detail below.
[00105] An exemplary prototype system for implementation of non-ROI skipping
module 50 of FIG. 4 will now be described. In the prototype system, every two frames are grouped into a unit as described above with reference to FIGS. 13-15. In each unit, the first non-ROI area is coded while the second non-ROI area is skipped, e.g., using predicted MBs with zero motion vectors. The bit allocation for each unit may be based on the same logic as the 'greedy" frame-level bit allocation, with the assumption that the content complexity of the video frames in a sequence is uniformly distributed across the frames. With this assumption, the bits should be allocated uniformly among two-frame units as:

(34)
where psequence is the total p -budget for a group of M consecutive frames in the video
sequence, pm!tl is the p allocation for the ith unit, and pused is the p consumption of
the first (i-l)/2 units. Within a unit, either bit allocation model (I or H) may be used to allocate bits to MBs within the ROI and non-ROI areas.
[00106] To evaluate the results of non-ROI skipping, as described herein, several
tests have been performed. In the tests, the following bit allocation techniques were compared: (a) a weighted bit allocation algorithm, based on model n, with full-time non-ROI skipping; (b) a weighted bit allocation algorithm, based on model n, without non-ROI skipping; and (c) a "greedy" algorithm, in which ROI and non-ROI MBs are

WO 2006/094001 34 PCT/US2006/007156
equally treated in the bit allocation. The tests were conducted on the first 150 frames of the standard "Carphone" QCIF video sequences at a rate of 15 frames per second (fps). The results of the comparison are shown in FIGS. 16-23.
[00107] FIG. 16 is a graph comparing overall perceptual quality of the above
encoding techniques (a), (b) and (c). In particular, FIG 16 plots perceptual PSNR in decibels (db) over a range of encoding rates in kilobits per second (kbps). FIG 17 is a graph comparing overall video fidelity of the above encoding techniques (a), (b) and (c). The term "overall" video fidelity refers to the combination of both ROI and non-ROI areas, i.e., video fidelity of the entire frame, and may alternatively be referred to as "frame" video fidelity. FIG. 17 plots "frame" PSNR in decibels (db) over a range of encoding rates in kilobits per second (kbps).
[00108] FIGS. 18 and 19 are graphs comparing ROI video fidelity and non-ROI
video fidelity, respectively, of the above encoding techniques (a), (b) and (c). In
particular, FIGS. 18 and 19 plot PSNR in decibels (dbs) over a range of encoding rates
in kilobits per second (kbps). ROI video fidelity, per FIG. 18, refers to video fidelity
within the ROI area of the video frame. The non-ROI video, per FIG. 19, refers to
video fidelity within the non-ROI area of the video frame. FIGS. 16-19 represent
application of a user preference factor a = 0.9 in the weighted bit allocation algorithms.
In each of FIGS. 16-19, the curves for (a) weighted bit allocation with full-time non-
ROI skipping, (b) weighted bit allocation with no skipping, and (c) the greedy algorithm
are identified by reference numerals 116,118,120, respectively.
[00109] FIGS. 20 and 21 are graphs comparing overall perceptual quality and
overall video fidelity, respectively, of the above encoding techniques (a), (b), (c). In particular, FIG. 20 plots perceptual PSNR in decibels (db) over a range of encoding rates in kilobits per second (kbps). FIG 21 plots PSNR in decibels (db) over a range of encoding rates in kilobits per second (kbps). FIGS. 20 and 21 represent application of a user preference factor a = 0.7 in the weighted bit allocation algorithms. FIGS. 22 and 23 are graphs comparing overall perceptual quality and overall video fidelity, respectively, of encoding techniques (a), (b) and (c). FIGS. 22 and 23 represent application of a user preference factor a = 0.5 in the weighted bit allocation algorithms. In FIGS. 20-23, the curves for (a) weighted bit allocation with full-time non-ROI skipping, (b) weighted bit allocation with no skipping, and (c) the greedy algorithm are identified by reference numerals 116,118,120, respectively.

WO 2006/094001 35 PCT/US2006/007156

[00110] For the test results shown in FIGS. 16-23, the four sets of video quality
measures, Perceptual PSNR, Frame PSNR, ROI PSNR, and non-ROI PSNR, have been defined as follows:
1. Perceptual PSNR = -10 log10 DFrame;
2. Frame PSNR = -l0logl0DF(/,/);
3. ROI PSNR = -101og10 D„ (/, /); and
4. Non-ROI PSNR = -101og10JV(/,/).
In the above expressions, D/rrame is the overall temporal and spatial distortion for a frame, Df is the video fidelity between an original frame and a reconstructed frame, DRF is the video fidelity between the ROI areas of an original frame and a reconstructed frame, and DNF is the video fidelity between the non-ROI areas of an original frame and a reconstructed frame. Perceptual PSNR is shown in FIGS. 16, 20, and 22. Frame PSNR is shown in FIGS. 17, 21, and 23. ROI PSNR is shown in FIG. 18, and non-ROI PSNR is shown in FIG. 19. The results shown in FIGS. 16-23 demonstrate that the proposed non-ROI skipping approach has gains of more than ldB in Perceptual PSNR (PPSNR) compared with the other approaches in all of the tests. The gains mainly come from the improvement of the ROI quality, as shown in FIGS. 18 and 19, by reallocating bits from non-ROI to ROI in coding the frames.
[00111] An interesting observation is that the non-ROI (background) skipping
approaches also outperformed other approaches in terms of frame PSNR at low bit rate, as shown in FIGS. 17, 21 and 23. In addition, the graphs show that the gains in frame PSNR increase with the decreasing of user preference factor a . These observations indicate that the non-ROI skipping approach is very appealing for very low-bitrate applications like wireless VT, because it outperforms other approaches not only in terms of video fidelity but also visual quality. It is expected that the weighted bit allocation approach will outperform the greedy algorithm when a is assigned a larger value, e.g., a =0.9 in FIG. 16. However, the advantage decreases with the decreasing of a as shown in FIGS. 20 and 22.
[00112] Additional tests have been performed to evaluate the performance of bit
allocation techniques incorporating non-ROI skipping versus weighted bit allocation techniques that rely on frame skipping, i.e., skipping of an entire frame instead of skipping only the non-ROI area. FIG. 24 is a graph comparing perceptual quality of

WO 2006/094001 36 PCI/US2006/007156

ROI encoding techniques using standard frame skipping and background skipping. In
each case, weighted bit allocation, as described herein, was applied. In one case, non-
ROI (background) skipping was applied. In the other case, full-time frame skipping
was applied such that every other frame was skipped on an alternating basis. FIG. 24
plots perceptual PSNR in decibels versus rate in kilobits per second (kbps). In FIG. 24,
reference numerals 122, 124 and 126 identify curves for weighted bit allocation with
frame skipping and a user preference factor or =0.9, 0.7, and 0.5, respectively.
Reference numerals 128, 130, 132 identify curves for weighted bit allocation with non-
ROI skipping and a user preference factor a =0.9, 0.7, and 0.5, respectively. As shown
in FIG. 24, weighted bit allocation with non-ROI skipping outperformed weighted bit
allocation with frame skipping in all settings of a. The performance gain provided by
non-ROI skipping increases with increases in the value of a. This result is reasonable
because with larger a, the punishment on ROI for frame skipping becomes heavier.
[00113] As demonstrated by FIGS. 16-24, the non-ROI background skipping
approach results in good performance, particularly when the non-ROI maintains
relatively low movement. For video sequences having non-ROI areas that contain a
large amount of motion, however, the performance gain may be diminished. At the
same time, important background information may be skipped, resulting in degradation
of system performance. Accordingly, it is desirable that background skipping be turned
off when the skipping severely degrades video fidelity, e.g., when the background
content contains important information. As an example, ROI coding by weighted bit
allocation with non-ROI skipping turned on and off was applied to the 180th to 209th
frames of the standard Carphone video test sequence, in which the background moves
quickly. FIG. 25 shows the results of this analysis. More particularly, FIG. 25 is a
graph comparing perceptual quality of ROI encoding techniques for weighted bit
allocation, as described herein, when non-ROI skipping is turned on and off.
[00114] FIG. 25 graphs perceptual PSNR in decibels versus rate in kilobits per
second. In FIG. 25, reference numerals 134 and 136 identify curves representing application of weighted bit allocation with non-ROI skipping turned on and user preference factor a = 0.9 and 0.5, respectively. Reference numerals 138, 140 identify curves representing application of weighted bit allocation with non-ROI skipping turned off and user preference factor a = 0.9 and 0.5, respectively. The results in FIG. 25 indicate that the advantage of non-ROI skipping compared decreases with the

WO 2006/094001 37 PCT/US2006/007156

decreasing of a, e.g., from 0.9 to 0.5. This result also indicates the value of developing an adaptive non-ROI skipping approach that enables dynamic control of the non-ROI skipping based on the content of the video sequence and the user's interest level, as represented by user preference factor a.
[00115] The distortion produced by weighted bit allocation with and without non-
ROI skipping can be explicitly compared, as indicated below:




where Dstip-on OT is the unit total distortion when the non-ROI skipping mode is on,
D stip-off is the unit total distortion when the background skipping mode is
off DNcnR0J sUp is the distortion caused by skipping the non-ROI in the second frame of
the unit, and where px and p2 in equation (35) and P1,', p2' and p3' in equation (36)
are the number of AC coefficients (/?) allocated to the ROIs and non-ROI.
[00116] It can be observed from equations (35) and (36) that
holds only if because generally the following expression holds:

This observation is verified to be true from the statistics of DNonROI-skip for the Carphone
video test sequence as shown in FIG. 26. FIG. 26 is a graph illustrating distortion caused by background skipping over an exemplary video sequence, hi particular, FIG. 26 plots averaged non-ROI region residue energy DNonROI-skip versus frame number over the first 240 frames of the Carphone video test sequence. From FIG. 26, it is apparent that the DNonROI-skip values are much larger than others during frames 180-209, which are
the frames characterized by a high degree of motion. Hence, whereas non-ROI skipping

WO 2006/094001 38 PCT/US2006/007156
is generally favorable, it is unfavorable during the high-motion portion presented by frames 180-209.
[00117] Based on the observation above, the task of pursuing a criterion for
turning the background skipping mode on and off is converted into a task of looking for a threshold for the distortion of DNonROI-skip If it is assumed that the unit distortion in a
video sequence varies in a smooth fashion, which is generally true, then the average value of the most recently processed unit distortion can be used for deriving the distortion threshold. Denoting Dn as the mean distortion of the most recent n units, then based on (35) and (36) it is very possible to make Dskip-on > Dskip--off if
holds. In other words, the criterion for switching off non-ROI
skipping can be specified as This criterion can serve as the basis
for an adaptive non-ROI skipping algorithm.
[00118] The adaptive non-ROI skipping algorithm may substantially conform to
the process shown in FIG. 13, and can be further described as follows.
Step 0: Initialize the data, and set Dn = 0, and skipping mode = ON.
Step 1: Allocate p budget for the current unit (group of two successive
frames Fn and Fn+1) using equation (34).
Step 2: Within the current unit, allocate bits for each macro-blocks by
equation (32). If the skipping mode is ON, then no bits are assigned for the non-ROI for the second frame within the unit.
Step 3: After the distortion for the current unit is obtained, update Dn by
where h is a learning factor and is in a range of [0,1 ].

Step 4: Get data for the next unit; if this is the last unit, go to step 6.
Step 5: Calculate the distortion of DNonROI-skip for the new unit (group of
next two frames then turn the skipping mode


OFF; otherwise, turn the skipping mode ON. Return to step 1.
Step 6: Terminate the adaptive skipping algorithm.
[00119] FIG. 27 is a graph comparing overall perceptual quality of ROI encoding
techniques using non-ROI skipping, no non-ROI skipping, and adaptive non-ROI

WO 2006/094001 39 PCT/US2006/007156

skipping. In each case, a weighted bit allocation algorithm as described herein was applied. FIG. 27 plots perceptual PSNR in decibels versus rate in kilobits per second for ROI video coding of frames 180-209 of the standard Carphone video test sequence. Reference numerals 142 and 144 identify curves representing weighted bit allocation with non-ROI skipping ON and user preference factor a = 0.9 and 0.5, respectively. Reference numerals 146 and 148 identify curves representing weighted bit allocation with non-ROI skipping OFF and user preference factor a = 0.9 and 0.5, respectively. Reference numerals 150 and 152 identify curves representing weighted bit allocation with adaptive non-ROI skipping and user preference factors a = 0.9 and 0.5, respectively. In this evaluation, the value h was set to h = 0.25. The results in FIG. 27 show that the result of the adaptive non-ROI skipping approach is very close to the best solutions for various values of a.
[00120] FIGS. 28-33 show additional experimental results for ROI coding
techniques that apply weighted bit allocation techniques as described in this disclosure. FIGS. 28-32 represent application of various ROI coding techniques to the standard Carphone video test sequence. For FIGS. 28-32, the user preference factor a used in the weighted bit allocation approaches ("Proposed approach" and "Weighted bit allocation") was set at 0.9. The "Proposed approach" label refers to weighted bit allocation with non-ROI skipping. The "Weighted bit allocation" label refers to weighted bit allocation without non-ROI skipping.
[00121] FIG. 28 is a graph comparing overall perceptual quality of ROI encoding
techniques using various bit allocation techniques, and plots perceptual PSNR versus
rate. In FIG. 28, reference numerals 154, 156, 158, 160 and 162 identify curves
representing application of a frame skipping approach, the weighted bit allocation
approach with non-ROI skipping, a greedy algorithm, a constant QP algorithm, and the
weighted bit allocation approach without non-ROI skipping, respectively.
[00122] FIG. 29 is a graph comparing overall perceptual quality of ROI encoding
techniques using various bit allocation techniques at an encoding rate of 40 kilobits per second (kps). In particular, FIG 29 plots perceptual PSNR versus frame number for weighted bit allocation with non-ROI skipping, the greedy algorithm, and a constant QP algorithm.
[00123] FIG 30 is a graph comparing overall video fidelity of ROI encoding
techniques using various bit allocation techniques at an encoding rate of 40 kilobits per

WO 2006/094001 40 PCT/US2006/007156
second (kps), and plots PSNR versus frame number. FIG. 31 is a graph comparing ROI video fidelity of ROI encoding techniques using various bit allocation techniques at an encoding rate of 40 kilobits per second (kps), and plots PSNR in the ROI versus frame number. FIG. 32 is a graph comparing non-ROI video fidelity of ROI encoding techniques using various bit allocation techniques at an encoding rate of 40 kilobits per second (kps), and plots non-ROI PSNR versus frame number.
[00124] In FIGS. 29-32, weighted bit allocation with non-ROI skipping is
indicated by reference numeral 164, the greedy algorithm is indicated by reference numeral 166, and a constant QP algorithm is indicated by reference numeral 168. The constant QP algorithm is a frame-level only rate control algorithm in which all MBs in a frame are assigned an identical quantizer. The greedy algorithm has been described above, and operates at the MB-level. The frame skipping algorithm applies standard frame skipping to avoid encoding the contents of every other frame on an alternating basis, and skips both ROI and non-ROI areas. Weighted bit allocation without non-ROI skipping and weighted bit allocation with adaptive frame skipping ("Proposed approach") have been described above.
[00125] FIG. 28 shows that the proposed approach outperformed all other
approaches in the entire bitrate range and that the performance gain is up to 2dB. In FIGS. 29-32, frame-level details of the proposed approach, greedy algorithm and constant QP algorithm are demonstrated.
[00126] FIG. 33 is a graph comparing overall perceptual quality of ROI encoding
techniques using various bit allocation techniques for another exemplary video sequence over a range of encoding rates. In particular, FIG. 33 plots perceptual PSNR versus rate over the first 180 frames of the standard Foreman video test sequence. In FIG. 33, reference numerals 154, 156, 158, 160 and 162 identify curves representing application of a frame skipping approach, the weighted bit allocation approach with non-ROI skipping, a greedy algorithm, a constant QP algorithm, and the weighted bit allocation approach without non-ROI skipping, respectively.
[00127] As shown in FIG. 33, the frame skipping approach does not perform as
well as in the Carphone sequence, because the face of the Foreman sequence contains much larger motion compared with the Carphone sequence. As a result, frame skipping misses an excessive amount of ROI information in the Foreman sequence, resulting in unsatisfactory performance. Notably, the propose approach of weighted bit allocation

WO 2006/094001 41 PCT/US2006/007156

with adaptive non-ROI skipping performs very well for the Foreman sequence, as demonstrated by FIG. 3 3.
[00128] In this disclosure, various techniques have been described to support ROI
coding for video telephony or video streaming applications, especially when presented
with very low bit rate requirements, e.g., in wireless video telephony. The disclosure
presents two different optimized weighted bit allocation schemes in the p -domain for
ROI video coding. The disclosure also presents adaptive non-ROI ("background")
skipping approach that can work jointly with the weighted bit allocation models to
achieve better performance. In addition, this disclosure presents a video quality metric
for measuring the quality of ROI video. The ROI quality metric can be used to guide
the optimized bit allocation techniques to produce better subjective visual quality by
jointly considering user preference in the ROI, video fidelity, spatial perceptual quality
and temporal perceptual quality. The ROI quality metric enables user interaction to bias
the coding parameters to fulfill subjective perceptual quality requirements.
[00129] The techniques described herein may be implemented in hardware,
software, firmware, or any combination thereof. If implemented in software, the techniques may be realized in part by a computer readable medium comprising program code containing instructions that, when executed, performs one or more of the methods described above, hi this case, the computer readable medium may comprise random access memory (RAM) such as synchronous dynamic random access memory (SDRAM), read-only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), FLASH memory, magnetic or optical data storage media, and the like.
[00130] The program code may be executed by one or more processors, such as
one or more digital signal processors (DSPs), general purpose microprocessors, an application specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. In some embodiments, the functionality described herein may be provided within dedicated software modules or hardware units configured for encoding and decoding, or incorporated in a combined video encoder-decoder (CODEC).
[00131] Various embodiments have been described. These and other
embodiments are within the scope of the following claims.

WO 2006/094001 42 PCT/US2006/007156
CLAIMS:
1. A method comprising:
grouping successive video frames into a frame unit;
encoding regions of interest within the respective frames in the frame unit; and skipping encoding of areas that are not within a respective region of interest for at least one of
the frames in the frame unit.
2. The method of claim 1, further comprising encoding areas that are not within a respective region of interest for at least one of the frames in the frame unit, and substituting the encoded areas for areas in the other frame for which encoding is skipped.
3. The method of claim 1, wherein skipping encoding of areas includes skipping encoding when a distortion value associated with a preceding frame unit is less than a threshold value.
4. The method of claim 1, further comprising selectively turning skipping on and off based on a distortion value of a preceding frame unit.
5. The method of claim 1, wherein encoding includes allocating rho domain values to macroblocks within the frame based on a frame budget and a weighting between macroblocks within the region of interest and macroblocks within areas of the video frame that are not within the region of interest.
6. The method of claim 5, further comprising mapping the rho domain values to corresponding quantization parameter (QP) values to allocate a number of encoding bits to each of the macroblocks.
7. The method of claim 6, further comprising encoding the macroblocks of the video frame using the allocated encoding bits.

WO 2006/094001 43 PCT/US2006/007156

8. The method of claim 7, wherein a number of the allocated bits is less than or equal to a number of bits specified by the frame budget.
9. The method of claim 5, wherein the weighting is based at least in part on distortion of a preceding frame.
10. The method of claim 5, wherein the weighting is based at least in part on video fidelity of a preceding frame, perceptual quality of the preceding frame, and user preference in the region of interest.
11. The method of claim 10, wherein the perceptual quality includes a temporal quality value and a spatial quality value for the preceding frame.
12. The method of claim 11, wherein the temporal quality value includes a first temporal quality value for the region of interest, and a second temporal quality value for areas of the video frame that are not within the region of interest.
13. The method of claim 11, wherein the spatial quality value includes a first spatial quality value for the region of interest, and a second spatial quality value for areas of the video frame that are not within the region of interest.
14. The method of claim 11, wherein the spatial quality value is based at least in part on presence of blocking artifacts in the preceding frame, and wherein the temporal quality value is based at least in part on presence of temporal flicker artifacts in the preceding frame.
15. The method of claim 5, wherein allocating rho domain values includes allocating the rho domain values based on an indication of whether encoding of the areas that are not within the region of interest will be skipped.
16. A device comprising:
a region-of-interest mapper that generates a definition of regions of interests within video frames;

WO 2006/094001 44 PCT/US2006/007156

a video encoder that encodes the video frames; and
a skipping module that groups successive frames into a frame unit, directs the video encoder to encode regions of interest within the respective frames in the frame unit, and directs the video encoder to skip encoding of areas that are not within a respective region of interest for at least one of the frames in the frame unit.
17. The device of claim 16, wherein the skipping module directs the video encoder to encode areas that are not within a respective region of interest for at least one of the frames in the frame unit, and directs the video encoder to substitute the encoded areas for areas in the other frame for which encoding is skipped.
18. The device of claim 16, wherein the skipping module directs skipping when a distortion value associated with a preceding frame unit is less than a threshold value.
19. The device of claim 16, wherein the skipping module selectively turns skipping on and off based on .a distortion value of a preceding frame unit.
20. The device of claim 16, further comprising a bit allocation module that allocates rho domain values to macroblocks within the frame based on a frame budget and a weighting between macroblocks within the region of interest and macroblocks within areas of the video frame that are not within the region of interest, wherein the video encoder encodes macroblocks within the video frames based on the rho domain values.
21. The device of claim 20, further comprising a mapper that maps the rho domain values to corresponding quantization parameter (QP) values to allocate a number of encoding bits to each of the macroblocks, wherein the video encoder encodes macroblocks within the video frames based on the allocated encoding bits.
22. The device of claim 21, wherein a number of the allocated bits is less than or equal to a number of bits specified by the frame budget.
23. The device of claim 20, wherein the weighting is based at least in part on distortion of a preceding frame.

WO 2006/094001 45 PCI/US2006/007156
24. The device of claim 20, wherein the weighting is based at least in part on video fidelity of a preceding frame, perceptual quality of the preceding frame, and user interest in the region of interest.
25. The device of claim 24, wherein the perceptual quality includes a temporal quality value and a spatial quality value for the preceding frame.
26. The device of claim 25, wherein the temporal quality value includes a first temporal quality value for the region of interest, and a second temporal quality value for areas of the video frame that are not within the region of interest.
27. The device of claim 25, wherein the spatial quality value includes a first spatial quality value for the region of interest, and a second spatial quality value for areas of the video frame that are not within the region of interest.
28. The device of claim 25, wherein the spatial quality value is based at least in part on presence of blocking artifacts in the preceding frame, and wherein the temporal quality value is based at least in part on presence of temporal flicker artifacts in the preceding frame.
29. The device of claim 26, further comprising a bit allocation module that allocates rho domain values to macroblocks within the frame based on an indication of whether encoding of the areas that are not within the region of interest will be skipped.
30. The device of claim 26, further comprising a wireless transmitter that transmits the encoded video frame via a wireless communication channel, wherein the device is configured to support mobile video telephony.
31. A computer-readable medium comprising instructions to cause a processor to:
group successive video frames into a frame unit;
encode regions of interest within the respective frames in the frame unit; and skip encoding of areas that are not within a respective region of interest for at least one of the frames in the frame unit.

WO 2006/094001 46 PCT/US2006/007156
32. The computer-readable medium of claim 31, further comprising instructions to cause the processor to encode areas that are not within a respective region of interest for at least one of the frames in the frame unit, and substituting the encoded areas for areas in the other frame for which encoding is skipped.
33. The computer-readable medium of claim 31, further comprising instructions to cause the processor to skip encoding when a distortion value associated with a preceding frame unit is less than a threshold value.
34. The computer-readable medium of claim 31, further comprising instructions to cause the processor to selectively turn skipping on and off based on a distortion value of a preceding frame unit.
3 5. The computer-readable medium of claim 31, further comprising instructions to cause the processor to allocate rho domain values to macroblocks within the frame based on a frame budget and a weighting between macroblocks within the region of interest and macroblocks within areas of the video frame that are not within the region of interest.
36. The computer-readable medium of claim 35, further comprising instructions to cause the processor to map the rho domain values to corresponding quantization parameter (QP) values to allocate a number of encoding bits to each of the macroblocks.
37. The computer-readable medium of claim 35, further comprising instructions to cause the processor to encode the macroblocks of the video frame using the allocated encoding bits.
38. The computer-readable medium of claim 37, wherein a number of the allocated bits is less than or equal to a number of bits specified by the frame budget.
39. The computer-readable medium of claim 35, wherein the weighting is based at least in part on distortion of a preceding frame.

WO 2006/094001 47 PCT/US2006/007156

40. The computer-readable medium of claim 35, wherein the weighting is based at least in part on video fidelity of a preceding frame, perceptual quality of the preceding frame, and user interest in the region of interest.
41. The computer-readable medium of claim 40, wherein the perceptual quality includes a temporal quality value and a spatial quality value for the preceding frame.
42. The computer-readable medium of claim 41, wherein the temporal quality value includes a first temporal quality value for the region of interest, and a second temporal quality value for areas of the video frame that are not within the region of interest.
43. The computer-readable medium of claim 41, wherein the spatial quality value includes a first spatial quality value for the region of interest, and a second spatial quality value for areas of the video frame that are not within the region of interest.
44. The computer-readable medium of claim 41, wherein the spatial quality value is based at least in part on presence of blocking artifacts in the preceding frame, and wherein the temporal quality value is based at least in part on presence of temporal flicker artifacts in the preceding frame.
45. The computer-readable medium of claim 35, further comprising instructions to cause the processor to allocate the rho domain values based on an indication of whether encoding of the areas that are not within the region of interest will be skipped.


ABSTRACT
REGION-OF-INTEREST CODING WITH BACKGROUND SKIPPING FOR VIDEO TELEPHONY
The disclosure is directed to techniques for region-of-interest (ROD coding for video telephony (VT). The disclosed techniques include adaptive skipping of non-ROI (i.e., background) areas to conserve encoding bits for allocation to the ROI.

Documents:

1407-MUMNP-2007-ABSTRACT(3-1-2011).pdf

1407-mumnp-2007-abstract.doc

1407-mumnp-2007-abstract.pdf

1407-MUMNP-2007-CLAIMS(AMENDED)-(3-1-2011).pdf

1407-MUMNP-2007-CLAIMS(AMENDED)-(6-6-2011).pdf

1407-MUMNP-2007-CLAIMS(MARKED COPY)-(3-1-2011).pdf

1407-MUMNP-2007-CLAIMS(MARKED COPY)-(6-6-2011).pdf

1407-mumnp-2007-claims.doc

1407-mumnp-2007-claims.pdf

1407-mumnp-2007-correspondence(11-3-2008).pdf

1407-MUMNP-2007-CORRESPONDENCE(14-2-2012).pdf

1407-MUMNP-2007-CORRESPONDENCE(17-2-2011).pdf

1407-MUMNP-2007-CORRESPONDENCE(20-12-2010).pdf

1407-MUMNP-2007-CORRESPONDENCE(22-06-2011).pdf

1407-mumnp-2007-correspondence-others.pdf

1407-mumnp-2007-correspondence-received.pdf

1407-mumnp-2007-description (complete).pdf

1407-MUMNP-2007-DRAWING(3-1-2011).pdf

1407-mumnp-2007-drawings.pdf

1407-MUMNP-2007-FORM 1(3-1-2011).pdf

1407-MUMNP-2007-FORM 2(TITLE PAGE)-(3-1-2011).pdf

1407-MUMNP-2007-FORM 26(14-2-2012).pdf

1407-MUMNP-2007-FORM 26(3-1-2011).pdf

1407-mumnp-2007-form 3(11-3-2008).pdf

1407-MUMNP-2007-FORM 3(20-12-2010).pdf

1407-MUMNP-2007-FORM 3(3-1-2011).pdf

1407-mumnp-2007-form-1.pdf

1407-mumnp-2007-form-18.pdf

1407-mumnp-2007-form-2.doc

1407-mumnp-2007-form-2.pdf

1407-mumnp-2007-form-26.pdf

1407-mumnp-2007-form-3.pdf

1407-mumnp-2007-form-5.pdf

1407-mumnp-2007-form-pct-ib-304.pdf

1407-mumnp-2007-form-pct-isa-237.pdf

1407-mumnp-2007-form-pct-separate sheet-237.pdf

1407-MUMNP-2007-OTHER DOCUMENT(3-1-2011).pdf

1407-mumnp-2007-pct-search report.pdf

1407-MUMNP-2007-PETITION UNDER RULE 137(3-1-2011).pdf

1407-MUMNP-2007-REPLY TO EXAMINATION REPORT(3-1-2011).pdf

1407-MUMNP-2007-REPLY TO EXAMINATION REPORT(6-6-2011).pdf

1407-mumnp-2007-wo internation publication report(13-9-2007).pdf

abstract1.jpg


Patent Number 248121
Indian Patent Application Number 1407/MUMNP/2007
PG Journal Number 25/2011
Publication Date 24-Jun-2011
Grant Date 20-Jun-2011
Date of Filing 13-Sep-2007
Name of Patentee QUALCOMM INCORPORATED
Applicant Address 5775 MOREHOUSE DRIVE, SAN DIEGO, CALIFORNIA 92121-1714,
Inventors:
# Inventor's Name Inventor's Address
1 WANG HAOHONG 5385 TOSCANA WAY #328, SAN DIEGO, CALIFORNIA 92122.
2 EL-MALEH KHALED HELMI 7689 PALMILLA DRIVE #1311, SAN DIEGO, CALIFORNIA 92122.
PCT International Classification Number H04N7/26 H04N7/46
PCT International Application Number PCT/US2006/007156
PCT International Filing date 2006-02-28
PCT Conventions:
# PCT Application Number Date of Convention Priority Country
1 60/658,008 2005-03-01 U.S.A.
2 11/199,937 2005-08-09 U.S.A.