Copy as Markdown

Other Tools

//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/image/imgIEncoder.idl
//
{static D: &[Interface] = &[
Interface {
name: "imgIEncoder",
base: Some("nsIAsyncInputStream"),
sync: false,
methods: Ok(&[
/* void initFromData ([array, size_is (length), const] in uint8_t data, in unsigned long length, in uint32_t width, in uint32_t height, in uint32_t stride, in uint32_t inputFormat, in AString outputOptions); */
Method {
name: "InitFromData",
params: &[Param { name: "data", ty: "*const u8" }, Param { name: "length", ty: "u32" }, Param { name: "width", ty: "u32" }, Param { name: "height", ty: "u32" }, Param { name: "stride", ty: "u32" }, Param { name: "inputFormat", ty: "u32" }, Param { name: "outputOptions", ty: "*const ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* void startImageEncode (in uint32_t width, in uint32_t height, in uint32_t inputFormat, in AString outputOptions); */
Method {
name: "StartImageEncode",
params: &[Param { name: "width", ty: "u32" }, Param { name: "height", ty: "u32" }, Param { name: "inputFormat", ty: "u32" }, Param { name: "outputOptions", ty: "*const ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* void addImageFrame ([array, size_is (length), const] in uint8_t data, in unsigned long length, in uint32_t width, in uint32_t height, in uint32_t stride, in uint32_t frameFormat, in AString frameOptions); */
Method {
name: "AddImageFrame",
params: &[Param { name: "data", ty: "*const u8" }, Param { name: "length", ty: "u32" }, Param { name: "width", ty: "u32" }, Param { name: "height", ty: "u32" }, Param { name: "stride", ty: "u32" }, Param { name: "frameFormat", ty: "u32" }, Param { name: "frameOptions", ty: "*const ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* void endImageEncode (); */
Method {
name: "EndImageEncode",
params: &[],
ret: "::nserror::nsresult",
},
/* [noscript] unsigned long getImageBufferUsed (); */
Method {
name: "GetImageBufferUsed",
params: &[Param { name: "_retval", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
/* [noscript] charPtr getImageBuffer (); */
Method {
name: "GetImageBuffer",
params: &[Param { name: "_retval", ty: "*mut *mut libc::c_char" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}