4D v14.3

PICTURE CODEC LIST

Home

 
4D v14.3
PICTURE CODEC LIST

PICTURE CODEC LIST 


 

PICTURE CODEC LIST ( codecArray {; namesArray}{; *} ) 
Parameter Type   Description
codecArray  String array in IDs of available picture Codecs
namesArray  String array in Names of picture Codecs
Operator in Return list of reading (decoding) Codecs

The PICTURE CODEC LIST command fills the codecArray array with the list of picture Codec IDs that are available on the machine where it is executed. This list includes the Codec IDs of picture formats that are managed natively by 4D.

The Codec IDs can be returned in the codecArray array in the following forms:

  • As an extension (for example, “.gif”)
  • As a Mime type (for example, “image/jpeg”)

Compatibility note: If QuickTime has been enabled in the database (see the Pictures section), 4-character QuickTime codes can also be returned (for example “PNTG”).

The form returned by the command will depend on the way the Codec is recorded at the operating system level. The optional namesArray array can be used to retrieve the name of each Codec. These names are more explicit than the IDs. This array can be used, for example, to build and display a menu listing the available Codecs.

By default, if you do not pass the * parameter, the command returns only the Codecs that can be used to encode (write) pictures. These IDs can be used in the format parameter of the picture export commands WRITE PICTURE FILE and PICTURE TO BLOB.
If you pass the * parameter, the command also returns the list of codecs used for decoding (reading) the pictures. The two lists are not exclusive, certain reading and writing Codecs are identical. Codecs intended for encoding pictures may usually be used for decoding. On the other hand, decoding Codecs cannot necessarily be used for encoding. For example, the ".jpg" Codec will be found in both lists, whereas the ".xbmp" Codec will only be found in the list of reading (decoding) Codecs.

 
PROPERTIES 

Product: 4D
Theme: Pictures
Number: 992

 
HISTORY 

Created: 4D v11 SQL

 
SEE ALSO 

Is picture file
PICTURE TYPE LIST
Pictures

 
ARTICLE USAGE

4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)

Inherited from : PICTURE CODEC LIST ( 4D v12.4)