src/main/java/org/jcodec/codecs/h264/decode/BlockInterpolator.java
static void getLuma10(byte[] pic, int picW, byte[] blk, int blkOff, int blkStride, int x, int y, int blkW, int blkH) {

        getLuma20(pic, picW, blk, blkOff, blkStride, x, y, blkW, blkH);

        int off = y * picW + x;
        for (int j = 0; j < blkH; j++) {

            for (int i = 0; i < blkW; i++) {

                blk[blkOff + i] = (byte) ((blk[blkOff + i] + pic[off + i] + 1) >> 1);
            }
            off += picW;
            blkOff += blkStride;
        }
    }
static void getLuma10(byte[] pic, int picW, byte[] blk, int blkOff, int blkStride, int x, int y, int blkW, int blkH) {

        getLuma20(pic, picW, blk, blkOff, blkStride, x, y, blkW, blkH);

        int off = y * picW + x;
        for (int j = 0; j < blkH; j++) {

            for (int i = 0; i < blkW; i++) {

                blk[blkOff + i] = (byte) ((blk[blkOff + i] + pic[off + i] + 1) >> 1);
            }
            off += picW;
            blkOff += blkStride;
        }
    }
static void getLuma10 ( byte [ ] pic , int picW , byte [ ] blk , int blkOff , int blkStride , int x , int y , int blkW , int blkH ) { getLuma20 ( pic , picW , blk , blkOff , blkStride , x , y , blkW , blkH ) ; int off = y * picW + x ; for ( int j = 0 ; j < blkH ; j ++ ) { for ( int i = 0 ; i < blkW ; i ++ ) { blk [ blkOff + i ] = ( byte ) ( ( blk [ blkOff + i ] + pic [ off + i ] + 1 ) >> 1 ) ; } off += picW ; blkOff += blkStride ; } }
Qpel: (1,0) horizontal
Qpel : ( 1 0 ) horizontal