Encoding?

angerangel edited this page Jan 3, 2013 · 1 revision

USAGE

   ENCODING? data

DESCRIPTION

Returns the media codec name for given binary data. (identify)

ENCODING? is a function value.

ARGUMENTS

  • data (binary!)

#SOURCE

encoding?: make function! [  [
    {Returns the media codec name for given binary data. (identify)}
    data [binary!]
    /local
][
    foreach [name codec] system/codecs [
        if do-codec codec/entry 'identify data [
            return name
        ]
    ]
    none
] ]
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.