1. Software preparation
Download HM-6.0-dev rev. 2170 from the svn site. Apply the attached patch "JCTVC-I0035-HM-6.0-dev-rev2170-AHG6-IPCM.patch" to the downloaded one.

2. Config preparation
Modify the defaults configuration files (.\cfg\*.cfg) as follows:
MaxCuDQPDepth                 : 3           # Max depth of a minimum CuDQP for sub-LCU-level delta QP
PCMEnabledFlag                : 1           # 0: No PCM mode

3. Macros settings
[Anchor]
Use the original HM-6.0-dev rev. 2170 or the following macros settings.
#define AHG06_IPCM                  1
#if AHG06_IPCM
#define IPCM_BUG_FIX                1 // Ticket474
#define IPCM_DBF_USE_QPY_REC        0
#if IPCM_DBF_USE_QPY_REC && H0736_AVC_STYLE_QP_RANGE && BURST_IPCM
#define IPCM_CODE_QPY               0
#if IPCM_CODE_QPY
#define IPCM_SEND_ZERO_QP           0
#endif
#endif
#endif

[Scheme 1]
#define AHG06_IPCM                  1
#if AHG06_IPCM
#define IPCM_BUG_FIX                1 // Ticket474
#define IPCM_DBF_USE_QPY_REC        1
#if IPCM_DBF_USE_QPY_REC && H0736_AVC_STYLE_QP_RANGE && BURST_IPCM
#define IPCM_CODE_QPY               0
#if IPCM_CODE_QPY
#define IPCM_SEND_ZERO_QP           0
#endif
#endif
#endif

[Scheme 2]
#define AHG06_IPCM                  1
#if AHG06_IPCM
#define IPCM_BUG_FIX                1 // Ticket474
#define IPCM_DBF_USE_QPY_REC        1
#if IPCM_DBF_USE_QPY_REC && H0736_AVC_STYLE_QP_RANGE && BURST_IPCM
#define IPCM_CODE_QPY               1
#if IPCM_CODE_QPY
#define IPCM_SEND_ZERO_QP           0
#endif
#endif
#endif

[Scheme 2 with QP=0 signaling]
#define AHG06_IPCM                  1
#if AHG06_IPCM
#define IPCM_BUG_FIX                1 // Ticket474
#define IPCM_DBF_USE_QPY_REC        1
#if IPCM_DBF_USE_QPY_REC && H0736_AVC_STYLE_QP_RANGE && BURST_IPCM
#define IPCM_CODE_QPY               1
#if IPCM_CODE_QPY
#define IPCM_SEND_ZERO_QP           1
#endif
#endif
#endif

4. Generation of "sandstorms_352x240_30" sequence
"sandstorms_352x240_30.yuv" is generated by JCTVC-E057-NEC-Sandstorms-Software available from http://phenix.int-evry.fr/jct/doc_end_user/documents/5_Geneva/wg11/JCTVC-E057-v5.zip. "sandstorms_352x288_30.md5" contains the hash value of the sequence. 

5. Script
For Anchor, Scheme1, Scheme2, and Scheme2 with QP=0 signaling, change "txt" of "JCTVC-I0035-sandstorms-enc-batch1.txt" by "bat" and run it in MS-DOS prompt. 

For Scheme 1 with pcm_loop_filter_disable=1, change "txt" of "JCTVC-I0035-sandstorms-enc-batch2.txt" by "bat" and run it in MS-DOS prompt. 

