| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  *  Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2  *  Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 
| 3  * | 3  * | 
| 4  *  Use of this source code is governed by a BSD-style license | 4  *  Use of this source code is governed by a BSD-style license | 
| 5  *  that can be found in the LICENSE file in the root of the source | 5  *  that can be found in the LICENSE file in the root of the source | 
| 6  *  tree. An additional intellectual property rights grant can be found | 6  *  tree. An additional intellectual property rights grant can be found | 
| 7  *  in the file PATENTS.  All contributing project authors may | 7  *  in the file PATENTS.  All contributing project authors may | 
| 8  *  be found in the AUTHORS file in the root of the source tree. | 8  *  be found in the AUTHORS file in the root of the source tree. | 
| 9  */ | 9  */ | 
| 10 | 10 | 
| (...skipping 18 matching lines...) Expand all  Loading... | 
| 29     if (ver != VPX_DECODER_ABI_VERSION) | 29     if (ver != VPX_DECODER_ABI_VERSION) | 
| 30         res = VPX_CODEC_ABI_MISMATCH; | 30         res = VPX_CODEC_ABI_MISMATCH; | 
| 31     else if (!ctx || !iface) | 31     else if (!ctx || !iface) | 
| 32         res = VPX_CODEC_INVALID_PARAM; | 32         res = VPX_CODEC_INVALID_PARAM; | 
| 33     else if (iface->abi_version != VPX_CODEC_INTERNAL_ABI_VERSION) | 33     else if (iface->abi_version != VPX_CODEC_INTERNAL_ABI_VERSION) | 
| 34         res = VPX_CODEC_ABI_MISMATCH; | 34         res = VPX_CODEC_ABI_MISMATCH; | 
| 35     else if ((flags & VPX_CODEC_USE_XMA) && !(iface->caps & VPX_CODEC_CAP_XMA)) | 35     else if ((flags & VPX_CODEC_USE_XMA) && !(iface->caps & VPX_CODEC_CAP_XMA)) | 
| 36         res = VPX_CODEC_INCAPABLE; | 36         res = VPX_CODEC_INCAPABLE; | 
| 37     else if ((flags & VPX_CODEC_USE_POSTPROC) && !(iface->caps & VPX_CODEC_CAP_P
     OSTPROC)) | 37     else if ((flags & VPX_CODEC_USE_POSTPROC) && !(iface->caps & VPX_CODEC_CAP_P
     OSTPROC)) | 
| 38         res = VPX_CODEC_INCAPABLE; | 38         res = VPX_CODEC_INCAPABLE; | 
|  | 39     else if ((flags & VPX_CODEC_USE_ERROR_CONCEALMENT) && | 
|  | 40             !(iface->caps & VPX_CODEC_CAP_ERROR_CONCEALMENT)) | 
|  | 41         res = VPX_CODEC_INCAPABLE; | 
|  | 42     else if ((flags & VPX_CODEC_USE_INPUT_PARTITION) && | 
|  | 43             !(iface->caps & VPX_CODEC_CAP_INPUT_PARTITION)) | 
|  | 44         res = VPX_CODEC_INCAPABLE; | 
| 39     else if (!(iface->caps & VPX_CODEC_CAP_DECODER)) | 45     else if (!(iface->caps & VPX_CODEC_CAP_DECODER)) | 
| 40         res = VPX_CODEC_INCAPABLE; | 46         res = VPX_CODEC_INCAPABLE; | 
| 41     else | 47     else | 
| 42     { | 48     { | 
| 43         memset(ctx, 0, sizeof(*ctx)); | 49         memset(ctx, 0, sizeof(*ctx)); | 
| 44         ctx->iface = iface; | 50         ctx->iface = iface; | 
| 45         ctx->name = iface->name; | 51         ctx->name = iface->name; | 
| 46         ctx->priv = NULL; | 52         ctx->priv = NULL; | 
| 47         ctx->init_flags = flags; | 53         ctx->init_flags = flags; | 
| 48         ctx->config.dec = cfg; | 54         ctx->config.dec = cfg; | 
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 232             /* Everything look ok, set the mmap in the decoder */ | 238             /* Everything look ok, set the mmap in the decoder */ | 
| 233             res = ctx->iface->set_mmap(ctx, mmap); | 239             res = ctx->iface->set_mmap(ctx, mmap); | 
| 234 | 240 | 
| 235             if (res) | 241             if (res) | 
| 236                 break; | 242                 break; | 
| 237         } | 243         } | 
| 238     } | 244     } | 
| 239 | 245 | 
| 240     return SAVE_STATUS(ctx, res); | 246     return SAVE_STATUS(ctx, res); | 
| 241 } | 247 } | 
| OLD | NEW | 
|---|