/* | |
* Copyright (C) 2021-2023 Jean-Marie BARAN (jeanmarie.baran@gmail.com) | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the “Software”), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* |
#!/sbin/sh | |
# | |
# ADDOND_VERSION=2 | |
# | |
# /system/system/addon.d/70-gapps.sh | |
# | |
. /tmp/backuptool.functions | |
if [ -z $backuptool_ab ]; then | |
SYS=$S |
This is a guide explaining how to unlock and flash a Huawei Mate 10 Pro (BLA-L09
in this guide) with a stock firmware, and how to retrieve a stock firmware from the Internet. I wrote it as a reminder to myself, but others could find it useful too.
IMPORTANT: The steps presented here can harm/brick your phone, and I cannot be held responsible for any damage you phone could suffer.
This guide assume that:
- You don't mind losing all of your data
- Your phone is not bricked (if it's the case there are ways of finding the required information for completing this guide − I cover some parts in this guide, but not everything)
- You have either a Linux or Windows computer available
First of all: YUV pixel formats and Recommended 8-Bit YUV Formats for Video Rendering. Chromium's source code contains good documentation about those formats too: chromium/src/media/base/video_types.h and chromium/src/media/base/video_frame.cc (search for RequiresEvenSizeAllocation()
, NumPlanes()
and those kinds of functions).
You can think of an image as a superposition of several planes (or layers in a more natural language). YUV formats have three planes: Y
, U
, and V
.
Y
is the luma plane, and can be seen as the image as grayscale. U
and V
are reffered to as the chroma planes, which are basically the colours. All the YUV formats have these three planes, and differ by the different orderings of them.
Utility for the PPCG question [Count to 20 with Words!][countTo20WithWords].
To generate those outputs, just run:
python algo.py
Of course you will need [wordListsByLength]. There are parameters that can be easily modified inside the script.
The scores are computed as follow:
- each prefix/suffix/contained word adds its length to the score.
- when all prefixes/suffixes/contained words are computed, add the number of prefixes/suffixes/contained words to the score.