Eating disorder or not (we aren't qualified to diagnose on here), it does sound like you have some unhealthy thoughts and behaviors surrounding food and your body, and it also sounds like you are restricting your food intake. I think one thing that is important to remember is that you can have disordered thoughts and behaviors without having a diagnosable eating disorder, and any type of support can usually be helpful. Also in general, if you aren't eating enough, that can absolutely have an impact on your mood and your ability to think coherently, which can essentially just trigger a feedback loop.
I think for a lot of folks something like self harm can be used as punishment or tied into behaviors around food. It's not uncommon. While that's not inherently part of an eating disorder, it can make things a lot more complicated, as you have to find healthier and safer coping skills without just swapping behaviors. That doesn't mean it isn't possible.
Do you want things to be different for you? If so, do you have any type of professional support or people in your life you trust?