14 #ifndef __CL_ClipIO_h__
15 #define __CL_ClipIO_h__
31 bool readClip(
const char *file_name,
CL_Clip &
clip);
32 bool writeClip(
const char *file_name,
const CL_Clip &clip);
36 bool canReadFileType(
const char *file_name);
37 bool canWriteFileType(
const char *file_name);
42 {
return myClipReaders.entries(); }
44 {
return myClipReaders[
index]->getKey().getName(); }
47 {
return myClipWriters.entries(); }
49 {
return myClipWriters[
index]->getKey().getName(); }
54 void registerClipReader(
const char *
extension,
56 void registerClipWriter(
const char *
extension,
62 MapItem *item=myClipReaders.find(MapKey(name));
63 return item ? item->getKey().getReader() : NULL;
67 MapItem *item=myClipWriters.find(MapKey(name));
68 return item ? item->getKey().getWriter() : NULL;
72 void registerClipHandlers();
83 MapKey(
const char *name)
85 init(name, NULL, NULL);
89 init(name, &reader, NULL);
93 init(name, NULL, &writer);
95 MapKey(
const MapKey &k)
97 init(k.myName, k.myReader, k.myWriter);
108 const char *
getName()
const {
return myName; }
112 uint hash()
const {
return myName.hash(); }
113 bool isEqual(
const MapKey &key)
const
114 {
return myName == key.myName; }
116 {
return strcmp(myName, key.myName) < 0; }
118 {
return isEqual(key); }
#define SYS_VISIBILITY_EXPORT
GLsizei const GLchar *const * path
const char * getReadableExtension(int index) const
SYS_VISIBILITY_EXPORT void CLregisterClipWriter(void *)
SYS_VISIBILITY_EXPORT void CLregisterClipReader(void *)
int getNumReadableExtensions() const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
int getNumWritableExtensions() const
PXL_API const char * getName(const ColorSpace *space)
Return the name of the color space.
bool operator<(const GU_TetrahedronFacet &a, const GU_TetrahedronFacet &b)
GLuint const GLchar * name
GLubyte GLubyte GLubyte GLubyte w
const char * getWritableExtension(int index) const
IMATH_INTERNAL_NAMESPACE_HEADER_ENTER IMATH_HOSTDEVICE IMATH_CONSTEXPR14 T clip(const T &p, const Box< T > &box) IMATH_NOEXCEPT
OIIO_UTIL_API std::string extension(string_view filepath, bool include_dot=true) noexcept