Blog de Berto

Práctica Compresión Imágenes EDI 2006/2007

por el día Feb.04, 2008, bajo General

Bueno, como prometí hace unos meses, aquí dejo también la segunda práctica de EDI del año pasado en Junio. Consistía básicamente en hacer un probrama que comprimiera unas imágenes en un formato un tanto especial.

Las imágenes eran ficheros de texto, que tenían la siguiente estructura:


El primer número era la dimensión de la imagen, si es un 4, el fichero era 4×4, si es un 8, pues 8×8, así sucesivamente, y tenían que ser números potencias de 2 (2,4,8,16,32,64…..).Los unos representan píxeles negros y los ceros píxeles blancos.Una imagen así te ocupaba digamos que siera de 1024 x 1024 , te ocupaba efectivamente 1 MByte, pues al pasarla por el compresor, creaba un fichero .dat bastante más reducido, si la imagen tenía un ratio de compresión muy grande ( esto viene explicado en la especificación ), podía hasta ocupar 3 bytes.

Después de este breve resumen, aquí os dejo la especificación y el código en Free Pascal.


6,047 Comentarios para esta entrada:




  3. Taylor

    Howdy very nice website!! Man .. Beautiful .. Amazing ..
    I’ll bookmark your web site and take the feeds additionally?
    I’m glad to find a lot of useful information here
    within the post, we need work out extra strategies in this regard, thank you for sharing.
    . . . . .

  4. Armando

    Right away I am going away to do my breakfast, once having my breakfast coming yet
    again to read further news.

  5. kobe shoes

    I simply wished to say thanks again. I am not sure what I would have used without the type of solutions discussed by you on that problem. This was an absolute frightful concern in my circumstances, however , looking at your well-written approach you resolved it took me to weep with gladness. Now i’m happier for this guidance and even pray you know what an amazing job you are undertaking educating people using a blog. Most likely you’ve never encountered all of us.

  6. off white

    The two sides realize the huge potential of the BRI in promoting connectivity as well as stand ready to strengthen alignment of the BRI and Trans-European Transport Networks in deepening cooperation in ports, logistics, marine transportation and other areas, according to a joint communique issued by the two countries.



    […]below you’ll obtain the link to some internet sites that we feel it is best to visit[…]

  8. Hildegarde

    Hi, Neat post. There is an issue along with your website in web explorer, would test this?
    IE nonetheless is the marketplace chief and
    a large section of other people will pass over your magnificent writing due to this problem.

  9. chrome hearts

    I precisely wanted to appreciate you once more. I do not know the things I would’ve implemented in the absence of the type of recommendations shared by you regarding my industry. Certainly was a frustrating scenario in my view, nevertheless encountering the expert style you handled the issue took me to leap over joy. I’m just grateful for your guidance and thus pray you find out what a great job you were getting into educating the mediocre ones using your webblog. Most probably you’ve never got to know any of us.

  10. Yeezy

    Jing Junhai pointed out that it is necessary to check the end and serious accountability, formulate a rectification plan, do a good job in the aftermath, and respond to social concerns in a timely manner. It is necessary to carry out “reviewing” in the whole province, re-evaluate, re-supervise and re-verify, comprehensively do a good job in poverty alleviation, and strictly prevent the “people’s heart project” from becoming a “people’s resentment project.”

  11. Cheap Yeezy Boost

    Rei Dalio, the founder of the Bridgewater Joint Fund, known as the “father of the hedge fund,” said that capitalism is no longer applicable to most Americans. He said that the widening gap between the rich and the poor is creating a turbulent environment that has a disturbing resemblance to the economic and social unrest in the 1930s.

  12. yeezy boost 350

    I simply wanted to make a small comment so as to appreciate you for some of the splendid pointers you are giving on this website. My prolonged internet investigation has at the end been recognized with beneficial points to share with my relatives. I ‘d assert that most of us visitors are unquestionably blessed to be in a fantastic place with very many perfect professionals with helpful concepts. I feel pretty blessed to have come across your web page and look forward to so many more entertaining moments reading here. Thanks a lot once more for everything.


    Great article! This is the kind of information that should be shared around the net.
    Shame on the search engines for no longer positioning this put up upper!
    Come on over and consult with my website .
    Thanks =)

  14. moncler jackets

    Italian economist and China expert Michele Geraci hailed the MOU signed between the two countries as “a win-win-win for Italy, the rest of Europe as well as China”, as well as said he believes more European countries will follow his country’s lead and sign up to be involved in the initiative.

  15. Raw Food Chef Training


    […]please check out the websites we follow, like this 1, because it represents our picks from the web[…]

  16. mlb jerseys

    I am commenting to let you understand what a perfect encounter our girl encountered studying your site. She learned such a lot of issues, with the inclusion of what it is like to possess a very effective giving style to let many people easily grasp a number of advanced topics. You actually surpassed people’s expected results. Many thanks for churning out the warm and friendly, healthy, edifying not to mention cool tips about the topic to Janet.

  17. Stefan

    Excellent items from you, man. I have be mindful your stuff prior to and you are simply too magnificent.
    I really like what you have bought right here, really like what
    you are stating and the best way during which you
    assert it. You make it enjoyable and you continue to care for to stay it sensible.
    I can not wait to learn much more from you. That is actually a wonderful
    web site.

  18. Oliva

    As the admin of this site is working, no hesitation very soon it will
    be renowned, due to its quality contents.

  19. salvatore ferragamo belt

    I am also writing to make you be aware of of the fabulous encounter my wife’s girl enjoyed using your blog. She discovered lots of pieces, not to mention what it is like to possess a great giving mindset to get the mediocre ones completely know just exactly specific grueling things. You really did more than readers’ expectations. I appreciate you for providing the effective, dependable, explanatory and fun guidance on your topic to Lizeth.

  20. Nike Outlet store

    According to people familiar with the matter, as of February, Apple Music had more than 28 million users in the US, while Spotify had 26 million users. These data only include paying users and do not include subscribers to the trial products that the company calculates in its disclosure.

  21. Shannon

    Quality articles is the key to be a focus for
    the visitors to go to see the website, that’s what this
    site is providing.


    I’m truly enjoying the design and layout of your blog.
    It’s a very easy on the eyes which makes it much more
    pleasant for me to come here and visit more often. Did you hire
    out a developer to create your theme? Exceptional work!

  23. Bichara Previc

    A monetary advisor is your planning partner.

  24. fitflops clearance

    Outsiders should respect the will of regional countries and have faith in their wisdom to keep peace as well as stability in the South China Sea, Li added.

  25. jordan 13

    I wish to express some appreciation to this writer just for rescuing me from such a predicament. After looking through the world wide web and meeting views which were not beneficial, I figured my life was done. Living without the strategies to the issues you have resolved as a result of your entire short post is a serious case, and those which may have negatively damaged my entire career if I hadn’t encountered the website. Your personal understanding and kindness in dealing with a lot of things was invaluable. I’m not sure what I would’ve done if I hadn’t encountered such a subject like this. I can now look forward to my future. Thanks a lot so much for the high quality and effective help. I won’t think twice to recommend your web blog to any person who should receive guide about this matter.

  26. Kami

    It’s remarkable to pay a quick visit this web page and reading
    the views of all mates on the topic of this article, while I am also eager of
    getting familiarity.


    What’s up, just wanted to say, I liked this post.
    It was helpful. Keep on posting!


    It’s amazing for me to have a web page, which is useful for
    my knowledge. thanks admin

  29. off white

    I have to show my thanks to the writer just for bailing me out of this type of circumstance. As a result of browsing throughout the world wide web and seeing basics which were not beneficial, I figured my entire life was well over. Living without the answers to the difficulties you’ve fixed by means of your entire article content is a serious case, and those that might have negatively damaged my career if I hadn’t encountered the blog. Your primary ability and kindness in taking care of every aspect was important. I’m not sure what I would’ve done if I had not encountered such a subject like this. It’s possible to at this point look ahead to my future. Thank you so much for your reliable and sensible guide. I will not think twice to endorse your blog post to anybody who should have guidelines on this topic.

  30. Lorena

    Thanks for finally talking about > Práctica Compresión Imágenes EDI 2006/2007
    – Blog de Berto < Liked it!


    Hi there! Would you mind if I share your blog with my zynga group?
    There’s a lot of folks that I think would really appreciate your content.
    Please let me know. Cheers

  32. Denis

    Hello there, You’ve done an incredible job. I’ll certainly
    digg it and personally suggest to my friends. I am sure they’ll be benefited from this website.

  33. fitflops

    Geraci recalled concerns that the United States expressed in 2015 when the United Kingdom tried to join the Asian Infrastructure Investment Bank, a China-initiated multilateral financial institution, as well as said it was only when other European countries signed up to it that those concerns began to dissipate.

  34. Jonna

    At this time it looks like Expression Engine is the preferred blogging
    platform out there right now. (from what I’ve read) Is that
    what you are using on your blog?

  35. Fernanda Tórtima

    Helpful information. Fortunate me I discovered your site by accident, and I am
    shocked why this twist of fate didn’t came about earlier!

    I bookmarked it.

  36. viagra na recepte

    Viagry nie powinno sie stosowac przy zazywaniu niektorych lekow, ktore moga hamowac reakcje organizmu na sildenafil lub tez wywolywac niepozadane skutki uboczne, niekiedy nawet zagrazajace zyciu czlowieka.


    I loved as much as you’ll receive carried out right here.
    The sketch is tasteful, your authored subject
    matter stylish. nonetheless, you command get got an edginess over that you
    wish be delivering the following. unwell unquestionably come further formerly again as exactly the same
    nearly a lot often inside case you shield this hike.


    It’s going to be finish of mine day, but before finish I am
    reading this great article to improve my know-how.

  39. air jordan 11

    I in addition to my buddies came taking note of the excellent things located on your web blog then the sudden I got a terrible feeling I never expressed respect to the blog owner for those techniques. Those young men are actually so happy to learn them and have in truth been taking pleasure in these things. Appreciation for being very helpful and also for getting some tremendous subjects most people are really desirous to be aware of. Our own honest regret for not expressing gratitude to you sooner.

  40. Grupo Coral

    Hello there! This blog post could not be written any better!
    Reading through this post reminds me of my previous roommate!
    He continually kept talking about this. I most certainly will forward this article to him.

    Fairly certain he’s going to have a good read.
    Thanks for sharing!

  41. Daisy

    I was curious if you ever thought of changing the page layout
    of your site? Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so
    people could connect with it better. Youve got an awful lot of text
    for only having 1 or 2 images. Maybe you could space it out

  42. longchamp

    A lot of thanks for each of your work on this web page. My niece loves getting into investigations and it’s really easy to understand why. I learn all about the compelling means you render reliable thoughts by means of the blog and as well as welcome contribution from some others about this area then our favorite princess is in fact discovering a great deal. Take advantage of the rest of the new year. You are always conducting a stunning job.

  43. adidas yeezy boost

    I would like to express some thanks to you just for rescuing me from such a scenario. After looking through the search engines and seeing ideas which are not powerful, I believed my life was done. Living without the presence of solutions to the difficulties you have sorted out through your entire website is a crucial case, as well as ones which might have adversely damaged my career if I had not come across the website. Your main skills and kindness in touching a lot of things was very useful. I am not sure what I would’ve done if I hadn’t come upon such a subject like this. I am able to at this time look ahead to my future. Thanks so much for the reliable and sensible guide. I won’t be reluctant to recommend your blog post to anybody who wants and needs tips on this subject matter.

  44. 먹튀검증 솔루션


    […]one of our guests lately recommended the following website[…]

  45. louboutin shoes

    I must express some thanks to this writer just for rescuing me from such a crisis. As a result of scouting throughout the the web and seeing things which are not helpful, I figured my life was done. Existing without the presence of solutions to the problems you’ve solved all through your entire article is a serious case, as well as those that would have in a negative way damaged my entire career if I hadn’t encountered your blog post. Your good competence and kindness in playing with all areas was helpful. I am not sure what I would’ve done if I hadn’t come upon such a thing like this. I am able to at this time relish my future. Thank you very much for the expert and amazing guide. I will not be reluctant to endorse the blog to any individual who ought to have guidelines about this subject matter.

Leave a Reply

Buscas algo?

Usa el formulario de búsqueda:

No encuentras lo que buscas? Deja un comentario en un post o contacta conmigo vía email.