Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3959f5b authored by Jeff Tinker's avatar Jeff Tinker
Browse files

Add support for max res decode

bug: 16034599
Change-Id: Ia1de1457ca29fe1dd7e55f4bb45da45ea3f6e5b1
parent 4d407a0f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -64,6 +64,12 @@ struct CryptoPlugin {
    // media data of the given mime type.
    virtual bool requiresSecureDecoderComponent(const char *mime) const = 0;

    // To implement resolution constraints, the crypto plugin needs to know
    // the resolution of the video being decrypted.  The media player should
    // call this method when the resolution is determined and any time it
    // is subsequently changed.
    virtual void notifyResolution(uint32_t width, uint32_t height) {}

    // If the error returned falls into the range
    // ERROR_DRM_VENDOR_MIN..ERROR_DRM_VENDOR_MAX, errorDetailMsg should be
    // filled in with an appropriate string.