Lines Matching refs:packing
31 static bool anp_getPixelPacking(ANPBitmapFormat fmt, ANPPixelPacking* packing) {
34 if (packing) {
35 packing->AShift = SK_A32_SHIFT;
36 packing->ABits = SK_A32_BITS;
37 packing->RShift = SK_R32_SHIFT;
38 packing->RBits = SK_R32_BITS;
39 packing->GShift = SK_G32_SHIFT;
40 packing->GBits = SK_G32_BITS;
41 packing->BShift = SK_B32_SHIFT;
42 packing->BBits = SK_B32_BITS;
46 if (packing) {
47 packing->AShift = 0;
48 packing->ABits = 0;
49 packing->RShift = SK_R16_SHIFT;
50 packing->RBits = SK_R16_BITS;
51 packing->GShift = SK_G16_SHIFT;
52 packing->GBits = SK_G16_BITS;
53 packing->BShift = SK_B16_SHIFT;
54 packing->BBits = SK_B16_BITS;