Upgrade to Pro — share decks privately, control downloads, hide ads and more …

15分でわかる!WBMPビューアー実装から始めるPHPバイナリ超初心者入門 / php_wbmp

15分でわかる!WBMPビューアー実装から始めるPHPバイナリ超初心者入門 / php_wbmp

presented on PHPerKaigi 2018 2018/03/10
https://phperkaigi.jp/2018/

Jun Watanabe

March 10, 2018
Tweet

More Decks by Jun Watanabe

Other Decks in Technology

Transcript

  1. . ! ( )) (. (
    # / 0 2 3 3 #
    8 )() 8
    H :
    3 / 0 2 3 3 2/ 2 .3

    View full-size slide

  2. (( .. )
    . /9 :

    View full-size slide

  3. 0. ! ) ( 11 0.
    A C !

    View full-size slide

  4. 0. ! ) ( 11 0.
    CA

    View full-size slide

  5. (( .. )
    7
    . 3 12

    View full-size slide

  6. (( .. )
    )( )
    ) )

    View full-size slide

  7. ( A: 9C ( . 11 ( : 9CB B AD
    /
    N PMK O /
    I
    )) R /
    11 ) ( :W T
    9CC B : : : A : : :A BB : C: /A C

    View full-size slide

  8. A . // ) . A . B
    ( I M H N
    1
    AA 2 C : 2 C : 2A A

    View full-size slide

  9. A B: /1)22) . ) 1: C 1 C B
    -0 M IN
    1 8
    0 2 9
    AC( A 5B C B : A

    View full-size slide

  10. . ! ) ) . )
    (

    View full-size slide

  11. A . // ) . A . B
    ( I M H N




    AA 2 C : 2 C : 2A A

    View full-size slide

  12. () ) ). . :.

    View full-size slide

  13. . ( )) ( . (






    View full-size slide

  14. ) ) ) .
    ( ( H A C


    View full-size slide

  15. 5
    ! 1
    , 0181 124 74 1
    . // 3

    View full-size slide

  16. A :C /0 11 -. 0 :C 08 8A 8
    _bh

    A ) C
    C ) C8
    C ) C8C
    C8) C W -
    OW dk cli j T I
    RI W = 8 a i N
    :CC ( E = 8 A E = 3 ge

    View full-size slide

  17. /C = /! 4 55 12/ BB 4 = F 4 F
    e lo

    6 g
    6 )g
    6 ()g
    C: T h R O Nj
    !
    .
    00 ((
    _d bp
    F 8 I A 8 C = I A c^a ki!

    View full-size slide

  18. ) = 56 ) /( ( ) ( / 56 /
    . . N lhjp

    6 = CCC =6= :2 A2 2 2 5A25 = 5 =6=
    . .

    5 lhjp S d
    5 Ov R T
    . . T
    a e w T
    e yT a
    n og r IlhjpiHm R st u e P

    View full-size slide

  19. (( .. )
    6 2 1 1
    3

    View full-size slide

  20. (( .. )
    6 2 1 1
    3

    View full-size slide

  21. ); = ) , (..($ )$ ( = $
    NO ;1 R

    ' ; $A =C
    '
    T ' ;1
    1; I

    View full-size slide

  22. (( .. )
    6 3 2 2
    1
    1
    5 5

    View full-size slide

  23. 2 A @I "2 61 1 42 1 6A @I 6= = =
    T * R _

    $$
    $ T * R _
    $ 0 C A
    $ 0 =I I A ()()()()"
    $
    ;IA A * AI" A
    N
    @= / " A .
    AI / =8; = I" @= % ),% * .
    =I A I " ( % AI .
    O
    ) A = / AI

    View full-size slide

  24. (( .. )
    67 3 2 2
    1
    1

    View full-size slide

  25. . ( )) ( . (

    View full-size slide

  26. + B 78 + . )00) + ):: 78 A
    1 : 2 W
    (
    )
    I
    RNO
    (
    (T R
    C

    View full-size slide

  27. : A 7 .) ) )88 .7 = . =
    7 0



    C
    I
    (
    C C
    I
    (
    C
    17
    I
    :2
    17

    View full-size slide

  28. / @ !/ 2 . . 01/ .AA @ ;
    b ad])hi c_ fl n

    I@C om @C p n g
    I C;A
    I C =A @C
    =IC @ C 7I@C ! C;A
    I C , O
    @A != A ,, ! @C , = ! C;A
    @ , @C) @ ! @C
    I C , I ! @ $ ($ * e * @
    @= ! @ ,, T R [
    I C ! I C
    N
    N
    N

    View full-size slide

  29. . C ><= !. 12 $ 0.$ 2><= 2 $
    O N R
    C I> = + )
    I=> !; ++ ! 7>A + ;< ! = A
    7 + 7>A 7> ! 7>A )
    ; ! > + ) > + () >
    1 :1 4 ? ( )
    C I> = )
    >; ! C I> = + I> =
    = A )
    C I> = + )
    7 )
    $
    ?
    ' 8 004 2
    ;40: 1

    View full-size slide

  30. :T ] OMN $:% > 8AA8);=:) 8 OMN W W )
    v
    !
    N O [ ) N
    [O N21 N OMN 21
    a aa
    aaa a
    aaa a
    aaaaa
    aaa aa
    a aa
    N W2 MO N )ITR ,.0+ N ([ R
    47 N
    [ cI Oc
    ! $ N W O R $% I O % 7 2 4 6
    ! O R ) OI 1¥1)[ R
    !N T $! O R ' %
    B ]
    ! ] M O $!N %
    !N O I$ O - O $ M I$!N %%% , TI
    ![O N M O $!N %
    !N OMN M O $!N %
    INT [O N2 ![O N_ N OMN 2 !N OMN _ ! _
    ot
    !T [O N +
    [NO $ W $! O M I$!N %%%
    ! ] O - O $! O %
    T $!O + !O 4 0 !O %
    INT $! ] C!O % 7 2 a
    !T [O N
    O $!T [O N 6 ![O N%
    INT !
    !T [O N +
    P
    _
    _
    _
    I OT O - O $! O %
    !N ¥ O -N ¥$! O %
    ! O W IT $!N ¥' ,/' -%
    W O $ "+1W '! O %
    _
    I OT M O $!N %
    !
    [NO $ W $! O M I$!N %%%
    ! O O - O $! O %
    ! ) W W $! O ' ,' 0% pmsl kgrun
    O $! O C+ +% df ] ebih
    O I$! %
    _
    _
    _

    View full-size slide

  31. (( .. )
    ! H
    P
    MK B 4
    H O

    View full-size slide

  32. (( .. )
    2. 4 ! 0 . 4 !
    ) ( 8
    / . 4 ! 5

    View full-size slide

  33. (( .. )
    (( C

    ORATTA( )A
    o ghI
    R s C
    T 8 e 100i
    p l rTd I
    O N

    View full-size slide

  34. 2 . ! ) ( . 5 5
    A ghe
    I
    C
    O
    A
    C
    R
    d
    T
    O N
    A
    !

    View full-size slide

  35. https://recruit.oratta.net/

    View full-size slide