element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
PicoZed Hardware Design How to read JPG image from sd card using zynq 7030?
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 7 replies
  • Subscribers 324 subscribers
  • Views 1935 views
  • Users 0 members are here
Related

How to read JPG image from sd card using zynq 7030?

shantaramj
shantaramj over 6 years ago

Hello,


We are developing demo Application for Picture in picture. for this we are using PicoZed 7030 board with FMC HDMI daughter card. We are referring FMC-HDMI-CAM + PYTHON-1300-C Reference Design Tutorial from zedboard.org. In this project Video On-Screen Display (OSD) Ip produces output video from external video sources (i.e HDMI,Camera input) and internal graphics controller.

In Vivado we used Axi vdma to read image from sd card . Inside Sd card we have used .bin file which is converted from .jpg image.

 

Following is the snippet of block design.

image

 

 

But we are not getting proper result over display.

We are not sure about which image format to place in Sd card to get proper result over the display. Is there any thing we are missing?

 

image

 

 

 

Thanks in advance

  • Sign in to reply
  • Cancel
Parents
  • clem57
    clem57 over 6 years ago

    shantaramj Why did you convert the JPEG to a bin format?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • clem57
    clem57 over 6 years ago

    shantaramj Why did you convert the JPEG to a bin format?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • shantaramj
    shantaramj over 6 years ago in reply to clem57

    Thanks for prompt reply,

     

     

    We want to read image from sdcard and display using osd layer. we are using  following chain

     

    SDCARD --> AXI VDMA(24bit data width) ---> RGB2YCBCR(video_in 24bit) ----> CHROMA resampler(YCbCr444 to Ycbcr 422)----> OSD layer( video format yuv422) ---> HDMI OUT

     

    We are using bare Metal application Over Zynq to Read from SD Card. RGB values for a picture (.bin format) are stored in SDcard. Any clue here to read .jpg/.bmp/.png image from sd card using baremetal application.

    Any input ref. document here..!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • clem57
    clem57 over 6 years ago in reply to shantaramj

    Take a look at this https://opencores.org/projects/sdcard_mass_storage_controller. There are two method being employed:

    • full feature using DMA. This is very little usage from a CPU perspective. The down side is more hardware resource.
    • PIO method. Less resources for hardware, but more involvement with CPU.

    I assume using VDMA is like the first example. If this is your troubles, the second method may be simpler to implement.

    The next part is how to interpret the data. Get a seat beat because the fun begins. Look at JPEG File Layout and Format. If huffman tables are

    not your thing, look at https://www.lifewire.com/jpg-jpeg-file-4139913 for overview. Maybe searching around, you can locate code to assist because

    trying on your own is another crazy journey.

    Hope this helps,

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shantaramj
    shantaramj over 6 years ago in reply to clem57

    Thanks for reply

    We are using zynq 7030 SoC. sdcard is being access using baremetal application running on zynq ARM.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube